ffmpeg::avcodec_encode_video setting PTS h264

前端 未结 4 961
执念已碎
执念已碎 2020-12-28 20:43

I\'m trying to encode video as H264 using libavcodec

ffmpeg::avcodec_encode_video(codec,output,size,avframe);

returns an error that I don\'t hav

4条回答
  •  醉梦人生
    2020-12-28 21:32

    I had this problem too. As far as I remember, the error is related to dts

    setting

    out_video_packet.dts = AV_NOPTS_VALUE;
    

    helped me

提交回复
热议问题