LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-06-2007, 10:31 AM   #1
OR13
Member
 
Registered: Jun 2006
Distribution: Fedora 14
Posts: 51

Rep: Reputation: 15
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.
 
Old 01-15-2007, 03:47 PM   #2
OR13
Member
 
Registered: Jun 2006
Distribution: Fedora 14
Posts: 51

Original Poster
Rep: Reputation: 15
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
 
Old 01-15-2007, 05:30 PM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
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
 
Old 01-19-2007, 04:19 PM   #4
OR13
Member
 
Registered: Jun 2006
Distribution: Fedora 14
Posts: 51

Original Poster
Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mencoder and lavc audio @ngelot Linux - Software 2 01-09-2006 02:23 AM
ati tv wonder mencoder recording vhs tape pld Linux - General 2 04-19-2005 08:57 PM
mencoder/mplayer and splitting both audio and video streams from source... bai_design Linux - Software 0 02-06-2005 04:52 PM
mencoder audio resample mrsolo Linux - Software 0 11-17-2004 11:03 PM
mencoder audio off-snyc help estatik Linux - Software 1 03-12-2004 08:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration