do-timestamp option of fdsrc without effect

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

do-timestamp option of fdsrc without effect

Aleph Beth
Hej everybody,
I have the following pipeline to create an h264-encoded video from a bunch of raw images:

cat image*.raw | gst-launch-1.0 -vvv fdsrc do-timestamp=true ! \
    videoparse width=960 height=536 format=bgr framerate=1/1 ! \
    videoconvert ! \
    video/x-raw,width=960,height=536,format=I420,framerate=1/1 ! \
    x264enc ! \
    filesink location="images.mp4"

Playing the final file images.mp4 succeeds (I use mpv), however I get the message 'This stream has no timestamps!'. Also, playback in the browser fails (still trying to get an error log here).

I tried the fdsrc options blocksize=1543680 and num-buffers=4 (I ran the pipeline using four images), to no avail.

How can I properly add timestamps to the video frames?

Thanks in advance
Philipp


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

AW: do-timestamp option of fdsrc without effect

Thornton, Keith

Hi,

I think you’ll find that timestamps are a feature of the muxer. Add qtmux or mp4mux to your pipeline

 

Von: gstreamer-devel [mailto:[hidden email]] Im Auftrag von Aleph Beth
Gesendet: Montag, 3. Juli 2017 17:05
An: Discussion of the Development of and With GStreamer <[hidden email]>
Betreff: do-timestamp option of fdsrc without effect

 

Hej everybody,

I have the following pipeline to create an h264-encoded video from a bunch of raw images:

 

cat image*.raw | gst-launch-1.0 -vvv fdsrc do-timestamp=true ! \
    videoparse width=960 height=536 format=bgr framerate=1/1 ! \
    videoconvert ! \
    video/x-raw,width=960,height=536,format=I420,framerate=1/1 ! \
    x264enc ! \
    filesink location="images.mp4"

 

Playing the final file images.mp4 succeeds (I use mpv), however I get the message 'This stream has no timestamps!'. Also, playback in the browser fails (still trying to get an error log here).

 

I tried the fdsrc options blocksize=1543680 and num-buffers=4 (I ran the pipeline using four images), to no avail.

 

How can I properly add timestamps to the video frames?

 

Thanks in advance

Philipp

 


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Loading...