[MPlayer-users] no sound when encoding from v4l - tv-card
Holger Brandhorst
holger.brandhorst at gmx.de
Sat Apr 26 20:45:00 CEST 2003
Hello,
maybe there is somebody out there who uses mencoder to record TV-shows from
a v4l-TV-card. I have the following problem when trying this:
if i use mencoder with the following command-line:
mencoder -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=16000 -oac mp3lame
-lameopts cbr:br=64 -vop pp=lb,crop=700:430:13:65 -o output.avi -tv
on:driver=v4l:width=720:height=576:forceaudio:adevice=/dev/dsp -v
the resulting output.avi does not contain an audio-stream (according to
mplayers output when playing it).
Audio-out of the TV-card is connected to line-in of the soundcard.
I use "v4lctl volume mute off" to unmute the - TV-card - so i can hear the
TV-sound.
I use tkmixer to enable "capture" for line-in.
How can i record a TV-show with sound using mencoder? - what am i missing?
The stdout+stderr of the mencoder-run mentioned above - follows below
Thank you very much - Bye Holger B.
snip ---
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale
MEncoder 0.90rc5-2.95.4 (C) 2000-2003 Arpad Gereoffy (see DOCS)
CPU: Intel (Family: 8, Stepping: 4)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Reading /home/holger/.mplayer/codecs.conf: can't open
'/home/holger/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 50 audio & 136 video codecs
File not found: 'frameno.avi'
Reading config file /home/holger/.mplayer/mencoder: No such file or
directory
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
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: Terratec Cinergy 600 TV
Capabilites: capture tuner teletext overlay clipping
Device type: 47
Supported sizes: 48x32 => 720x576
Inputs: 4
0: Television: tuner tv (tuner:1, norm:pal)
1: Composite1: (tuner:0, norm:pal)
2: S-Video: (tuner:0, norm:pal)
3: Composite2: (tuner:0, norm:pal)
mbuf: size=3981312, frames=3
ioctl dsp getfmt: 0
Supported formats: 1f9
ioctl dsp setfmt: 0
ioctl dsp stereo: 0 (req: 1)
ioctl dsp speed: 0
ioctl dsp trigger: 0
trigger: 1
ioctl dsp trigger: 0
ioctl dsp getblocksize: 0
blocksize: 4096
audio block size too low, setting to 16384!
Audio capture - buffer 256 blocks of 16384 bytes, skew average from 16 meas.
Using input 'Television'
Selected norm: pal
Tuner (Television) range: 0 -> 4294967295
ioctl set tuner failed: Invalid argument
Requested width: 720
Requested height: 576
Selected channel list: europe-east (including 133 channels)
Current frequency: 3476 (217.250)
==> Found video stream: 0
Output format: Planar YV12
Picture values:
Depth: 12, Palette: yuv420p (Format: Planar YV12)
Brightness: 32896, Hue: 32896, Colour: 33026, Contrast: 35090
Audio capture - buffer 256 blocks of 16384 bytes, skew average from 16 meas.
Using a ring buffer for maximum 745 frames, 441 MB total size.
[V] filefmt:9 fourcc:0x32315659 size:720x576 fps:25.00 ftime:=0.0400
Opening video filter: [expand=-1:-1:-1:-1:1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
Opening video filter: [pp=lb]
[expand] query(Planar YV12) -> 1
[expand] query(Planar I420) -> 1
[expand] query(Planar IYUV) -> 1
[expand] query(Planar 444P) -> 0
[expand] query(Planar 422P) -> 0
[expand] query(Planar 411P) -> 0
Opening video filter: [crop=700:430:13:65]
Crop: 700 x 430, 13 ; 65
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
Trying filter chain: crop pp expand lavc
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (720x576->720x576,flags=0,'MPlayer',0x32315659)
REQ: flags=0xC01 req=0x400
REQ: flags=0x401 req=0x0
REQ: flags=0x401 req=0x0
videocodec: libavcodec (700x430 fourcc=58564944 [DIVX])
Selected video codec: [rawyv12] vfm:raw (RAW YV12)
==========================================================================
Writing AVI header...
Forcing audio preload to 0, max pts correction to 0
*** [crop] Exporting mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
*** [pp] Exporting mp_image_t, 700x430x12bpp YUV planar, 451500 bytes
*** [lavc] Allocating mp_image_t, 704x432x12bpp YUV planar, 456192 bytes
*** [expand] Direct Rendering mp_image_t, 704x432x12bpp YUV planar, 456192
bytes
get_path('subfont.ttf') -> '/home/holger/.mplayer/subfont.ttf'
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
video capture thread: frame delta ~ 18.9 fps
Pos: 0.0s 1f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [0:0] A/Vms
0/22 D/B/S 0/0/0
video capture thread: frame delta ~ 37.0 fps
Pos: 1.3s 32f ( 0%) 23fps Trem: 0min 0mb A-V:0.000 [5408:0]
A/Vms 0/18 D/B/S 0/0/0
not enough audio samples!
Pos: 1.3s 33f ( 0%) 23fps Trem: 0min 0mb A-V:0.000 [5407:0]
A/Vms 0/18 D/B/S 0/0/0
Writing AVI index...
Fixing AVI header...
Video stream: 5407.630 kbit/s (675953 bps) size: 892259 bytes 1.320 secs
33 frames
uninit video: raw
DEMUXER: freeing demuxer at 0x8312970
Waiting for threads to finish... done
DEMUXER: freeing sh_video at 0x8311e90
More information about the MPlayer-users
mailing list