Changing Frame Rate

Sebastian Dröge sebastian at centricular.com
Fri Jun 24 07:47:03 UTC 2016


On Do, 2016-06-23 at 20:03 -0700, ht techdev wrote:
> Hi
> Is there a way, within gst-launch, to change the frame rate on fly?
> Failing that is it possible to append to an existing encoded file,
> using a different rate:
>  
> gst-launch-1.0 videotestsrc is-live=true num-frame=10 !  video/x-raw, 
> framerate=\(fraction\)”30/1” ! \ ! x264enc ! filesink location=t.mp4
> gst-launch-1.0 videotestsrc is-live=true num-frame=10 !  video/x-raw, 
> framerate=\(fraction\)”50/1” ! \ ! x264enc ! filesink –append
> location=t.mp4

With gst-launch-1.0 you can't do it, with actual code you relatively
easily can (you "just" change the framerate).

Appending MP4 files is not easily possible, you would at least have to
remux them but for full correctness you would also have to reencode the
h264 stream as the avcC struct (the "header") is going to be different
for both encodings in your case and that's not really allowed by the
spec (there can only be one).

-- 

Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160624/8050f3f1/attachment.sig>


More information about the gstreamer-devel mailing list