[FFmpeg-user] time between releasinf /dev/videoX and using it again

Ben Barker ben at bbarker.co.uk
Sun Jun 20 14:29:26 EEST 2021


Ah - it looks like this is the issue:

https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=197089

Though not entirely sure what is being done there! Looks like whatever it
is is not an ffmpeg issue

On Sun, Jun 20, 2021 at 11:13 AM Ben Barker <ben at bbarker.co.uk> wrote:

> I am using ffmpeg to record from a UVC webcam for X seconds that appears
> as /dev/videoX
>
> I have found that if a recording finishes, and I try to start another with
> the same command within ~0.5 seconds, I occasionally get an error that the
> device is not available.
>
> I assume this is down to some issue with timings and the video device not
> being immediately released? I can work around this by ensuring there is a
> longer delay between successive recordings, but it would be good to
> understand what is going on!
>
>
>


More information about the ffmpeg-user mailing list