Last active
March 6, 2018 00:21
-
-
Save Pouya-moh/fbf5bc6bbc126200ff8c0fc1891d39bc to your computer and use it in GitHub Desktop.
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
# reduce file size and remove audio (-an removes audio) | |
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 | |
# split mp3 | |
$ ffmpeg -i source.mp3 -acodec copy -ss START_TIME -to END_TIME LITTLE_FILE | |
# e.g. ffmpeg -i source.mp3 -acodec copy -ss 09:29 -to 14:56 03_some_name.mp3 | |
# for equal part: | |
$ ffmpeg -i somefile.mp3 -f segment -segment_time SECONDS_AS_INT -c copy out%03d.mp3 | |
# converting MTS to mp4 | |
ffmpeg -i 00001.MTS -vcodec copy -acodec copy output.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment