LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Recording Video and Audio using mencoder (http://www.linuxquestions.org/questions/linux-desktop-74/recording-video-and-audio-using-mencoder-516905/)

OR13 01-06-2007 10:31 AM

Recording Video and Audio using mencoder
 
I have a video card (AverMedia EZMaker Gold), which has only video input (either RCA or S-Video). In order to record video and audio I connect the VCR's video to the card, and its audio to the line-in on the sound card. So far so good...

Now, a strange thing - when I connect the audio to the sound card and turn the computer's speakers on, I hear the sound from the VCR. When I connect a guitar to the line-in I don't hear it... Strange - but I have no idea whether this has anything to do with my problem.

And my problem:
I can record the audio using audacity.
I can record the video using mencoder ("mencoder tv:// -tv driver=v4l2:device=/dev/video0 -ovc libdv -vf scale=720:576 -o foo.avi").
When I try to use them both on the same time, one doesn't work.
I want to use "mencoder tv:// -tv driver=v4l2:device=/dev/video0:adevice=[sound card] -ovc libdv -vf scale=720:576 -oac pcm -o foo.avi", but I have no idea what to write as an audio device.
I've tried /dev/dsp (OSS emulation) which recorded nothing, and various hw.$DEV options which gave me the following message "Unable to open 'hw.$DEV': No such file or directory".

What should I do???
Thank you very much,
O.R. :)

OR13 01-15-2007 03:47 PM

Please??? Anyone??? I'm lost! And this is really important to me - I've been searching for a similar card (in a reasonable price) for AGES, and now that I have one, it would be really nice to be able to use it... Please???

Thanks,
OR

HappyTux 01-15-2007 05:30 PM

Try using/modifying the line below to see if it works you will want to make sure you unmute the line-in for it to work otherwise you will get no sound.

Code:

mencoder tv:// -tv driver=v4l2:input=0:norm=ntsc:width=720:height=480:outfmt=yuy2:device=/dev/video0:forceaudio:audiorate=32000 buffersize=64 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=5000:keyint=30 -oac mp3lame -lameopts br=128:cbr:mode=3 -ffourcc divx -o record.avi

OR13 01-19-2007 04:19 PM

First of all, thank you!

Second - I'm so stupid!
I unmuted the line-in recording on the ALSA devices, but didn't even bother to check whether the OSS-emulation devices enabled line-in recording. Having that changed, I could record freely.

Thanks again,
Oded R. :)


All times are GMT -5. The time now is 01:31 AM.