USB HDMI Capture

ok so i changed it to:

#EXTM3U
#EXTINF:-1, channel-id="usb-hdmi",USB HDMI Capture
capture://dshow/J5-CAPTURE/J5-AUDIO/?framerate=60

2025/02/23 15:51:18.608464 [TNR] Opened connection to M3U-USBHDMICapture for ch1 USB HDMI Capture
2025/02/23 15:51:18.651871 [HLS] ffmpeg: capture-usb-hdmi: [dshow @ 000002656669ec80] Could not find video device with name ["J5-CAPTURE",audio="J5-AUDIO"] among source devices of type video.
2025/02/23 15:51:18.652376 [HLS] ffmpeg: capture-usb-hdmi: video="J5-CAPTURE",audio="J5-AUDIO": I/O error
2025/02/23 15:51:18.655077 [ERR] Error during stream M3U-USBHDMICapture ch1 USB HDMI Capture: exit status 1
2025/02/23 15:51:18.655077 [TNR] Closed connection to M3U-USBHDMICapture for ch1 USB HDMI Capture

Same issues for a Logitech webcam

2025/02/23 16:01:18.548574 [TNR] Opened connection to M3U-USBHDMICapture for ch1 USB HDMI Capture
2025/02/23 16:01:18.584894 [HLS] ffmpeg: capture-usb-hdmi:  [dshow @ 00000249c35ae240] Could not find video device with name ["HD Pro Webcam C920",audio="Microphone (HD Pro Webcam C920)"] among source devices of type video.
2025/02/23 16:01:18.585398 [HLS] ffmpeg: capture-usb-hdmi:  video="HD Pro Webcam C920",audio="Microphone (HD Pro Webcam C920)": I/O error
2025/02/23 16:01:18.588477 [ERR] Error during stream M3U-USBHDMICapture ch1 USB HDMI Capture: exit status 1
2025/02/23 16:01:18.588477 [TNR] Closed connection to M3U-USBHDMICapture for ch1 USB HDMI Capture
#EXTM3U
#EXTINF:-1, channel-id="usb-hdmi",USB HDMI Capture
capture://dshow/HD Pro Webcam C920/Microphone (HD Pro Webcam C920)/?framerate=60
C:\Windows\System32>C:\ProgramData\ChannelsDVR\latest\ffmpeg.exe -list_devices true -f dshow -i dummy
[dshow @ 0000027f005ed880] "HD Pro Webcam C920" (video)
[dshow @ 0000027f005ed880]   Alternative name "@device_pnp_\\?\usb#vid_046d&pid_082d&mi_00#6&1182fde4&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global"
[dshow @ 0000027f005ed880] "Microphone (HD Pro Webcam C920)" (audio)
[dshow @ 0000027f005ed880]   Alternative name "@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{CD2E62BD-B324-4812-8B32-CC984BE40362}"
dummy: Immediate exit requested

Also, is there a way to not trigger a full system guide data refresh every time i change/save this m3u custom tuner? My guide data now is saying timeout and just hanging cause it has tried about a dozen times in the last few minutes.

Try with DVR Pre-Release Notes - #1669 by fancybot

Same error.

2025/02/23 17:22:23.124583 [TNR] Opened connection to M3U-USBHDMICapture for ch1 USB HDMI Capture
2025/02/23 17:22:23.159919 [HLS] ffmpeg: capture-usb-hdmi:  [dshow @ 000002658cc0e240] Could not find video device with name ["HD Pro Webcam C920"] among source devices of type video.
2025/02/23 17:22:23.160942 [HLS] ffmpeg: capture-usb-hdmi:  video="HD Pro Webcam C920":audio="Microphone (HD Pro Webcam C920)": I/O error
2025/02/23 17:22:23.164803 [ERR] Error during stream M3U-USBHDMICapture ch1 USB HDMI Capture: exit status 1
2025/02/23 17:22:23.164803 [TNR] Closed connection to M3U-USBHDMICapture for ch1 USB HDMI Capture
2025/02/23 17:22:23.164803 [SNR] Buffer statistics for 192.168.0.17 (Apple TV) for ch1 USB HDMI Capture: buf=0% drop=0%

I second this request.

1 Like

Another one: DVR Pre-Release Notes - #1670 by fancybot

1 Like

Always have thought the CDVR transcoder is magic, always looks loads better than if I do a similar transcode through just ffmpeg. So very interested in trying this out.

Would this likely provide better image quality than the linkpi encoders? Unsure what encoding they use..

I have an Mac M2 Pro if that matters.

1 Like

Different error now

2025/02/23 20:13:07.376559 [TNR] Opened connection to M3U-USBHDMICapture for ch1 USB HDMI Capture
2025/02/23 20:13:07.402917 [HLS] ffmpeg: capture-usb-hdmi:  [dshow @ 000002200fc6ebc0] Malformed dshow input string.
2025/02/23 20:13:07.402917 [HLS] ffmpeg: capture-usb-hdmi:  HD Pro Webcam C920:Microphone (HD Pro Webcam C920): I/O error
2025/02/23 20:13:07.405502 [ERR] Error during stream M3U-USBHDMICapture ch1 USB HDMI Capture: exit status 1
2025/02/23 20:13:07.405502 [TNR] Closed connection to M3U-USBHDMICapture for ch1 USB HDMI Capture

@tmm1 Just saw another pre-release...getting better.
As the webcam led comes on, and off, looks like it is trying to stream.

2025/02/23 23:31:52.312930 [TNR] Opened connection to M3U-USBHDMICapture for ch1 USB HDMI Capture
2025/02/23 23:31:52.439365 [HLS] ffmpeg: capture-usb-hdmi:  [dshow @ 000001fdbd7aebc0] Could not set video options
2025/02/23 23:31:52.442724 [HLS] ffmpeg: capture-usb-hdmi:  video=HD Pro Webcam C920:audio=Microphone (HD Pro Webcam C920): I/O error
2025/02/23 23:31:52.445440 [ERR] Error during stream M3U-USBHDMICapture ch1 USB HDMI Capture: exit status 1
2025/02/23 23:31:52.445440 [TNR] Closed connection to M3U-USBHDMICapture for ch1 USB HDMI Capture

The cam does not support 60fps...not sure if that framerate option makes a difference. BUt when i changed it to 30fps, i got this,.

2025/02/23 23:34:55.799289 [TNR] Opened connection to M3U-USBHDMICapture for ch1 USB HDMI Capture
2025/02/23 23:34:56.938383 [HLS] ffmpeg: capture-usb-hdmi:  Guessed Channel Layout for Input Stream #0.1 : stereo
2025/02/23 23:34:56.948883 [HLS] ffmpeg: capture-usb-hdmi:  [h264_mf @ 00000136dc25eac0] COM must not be in STA mode
2025/02/23 23:34:56.949979 [HLS] ffmpeg: capture-usb-hdmi:  Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
2025/02/23 23:34:57.301590 [ERR] Error during stream M3U-USBHDMICapture ch1 USB HDMI Capture: exit status 0xc0000005
2025/02/23 23:34:57.301590 [TNR] Closed connection to M3U-USBHDMICapture for ch1 USB HDMI Capture

EDIT: For the J5Capture HDMI capture...also making progress, but still fails.

2025/02/23 23:40:15.021973 [TNR] Opened connection to M3U-USBHDMICapture for ch1 USB HDMI Capture
2025/02/23 23:40:15.484488 [HLS] ffmpeg: capture-usb-hdmi:  [mjpeg @ 0000024ef04255c0] EOI missing, emulating
2025/02/23 23:40:15.965258 [HLS] ffmpeg: capture-usb-hdmi:  Guessed Channel Layout for Input Stream #0.1 : stereo
2025/02/23 23:40:15.971521 [HLS] ffmpeg: capture-usb-hdmi:  [mjpeg @ 0000024ef2f6ebc0] overread 8
2025/02/23 23:40:15.971521 [HLS] ffmpeg: capture-usb-hdmi:      Last message repeated 1 times
2025/02/23 23:40:15.971521 [HLS] ffmpeg: capture-usb-hdmi:  [mjpeg @ 0000024ef2f6ebc0] EOI missing, emulating
2025/02/23 23:40:15.974688 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000024ef2df9600] [swscaler @ 0000024ef2e06600] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:40:15.975203 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000024ef2df9600] [swscaler @ 0000024ef2e135c0] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:40:15.975203 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000024ef2df9600] [swscaler @ 0000024ef2e20580] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:40:15.975722 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000024ef2df9600] [swscaler @ 0000024ef2e3d580] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:40:15.975722 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000024ef2df9600] [swscaler @ 0000024ef7529ac0] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:40:15.976234 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000024ef2df9600] [swscaler @ 0000024ef7536a80] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:40:15.976748 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000024ef2df9600] [swscaler @ 0000024ef785b700] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:40:15.976748 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000024ef2df9600] [swscaler @ 0000024ef7d32980] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:40:15.977262 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000024ef2df9600] [swscaler @ 0000024ef7d60dc0] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:40:15.977262 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000024ef2df9600] [swscaler @ 0000024ef7dc4140] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:40:15.977776 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000024ef2df9600] [swscaler @ 0000024ef7e04b00] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:40:15.977776 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000024ef2df9600] [swscaler @ 0000024ef7e53040] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:40:15.978288 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000024ef2df9600] [swscaler @ 0000024ef7e72f80] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:40:15.988697 [HLS] ffmpeg: capture-usb-hdmi:  [h264_mf @ 0000024ef2ef28c0] COM must not be in STA mode
2025/02/23 23:40:15.989804 [HLS] ffmpeg: capture-usb-hdmi:  Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
2025/02/23 23:40:16.326603 [ERR] Error during stream M3U-USBHDMICapture ch1 USB HDMI Capture: exit status 0xc0000005
2025/02/23 23:40:16.326603 [TNR] Closed connection to M3U-USBHDMICapture for ch1 USB HDMI Capture
2025/02/23 23:40:16.326603 [SNR] Buffer statistics for 192.168.0.17 (Apple TV) for ch1 USB HDMI Capture: buf=0% drop=0%

