[Libav-user] programmatic frame rate control?

Eric Lee erclee2 at gmail.com
Thu Dec 22 20:13:24 EET 2016


You could try using an external timer and parameters from the AVFrame and
AVCodecContext such as pts, duration, and framerate to control the
presentation of decoded frames.

Eric

On Thu, Dec 22, 2016 at 12:50 PM, Blake Senftner <bsenftner at earthlink.net>
wrote:

> I found a GUI bug that was eating my frame rate. Now I have the opposite
> problem of frames being delivered too fast… A 3 minute 1920x1080 h264 video
> plays back in 9 seconds…. any timing related suggestions are welcome.
>
> Sincerely,
> -Blake Senftner
> Bug Generator
>
> > On Dec 21, 2016, at 9:31 AM, Blake Senftner <bsenftner at earthlink.net>
> wrote:
> >
> > I have been able to write a little video player library that handles any
> type of video file, USB web cam, or IP camera or live stream… but the
> playback frame rate is never above 15 fps.
> >
> > Even with a 160x40 video file, h264 with nothing but a ticking 29.97
> timecode, it plays back at 15 fps while consuming < 2% cpu.
> >
> > I’ve tried AVDictionary settings for framerate, which are not being
> picked up (left in the AVDictinary.)
> >
> > Lacking any direct frame rate information, what AVDictionary key/values
> have you found that improve and/or make an improving difference in your
> efforts to playback video?
> >
> > Sincerely,
> > -Blake Senftner
> > 疯狂的计算机科学家
> > _______________________________________________
> > Libav-user mailing list
> > Libav-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/libav-user
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20161222/90034f06/attachment.html>


More information about the Libav-user mailing list