[FFmpeg-devel] BFI Demuxer
Sisir Koppaka
sisir.koppaka
Tue Apr 1 12:03:22 CEST 2008
On Tue, Apr 1, 2008 at 3:11 PM, Eli Friedman <eli.friedman at gmail.com> wrote:
> On Tue, Apr 1, 2008 at 2:22 AM, Sisir Koppaka <sisir.koppaka at gmail.com>
> wrote:
> > Hi,
> > I got the BFI demuxer without video support(only audio support) working
> a
> > few days ago. I then added the video stream and now the video stream
> plays
> > but not the audio one! I think I may have done some mistake with the
> stream
> > handling.
> > Setting the pts(I went through this -
> > http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2007-March/025999.html,
> > but still...) is another thing I'm not sure about. But it did play the
> audio
> > well at one point of time so, I guess I'm doing something wrong now.
>
> + pkt->pts = 1;
>
> This is wrong, assuming there's more than one audio packet. You're
> telling the calling code that all the audio packets are supposed to
> play at the same instant. An decent example of how to set pts
> properly for a simple container is rpl.c. (Disclaimer: I just started
> contributing to ffmpeg very recently, and rpl.c is mostly written by
> myself.)
>
Oh, I thought pts time was relative to the last frame...will fix this.
>
> + pkt->pts = AV_NOPTS_VALUE;
>
I wasn't sure about this and I think this was the last one I tried before
dozing off yesterday night. For the most part, the following is what I was
trying:
pkt->pts = 1000/bfi->fps; //where 1000 was the den in
av_set_pts_info.
-----------------
Sisir Koppaka
More information about the ffmpeg-devel
mailing list