I found the link to the specific HDMI capture device i have
Game Capture Station – j5create

Edit2; If i remove the ?framerate entirely, i get this

2025/02/23 23:45:51.962994 [TNR] Opened connection to M3U-USBHDMICapture for ch1 USB HDMI Capture
2025/02/23 23:45:52.388567 [HLS] ffmpeg: capture-usb-hdmi:  [mjpeg @ 0000029ef8b88c00] No JPEG data found in image
2025/02/23 23:45:52.388567 [HLS] ffmpeg: capture-usb-hdmi:  [mjpeg @ 0000029ef8b88c00] Found EOI before any SOF, ignoring
2025/02/23 23:45:52.388567 [HLS] ffmpeg: capture-usb-hdmi:  [mjpeg @ 0000029ef8b88c00] No JPEG data found in image
2025/02/23 23:45:52.877847 [HLS] ffmpeg: capture-usb-hdmi:  Guessed Channel Layout for Input Stream #0.1 : stereo
2025/02/23 23:45:52.880376 [HLS] ffmpeg: capture-usb-hdmi:  [mjpeg @ 0000029ef19b8c80] No JPEG data found in image
2025/02/23 23:45:52.880376 [HLS] ffmpeg: capture-usb-hdmi:  Error while decoding stream #0:0: Invalid data found when processing input
2025/02/23 23:45:52.880376 [HLS] ffmpeg: capture-usb-hdmi:  [mjpeg @ 0000029ef19b8c80] Found EOI before any SOF, ignoring
2025/02/23 23:45:52.880376 [HLS] ffmpeg: capture-usb-hdmi:  [mjpeg @ 0000029ef19b8c80] No JPEG data found in image
2025/02/23 23:45:52.880376 [HLS] ffmpeg: capture-usb-hdmi:  Error while decoding stream #0:0: Invalid data found when processing input
2025/02/23 23:45:52.886886 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000029ef1983c00] [swscaler @ 0000029ef8df5a40] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:45:52.886886 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000029ef1983c00] [swscaler @ 0000029ef8c13900] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:45:52.887414 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000029ef1983c00] [swscaler @ 0000029ef8c208c0] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:45:52.887414 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000029ef1983c00] [swscaler @ 0000029ef4397f80] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:45:52.887928 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000029ef1983c00] [swscaler @ 0000029ef8af5280] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:45:52.887928 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000029ef1983c00] [swscaler @ 0000029ef8b24ac0] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:45:52.887928 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000029ef1983c00] [swscaler @ 0000029ef44c23c0] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:45:52.887928 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000029ef1983c00] [swscaler @ 0000029ef44ef380] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:45:52.888540 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000029ef1983c00] [swscaler @ 0000029ef8e44ac0] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:45:52.888540 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000029ef1983c00] [swscaler @ 0000029ef93e8c80] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:45:52.888540 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000029ef1983c00] [swscaler @ 0000029ef9438040] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:45:52.889054 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000029ef1983c00] [swscaler @ 0000029ef94497c0] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:45:52.889054 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000029ef1983c00] [swscaler @ 0000029ef94ca040] deprecated pixel format used, make sure you did set range correctly
2025/02/23 23:45:52.895502 [HLS] ffmpeg: capture-usb-hdmi:  [h264_mf @ 0000029ef19b7500] COM must not be in STA mode
2025/02/23 23:45:52.896042 [HLS] ffmpeg: capture-usb-hdmi:  Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
2025/02/23 23:45:53.237139 [ERR] Error during stream M3U-USBHDMICapture ch1 USB HDMI Capture: exit status 0xc0000005
2025/02/23 23:45:53.237139 [TNR] Closed connection to M3U-USBHDMICapture for ch1 USB HDMI Capture

And it says HLS in the logs, but i have it on mpeg-ts but did try changing it to HLS in the source settings on the server m3u, but makes no difference. Same log output.

Edit again. Should mention, i forgot to change the name of each device, i was just replacing the one channel in the m3u with the code for the device was testing. I have since added both as 2 channels, and named them accordingly. USB Webcam and USB HDMI Capture.

Can some kindly soul help out a newbe here with some pointers on next steps?

What I have done so far:

  1. Turned on ADB on my FireStick.
  2. Hooked it up to an HDMI USB capture dongle hooked into my Windows 10 computer.
  3. Made sure I can see the video from the Firestick on my PC using OBS. Everything plays fine, including Comedy Central (the particular channel that I am trying to hookup) on YTTV,
  4. Installed Docker.
  5. Installed ADBTuner in Docker. Everything comes up, and I can see the webpage for ADBTuner.
  6. Updated my Channels DVR to the latest prerelease (atm it is 2025.02.24.0444).

At this point, I am unsure what the next step is. I have not used the ADBTuner before with the LinkPi encoder device. What do I need to do to determine my stream URL for Comedy Central on YTTV for FireStick?

Any pointers will be much appreciated, thanks.

Neat stuff! I will have to do some testing, dust off the MS2130 based capture card I tested on the LinkPi.

Next step is to create a custom channel as MPEG-TS / Text and see if you can get the stream showing up in Channels DVR

Windows capture isn't quite working yet, but I just pushed another pre-release based on @speedingcheetah's latest logs


1 Like

@tmm1 Upgraded, working now, but looks like crap. (forgot had to change the webcam framerate to 30 not 60 then it worked. Still getting some errors

2025/02/24 10:40:33.925518 [TNR] Opened connection to M3U-USBHDMICapture for ch2 USB Webcam
2025/02/24 10:40:34.987195 [HLS] ffmpeg: capture-usb-webcam:  Guessed Channel Layout for Input Stream #0.1 : stereo
2025/02/24 10:40:35.147391 [HLS] ffmpeg: capture-usb-webcam:  [h264_mf @ 0000017eabb50bc0] stream format change
2025/02/24 10:40:41.992177 [SNR] Buffer statistics for 192.168.0.17 (Apple TV) for ch2 USB Webcam: buf=0% drop=0%
2025/02/24 10:40:41.992767 [TNR] Closed connection to M3U-USBHDMICapture for ch2 USB Webcam
2025/02/24 10:40:41.992767 [ERR] Error during stream M3U-USBHDMICapture ch2 USB Webcam: read |0: file already closed
2025/02/24 10:40:41.992767 [HLS] ffmpeg: capture-usb-webcam:  av_interleaved_write_frame(): Invalid argument
2025/02/24 10:40:42.009556 [HLS] ffmpeg: capture-usb-webcam:  Error writing trailer of pipe:: Invalid argument
2025/02/24 10:40:42.010078 [HLS] ffmpeg: capture-usb-webcam:  Error closing file pipe:: Invalid argument

BUT, is now working for HDMI capture, but it looks like crap. Can't read any words, and is heavy pixelated.

2025/02/24 10:32:10.794289 [TNR] Opened connection to M3U-USBHDMICapture for ch1 USB HDMI Capture
2025/02/24 10:32:11.298068 [HLS] ffmpeg: capture-usb-hdmi:  [mjpeg @ 00000253c8980500] EOI missing, emulating
2025/02/24 10:32:11.743422 [HLS] ffmpeg: capture-usb-hdmi:  Guessed Channel Layout for Input Stream #0.1 : stereo
2025/02/24 10:32:11.752905 [HLS] ffmpeg: capture-usb-hdmi:  [mjpeg @ 00000253cfbdafc0] overread 8
2025/02/24 10:32:11.752905 [HLS] ffmpeg: capture-usb-hdmi:      Last message repeated 1 times
2025/02/24 10:32:11.752905 [HLS] ffmpeg: capture-usb-hdmi:  [mjpeg @ 00000253cfbdafc0] EOI missing, emulating
2025/02/24 10:32:11.756069 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 00000253cfa1f980] [swscaler @ 00000253cfa2c940] deprecated pixel format used, make sure you did set range correctly
2025/02/24 10:32:11.756069 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 00000253cfa1f980] [swscaler @ 00000253cb34a640] deprecated pixel format used, make sure you did set range correctly
2025/02/24 10:32:11.756590 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 00000253cfa1f980] [swscaler @ 00000253c89ad6c0] deprecated pixel format used, make sure you did set range correctly
2025/02/24 10:32:11.756590 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 00000253cfa1f980] [swscaler @ 00000253cb3abec0] deprecated pixel format used, make sure you did set range correctly
2025/02/24 10:32:11.757111 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 00000253cfa1f980] [swscaler @ 00000253cb3ca800] deprecated pixel format used, make sure you did set range correctly
2025/02/24 10:32:11.757787 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 00000253cfa1f980] [swscaler @ 00000253cfc0eec0] deprecated pixel format used, make sure you did set range correctly
2025/02/24 10:32:11.757787 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 00000253cfa1f980] [swscaler @ 00000253cfc1be80] deprecated pixel format used, make sure you did set range correctly
2025/02/24 10:32:11.758317 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 00000253cfa1f980] [swscaler @ 00000253cfa795c0] deprecated pixel format used, make sure you did set range correctly
2025/02/24 10:32:11.758317 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 00000253cfa1f980] [swscaler @ 00000253cb407380] deprecated pixel format used, make sure you did set range correctly
2025/02/24 10:32:11.758841 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 00000253cfa1f980] [swscaler @ 00000253cb1380c0] deprecated pixel format used, make sure you did set range correctly
2025/02/24 10:32:11.758841 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 00000253cfa1f980] [swscaler @ 00000253cfb00040] deprecated pixel format used, make sure you did set range correctly
2025/02/24 10:32:11.758841 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 00000253cfa1f980] [swscaler @ 00000253cfb0e480] deprecated pixel format used, make sure you did set range correctly
2025/02/24 10:32:11.758841 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 00000253cfa1f980] [swscaler @ 00000253cb153e40] deprecated pixel format used, make sure you did set range correctly
2025/02/24 10:32:11.959271 [HLS] ffmpeg: capture-usb-hdmi:  [h264_mf @ 00000253cb315a80] stream format change
2025/02/24 10:34:08.752595 [SNR] Buffer statistics for 192.168.0.17 (Apple TV) for ch1 USB HDMI Capture: buf=0% drop=0%
2025/02/24 10:34:08.752595 [ERR] Error during stream M3U-USBHDMICapture ch1 USB HDMI Capture: read |0: file already closed
2025/02/24 10:34:08.752595 [TNR] Closed connection to M3U-USBHDMICapture for ch1 USB HDMI Capture
2025/02/24 10:34:08.753148 [HLS] ffmpeg: capture-usb-hdmi:  av_interleaved_write_frame(): Invalid argument
2025/02/24 10:34:08.774007 [HLS] ffmpeg: capture-usb-hdmi:      Last message repeated 1 times
2025/02/24 10:34:08.774007 [HLS] ffmpeg: capture-usb-hdmi:  Error writing trailer of pipe:: Invalid argument
2025/02/24 10:34:08.774007 [HLS] ffmpeg: capture-usb-hdmi:  Error closing file pipe:: Invalid argument

I have the capture card hooked to my Dell laptop that is clone display mode 1080p 60hz. Looks the same if i change to Extended display. Picture is crystal clean and perfect in OBS or the Win 11 Camera app.

Just a note that i forgot to change the framerate of webcam in the m3u to 30. Now it works.
I edited my post to include the new log entries.

Things are working, but look so garbo that it is unusable.
Can confirm that the capture image, in native camera app or OBS form webcam/HDMI capture is nice and clean and perfect look, it just garbo in Channels.

Is there more work to be done, there are still some errors and things the logs indicate may be an issue.
Would be great if there was some GUI exposed options in the server, maybe, or other arguments to add to the m3u to improve the picture?

I am using a custom built PC, with a Intel 12th Gen i5-12400 cpu and its integrated graphics as my CDVR server.

Can you submit diagnostics while it is streaming.

1 Like

89f98a49-d0f8-4251-ae7f-97fb04bf2beb

I also did diags from the app after streaming, if that also helps.

Try DVR Pre-Release Notes - #1675 by fancybot

significantly better looking, but still, is not great. Text is still difficult to read, and has many artificing. Stats say is 720p stream. Anyway to get that to 1080?

User facing options to adjust these things also would be nice, for a future final implementation of these feature i would think.

Weird, wonder why it looks so bad.

You can add &video_size=1920x1080 if that's supported.

And the webcam is doing 640x480.

That helped alot!. Still getting alot of flickering and some odd artificing that is not present with other capture software that pulls from the capture device.

Still see some things in the logs like:

2025/02/24 12:13:11.661949 [TNR] Opened connection to M3U-USBHDMICapture for ch1 USB HDMI Capture
2025/02/24 12:13:12.109659 [HLS] ffmpeg: capture-usb-hdmi:  [mjpeg @ 0000021cc17f0a80] Found EOI before any SOF, ignoring
2025/02/24 12:13:12.109659 [HLS] ffmpeg: capture-usb-hdmi:  [mjpeg @ 0000021cc17f0a80] No JPEG data found in image
2025/02/24 12:13:12.569724 [HLS] ffmpeg: capture-usb-hdmi:  Guessed Channel Layout for Input Stream #0.1 : stereo
2025/02/24 12:13:12.571758 [HLS] ffmpeg: capture-usb-hdmi:  Error while decoding stream #0:0: Invalid data found when processing input
2025/02/24 12:13:12.572697 [HLS] ffmpeg: capture-usb-hdmi:  [mjpeg @ 0000021cc8aae200] Found EOI before any SOF, ignoring
2025/02/24 12:13:12.572697 [HLS] ffmpeg: capture-usb-hdmi:  [mjpeg @ 0000021cc8aae200] No JPEG data found in image
2025/02/24 12:13:12.572697 [HLS] ffmpeg: capture-usb-hdmi:  Error while decoding stream #0:0: Invalid data found when processing input
2025/02/24 12:13:12.580808 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000021cc3410880] [swscaler @ 0000021cc46010c0] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:12.581810 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000021cc3410880] [swscaler @ 0000021cc8c135c0] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:12.582350 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000021cc3410880] [swscaler @ 0000021cc8c23080] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:12.582350 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000021cc3410880] [swscaler @ 0000021cc1857740] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:12.582350 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000021cc3410880] [swscaler @ 0000021cc4436440] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:12.582930 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000021cc3410880] [swscaler @ 0000021cc8b94a00] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:12.582930 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000021cc3410880] [swscaler @ 0000021cc8c63700] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:12.583444 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000021cc3410880] [swscaler @ 0000021cc8d9b740] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:12.583444 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000021cc3410880] [swscaler @ 0000021cc9ad2d40] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:12.583444 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000021cc3410880] [swscaler @ 0000021cc9b90040] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:12.583958 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000021cc3410880] [swscaler @ 0000021cc9bf7040] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:12.583958 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000021cc3410880] [swscaler @ 0000021cc9c04000] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:12.584470 [HLS] ffmpeg: capture-usb-hdmi:  [swscaler @ 0000021cc3410880] [swscaler @ 0000021cc9ca0040] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:12.776938 [HLS] ffmpeg: capture-usb-hdmi:  [h264_mf @ 0000021cc338fc00] stream format change
2025/02/24 12:13:12.925138 [HLS] ffmpeg: capture-usb-hdmi:  [dshow @ 0000021cc179eb40] real-time buffer [J5-CAPTURE] [video input] too full or near too full (69% of size: 3041280 [rtbufsize parameter])! frame dropped!
2025/02/24 12:13:27.087684 [SNR] Buffer statistics for 192.168.0.17 (Apple TV) for ch1 USB HDMI Capture: buf=0% drop=0%
2025/02/24 12:13:27.088253 [ERR] Error during stream M3U-USBHDMICapture ch1 USB HDMI Capture: read |0: file already closed
2025/02/24 12:13:27.088253 [TNR] Closed connection to M3U-USBHDMICapture for ch1 USB HDMI Capture
2025/02/24 12:13:27.088867 [HLS] ffmpeg: capture-usb-hdmi:  av_interleaved_write_frame(): Invalid argument
2025/02/24 12:13:27.112881 [HLS] ffmpeg: capture-usb-hdmi:      Last message repeated 1 times
2025/02/24 12:13:27.112881 [HLS] ffmpeg: capture-usb-hdmi:  Error writing trailer of pipe:: Invalid argument
2025/02/24 12:13:27.112881 [HLS] ffmpeg: capture-usb-hdmi:  Error closing file pipe:: Invalid argument

and

2025/02/24 12:13:31.679701 [TNR] Opened connection to M3U-USBHDMICapture for ch2 USB Webcam
2025/02/24 12:13:33.058490 [HLS] ffmpeg: capture-usb-webcam:  Guessed Channel Layout for Input Stream #0.1 : stereo
2025/02/24 12:13:33.394541 [HLS] ffmpeg: capture-usb-webcam:  [swscaler @ 000001f3d2f39200] [swscaler @ 000001f3d2f4f200] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:33.394887 [HLS] ffmpeg: capture-usb-webcam:  [swscaler @ 000001f3d2f39200] [swscaler @ 000001f3d2f93ac0] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:33.394887 [HLS] ffmpeg: capture-usb-webcam:  [swscaler @ 000001f3d2f39200] [swscaler @ 000001f3d2fdf080] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:33.394887 [HLS] ffmpeg: capture-usb-webcam:  [swscaler @ 000001f3d2f39200] [swscaler @ 000001f3d302ddc0] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:33.395390 [HLS] ffmpeg: capture-usb-webcam:  [swscaler @ 000001f3d2f39200] [swscaler @ 000001f3d307b100] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:33.395390 [HLS] ffmpeg: capture-usb-webcam:  [swscaler @ 000001f3d2f39200] [swscaler @ 000001f3d39100c0] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:33.395906 [HLS] ffmpeg: capture-usb-webcam:  [swscaler @ 000001f3d2f39200] [swscaler @ 000001f3d391d080] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:33.395906 [HLS] ffmpeg: capture-usb-webcam:  [swscaler @ 000001f3d2f39200] [swscaler @ 000001f3d3994f40] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:33.395906 [HLS] ffmpeg: capture-usb-webcam:  [swscaler @ 000001f3d2f39200] [swscaler @ 000001f3d39b05c0] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:33.396421 [HLS] ffmpeg: capture-usb-webcam:  [swscaler @ 000001f3d2f39200] [swscaler @ 000001f3d3a349c0] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:33.396421 [HLS] ffmpeg: capture-usb-webcam:  [swscaler @ 000001f3d2f39200] [swscaler @ 000001f3d3a42ac0] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:33.396937 [HLS] ffmpeg: capture-usb-webcam:  [swscaler @ 000001f3d2f39200] [swscaler @ 000001f3d3aad0c0] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:33.396937 [HLS] ffmpeg: capture-usb-webcam:  [swscaler @ 000001f3d2f39200] [swscaler @ 000001f3d3abde00] deprecated pixel format used, make sure you did set range correctly
2025/02/24 12:13:33.600889 [HLS] ffmpeg: capture-usb-webcam:  [h264_mf @ 000001f3ce9df040] stream format change
2025/02/24 12:13:43.863945 [SNR] Buffer statistics for 192.168.0.17 (Apple TV) for ch2 USB Webcam: buf=0% drop=0%
2025/02/24 12:13:43.863945 [ERR] Error during stream M3U-USBHDMICapture ch2 USB Webcam: read |0: file already closed
2025/02/24 12:13:43.863945 [TNR] Closed connection to M3U-USBHDMICapture for ch2 USB Webcam
2025/02/24 12:13:43.928773 [HLS] ffmpeg: capture-usb-webcam:  av_interleaved_write_frame(): Invalid argument
2025/02/24 12:13:43.941069 [HLS] ffmpeg: capture-usb-webcam:      Last message repeated 1 times
2025/02/24 12:13:43.941069 [HLS] ffmpeg: capture-usb-webcam:  Error writing trailer of pipe:: Invalid argument
2025/02/24 12:13:43.941069 [HLS] ffmpeg: capture-usb-webcam:  Error closing file pipe:: Invalid argument

not sure if there is anything in there that needs addressing to improve quality, or they can be ignored.

1 Like