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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-16-2006, 05:12 PM
|
#1
|
LQ Newbie
Registered: Mar 2006
Location: Finland
Distribution: Fedora Core 5
Posts: 28
Rep:
|
Can't capture sound with Mencoder
I can't capture sound from tv card with mencoder. Picture comes in fine, and I can hear the sound during capture. Sound is in line-in.
I have used this command:
mencoder -tv driver=v4l2:width=720:height=576 -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=3000 -oac mp3lame -lameopts cbr:br=224 -vf scale=640:480 -o output.avi tv://
_____________________________________________________________________
This is the console output:
MEncoder dev-Fedora-GS-CVS-060406-15:20-4.1.0 (C) 2000-2006 MPlayer Team
CPU: Advanced Micro Devices Duron Morgan,Camaro (Family: 6, Stepping: 1)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
success: format: 9 data: 0x0 - 0x0
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: LifeView FlyVIDEO3000
Tuner cap: STEREO LANG1 LANG2
Tuner rxs: MONO STEREO LANG1 LANG2
Capabilites: video capture video overlay VBI capture device tuner read/write streaming
supported norms: 0 = PAL; 1 = PAL-BG; 2 = PAL-I; 3 = PAL-DK; 4 = NTSC; 5 = SECAM; 6 = PAL-M; 7 = PAL-Nc; 8 = PAL-60;
inputs: 0 = Television; 1 = TV (mono only); 2 = Composite1; 3 = Composite2; 4 = S-Video;
Current input: 0
Current format: BGR24
v4l2: current audio mode is : STEREO
Audio block size too low, setting to 16384!
[V] filefmt:9 fourcc:0x32315659 size:720x576 fps:25.00 ftime:=0.0400
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=640 h=480]
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using MMX2
videocodec: libavcodec (640x480 fourcc=3267706d [mpg2])
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
==========================================================================
MP3 audio selected
Forcing audio preload to 0, max pts correction to 0
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Writing header...1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
1 duplicate frame(s)!
Pos: 9.6s 238f ( 0%) 9.69fps Trem: 0min 0mb A-V:0.000 [3079:223]
Flushing video frames
CBR audio: 28000 bytes/sec, 731 bytes/block
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Video stream: 3079.444 kbit/s (384930 B/s) size: 3679935 bytes 9.560 secs 238 frames
Audio stream: 224.000 kbit/s (27999 B/s) size: 266971 bytes 9.535 secs
v4l2: 591 frames successfully processed, 23 frames dropped.
[niemi@localhost ~]$ mencoder -tv driver=v4l2:width=720:height=576 -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=3000 -oac mp3lame -lameopts cbr:br=224 -vf scale=640:480 -o output.avi tv://
MEncoder dev-Fedora-GS-CVS-060406-15:20-4.1.0 (C) 2000-2006 MPlayer Team
CPU: Advanced Micro Devices Duron Morgan,Camaro (Family: 6, Stepping: 1)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
success: format: 9 data: 0x0 - 0x0
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: LifeView FlyVIDEO3000
Tuner cap: STEREO LANG1 LANG2
Tuner rxs: MONO STEREO LANG1 LANG2
Capabilites: video capture video overlay VBI capture device tuner read/write streaming
supported norms: 0 = PAL; 1 = PAL-BG; 2 = PAL-I; 3 = PAL-DK; 4 = NTSC; 5 = SECAM; 6 = PAL-M; 7 = PAL-Nc; 8 = PAL-60;
inputs: 0 = Television; 1 = TV (mono only); 2 = Composite1; 3 = Composite2; 4 = S-Video;
Current input: 0
Current format: BGR24
v4l2: current audio mode is : STEREO
Audio block size too low, setting to 16384!
[V] filefmt:9 fourcc:0x32315659 size:720x576 fps:25.00 ftime:=0.0400
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=640 h=480]
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using MMX2
videocodec: libavcodec (640x480 fourcc=3267706d [mpg2])
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
==========================================================================
MP3 audio selected
Forcing audio preload to 0, max pts correction to 0
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Writing header...1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
1 duplicate frame(s)!
Pos: 0.2s 3f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos: 24.8s 619f ( 0%) 24.46fps Trem: 0min 0mb A-V:0.000 [3018:223]
Flushing video frames
CBR audio: 28000 bytes/sec, 731 bytes/block
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Video stream: 3018.064 kbit/s (377258 B/s) size: 9371090 bytes 24.840 secs 619 frames
Audio stream: 224.000 kbit/s (27999 B/s) size: 694857 bytes 24.816 secs
v4l2: 632 frames successfully processed, 0 frames dropped.
|
|
|
04-16-2006, 06:33 PM
|
#2
|
Member
Registered: Feb 2003
Location: ???
Distribution: Mandriva 2006
Posts: 92
Rep:
|
You didn't supply the necessary -tv options to tell mencoder where to get the sound from.
These are the options I use with mencoder to record 48000hz stereo audio from the first soundcard using alsa:
Code:
-tv driver=v4l2:norm=ntsc:device=/dev/video0:input=0:width=720:height=480:audiorate=48000:alsa:adevice=hw.0:amode=1:chanlist=us-cable
|
|
|
04-17-2006, 12:49 PM
|
#3
|
LQ Newbie
Registered: Mar 2006
Location: Finland
Distribution: Fedora Core 5
Posts: 28
Original Poster
Rep:
|
I still won't have sound
Now I use command
mencoder -tv driver=v4l2:norm=pal:device=/dev/video0:input=0:width=720:height=576:audiorate=48000:alsa:adevice=hw.0:amode=1 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=900 -oac lavc -lavcopts acodec=mp2:abitrate=224 -vf scale=640:480 -o output.avi tv://
I have alsa mixer witch uses ensonic PCI soundcard.
How is it possible, that mencoder can't capture sound even though I hear it, I have set the recording device to be the same as the playback device.
|
|
|
04-17-2006, 06:43 PM
|
#4
|
Member
Registered: Feb 2003
Location: ???
Distribution: Mandriva 2006
Posts: 92
Rep:
|
You might not have capture enabled for the line-in input in the mixer. Start alsamixer, then press f4 to show all the recordable inputs. There should be a red word "CAPTUR" under line-in if it's enabled for recording. If you don't see it there, select the line-in and press spacebar to enable it.
|
|
|
04-18-2006, 05:24 AM
|
#5
|
LQ Newbie
Registered: Mar 2006
Location: Finland
Distribution: Fedora Core 5
Posts: 28
Original Poster
Rep:
|
Under line is red word capture, how ever, line volume controls work only on "playback" and "all" mode (on "record" mode I can set up only the "capture" volume).
Still now sound when recording video.
The strange thing is, that I do get sound from microphone when I am using skype (when capture is set on microphone). But I can't capture sound when recording video (I have also tried ffmpeg and mp1e, both can capture video, but neither can capture the sound.)
|
|
|
All times are GMT -5. The time now is 09:02 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|