How to change frame rate of the stream?

sonntex sonntex at gmail.com
Fri Jun 3 16:41:49 UTC 2016


Input stream has 30 frames per 1 second fps. I want to discard 29 of 30
frames each second. How can I do that?

Pipe looks like:

std::string pipeline =
    "  appsrc name=src0 "
    "! vaapiparse_h264 "
    "! vaapidecode name=decoder0 "
    "! videorate "
    "!   video/x-raw,framerate=1/1 "
    "! videoscale "
    "!   video/x-raw,width=640,height=480 "
    "! vaapiencode_h264 name=encoder0 bitrate=512 keyframe-period=1 "
    "!   video/x-h264,profile=high,stream-format=avc,alignment=au "
    "! vaapiparse_h264 "
    "!   video/x-h264,alignment=nal "
    "! appsink name=sink0";

It makes my video stream slower in 30 times and does not discard frames as
I want.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160603/ec8e59cf/attachment.html>


More information about the gstreamer-devel mailing list