FFmpeg: Difference between revisions

296 bytes added ,  18 September 2019
no edit summary
(Created page with "FFmpeg is a library for encoding and decoding multimedia. You can interact with FFmpeg using their command-line interface or using their [https://ffmpeg.org/doxygen/trunk/inde...")
 
No edit summary
Line 3: Line 3:
I find it useful for converting videos to gifs. You can also [https://en.wikibooks.org/wiki/FFMPEG_An_Intermediate_Guide/image_sequence extract videos into a sequence of images or vice-versa].
I find it useful for converting videos to gifs. You can also [https://en.wikibooks.org/wiki/FFMPEG_An_Intermediate_Guide/image_sequence extract videos into a sequence of images or vice-versa].


==CLI===
==CLI==
Basic usage is as follows:
Basic usage is as follows:
<pre>
<pre>
Line 9: Line 9:
</pre>
</pre>


===x264===
x264 is a software h264 decoder and encoder.<br>
[https://trac.ffmpeg.org/wiki/Encode/H.264]


===Changing Pixel Format===
Encode to h264 with YUV420p pixel format
<syntaxhighlight lang="bash">
ffmpeg -i input.mp4 -c:v libx264 -profile:v high -pix_fmt yuv420p output.mp4
<syntaxhighlight>


===C API===
 
==C API==
A doxygen reference manual for their C api is available at [https://ffmpeg.org/doxygen/trunk/index.html].
A doxygen reference manual for their C api is available at [https://ffmpeg.org/doxygen/trunk/index.html].