Capture Easycap audio and video to MJPEG and raw sound on linux

greeny qrld at wp.pl
Thu Feb 5 14:12:22 PST 2015


Hey!
I'm trying to capture old camera (Sony Hi8) analog records through Easycap
usb dongle using gstreamer before this old junk gonna finally die. I prefer
to get a low-compressed MJPEG output, because I want to edit this video
later and then compress it to mp4.
Audio is connected through mic in minijack and recording works in recording
programs (after tweaks in pulseaudio pavucontrol). Video also works in qt
v4l2 test utility.
So I used command from
http://www.linuxtv.org/wiki/index.php/GStreamer#Record_from_a_bad_analog_signal_to_MJPEG_video_and_RAW_mono_audio
:

gst-launch-1.0 -v avimux name=mux v4l2src device=/dev/video1
do-timestamp=true !
'video/x-raw,format=(string)YV12,width=(int)720,height=(int)576' !\
videorate ! 'video/x-raw,format=(string)YV12,framerate=25/1' ! videoconvert
! 'video/x-raw,format=(string)YV12,width=(int)720,height=(int)576' !\
jpegenc  ! queue ! mux. alsasrc device=hw:2,0 !
'audio/x-raw,format=(string)S16LE,rate=(int)48000,channels=(int)2' !\
audiorate ! audioresample ! 'audio/x-raw,rate=(int)44100' ! audioconvert !
'audio/x-raw,channels=(int)1' ! queue ! mux. mux. ! filesink
location=test.avi

but then all I got was:
WARNING: erroneous pipeline: no element "alsasrc"

Could somebody point me right direction?

I have I7 4GB ram computer with Debian Jessie 3.16.0-4-amd64 on it.





--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Capture-Easycap-audio-and-video-to-MJPEG-and-raw-sound-on-linux-tp4670613.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list