Created
March 22, 2015 07:51
-
-
Save melnikovdv/9c5b53979e98915fa499 to your computer and use it in GitHub Desktop.
ffmpeg utility usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ffmpeg utility usage | |
# file concatenation (join / merge) | |
ffmpeg -f concat -i list.txt -c copy output.mp4 | |
# list.txt (don't forget to remove # from file string): | |
#################### | |
# this is a comment | |
# file './1.mp4' | |
# file './2.mp4' | |
#################### | |
# converting from dvd to mp4 | |
ffmpeg -i "/path/to/file.VOB" -s 1280x720 /path/to/output.mp4 | |
# converting dvd disc from RTSF (regexp and bunch convering in ruby) | |
# files = Dir["/Volumes/RTSF\\ 2014\\ DC\\ 1/VIDEO_TS/VTS_*_1.VOB"] | |
# files.each { |f| | |
# system "ffmpeg -i \"%s\" -s 1280x720 ~/Documents/Media/rtsf14/%s.mp4" % [f, f.slice(37..40)] | |
# } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment