<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Nicolas,<div><br><div>Thank you so much! Now I'm able to encode and play streams with any desired framerate.</div></div><div>But I've noticed one strange thing. When I open the generated .mkv-files with VLC (or any other player) it can't recognize its duration.</div><div>In opposite to this behavior, when I encode .mkv from bare H264 bytestream with x264:<br></div><div>x264 --crf 18 -o output.mkv video.h264<br></div><div>I'm able to see proper duration and progress in any media player.</div><div>I have already tried all parameters of the x264enc and matroskamux elements. But nothing changed )</div><div><br></div><div>Thanks,</div><div>Ilya</div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 23, 2019 at 10:27 PM Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca">nicolas@ndufresne.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Le mercredi 23 janvier 2019 à 17:17 +0300, Ilya Aleshkov a écrit :<br>
> Hi,<br>
> <br>
> I'm capturing 720p 60 fps streams with my Logitech C922 Pro Stream Webcam:<br>
> <br>
> gst-launch-1.0 ksvideosrc ! image/jpeg,width=1280,height=720,framerate=60/1 ! jpegdec ! videoconvert ! x264enc ! filesink location=video.h264 <br>
> <br>
> But resulting files play two times faster than needed. I have no idea why.<br>
> There are no any problems when rendering on the screen:<br>
> <br>
> gst-launch-1.0 ksvideosrc ! image/jpeg,width=1280,height=720,framerate=60/1 ! jpegdec ! autovideosink<br>
> <br>
> Have you ever seen something like this?<br>
<br>
Bare H264 bytestream have no time information. Use a container like<br>
MP4, MKV, FLV, TS, etc in order to store you videostream with<br>
appropriate time information. As an example:<br>
<br>
gst-launch-1.0 ksvideosrc ! image/jpeg,width=1280,height=720,framerate=60/1 ! jpegdec ! videoconvert ! x264enc ! matroskamux ! filesink location=video.mkv<br>
<br>
> <br>
> Thanks,<br>
> Ilya  <br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>