filesink with 60 fps
Nicolas Dufresne
nicolas at ndufresne.ca
Wed Jan 23 19:13:39 UTC 2019
Le mercredi 23 janvier 2019 à 17:17 +0300, Ilya Aleshkov a écrit :
> Hi,
>
> I'm capturing 720p 60 fps streams with my Logitech C922 Pro Stream Webcam:
>
> gst-launch-1.0 ksvideosrc ! image/jpeg,width=1280,height=720,framerate=60/1 ! jpegdec ! videoconvert ! x264enc ! filesink location=video.h264
>
> But resulting files play two times faster than needed. I have no idea why.
> There are no any problems when rendering on the screen:
>
> gst-launch-1.0 ksvideosrc ! image/jpeg,width=1280,height=720,framerate=60/1 ! jpegdec ! autovideosink
>
> Have you ever seen something like this?
Bare H264 bytestream have no time information. Use a container like
MP4, MKV, FLV, TS, etc in order to store you videostream with
appropriate time information. As an example:
gst-launch-1.0 ksvideosrc ! image/jpeg,width=1280,height=720,framerate=60/1 ! jpegdec ! videoconvert ! x264enc ! matroskamux ! filesink location=video.mkv
>
> Thanks,
> Ilya
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190123/b6be7960/attachment.sig>
More information about the gstreamer-devel
mailing list