On Fri, May 15, 2009 at 8:36 AM, Tom Goossens <[email protected]> wrote:
> On Mon, May 11, 2009 at 9:08 AM, Tom Goossens <[email protected]> wrote: > >> On Wed, May 6, 2009 at 2:14 PM, Tom Goossens <[email protected]> wrote: >> >>> Dear list, >>> >>> Recently I made a c++ implementation of an mpeg4 encoder heavily based on >>> the libavcodec/api-example.c. The encoder works. Hoewever, when I use >>> mplayer to play the encoded file there is no time information in the status >>> bar. Worse, I think this prohibits me from using seek to go to a specific >>> frame in the file. >>> >>> I've set the timbase with >>> m_pCodecCtx->time_base.num = 1; >>> m_pCodecCtx->time_base.den = 25; >>> >>> Do I need to put in other information in order to get the timing >>> information in the file? Must I explicitly set the pts for each frame? This >>> does no seem to work with AVFrame->pts. >>> >>> So far I've had little luck in finding an answer here in the list or >>> elsewhere. Any help would be greatly appreciated. >>> >>> Kind regards, >>> Tom Goos >>> >> >> >> Hello all, >> >> I'm including the c++ class I made for encoding my video (It's mostly >> coming from a capture card). >> I hope anyone can give a suggestion as to what I'm missing to get the >> correct timing information in the MPEG4 file. >> >> Kind regards, >> Tom >> >> PS I left out the header because most of it is pretty obvious. I can post >> it if requested. >> >> >> #include "stdio.h" >> ... >> } >> > > Nobody has a clue? Or should I reformulate the question? > > Must I manually set the pts while encoding, or is this not possible (or not desired)? How do I go about this. Any help will be very appreciated, I'm lost... _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
