Skip to content

Instantly share code, notes, and snippets.

@melnikovdv
Created March 22, 2015 07:51
Show Gist options
  • Save melnikovdv/9c5b53979e98915fa499 to your computer and use it in GitHub Desktop.
Save melnikovdv/9c5b53979e98915fa499 to your computer and use it in GitHub Desktop.
ffmpeg utility usage
# 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