Mabey it’s a Linux limitation thing then. I accidentally plugged it into a usb2.0 on the back of my motherboard and I got 9fps max. It wouldn’t work in channels until it was back on 3.0. Ymmv
@tmm1 Any joy in stopping it from spinning after a successful stream? I thought maybe make the script disconnect from the HDMI dongle when a stream closes. Like a software version of pulling the usb out and back in
@tmm1
Is there anything you can do about these errors in the logs? I have hundreds of thousands of these lines when the capture is active making it impossible to find anything in the logs. 100-150 of these lines a second.
2025/03/24 11:27:50.801386 [HLS] ffmpeg: capture-usb-hdmi: PTS 1252804028406, next:533312 invalid dropping st:0
2025/03/24 11:27:50.802936 [HLS] ffmpeg: capture-usb-hdmi: DTS 1252804045070, next:549978 st:0 invalid dropping
2025/03/24 11:27:50.802975 [HLS] ffmpeg: capture-usb-hdmi: PTS 1252804045070, next:549978 invalid dropping st:0
2025/03/24 11:27:50.815313 [HLS] ffmpeg: capture-usb-hdmi: DTS 1252804061741, next:566644 st:0 invalid dropping
2025/03/24 11:27:50.815373 [HLS] ffmpeg: capture-usb-hdmi: PTS 1252804061741, next:566644 invalid dropping st:0
2025/03/24 11:27:50.836848 [HLS] ffmpeg: capture-usb-hdmi: DTS 1252804078397, next:583310 st:0 invalid dropping
2025/03/24 11:27:50.836856 [HLS] ffmpeg: capture-usb-hdmi: PTS 1252804078397, next:583310 invalid dropping st:0
2025/03/24 11:27:50.858475 [HLS] ffmpeg: capture-usb-hdmi: DTS 1252804095061, next:599976 st:0 invalid dropping
2025/03/24 11:27:50.858509 [HLS] ffmpeg: capture-usb-hdmi: PTS 1252804095061, next:599976 invalid dropping st:0
2025/03/24 11:27:50.880197 [HLS] ffmpeg: capture-usb-hdmi: DTS 1252804111730, next:616642 st:0 invalid dropping
2025/03/24 11:27:50.880230 [HLS] ffmpeg: capture-usb-hdmi: PTS 1252804111730, next:616642 invalid dropping st:0
Thank you!!
Thank you again for getting this to work on Linux. The only issue I am facing now is an audio video syncing issue. Is there anything that can be done to improve it? It's not horrendous but noticeable Thank you again for your hard work.
Hi @tmm1 I found this about ffmpeg. Might this help my syncing issues?
- Correct FFmpeg Sync Audio to Video That is Too Fast or Slow
You can easily do this by using the -async parameter of FFmpeg, which, as per the documentation "Stretches/squeezes" enables the sound stream to match the timestamps. The parameter takes a numeric value for the samples per second to fix the issue.
ffmpeg -async 25 -i input.mpg -r 25
Attempt gradually expanding the - async value until the sound and video are in sync.
Many thanks
Still scratching my head at this - @tmm1 are you running your mac DVR manually? It's just so odd that yours worked straight away on post 1, and everyone else has the same issue as the quoted post.