[MPlayer-users] btaudio + TV recording problem

Alan Murrell alanm at vcn.bc.ca
Tue Mar 18 17:33:05 CET 2003


Hello,

I have searched the mailing archive for this, and found ppl with the same 
problem, but the solutions did not work, so I am hoping that someone here can 
figure out what is going on?  I did notice in the FAQ that btaudio is 
apparently not supported, but I did read some posts where people have gotten 
to work, so I figured that was an old FAQ entry.  Anyway, let's start with my 
setup:

SOFTWARE:
    - Mandrake Linux 9.0
    - MPlayer 0.90rc4
HARDWARE:
    - ATI VE Wonder (the audio cable *is* plugged into the "audio out" on the 
VE Wonder and the "audio in" on my soundcard)
    - Matrox G400 (for the TV out)
SUMMARY:
    - When attempting to record TV, I get a decent picture, and sound appears 
to be recorded, but does not playback.
    - I have confirmed that audio works, as I can play MP3's, other videos, 
etc.
    - just before recording, I started up 'aumix' and cranked up the IGain 
setting, as well as Volume, Line, and PCM; I was able to hear the channel 
through the stereo as it was being recorded, but upon playback, no sound

And now for some information as far as Mencoder and MPlaer outputs, logs, etc.

--- mencoder command ---
mencoder -tv 
on:driver=v4l:device=/dev/video0:width=320:height=240:norm=NTSC:chanlist=us-cable:channel=45:adevice=/dev/dsp2:forceaudio:forcechan=2 
-o /media/Video/recorded/output.avi -ovc lavc -lavcopts 
vcodec=mpeg4:vbitrate=900 -oac mp3lame -lameopts cbr:br=128
--- mencoder command ---

COMMENTS:
    - I got the ':forceaudio:forcechan=' from a post on the list
    - I have tried both '1' and '2' for the 'forcechan=' option.
    - I have also tried '/dev/dsp1' (with 'forcechan=' being '1' and '2') as 
my audio device, but Mencoder does not record; it just hangs. 

--- mencoder output ---
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale


MEncoder 0.90rc4-3.2 (C) 2000-2003 Arpad Gereoffy (see DOCS)

CPU: Advanced Micro Devices Duron SF Spitfire (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Reading /root/.mplayer/codecs.conf: can't open '/root/.mplayer/codecs.conf': 
No such file or directory
Reading /etc/mplayer/codecs.conf: 50 audio & 135 video codecs
File not found: 'frameno.avi'
Reading config file /root/.mplayer/mencoder: No such file or directory
success: format: 0  data: 0x0 - 0x0
TV detected! ;-)
Selected driver: v4l
 name: Video 4 Linux input
 author: Alex Beregszaszi <alex at naxine.org>
 comment: under development
Selected device: BT878(ATI TV-Wonder VE)
 Capabilites: capture tuner overlay clipping frameram scales
 Device type: 235
 Supported sizes: 48x32 => 768x480
 Inputs: 2
  0: Television: tuner audio tv camera  (tuner:1, norm:ntsc)
  1: Composite1: audio camera  (tuner:0, norm:ntsc)
Unable to set trigger: 1
audio block size too low, setting to 16384!
Using input 'Television'
Selected channel: 45 (freq: 349.250)
[V] filefmt:9  fourcc:0x32315659  size:384x288  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=-1:-1:-1:-1:1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 384 x 288 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (384x288 fourcc=58564944 [DIVX])
Selected video codec: [rawyv12] vfm:raw (RAW YV12)
==========================================================================
MP3 audio selected
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
Writing AVI header...
Forcing audio preload to 0, max pts correction to 0
Pos:  30.3s   1794f ( 0%)  30fps Trem:   0min   0mb  A-V:0.000 [1260:127]
error reading audio: Interrupted system call
Pos:  30.3s   1795f ( 0%)  30fps Trem:   0min   0mb  A-V:0.000 [1260:127]

CBR audio: 16000 bytes/sec, 418 bytes/block

Writing AVI index...
Fixing AVI header...

Video stream: 1260.538 kbit/s  (157567 bps)  size: 4781352 bytes  30.345 secs  
1795 frames

Audio stream:  128.000 kbit/s  (15999 bps)  size: 485250 bytes  30.328 secs
--- mencoder output ---

COMMENTS:
    - The "not enough audio samples" showed up after I hit CTRL-C to cancel 
the recording.
    - Does the "Forcing audio to preload to 0" mean that the 
':forceaudio:forcechan=2' did not work?
    - As you can see, Mencoder did seem to record some sound, as indocated by 
the byte count

And now for the MPlayer output:

--- MPlayer output ---
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale


MPlayer 0.90rc4-3.2 (C) 2000-2003 Arpad Gereoffy (see DOCS)

CPU: Advanced Micro Devices Duron SF Spitfire (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled with Runtime CPU Detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection
Reading config file /etc/mplayer/mplayer.conf
Reading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: can't open '/root/.mplayer/codecs.conf': 
No such file or directory
Reading /etc/mplayer/codecs.conf: 50 audio & 135 video codecs
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
Using Linux hardware RTC timing (1024Hz).
Can't open input config file /root/.mplayer/input.conf : No such file or 
directory
Input config file /etc/mplayer/input.conf parsed : 52 binds
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not open config file
mplayer: No such file or directory
Failed to read LIRC config file ~/.lircrc.
You will not be able to use your remote control.

Playing /media/Video/recorded/output.avi
Cache fill: 18.07% (1515520 bytes)    AVI file format detected.
VIDEO:  [DIVX]  384x288  24bpp  29.00 fps  1260.5 kbps (153.9 kbyte/s)
Clip info:
 Software: MEncoder 0.90rc4-3.2
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 16000->176400 (128.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
vo: X11 running at 800x600 with depth 24 and 32 bpp (":10.0" => remote 
display)
Disabling DPMS
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
Starting playback...
This file was encoded with libavcodec build 4655
VDec: vo config request - 384 x 288 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 384x288 => 384x288 Planar YV12  [fs]
Shared memory not supported
Reverting to normal Xv
Successfully enabled DPMS.011 ct:  0.180  180/180  13% 84%  2.0% 120 0 47%

Exiting... (Quit)
--- MPlayer output ---

COMMENTS:
    - This was played from the machine it was recorded on my desktop machine, 
so that's why you likely noticed the VO being 'xv' instead of 'mga'
    - The MP3 audio appears to be detected

Anyway, that's all I will post for now.  Please let me know if there is more 
information you require, and I will do what I can to get it.  Hopefully you 
can help me figure out why sound isn't being recorded :-)

TIA,

Alan Murrell <alanm at vcn.bc.ca>






More information about the MPlayer-users mailing list