[FFmpeg-user] ffmpeg and multiple outputs

MrNice wxcvbn2006 at iol.ie
Mon Aug 3 12:49:35 CEST 2015



On 03/08/15 09:23, Christian Ebert wrote:
> * Moritz Barsnick on Monday, August 03, 2015 at 09:48:20 +0200
>> On Sun, Aug 02, 2015 at 17:51:39 -0700, Ricardo Kleemann wrote:
>>> Good point, how would I display ffmpeg on OS X? I’m not quite sure
>>> what the output device would be?
>>
>> The output device "sdl" is the first that comes to mind.
>>
>> $ ffmpeg -i $infile -f sdl "SDL output"
>> and you can add another output, i.e. to file, after those arguments.
>>
>> Moritz
>>
>> P.S.: You may have to add "-pix_fmt yuv420p" to get it to work,
>>      depending on the input format. I believe my sdl didn't like
>>      another format, and ffmpeg didn't convert automatically.
> 
> Almost, it needs yuyv422:
> 
> $ ffmpeg -i $infile -pix_fmt yuyv422 -f sdl "SDL Output"
> 

This a feature I need as well!
I tried on my Fedora 22 PC but I get the error:

./ffmpeg -debug 1 -f pulse -ar 44100 -ac 2 -channel_layout stereo
-thread_queue_size 512 -i alsa_input.pci-0000_00_14.2.analog-stereo -f
v4l2 -ts mono2abs -channel 1 -video_size 720x576 -pix_fmt yuyv422
-thread_queue_size 512 -i /dev/video0 -f sdl "SDL output" -c:v libx264
-preset slower -qp 0 -pix_fmt yuv422p -c:a pcm_s16le
/Store3/Test/t_`date +%Y%m%d_%H%M`.mkv
....
Successfully opened the file.
Parsing a group of options: output file SDL output.
Applying option f (force format) with argument sdl.
Successfully parsed a group of options.
Opening an output file: SDL output.
[NULL @ 0x3142b80] Requested output format 'sdl' is not a suitable
output format
SDL output: Invalid argument

SDL is installed. Do I need to compile with a SDL option? or there is
another output format?


More information about the ffmpeg-user mailing list