How to set pts for raspivid stream

Abu Abdullah falcon.sheep at gmail.com
Fri May 17 09:12:15 UTC 2019


Hi,

Raspberry Pi camera (raspivid) outputs a raw H264 stream, which has no
timing information. How to add pts to the pipeline to store it in mp4
format.

i tried may pipelines but non is working with me e.g.

raspivid -n -t 0 -w 640 -h 480 -fps 8 -pf high -o - | gst-launch-1.0
--gst-debug-level=2 -vvv fdsrc do-timestamp=true !
video/x-h264,width=640,height=480,framerate=8/1,stream-format=byte-stream
! h264parse ! splitmuxsink location=test_%03d.mp4
max-size-time=300000000

the error is:
/GstPipeline:pipeline0/GstSplitMuxSink:splitmuxsink0/GstFileSink:sink.GstPad:sink:
caps = video/quicktime, variant=(string)iso
0:00:08.480968094  2314  0x15678f0 WARN                   qtmux
gstqtmux.c:2982:gst_qt_mux_start_file:<muxer> Robust muxing requires
reserved-moov-update-period to be set
0:00:08.485114054  2314  0x15678f0 WARN                   qtmux
gstqtmux.c:4832:gst_qt_mux_add_buffer:<muxer> error: Buffer has no
PTS.
ERROR: from element
/GstPipeline:pipeline0/GstSplitMuxSink:splitmuxsink0/GstMP4Mux:muxer:
Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer ():
/GstPipeline:pipeline0/GstSplitMuxSink:splitmuxsink0/GstMP4Mux:muxer:
Buffer has no PTS.


More information about the gstreamer-devel mailing list