Post by MrNicePost by Christian Ebert* Moritz Barsnick on Monday, August 03, 2015 at 09:48:20 +0200
Post by Moritz BarsnickPost by Ricardo KleemannGood 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.
$ ffmpeg -i $infile -pix_fmt yuyv422 -f sdl "SDL Output"
This a feature I need as well!
./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.
output format
SDL output: Invalid argument
SDL is installed. Do I need to compile with a SDL option? or there is
another output format?
_______________________________________________
Obviously I don't have SDL output:
./ffmpeg -formats | grep SDL
ffmpeg version N-73832-g736a386 Copyright (c) 2000-2015 the FFmpeg
developers
built with gcc 5.1.1 (GCC) 20150618 (Red Hat 5.1.1-4)
configuration: --enable-libpulse --enable-gpl --enable-libx264
libavutil 54. 28.100 / 54. 28.100
libavcodec 56. 49.101 / 56. 49.101
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 25.100 / 5. 25.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
DE smjpeg Loki SDL MJPEG
What is the compile option?