從TS製作m3u8的命令
ffmpeg -i 0301.ts -hls_time 45 0301_test.m3u8
NO transcoding
ffmpeg -i 304.ts -c copy -hls_time 45 AVC/0304.m3u8
ffmpeg -i INPUT -codec copy -segment_times SPLIT_TIME -f segment OUT
ffmpeg -i 304.ts -vcodec copy -acodec copy -f segment -segment_list AVC/300.m3u8 -segment_time 10 AVC/seg%3d.ts
ffmpeg -i 304.ts -vcodec copy -an -f segment -segment_list AVC/300.m3u8 -segment_time 10 AVC/seg%3d.ts
ffmpeg -i 304.ts -vn copy -acodec copy -f segment -segment_list AVC/300.m3u8 -segment_time 10 AVC/seg%3d.ts
ffmpeg -i 304.ts -vcodec copy -f dash -min_seg_duration 3000000 -single_file 0 test.mpd
ffmpeg -i udp://10.0.224.28:1234 -c copy -f dash -window_size 5 -min_seg_duration 3000000 -single_file 0 -init_seg_name initavatar-stream\$RepresentationID\$.m4s -media_seg_name chunkavatar-stream\$RepresentationID\$-\$Number%05d\$.m4s -use_template 0 -bsf:a aac_adtstoasc ftp://user:password@192.168.32.188/liang/liangc.mpd
NO transcoding
ffmpeg -i 304.ts -c copy -hls_time 45 AVC/0304.m3u8
ffmpeg -i INPUT -codec copy -segment_times SPLIT_TIME -f segment OUT
ffmpeg -i 304.ts -vcodec copy -acodec copy -f segment -segment_list AVC/300.m3u8 -segment_time 10 AVC/seg%3d.ts
ffmpeg -i 304.ts -vcodec copy -an -f segment -segment_list AVC/300.m3u8 -segment_time 10 AVC/seg%3d.ts
ffmpeg -i 304.ts -vn copy -acodec copy -f segment -segment_list AVC/300.m3u8 -segment_time 10 AVC/seg%3d.ts
ffmpeg -i 304.ts -vcodec copy -f dash -min_seg_duration 3000000 -single_file 0 test.mpd
ffmpeg -i udp://10.0.224.28:1234 -c copy -f dash -window_size 5 -min_seg_duration 3000000 -single_file 0 -init_seg_name initavatar-stream\$RepresentationID\$.m4s -media_seg_name chunkavatar-stream\$RepresentationID\$-\$Number%05d\$.m4s -use_template 0 -bsf:a aac_adtstoasc ftp://user:password@192.168.32.188/liang/liangc.mpd
留言
張貼留言