[MEncoder-users] TV capture: audio problems

Leonardo leodp at yahoo.com
Thu Mar 24 21:58:43 CET 2005


Hi all,
I'm trying to capture from my TV card (saa7135 FlyTV Platinum
Mini), but I got no output file, and the grabbing goes on 'till
I run out of memory.
 I can hear the TV sound, but it's not recorded, no matter what
I set on kmix.

The command line:
mencoder tv:// -tv
device=/dev/video0:driver=v4l2:outfmt=i420:width=704:height=576:freq=147.25
-oac lavc -ovc lavc -vf crop=680:560:12:8,pp=lb  -o output.avi
-v

I've already tried with forceaudio, adevice=/dev/...,
forcechan=(n)
If I set driver=v4l   I can record vodeo but no sound.
On the other side mplayer works perfecty with the same settings.

When recording video with v4l the CPU is busy ~30%, and with
-oac copy again no audio

Any ideas?
Below the output of gmencoder.

Ciao, Leo

--------------------------------------------------------------
[leo at Gigetto leo]$ mencoder tv:// -tv
device=/dev/video0:driver=v4l2:outfmt=i420:width=704:height=576:freq=147.25
-oac lavc -ovc lavc -vf crop=680:560:12:8,pp=lb  -o output.avi
-v
MEncoder 1.0pre5try2-3.4.1 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium 4/Xeon/Celeron Northwood 3200 MHz (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
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading /home/leo/.mplayer/codecs.conf: Can't open
'/home/leo/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open
'/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /home/leo/.mplayer/mencoder: No such file or
directory
get_path('font/font.desc') ->
'/home/leo/.mplayer/font/font.desc'
font: can't open file: /home/leo/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
STREAM: [null] tv://
STREAM: Description: Null stream
STREAM: Author: Albeu
STREAM: Comment:
success: format: 9  data: 0x0 - 0x0
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: LifeView FlyTV Platinum Mini
 Tuner cap: STEREO LANG1 LANG2
 Tuner rxs: MONO
 Capabilites:  video capture  video overlay  VBI capture device 
tuner  read/write  streaming
 supported norms: 0 = PAL; 1 = PAL-BG; 2 = PAL-I; 3 = PAL-DK; 4
= NTSC; 5 = SECAM; 6 = PAL-M; 7 = PAL-Nc; 8 = PAL-60;
 inputs: 0 = Television; 1 = Composite1; 2 = S-Video;
 Current input: 0
 Format GREY   ( 8 bits, 8 bpp gray): Planar Y800
 Format RGB555 (16 bits, 15 bpp RGB, le): RGB 15-bit
 Format RGB555X (16 bits, 15 bpp RGB, be): Unknown
 Format RGB565 (16 bits, 16 bpp RGB, le): RGB 16-bit
 Format RGB565X (16 bits, 16 bpp RGB, be): Unknown
 Format BGR24  (24 bits, 24 bpp RGB, le): BGR 24-bit
 Format RGB24  (24 bits, 24 bpp RGB, be): RGB 24-bit
 Format BGR32  (32 bits, 32 bpp RGB, le): BGR 32-bit
 Format RGB32  (32 bits, 32 bpp RGB, be): RGB 32-bit
 Format YUYV   (16 bits, 4:2:2 packed, YUYV): Packed YUY2
 Format UYVY   (16 bits, 4:2:2 packed, UYVY): Packed UYVY
 Format YUV422P (16 bits, 4:2:2 planar, Y-Cb-Cr): Planar 422P
 Format YUV420 (12 bits, 4:2:0 planar, Y-Cb-Cr): Planar I420
 Format YVU420 (12 bits, 4:2:0 planar, Y-Cb-Cr): Planar YV12
 Current format: BGR24
v4l2: current audio mode is : MONO
ioctl dsp getfmt: 0
Supported formats: 1f9
ioctl dsp setfmt: 0
ioctl dsp stereo: 0 (req: 0)
ioctl dsp speed: 0
ioctl dsp trigger: 0
trigger: 1
ioctl dsp trigger: 0
ioctl dsp getblocksize: 0
blocksize: 8192
v4l2: set format: YUV420
v4l2: set input: 0
v4l2: set width: 704
v4l2: set height: 576
Selected channel list: europe-east (including 133 channels)
Selected frequency: 2352 (147,000)
Current frequency: 2352 (147,000)
==> Found video stream: 0
v4l2: get format: YUV420
v4l2: get fps: 25,000000
v4l2: get width: 704
v4l2: get height: 576
v4l2: set audio samplerate: 44100
v4l2: get audio format: 16
==> Found audio stream: 0
v4l2: get audio samplerate: 44100
v4l2: get audio samplesize: 2
v4l2: get audio channels: 1
  TV audio: 1 channels, 16 bits, 44100 Hz
Audio capture - buffer 323 blocks of 8192 bytes, skew average
from 16 meas.
Using a ring buffer for maximum 762 frames, 442 MB total size.
v4l2: set Brightness: 128 [0, 255]
v4l2: set Hue: 0 [-128, 127]
v4l2: set Saturation: 64 [0, 127]
v4l2: set Contrast: 68 [0, 127]
[V] filefmt:9  fourcc:0x30323449  size:704x576  fps:25,00 
ftime:=0,0400
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
dec_audio: Allocating 2048 + 65536 = 67584 bytes for output
buffer.
AUDIO: 44100 Hz, 1 ch, 16 bit (0x10), ratio: 88200->88200 (705,6
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 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 w=680 h=560 x=12 y=8]
Crop: 680 x 560, 12 ; 8
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 704 x 576 (preferred csp: Planar I420)
[PP] Using external postprocessing filter, max q = 6.
Trying filter chain: crop pp expand lavc
VDec: using Planar I420 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (704x576->704x576,flags=0,'MPlayer',0x30323449)
REQ: flags=0xC01  req=0x400
REQ: flags=0x401  req=0x0
REQ: flags=0x401  req=0x0
videocodec: libavcodec (680x560 fourcc=58564944 [DIVX])
Selected video codec: [rawi420] vfm:raw (RAW I420)
==========================================================================
Building audio filter chain for 44100Hz/1ch/16bit ->
44100Hz/2ch/16bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=44100Hz, nch = 1, format =
0x00000001 and bps = 2
[libaf] Adding filter channels
[channels] Changing number of channels to 2
[dummy] Was reinitialized, rate=44100Hz, nch = 1, format =
0x00000001 and bps = 2
FRAME_SIZE: 1152, BUFFER_SIZE: 4608, TAG: 0x50
Writing AVI header...
ODML: vprp aspect is 16384:13492.
Forcing audio preload to 0, max pts correction to 0
v4l2: going to capture
*** [crop] Exporting mp_image_t, 704x576x12bpp YUV planar,
608256 bytes
*** [pp] Exporting mp_image_t, 680x560x12bpp YUV planar, 571200
bytes
*** [lavc] Allocating mp_image_t, 688x560x12bpp YUV planar,
577920 bytes
*** [expand] Direct Rendering mp_image_t, 688x560x12bpp YUV
planar, 577920 bytes
Pos: 0,0s      1f ( 0%)   0fps Trem:   0min   0mb  A-V:0,000
[0:0] A/Vms 0/12 D/B/S 0/0/0

video buffer full - dropping frame

video buffer full - dropping frame

video buffer full - dropping frame

video buffer full - dropping frame

video buffer full - dropping frame

video buffer full - dropping frame

video buffer full - dropping frame

video buffer full - dropping frame

video buffer full - dropping frame

video buffer full - dropping frame










		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 




More information about the MEncoder-users mailing list