LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-24-2007, 05:47 PM   #1
sammckee
Member
 
Registered: Aug 2003
Posts: 59

Rep: Reputation: 15
No sound in video recorded with mencoder


Like the thread title says.

I'm using a Hauppauge WinTV with the audio out wired into the audio in of the sound card. I'm trying to record a VHS tape.

I do hear sound when I watch it with tvtime. I use this command to record a clip:

mencoder tv:// -tv driver=v4l2:norm=ntsc:input=0:width=640:height=480 -of avi -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=4000 -lavcopts acodec=mp2:abitrate=96 -oac lavc -o record.avi -endpos 0:15

I even hear the sound while mencoder is recording my clip, but when I play the resultant .avi file it's a silent movie. I have confirmed that I can hear sound in other .avi files played with mplayer.
 
Old 05-24-2007, 06:17 PM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
I wonder if the order of the arguments is important.
-oac lavc -lavcopts acodec=mp2:abitrate=96

Try giving the lavcopts after selecting the lavc codec.
 
Old 05-24-2007, 06:27 PM   #3
sammckee
Member
 
Registered: Aug 2003
Posts: 59

Original Poster
Rep: Reputation: 15
Didn't help.

This is what it says at the end of recording, btw:

Audio stream: 96.000 kbit/s (11999 B/s) size: 179931 bytes 14.994 secs
v4l2: 453 frames successfully processed, 0 frames dropped.


I'm mystified. It says it recorded sound. I can actually hear the sound while it's recording (sound stops when mencoder exits), but I get a silent movie.
 
Old 05-24-2007, 08:10 PM   #4
lpn1160
Member
 
Registered: May 2004
Location: USA
Distribution: pclinuxos
Posts: 37

Rep: Reputation: 15
Have you tried extracting the audio and looking at it in audacity. Could it be very low volume that needs to be normalized??
I have the same card & heres the command line I use:

mencoder -tv norm=NTSC:driver=v4l2:width=352:height=480:input=2:fps=30000/1001 tv:// -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd -vf harddup -srate 48000 -af lavcresample=48000 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=6000:vbitrate=4000:keyint=15:acodec=mp2:abitrate=192 :aspect=4/3 -o capture.mpg

Last edited by lpn1160; 05-24-2007 at 08:13 PM.
 
Old 05-25-2007, 09:41 PM   #5
sammckee
Member
 
Registered: Aug 2003
Posts: 59

Original Poster
Rep: Reputation: 15
Here's what it looks like when I import the file into audacity.

http://sammckee.com/audacity.png

When I play it in audacity I can hear some faint, intermittent squeaking sounds.
 
Old 05-26-2007, 06:15 PM   #6
sammckee
Member
 
Registered: Aug 2003
Posts: 59

Original Poster
Rep: Reputation: 15
Okay, I'm a 'tard. My mixer settings were bad.

However. ever with the input settings correct and set to max volume, I now get a video with very, very quiet sound.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Recording Video and Audio using mencoder OR13 Linux - Desktop 3 01-19-2007 04:19 PM
No sound recorded from mic Audacity Ray4389 Fedora 11 08-29-2005 02:50 PM
mencoder with Archos video jukebox johngcarlsson Linux - Software 0 11-19-2004 11:42 AM
No sound recorded,gv4l. akihandyman Mandriva 0 07-14-2004 08:53 PM
How to play a media file/ video file/mp3 file recorded in harddisk/cd-rom arindam Linux - Newbie 2 09-05-2003 10:31 AM


All times are GMT -5. The time now is 12:47 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration