From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965031AbVLSXKI (ORCPT ); Mon, 19 Dec 2005 18:10:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965032AbVLSXKH (ORCPT ); Mon, 19 Dec 2005 18:10:07 -0500 Received: from 219-75-232-131.eonet.ne.jp ([219.75.232.131]:2829 "HELO viper2.netfort.gr.jp") by vger.kernel.org with SMTP id S965029AbVLSXKG (ORCPT ); Mon, 19 Dec 2005 18:10:06 -0500 Date: Tue, 20 Dec 2005 08:10:05 +0900 Message-ID: <877ja0znsi.dancerj%dancer@netfort.gr.jp> From: Junichi Uekawa To: linux-kernel@vger.kernel.org, video4linux-list@redhat.com, debian-amd64@lists.debian.org Cc: dancer@netfort.gr.jp Subject: [x86_64] linux 2.6.15-rc6 mplayer fails to record ALSA audio. In-Reply-To: <87mzj4uoys.dancerj%dancer@netfort.gr.jp> References: <87fyqeicge.dancerj%dancer@netfort.gr.jp> <87wtjg5gh2.dancerj%dancer@netfort.gr.jp> <87mzj4uoys.dancerj%dancer@netfort.gr.jp> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 Emacs/21.4 (x86_64-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Tue_Dec_20_08:10:05_2005-1" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org --Multipart_Tue_Dec_20_08:10:05_2005-1 Content-Type: text/plain; charset=US-ASCII Hi, With today's git tree I'm still experiencing the same problem that audio isn't captured with mencoder. Linux dancer64 2.6.15-rc6dancer-gdf7addbb #1 Mon Dec 19 23:18:41 JST 2005 x86_64 GNU/Linux successful recording is done with 2.6.14-rc5, failure case is done with 2.6.15-rc6, I'm suspecting that v4l is giving some wrong ideas about audio information to mencoder. --Multipart_Tue_Dec_20_08:10:05_2005-1 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline; filename="success.txt" Content-Transfer-Encoding: 7bit MEncoder dev-CVS--4.0.2 (C) 2000-2005 MPlayer Team CPU: Advanced Micro Devices Athlon 64 Newcastle,Winchester,San Diego,Venice; Sempron Palermo (Family: 15, Stepping: 0) Detected cache-line size is 64 bytes CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2 success: format: 9 data: 0x0 - 0x0 Selected driver: v4l2 name: Video 4 Linux 2 input author: Martin Olschewski comment: first try, more to come ;-) Selected device: BT878 video (IODATA GV-BCTV5/PC Tuner cap: Tuner rxs: MONO Capabilites: video capture video overlay VBI capture device tuner read/write streaming supported norms: 0 = PAL; 1 = NTSC; 2 = SECAM; 3 = PAL-Nc; 4 = PAL-M; 5 = PAL-N; 6 = NTSC-JP; 7 = PAL-60; inputs: 0 = Television; 1 = Composite1; 2 = S-Video; Current input: 0 Current format: YUYV v4l2: current audio mode is : STEREO Selected channel: 12 (freq: 217.250) [V] filefmt:9 fourcc:0x30323449 size:320x240 fps:29.97 ftime:=0.0334 ========================================================================== Opening audio decoder: [pcm] Uncompressed PCM audio decoder AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000) 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 decoder: [raw] RAW Uncompressed Video VDec: vo config request - 320 x 240 (preferred colorspace: Planar I420) VDec: using Planar I420 as output csp (no 0) Movie-Aspect is undefined - no prescaling applied. videocodec: libavcodec (320x240 fourcc=34504d46 [FMP4]) High quality encoding selected (non real time)! Selected video codec: [rawi420] vfm: raw (RAW I420) ========================================================================== Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??... MP3 audio selected Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le... 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 New_Face failed. Maybe the font path is wrong. Please supply the text font file (~/.mplayer/subfont.ttf). subtitle font: load_sub_face failed. ODML: Aspect information not (yet?) available or unspecified, not writing vprp header. --Multipart_Tue_Dec_20_08:10:05_2005-1 Content-Type: text/plain; charset=US-ASCII --Multipart_Tue_Dec_20_08:10:05_2005-1 Content-Type: text/plain Content-Disposition: inline; filename="fail.txt" MEncoder dev-CVS--4.0.2 (C) 2000-2005 MPlayer Team CPU: Advanced Micro Devices Athlon 64 Newcastle,Winchester,San Diego,Venice; Sempron Palermo (Family: 15, Stepping: 0) Detected cache-line size is 64 bytes CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2 success: format: 9 data: 0x0 - 0x0 Selected driver: v4l2 name: Video 4 Linux 2 input author: Martin Olschewski comment: first try, more to come ;-) Selected device: BT878 video (IODATA GV-BCTV5/PC Tuner cap: Tuner rxs: MONO Capabilites: video capture video overlay VBI capture device tuner read/write streaming supported norms: 0 = PAL; 1 = NTSC; 2 = SECAM; 3 = PAL-Nc; 4 = PAL-M; 5 = PAL-N; 6 = NTSC-JP; 7 = PAL-60; inputs: 0 = Television; 1 = Composite1; 2 = S-Video; Current input: 0 Current format: YUV420 v4l2: current audio mode is : STEREO Selected channel: 12 (freq: 217.250) [V] filefmt:9 fourcc:0x30323449 size:320x240 fps:29.97 ftime:=0.0334 Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 ========================================================================== Opening video decoder: [raw] RAW Uncompressed Video VDec: vo config request - 320 x 240 (preferred colorspace: Planar I420) VDec: using Planar I420 as output csp (no 0) Movie-Aspect is undefined - no prescaling applied. videocodec: libavcodec (320x240 fourcc=34504d46 [FMP4]) High quality encoding selected (non real time)! Selected video codec: [rawi420] vfm: raw (RAW I420) ========================================================================== 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 New_Face failed. Maybe the font path is wrong. Please supply the text font file (~/.mplayer/subfont.ttf). subtitle font: load_sub_face failed. ODML: Aspect information not (yet?) available or unspecified, not writing vprp header. --Multipart_Tue_Dec_20_08:10:05_2005-1 Content-Type: text/plain; charset=US-ASCII > The last version known to work: 2.6.14-rc5 (probably 2.6.15 works also) > > With 2.6.15-rc3 or so, with the following fix, bttv started functioning. > > commit ed5297a94090d9a9f27b0ce1f9601ebe73561cff > > tree 00d28144ae949b3f9d566279cb12be0c802f86e6 > > parent aa1a64ee12ae130706f3fc0007841ce9b0ddf9c2 > > author Hugh Dickins > > committer Linus Torvalds > > [PATCH] unpaged: get_user_pages VM_RESERVED > > However, mplayer doesn't want to read from ALSA input, and no sound is recorded. > > I'm trying to record video from /dev/video0, and audio from ALSA,0,0 > (which is ATIIXP card). Audio is physically routed from the video > capture board to ATIIXP card. > > I'm attaching the encoding script I use, and strace output > for 2.6.14-rc5 and 2.6.15-rc5. > > I'm using Debian sid, and this regression is killing me... > > If you know of good fix, or know of a reason of this breakage, I'm all > ears. > > regards, > junichi > -- > dancer@{debian.org,netfort.gr.jp} Debian Project > > > [2 encodetv.sh-strace ] > #!/bin/bash > #interactive script to encode TV. > > if [[ $# != 3 ]]; then > echo "encodetv [channel] [minutes] [output filename]" > exit 0; > fi > echo "channel: $1" > CHANNEL=$1 > echo "minutes: $2" > MINUTES=$2 > echo "output filename: $3" > OUTFILE=$3 > > strace -f \ > mencoder tv://${CHANNEL} \ > -tv \ > driver=v4l2:\ > device=/dev/video0:\ > width=320:\ > height=240:\ > normid=6:\ > alsa:\ > amode=1:\ > adevice=ixp:\ > chanlist=japan-bcast:\ > forcechan=2:\ > -o "${OUTFILE}.avi" \ > -ovc lavc -lavcopts vcodec=mpeg4:vhq -oac mp3lame -lameopts br=128:cbr:mode=0 -endpos $(( 60 * $MINUTES )) > regards, junichi -- dancer@{debian.org,netfort.gr.jp} Debian Project --Multipart_Tue_Dec_20_08:10:05_2005-1--