Streaming two video files while being recorded, using tee element

sina_sh sina.shafai at gmail.com
Tue Jan 5 07:54:08 PST 2016


Hi,

I've developed two pipelines two record simultaneously, one from a
frame-grabber and the other one, from a webcam, then put the recorded files
into two separate containers (.mkv and .mp4). I'd like to stream these video
files (preferably, while being recorded (even a couple of seconds of delay
is acceptable) into two html video objects to have some kind of observation
on the process of recording. I'm aware that this can be done via tee element
of gstreamer but sadly I don't know how to use it within these pipelines...
(I'm newbe to gstreamer)

here is my pipelines:

gst-launch-1.0  v4l2src  device=/dev/video0 ! videoconvert ! queue ! x264enc
! mux2.  pulsesrc
device="alsa_input.usb-Samson_Technologies_Samson_Go_Mic_Direct-00-Direct.analog-stereo"
!  'audio/x-raw,rate=44100,channels=1,depth=24' !  audioconvert  ! 
avenc_aac compliance=experimental ! mux2. matroskamux name="mux2"  !
filesink location=/home/sina/Desktop/Recordings/Screen.mp4

and the second one:


gst-launch-1.0  v4l2src device=/dev/video1 !
image/jpeg,width=1920,height=1080 ! capssetter
caps='image/jpeg,width=1920,height=1080,framerate=30/1' ! queue !
matroskamux name=mux pulsesrc
device="alsa_input.usb-046d_Logitech_Webcam_C930e_AAF8A63E-02-C930e.analog-stereo"
! 'audio/x-raw,channels=1,rate=44100' ! audioconvert ! vorbisenc ! queue !
mux. mux. ! filesink location=/home/sina/Desktop/Recordings/Webcam.mkv


any kind of help is appreciated.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Streaming-two-video-files-while-being-recorded-using-tee-element-tp4675120.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list