You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems when my Kona4 card doesn't have a signal, the V4L2 driver doesn't produce any output. I guess this makes sense, but it becomes a problem in my ffmpeg pipeline, which looks something like this:
The problem with this is that audio samples are still delivered from alsa, but no frames are generated when there's no signal. When it gets a signal, ffmpeg tries to make up for the missing frames by duplicating them, but for some reason it doesn't seem to recover. I've tried different -vsync options but with different degrees of success.
Now I'm wondering if it would be possible for this driver to continue producing frames even when there's no input? I'm thinking either duplicate frames, send null frames, or send black frames. It seems v4l2loopback has exactly this feature, do you have any experience using that together with this driver?
The text was updated successfully, but these errors were encountered:
What you ask is not unreasonable. The driver could produce black frames with the same timing that the audio is using. I am trying to find time to work on updating the driver for new kernels. Perhaps I can add this feature at the same time.
It seems when my Kona4 card doesn't have a signal, the V4L2 driver doesn't produce any output. I guess this makes sense, but it becomes a problem in my ffmpeg pipeline, which looks something like this:
ffmpeg -f v4l2 -i /dev/video0 -f alsa -i hw:Kona4,0 ...
The problem with this is that audio samples are still delivered from alsa, but no frames are generated when there's no signal. When it gets a signal, ffmpeg tries to make up for the missing frames by duplicating them, but for some reason it doesn't seem to recover. I've tried different
-vsync
options but with different degrees of success.Now I'm wondering if it would be possible for this driver to continue producing frames even when there's no input? I'm thinking either duplicate frames, send null frames, or send black frames. It seems
v4l2loopback
has exactly this feature, do you have any experience using that together with this driver?The text was updated successfully, but these errors were encountered: