Ffmpeg: Difference between revisions
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
;-f: output file extension | ;-f: output file extension | ||
: ''I don't think is required, as ffmpeg will otherwise use the file extension to determine format.'' | : ''(I don't think is required, as ffmpeg will otherwise use the file extension to determine format.)'' | ||
;-ab: specifies audio bitrate | ;-ab: specifies audio bitrate | ||
;-vn: specifies no video. | ;-vn: specifies no video. |
Latest revision as of 02:05, 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
ffmpeg -i input.mp4 -f mp3 -ab 192000 -vn output.mp3
- -f
- output file extension
- (I don't think is required, as ffmpeg will otherwise use the file extension to determine format.)
- -ab
- specifies audio bitrate
- -vn
- specifies no video.