Stream video and save on file

M0rd0r m0rd00r at gmail.com
Wed Nov 6 02:12:27 PST 2013


Hi all,

I'm trying to stream and save a video file captured from a webcam connected
to my Raspberry on the network. I'm using gstreamer-0.10 and omxh264enc
codec.

I wrote this two command (that works separately):

Save on file:
gst-launch --gst-plugin-path=/usr/local/lib/gstreamer-0.10/ -e v4l2src
device=/dev/video0 ! 'video/x-raw-yuv,width=640,height=480' ! omxh264enc
target-bitrate=100000 control-rate=variable ! avimux ! filesink
location=/dev/shm/a.avi

Stream to network:
gst-launch --gst-plugin-path=/usr/local/lib/gstreamer-0.10/ v4l2src
device=/dev/video0 ! 'video/x-raw-yuv,width=640,height=480' ! omxh264enc
target-bitrate=10000 control-rate=variable ! rtph264pay ! udpsink
host=192.168.10.158 port=1234

Now I'd like to stream and save the video (locally) at the same time (with
only one command) but I'm not able to do this.

Can anyone help me? Thanks.

Best Regards,
Alessandro.




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Stream-video-and-save-on-file-tp4663134.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list