Last active
October 27, 2016 19:37
-
-
Save stormslowly/9863d44173f327cbf1a4 to your computer and use it in GitHub Desktop.
convert a m3u8 file to mp4 file
This file contains hidden or 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
# you should download the files in m3u8 file first | |
ffmpeg -i the.file.m3u8 -acodec copy -vcodec copy -y -loglevel info -bsf:a aac_adtstoasc -f mp4 your-mp4-file.mp4 | |
# First 10 Minutes | |
ffmpeg -i VIDEO_SOURCE.mp4 -vcodec copy -acodec copy -ss 0 -t 00:10:00 VIDEO_PART_1.mpg | |
# Second 10 Minutes | |
ffmpeg -i VIDEO_SOURCE.mp4 -vcodec copy -acodec copy -ss 00:10:00 -t 00:20:00 VIDEO_PART_2.mpg | |
# Rest after the first 20 Minutes | |
ffmpeg -i VIDEO_SOURCE.mp4 -vcodec copy -acodec copy -ss 00:20:00 VIDEO_PART_3.mpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment