ffmpeg -y \
-i sample.mov \
-codec copy \
-bsf h264_mp4toannexb \
-map 0 \
-f segment \
-segment_time 10 \
-segment_format mpegts \
-segment_list "playlist.m3u8" \
-segment_list_type m3u8 \
"out%d.ts"
ffmpeg -y -i 1.mp4 -codec copy -map 0 -f segment -segment_time 10 -segment_format mpegts -segment_list "prog_index.m3u8" -segment_list_type m3u8 "fileSequence%d.ts"
ffmpeg -y \
-i 2.mp4 \
-codec copy \
-map 0 \
-f segment \
-segment_time 10 \
-segment_format mpegts \
-segment_list "playlist.m3u8" \
-segment_list_type m3u8 \
"out%d.ts"
ffmpeg -y \
-i 3.mp3 \
-codec copy \
-map 0 \
-f segment \
-segment_time 10 \
-segment_format mpegts \
-segment_list "playlist.m3u8" \
-segment_list_type m3u8 \
"out%d.ts"
ffmpeg -re -i in.mkv -codec copy -map 0 -f segment -segment_list playlist.m3u8 -segment_list_flags +live -segment_time 10 out%03d.mkv
ffmpeg -re -i 2.mp4 -codec copy -map 0 -f segment -segment_list playlist.m3u8 -segment_list_flags +live -segment_time 10 out%03d.mp4