How to use libavformat to concat 2 video files with same codec (re-muxing)?

后端 未结 3 1515

I have downloaded videos from CDN in flv format (video H264 and audio AAC) and remux to them to MP4 format. But videos are limited by length. So i\'ve downloaded each video

3条回答
  •  失恋的感觉
    2020-12-09 23:38

    In av_new_stream()

    You should add the following code:

    c->extradata = i_video_stream->codec->extradata;
    c->extradata_size = i_video_stream->codec->extradata_size;
    

提交回复
热议问题