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

rishi gupta rishy.gupta.svc at gmail.com
Tue Oct 16 06:54:20 CEST 2012


I am trying to convert audio file format and using libav for this but dont
know how to do it can you guys help me how to do it, i will very thankful.

On Mon, Oct 15, 2012 at 7:43 PM, Chandranath Bhattacharyya <
cbhattac at adobe.com> wrote:

> >> 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****
>
> ** **
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>


-- 
Thanks and Regards :-
  Rishi Kant Gupta
Mob :- +917827055522
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20121016/cf6941f8/attachment.html>


More information about the Libav-user mailing list