ffmpeg 指令

 https://www.cnblogs.com/frost-yen/p/5848781.html

 

ffmpeg将ts转为mp4

ffmpeg -i test.ts -acodec copy -vcodec copy -f mp4 test.mp4


ffmpeg -i input.ts -c copy -map 0:v -map 0:a -bsf:a aac_adtstoasc output.mp4


-threads n(n代表线程数)这个参数限制线程数。

ffmpeg -i 1.mp4 -vcodec copy -acodec copy -vbsf h264_mp4toannexb 1.ts

 

将多个视频合成一个视频

ffmpeg -f concat -safe 0 -i filelist.txt -y output.mp4

# filelist.txt contains below content
#  file '11.mp4'
#  file '22.mp4'

 

posted @ 2021-12-31 14:04  小小灰迪  阅读(43)  评论(0编辑  收藏  举报