Stream video and save on file

Sebastian Dröge sebastian at centricular.com
Wed Nov 6 05:30:08 PST 2013


On Mi, 2013-11-06 at 03:10 -0800, M0rd0r wrote:
> Hi,
> 
> thanks for your reply. I'm usign -0.10 because I'm not able to recompile all
> the gstreamer-1.0 on my Raspberry.
> 
> Returning on my question, I'm trying with this command:
> 
> gst-launch -v --gst-plugin-path=/usr/local/lib/gstreamer-0.10/ v4l2src
> device=/dev/video0 ! 'video/x-raw-yuv,width=640,height=480,framerate=25/1' !
> omxh264enc target-bitrate=1500000 control-rate=variable ! tee name=t ! queue
> ! rtph264pay pt=96 ! udpsink host=192.168.10.158 port=1234 ! queue ! avimux
> ! filesink location=/dev/shm/a.avi
> 
> Error Message:
>        WARNING: erroneous pipeline: could not link udpsink0 to queue1
> 
> Maybe I miss something else .... :( (sad)

You have to split the pipeline after the tee, try with:

gst-launch -v --gst-plugin-path=/usr/local/lib/gstreamer-0.10/ v4l2src
device=/dev/video0 !'video/x-raw-yuv,width=640,height=480,framerate=25/1' !
omxh264enc target-bitrate=1500000 control-rate=variable ! tee name=t ! queue
! rtph264pay pt=96 ! udpsink host=192.168.10.158 port=1234  t. ! queue ! avimux
! filesink location=/dev/shm/a.avi

Writing to shared memory that way is most likely not going to work
though. Try using shmsink and shmsrc

-- 
Sebastian Dröge <sebastian at centricular.com>
Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131106/865b77d9/attachment.pgp>


More information about the gstreamer-devel mailing list