Ffmpeg: Difference between revisions

From Dave-Wiki
Jump to navigation Jump to search
(Created page with "==Convert Video Format== Set bitrate same as audio bitrate from original file ffmpeg -i input.m4v -ab 192000 output.mp4 ==Convert Video to Audio-only== I don't think -f is required, as ffmpeg will otherwise use the file extension to determine format. -ab specifies audio bitrate. -vn specifies no video. ffmpeg -i input.mp4 -f mp3 -ab 192000 -vn output.mp3")
 
Line 5: Line 5:


==Convert Video to Audio-only==
==Convert Video to Audio-only==
I don't think -f is required, as ffmpeg will otherwise use the file extension to determine format. -ab specifies audio bitrate. -vn specifies no video.
I don't think <code>-f</code> is required, as ffmpeg will otherwise use the file extension to determine format.


   ffmpeg -i input.mp4 -f mp3 -ab 192000 -vn output.mp3
   ffmpeg -i input.mp4 -f mp3 -ab 192000 -vn output.mp3
;-ab: specifies audio bitrate
;-vn: specifies no video.

Revision as of 02:03, 13 February 2024

Convert Video Format

Set bitrate same as audio bitrate from original file

 ffmpeg -i input.m4v -ab 192000 output.mp4

Convert Video to Audio-only

I don't think -f is required, as ffmpeg will otherwise use the file extension to determine format.

 ffmpeg -i input.mp4 -f mp3 -ab 192000 -vn output.mp3
-ab
specifies audio bitrate
-vn
specifies no video.