AW: filesink with 60 fps

Bernhard Graaf bernhard.graaf at gmx.de
Fri Jan 25 16:56:59 UTC 2019


Try to use ‚gst-launch-1.0 –e’ to send the eos-signal to the pipeline. Then
the timing information should save to the file.

 

Bernhard

 

  _____  

Von: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org]
Im Auftrag von Ilya Aleshkov
Gesendet: Freitag, 25. Januar 2019 17:33
An: Discussion of the development of and with GStreamer
Betreff: Re: filesink with 60 fps

 

Nicolas,

 

Thank you so much! Now I'm able to encode and play streams with any desired
framerate.

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.

In opposite to this behavior, when I encode .mkv from bare H264 bytestream
with x264:

x264 --crf 18 -o output.mkv video.h264

I'm able to see proper duration and progress in any media player.

I have already tried all parameters of the x264enc and matroskamux elements.
But nothing changed )

 

Thanks,

Ilya

 

On Wed, Jan 23, 2019 at 10:27 PM Nicolas Dufresne <nicolas at ndufresne.ca>
wrote:

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
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190125/e754c65b/attachment.html>


More information about the gstreamer-devel mailing list