[MPlayer-users] problem with TV sound
langv.msei at comcast.net
langv.msei at comcast.net
Wed Feb 23 06:41:03 CET 2005
The mplayer/mencoder does not have sound.
1) xawtv and kdetv work fine (sound and video)
I use the line input of the soundcard for sound playback and tested the video card output for sound: both application have sound audio recording with xawtv is working
here is the debug output of the ioctl using xawtv:
ioctl: VIDIOC_QUERYCTRL(id=9963781;type=INTEGER;name="Volume";minimum=0;maximum=63;step=1;default_value=0;flags=0): ok
ioctl: VIDIOC_QUERYCTRL(id=9963782;type=INTEGER;name="Balance";minimum=0;maximum=127;step=1;default_value=64;flags=0): ok
ioctl: VIDIOC_QUERYCTRL(id=9963785;type=BOOLEAN;name="Mute";minimum=0;maximum=1;step=0;default_value=0;flags=0): ok
ioctl: VIDIOC_G_CTRL(id=9963782;value=54): ok
ioctl: VIDIOC_S_CTRL(id=9963785;value=0): ok
ioctl: VIDIOC_G_CTRL(id=9963781;value=63): ok
2) neither mplayer/mencoder generate/store any sound using following script:
mencoder tv:// -tv
driver=v4l2:normid=0:outfmt=yuy2:chanlist=us-cable:channel=4:contrast=50:brightness=40:hue=0:saturation=75:amode=1:
adevice=/dev/dsp:forceaudio:immediatemode=1
-ovc lavc -lavcopts vcodec=mpeg4:vbitrate=800:vhq:vqmax=31:keyint=30 -oac
mp3lame -o output1.avi
I tested the video card output for sound: both application have no sound (neither with immediatemode=0 nor with immediatemode=1)
here is the output of the scripts
TV detected! ;-)
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski at zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: MSI TV- at nywhere Master
Tuner cap: STEREO LANG2
Tuner rxs: STEREO LANG2
Capabilites: video capture VBI capture device tuner read/write streaming supported norms: 0 = NTSC-M; 1 = NTSC-JP; 2 = PAL-BG; 3 = PAL-DK; 4 = PAL-I;
5= PAL-M; 6 = PAL-N; 7 = PAL-Nc; 8 = PAL-60; 9 = SECAM-L; 10 = SECAM-DK;
inputs: 0 = Television; 1 = Composite1; 2 = S-Video;
Current input: 0
Current format: BGR24
v4l2: current audio mode is : STEREO
audio block size too low, setting to 16384!
Selected channel: 4 (freq: 67.250)
[V] filefmt:9 fourcc:0x32595559 size:640x480 fps:29.00 ftime:=0.0345 ==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 176400->176400 (1411.2 kbit) Selected audio codec: [pcm] afm:pcm (Uncompressed PCM) ==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1 ==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 640 x 480 (preferred csp: Packed YUY2) Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale]
VDec: using Packed YUY2 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8
SwScaler: BICUBIC scaler, from Packed YUY2 to Planar YV12 using MMX2
videocodec: libavcodec (640x480 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!
Selected video codec: [rawyuy2] vfm:raw (RAW YUY2) ==========================================================================
MP3 audio selected
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit... Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header. Forcing audio preload to 0, max pts correction to 0
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Pos: 3.8s 112f ( 0%) 28fps Trem: 0min 0mb A-V:0.000 [1326:142]
Flushing video frames
Writing AVI index...
Fixing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header. Video stream: 1326.398 kbit/s (165799 bps) size: 634613 bytes 3.828 secs 112 frames Audio stream: 142.463 kbit/s (17807 bps) size: 67917 bytes 3.814 secs
v4l2: 118 frames successfully processed, 1 frames dropped.
Since immediatemode=1 should give the sound at the videocard output, which did not, I wonder if the sound feature of the tuner card was activated appropriately
More information about the MPlayer-users
mailing list