How to save from rtspsrc to filesink?

Giacomo D omagico.olo at gmail.com
Sun Jan 24 08:13:27 PST 2016


*Hi,
I'm trying to do a simple example to save a stream, by command line like
this:

- on the sender side, with VLC:*

cvlc v4l2:///dev/video0 :input-slave=alsa://hw:0,0 :v4l2-brightness=10
:v4l2-audio-volume=200 :file-caching=300
:sout='#transcode{vcodec=h264,width=320,height=240,fps=10,
vb=500,scale=0.5,acodec=aac,ab=128,channels=2,samplerate=44100,deinterlace}:rtp{mux=ts,port=8554,sdp=rtsp://127.0.0.1:8554/stream}'
:no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep 


*- on the receiver, with Gstreamer:*

gst-launch-1.0 mp4mux name=mux ! filesink location=/My_location/stream.mp4
uridecodebin uri=rtsp://127.0.0.1:8554/stream name=src src. ! queue !
mux.video_0 src. ! queue ! mux.audio_0 

*but it doesn't work!

So, on the receiving side I tried:*

gst-launch-1.0 --gst-debug-level=3 uridecodebin
uri=rtsp://127.0.0.1:8554/stream name=src ! queue ! theoraenc ! queue ! 
oggmux name=mux  src. ! queue ! audioconvert ! vorbisenc ! queue ! mux. mux.
! queue ! filesink location=/home/giacomo/streams_salvati/stream_oggi.ogg
*
I got a file which starts with a black video and the correct audio, after a
few of seconds I had the correct video+audio until on the debug file I got
this:*

...

0:00:06.836675622  9530 0x7fd288048630 WARN         vaapiparse_h264
gsth264parse.c:1069:gst_h264_parse_handle_frame:<vaapih264parse0>
broken/invalid nal Type: 1 Slice, Size: 21424 will be dropped
0:00:06.836836795  9530 0x7fd288048630 WARN         vaapiparse_h264
gsth264parse.c:1069:gst_h264_parse_handle_frame:<vaapih264parse0>
broken/invalid nal Type: 9 AU delimiter, Size: 2 will be dropped
libva info: VA-API version 0.38.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_38
libva info: va_openDriver() returns 0
Acquisito contesto dall'elemento 'vaapidecode0': gst.vaapi.Display=context,
display=(GstVaapiDisplay)NULL;

(gst-launch-1.0:9530): GStreamer-CRITICAL **: gst_buffer_copy_with_flags:
assertion 'buffer != NULL' failed
Ridistribuzione latenza...
Ridistribuzione latenza...
0:00:07.082085976  9530       0x87b4a0 WARN            audioencoder
gstaudioencoder.c:970:gst_audio_encoder_finish_frame:<vorbisenc0> Can't copy
metadata because input buffer disappeared
0:00:07.094731963  9530 0x7fd288048630 WARN                GST_PADS
gstpad.c:3989:gst_pad_peer_query:<vaapidecode0:src> could not send sticky
events
Ridistribuzione latenza...
0:00:07.469346826  9530       0x87b320 FIXME               basesink
gstbasesink.c:3117:gst_base_sink_default_event:<filesink0> stream-start
event without group-id. Consider implementing group-id handling in the
upstream elements
*
Is there someone who can help me?
Thanks,
G.*












--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-save-from-rtspsrc-to-filesink-tp4674814p4675456.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list