[Libav-user] examples/demuxing.c not working properly

Chandranath Bhattacharyya cbhattac at adobe.com
Mon Oct 15 16:13:30 CEST 2012


>> What's going wrong? AVStream::time_base.den = 12800; seems to be wrong data. Other than fixing some compilation errors, I did not modify anything else in examples/demuxing.c.

- I downloaded the older version (ffmpeg-20121003-git-df82454-win32-*) from http://ffmpeg.zeranoe.com/builds/. Now AVStream::time_base.den = 25 - perfect!!

However, I had to comment out the following lines in write_video_frame (muxing.c) to get rid of pts (0) < dts (1) error:
            if (c->coded_frame->pts != AV_NOPTS_VALUE)
                pkt.pts = av_rescale_q(c->coded_frame->pts,
                                       c->time_base, st->time_base);

In above c->coded_frame->pts was always 0 causing the problem.

Also, the file I was referring to was example/muxing.c (not demuxing.c). Sorry for the error.

Regards,
Chandranath

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20121015/11cdf073/attachment.html>


More information about the Libav-user mailing list