


HLS video : ffmpeg -i check.ts -threads 0 -muxdelay 0 -y -map 0:v -vcodec copy -f hls -hls_time 10 -hls_list_size 0 video/index.m3u8 HLS audio : ffmpeg -i check.mp4 -threads 0 -muxdelay 0 -y -map 0:1 -codec copy -f segment -segment_time 10 -segment_list_size 0 -segment_list audio/audio.m3u8 -segment_format mpegts audio/audio_%d.aacĬonverse clip H265 > H264 : ffmpeg -i check.mp4 -threads 0 -muxdelay 0 -y -pix_fmt yuv420p -movflags +faststart -r 29.97 -g 60 -refs 1 -vcodec libx264 -profile:v baseline -scodec copy -f mpegts check.ts HLS SUBTITLE : ffmpeg -i sub.vtt -f segment -segment_time 10 -segment_list_size 0 -segment_list subtitle/sub.m3u8 -segment_format webvtt -scodec copy subtitle/sub-%d.vtt Or ffmpeg -i check.mp4 -map 0:s:0 -f webvtt sub.vtt Tách file sub : ffmpeg -i check.mp4 -map 0:2 -f webvtt sub.vtt File source : check.mp4 (gồm luồng audio và subtitle) ffprobe check.mp4 Now to get the video stream from 1080p.mp4 and the audio stream from 720p.mp4, all you have to do is to name these streams with -map options. The video stream from 1080p.mp4 is named "0:0", the video stream from 720p.mp4 is called "1:0" and the audio stream from 720p.mp4 is called "1:1". This will print out all the properties of all streams from both files and give each stream a unique ID.


Handler_name : IsoMedia File Produced by Google, 5-11-2011
