AW: multifilesink not producing viewable files. Help!?

Piper984 mclennan at alumni.nd.edu
Tue Nov 29 01:33:35 UTC 2016


Hi Mandar and all,

I have made some progress with my need to use the splitmuxsink plugin, but I
am still having an issue getting this to work with rtp.  I am sure it is my
lack of understand on h264 encoding.  Perhaps someone could take a look at
what I'm doing and offer some advice?

I have the following pipeline with splitmuxsink working:

gst-launch-1.0 -v -e v4l2src device=/dev/video0 !
video/x-raw,width=1280,height=720 ! tee name=t t. ! queue ! fpsdisplaysink
sync=false t. ! queue ! timeoverlay ! x264enc tune=zerolatency pass=qual
quantizer=27 subme=4 threads=2 bitrate=1024 key-int-max=4 !
video/x-h264,profile=baseline ! h264parse config-interval=1 ! splitmuxsink
location="f-%05d-output3.h264" max-size-time=10000000000
max-size-bytes=1000000 

which take my laptop's camera as input and saves the output the disk in
chunks.  This works great.

However, here is the pipeline I'd like to splitmux the video to disk in
chunks:

(bash script)
#!/bin/sh
VIDEO_CAPS="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264"
VIDEO_DEC="identity ! rtph264depay ! avdec_h264"

VIDEO_SINK="fpsdisplaysink sync=false text-overlay=false"
DEST=192.168.200.208

LATENCY=200

gst-launch-1.0 -v rtpbin name=rtpbin latency=$LATENCY do-retransmission=0          
\
    udpsrc caps=$VIDEO_CAPS port=5000 ! rtpbin.recv_rtp_sink_0                     
\
      rtpbin. ! $VIDEO_DEC ! $VIDEO_SINK

(end bash script)

I have tried to replace the VIDEO_SINK elements to something like:

VIDEO_SINK="h264parse ! splitmuxsink max-size-bytes=5000000
location=\"f-%05d-output.h264\""

but I get error message that avec_h264 can't link to h264parse.  I confess I
am a bit lost as to how/if/when I need to invoke the x264enc element.

If anyone could help point me to the correct elements/syntax that would let
me make use of the splitmux element to save gapless video segments to disk
from my rtp stream, I would really appreciate the help!

Regards!




Mandar Joshi wrote
>> rtph264depay name=h264depay !   avdec_h264 ! videocrop name=crop ! tee
>> name=t t. ! queue ! autovideosink t. ! queue ! timeoverlay ! x264enc
>> bitrate=1200 tune=zerolatency ! video/x-h264,profile=baseline ! h264parse
>> config-interval=-1 ! splitmuxsink location="f-%05d-output3.h264"
>> max-size-time=10000000000 max-size-bytes=1000000
>>
> Try passing the following options to x264enc:
> x264enc tune=zerolatency pass=qual quantizer=27 subme=4 threads=2
> bitrate=1024 key-int-max=4
> 
> 
> The pipeline I successfully tested was
> GST_DEBUG=3 gst-launch-1.0 -v -e v4l2src device=/dev/video0 !
> video/x-raw,width=640,height=480 ! tee name=t t. ! queue ! xvimagesink
> sync=false t. ! queue ! timeoverlay ! x264enc tune=zerolatency
> pass=qual quantizer=27 subme=4 threads=2 bitrate=1024 key-int-max=4 !
> video/x-h264,profile=baseline ! h264parse config-interval=1 !
> splitmuxsink location="f-%05d-output3.h264" max-size-time=10000000000
> max-size-bytes=1000000
> 
> Regards
> Mandar Joshi
> _______________________________________________
> gstreamer-devel mailing list

> gstreamer-devel at .freedesktop

> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel





--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/multifilesink-not-producing-viewable-files-Help-tp4680722p4680926.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list