mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Junichi Uekawa <dancer@netfort.gr.jp>
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.
Date: Tue, 20 Dec 2005 08:10:05 +0900	[thread overview]
Message-ID: <877ja0znsi.dancerj%dancer@netfort.gr.jp> (raw)
In-Reply-To: <87mzj4uoys.dancerj%dancer@netfort.gr.jp>

[-- Attachment #1: Type: text/plain, Size: 376 bytes --]

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.



[-- Attachment #2: success.txt --]
[-- Type: text/plain, Size: 2563 bytes --]

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 <olschewski@zpr.uni-koeln.de>
 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.

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



[-- Attachment #4: fail.txt --]
[-- Type: text/plain, Size: 2065 bytes --]

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 <olschewski@zpr.uni-koeln.de>
 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.

[-- Attachment #5: Type: text/plain, Size: 1830 bytes --]




> 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 <hugh@veritas.com>
> > committer Linus Torvalds <torvalds@g5.osdl.org>
> >     [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 <application/octet-stream (7bit)>]
> #!/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

  parent reply	other threads:[~2005-12-19 23:10 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-03  4:26 mencoder fails with Linux kernel from linus's git tree (2 Nov 2005) Junichi Uekawa
2005-11-10 21:40 ` [x86_64] 2.6.14-git13 mplayer fails with "v4l2: ioctl queue buffer failed: Bad address" (2 Nov 2005, 11 " Junichi Uekawa
2005-11-10 22:58   ` Mike Krufky
2005-11-11  0:05     ` Junichi Uekawa
2005-11-11  3:24       ` Michael Krufky
2005-11-11 12:06         ` Junichi Uekawa
2005-11-11 13:11           ` Michael Krufky
2005-11-11 13:29           ` Junichi Uekawa
2005-11-11 14:06             ` Hugh Dickins
2005-11-12 22:22               ` Nickolay V. Shmyrev
2005-11-13  2:54                 ` Matti Aarnio
2005-11-13  4:24                   ` Junichi Uekawa
2005-11-16 12:50                   ` Nickolay V. Shmyrev
2005-11-16 17:47                     ` Hugh Dickins
2005-12-01  0:09                       ` Junichi Uekawa
2005-11-17  0:07                 ` Junichi Uekawa
2005-11-11 14:21             ` Junichi Uekawa
2005-11-12 21:11               ` Ricardo Cerqueira
     [not found]   ` <87mzj4uoys.dancerj%dancer@netfort.gr.jp>
2005-12-19 23:10     ` Junichi Uekawa [this message]
2006-01-14  7:33       ` [x86_64] linux 2.6.15-rc6 mplayer fails to record ALSA audio Junichi Uekawa
2006-01-19 23:11         ` [x86_64] bttv: linux 2.6.16-rc1 mplayer fails to record ALSA audio and fails tune TV Junichi Uekawa
2006-02-02  9:13           ` Junichi Uekawa
2006-02-02 13:53             ` Manu Abraham
2006-02-02 23:04               ` Junichi Uekawa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877ja0znsi.dancerj%dancer@netfort.gr.jp \
    --to=dancer@netfort.gr.jp \
    --cc=debian-amd64@lists.debian.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=video4linux-list@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome