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
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to