[FFmpeg-user] USB Camera ffplay real-time and save to file

Simon Roberts simon at dancingcloudservices.com
Fri Sep 11 17:13:33 EEST 2020


On Fri, Sep 11, 2020 at 7:13 AM Moritz Barsnick <barsnick at gmx.net> wrote:

> On Fri, Sep 11, 2020 at 05:43:09 -0600, Simon Roberts wrote:
> [...]
> > > Use ffmpeg instead of ffplay to show the stream,

[...]

>
> ffmpeg has several display output muxers/devices. The most common one
> (saying it works well, and that on many platforms) is "sdl" a.k.a.
> "sdl". Have ffmpeg create two outputs:
>
> $ ffmpeg -i INPUT -c whatever OUTPUTFILE -c copy -f sdl :0
>
> (You may need to drop the copy codec if sdl cannot handle your input or
> it isn't raw, and/or at least adjust the pixel format to one which sdl
> handles - but it will report that in an error message, I believe.)
>
>
Thank you Moritz, I guess I can forgive myself for utterly failing to spot
that in view of the not particularly mnemonic name :) Regardless, this will
be very helpful for me, much appreciated.


More information about the ffmpeg-user mailing list