On 07/13/2013 12:33 PM, Luca Barbato wrote: > On 07/13/2013 11:37 AM, Francois PEDEBOSCQ Yahoo wrote: >> Dear all, I am facing an issue when trying to encode an H264 video to >> MPEG4. The output file is playing great in VLC player but with >> Quicktime I only see black frame. Here below my code: >> > >> encodedPacket.pts = av_rescale_q(curFrameNum, outStream->codec->time_base, >> outStream->time_base); >> encodedPacket.dts = av_rescale_q(curFrameNum, outStream->codec->time_base, >> outStream->time_base); > > pts and dts are wrongly set. Leave them alone decode2 should output the > right values for you.
Pardon, I meant avcodec_encode_video2 lu _______________________________________________ libav-api mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-api
