Changes

Jump to navigation Jump to search
84 bytes added ,  13:33, 20 January 2025
m
Line 47: Line 47:  
{{cmdline|ffmpeg -i input.mp4 -vcodec h264 -b:v 8M -r:v 25 -acodec aac -b:a 256k output.mp4}}
 
{{cmdline|ffmpeg -i input.mp4 -vcodec h264 -b:v 8M -r:v 25 -acodec aac -b:a 256k output.mp4}}
   −
<code>-vcodec h264</code> specifies video codec. "h264" is a shorthand for FFmpeg's x264 encoder, it is (by default) interchangeable with "x264" or "libx264".
+
<code>-vcodec h264</code> specifies video codec. "h264" is a shorthand for FFmpeg's x264 encoder, it is (by default) interchangeable with "x264" or "libx264". "-vcodec" is interchangeable with "-c:v".
    
<code>-b:v 8M</code> sets the video bit rate, in bits per second. You can use "k" or "M" as shorthand for a thousand or a million respectively. See [[Video Codecs]] for help choosing a bit rate.  
 
<code>-b:v 8M</code> sets the video bit rate, in bits per second. You can use "k" or "M" as shorthand for a thousand or a million respectively. See [[Video Codecs]] for help choosing a bit rate.  
Line 53: Line 53:  
<code>-r:v 25</code> sets the video frame rate, in frames per second. By default, the frame rate of the original video is kept.
 
<code>-r:v 25</code> sets the video frame rate, in frames per second. By default, the frame rate of the original video is kept.
   −
<code>-acodec aac</code> specifies audio codec. AAC is used by default if your output is a .mp4 file. For AVI the default is MP3.
+
<code>-acodec aac</code> specifies audio codec. AAC is used by default if your output is a .mp4 file. For AVI the default is MP3. "-acodec" is interchangeable with "-c:a".
    
<code>-b:a</code> sets the audio bit rate, in bits per second. Default for AAC is 128k.
 
<code>-b:a</code> sets the audio bit rate, in bits per second. Default for AAC is 128k.

Navigation menu