Skip to content

Instantly share code, notes, and snippets.

@danpalmer
Created December 29, 2013 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danpalmer/8170856 to your computer and use it in GitHub Desktop.
Save danpalmer/8170856 to your computer and use it in GitHub Desktop.
#!/bin/sh
ffmpeg -i source.mp4 -s hd720 -c:v libx264 -crf 23 -c:a libmp3lame -strict -2 source_converted.mp4
ffmpeg -i test_pattern.mp4 -s hd720 -c:v libx264 -crf 23 -c:a libmp3lame -strict -2 test_pattern_converted.mp4
mkdir segments
mkdir segments/source
mkdir segments/test_pattern
mediafilesegmenter --target-duration=10 -f segments/source source_converted.mp4 --no-floating-point-duration --iframe-index-file=none
mediafilesegmenter --target-duration=10 -f segments/test_pattern test_pattern_converted.mp4 --no-floating-point-duration --iframe-index-file=none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment