Concat creates a still image before the video

后端 未结 1 1594
伪装坚强ぢ
伪装坚强ぢ 2021-01-25 16:46

I am creating a cutlist like this

file \'t1.MP4\'
inpoint 1.45067
outpoint 3.18133
file \'t2.MP4\'
inpoint 3.45067
outpoint 6.18133
...

and I u

相关标签:
1条回答
  • 2021-01-25 17:43

    The concat demuxer is outputting more packets than that specified in the ranges, since video will need earlier frames to decode.

    Try

    ffmpeg -y -f concat -safe 0 -copyts -segment_time_metadata 1 -i list.txt -vf select=concatdec_select,setpts=N/FRAME_RATE/TB,format=yuv420p -c:v libx264 -af aselect=concatdec_select,asetpts=N/SR/TB -c:a aac output.mp4
    

    I assume all files have videos and audios with same properties i.e. framerate, resolution, audio sampling rate, channels..etc

    0 讨论(0)
提交回复
热议问题