FFmpeg: Difference between revisions

Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 15: Line 15:
}}
}}


FFmpeg is an open-source command-line tool to convert audio and video files. We know command-line tools can seem scary! But there really is no better solution for processing videos for the highly specific needs of research.
FFmpeg is an open-source command-line tool to convert audio and video files. <br/>
We know command-line tools can seem scary! But conversion software GUIs (graphical user interfaces) are often a more limiting, or will obfuscate what gets done to your video or audio file. For the highest level of control and transparency, we therefore highly recommend using FFmpeg for all your AV conversion needs.


<!-- Table of Contents will be generated here -->
<!-- Table of Contents will be generated here -->
Line 21: Line 22:
==Installation==
==Installation==
===Windows 10/11===
===Windows 10/11===
#Download the latest ffmpeg-release-full build on https://ffmpeg.org/download.html
#Go to https://ffmpeg.org/download.html
#Unpack the 7z/zip file anywhere you like
#Under "Get packages & executable files", select the Windows logo and follow one of the links below (''gyan.dev'' is most common)
#Download the latest ''ffmpeg-release-essentials'' .7z or .zip file.<ref>The FFmpeg "essentials" version should be fine for most purposes; use "full" version for more obscure/obsolete/experimental formats</ref>
#Unpack the 7z/zip file anywhere you like.
#Add ffmpeg to Windows' Environment Variables:
#Add ffmpeg to Windows' Environment Variables:
## Open the start menu and start typing "Environment Variables"
## Open the start menu and start typing "Environment Variables"
Line 91: Line 94:
<code>-b:v 8M</code> specifies video bit rate, in this case 8Mbit/s, which determines video quality.
<code>-b:v 8M</code> specifies video bit rate, in this case 8Mbit/s, which determines video quality.


Note: you can use <code>-c copy</code> to trim without re-encoding, but in this case FFmpeg can only cut to the nearest keyframe, so the output may not be exactly the same length as specified.
⚠️If you use <code>-vcodec copy</code> to trim without re-encoding, FFmpeg can only cut to the nearest keyframe, so the output may not be exactly the same length as specified.


===Batching===
===Batching===
Line 127: Line 130:
==See Also==  
==See Also==  
* [[Video Codecs]]
* [[Video Codecs]]
==References==
<references/>