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

Sérgio Agostinho sergio.r.agostinho at gmail.com
Sat Feb 7 04:17:19 PST 2015


Hey, 

Since you mentioned tweaking pulseaudio,  you can try replacing alsasrc by pulsesrc. 

Cheers

> On 05 Feb 2015, at 22:12, greeny <qrld at wp.pl> wrote:
> 
> 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.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list