[MEncoder-users] Basic Compile/Use Question With Pure Alsa

mgrollman mgrollman at cox.net
Wed Sep 17 21:53:19 CEST 2008


On Tue, 16 Sep 2008 22:53:13 -0700
<mgrollman at xxxx> wrote:

 > Option tv: Unknown suboption alsa

That means MEncoder doesn't have support for alsa compiled in.  Probably
because ./configure didn't find the headers.  Try installing whatever
alsa-dev package your distro offers.  If that doesn't work, send the
configure.log excerpt about alsa detection.

--------

RC,

Brilliant, the configure.log lead me to the debian .deb it wanted, which 
was
libasound2-dev.  Thank you.

I have now been able to move past the Unknown suboption alsa, and now I am
running into, it does not give an error on capture, but it also does not 
seem to be
recording any sound.  Progress!

I have tried a wide variety of containers and audio codec settings, and no
luck.

As stated earlier, I can capture sound just fine with arecord from the 
same device.

Any ideas what might be afoot now?  Full details on the output below 
from one test, from -v -v mode.
There were a lot of skipped frames (not sure why) built the resulting 
video still looks good,
it just the audio that is not happy.

Cheers!

- Michael

==================

When I do this:


mencoder -v -v tv:// -tv 
driver=v4l2:norm=NTSC-M:device=/dev/video2:input=1:width=352:height=288:alsa:ade\
   -ofps 30000/1001 -oac lavc -ovc lavc \
   -lavcopts 
vcodec=mpeg4:vbitrate=900:vmax_b_frames=0:aspect=4/3:acodec=mp2 \
   -endpos 00:00:07  -o /rw/testy.avi



I get good video, no audio, and this text:



MEncoder dev-SVN-r27632-4.1.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Atom(TM) CPU  230   @ 1.60GHz (Family: 6, Model: 28, 
Stepping: 2)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Adding file tv://
this_opt = option: tv
Checking 
tv=driver=v4l2:norm=NTSC-M:device=/dev/video2:input=1:width=352:height=288:alsa:adevice=hw.0
this_opt = option: ofps
Setting ofps=30000/1001
this_opt = option: oac
Setting oac=lavc
this_opt = option: ovc
Setting ovc=lavc
this_opt = option: lavcopts
Setting 
lavcopts=vcodec=mpeg4:vbitrate=900:vmax_b_frames=0:aspect=4/3:acodec=mp2
this_opt = option: endpos
Checking endpos=00:00:07
this_opt = option: o
Setting o=/rw/testy.avi
Configuration: --disable-mplayer --enable-tv-v4l2 --disable-faac 
--enable-alsa --disable-x264
init_freetype
get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Config pushed level is now 2
Config pushed level is now 3
Setting 
tv=driver=v4l2:norm=NTSC-M:device=/dev/video2:input=1:width=352:height=288:alsa:adevice=hw.0
Setting endpos=00:00:07
STREAM: [tv] tv://
STREAM: Description: TV Input
STREAM: Author: Benjamin Zores, Albeu
STREAM: Comment:
success: format: 9  data: 0x0 - 0x0
s->pos=0  newpos=0  new_bufpos=0  buflen=0
TV file format 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 ;-)
v4l2: video fd: /dev/video2: 3
Selected device: BT878 video (Kodicom 4400R (sla
 Capabilites:  video capture  video overlay  VBI capture device  
read/write  streaming
 supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4 
= PAL; 5 = PAL-BG; 6 = PAL-H; 7 =;
 inputs: 0 = Composite0; 1 = Composite1; 2 = Composite2; 3 = Composite3; 
4 = Composite4; 5 = Composite5; ;
 Current input: 1
 Format GREY   ( 8 bits, 8 bpp, gray): Planar Y800
 Format HI240  ( 8 bits, 8 bpp, dithered color): Unknown 0x34324948
 Format RGB555 (16 bits, 15 bpp RGB, le): BGR 15-bit
 Format RGB555X (16 bits, 15 bpp RGB, be): Unknown 0x51424752
 Format RGB565 (16 bits, 16 bpp RGB, le): BGR 16-bit
 Format RGB565X (16 bits, 16 bpp RGB, be): Unknown 0x52424752
 Format BGR24  (24 bits, 24 bpp RGB, le): BGR 24-bit
 Format BGR32  (32 bits, 32 bpp RGB, le): BGRA
 Format RGB32  (32 bits, 32 bpp RGB, be): RGBA
 Format YUYV   (16 bits, 4:2:2, packed, YUYV): Packed YUY2
 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-Cr-Cb): Planar YV12
 Format YUV411P (16 bits, 4:1:1, planar, Y-Cb-Cr): Planar 411P
 Format YUV410 ( 9 bits, 4:1:0, planar, Y-Cb-Cr): Planar IF09
 Format YVU410 ( 9 bits, 4:1:0, planar, Y-Cr-Cb): Planar YVU9
 Current format: YVU420
v4l2: set format: YVU420
v4l2: set input: 1
Selected norm : NTSC-M
v4l2: set norm: NTSC-M
v4l2: set width: 352
v4l2: set height: 288
Selected input hasn't got a tuner!
==> Found video stream: 0
v4l2: get format: YVU420
v4l2: get fps: 29.970030
v4l2: get width: 352
v4l2: get height: 288
Hardware PCM card 0 'HDA Intel' device 0 subdevice 0
Its setup is:
  stream       : CAPTURE
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 44100
  exact rate   : 44100 (44100/1)
  msbits       : 16
  buffer_size  : 16384
  period_size  : 4096
  period_time  : 92879
  tick_time    : 0
  tstamp_mode  : NONE
  period_step  : 1
  sleep_min    : 0
  avail_min    : 4096
  xfer_align   : 4096
  start_threshold  : 0
  stop_threshold   : 16384
  silence_threshold: 0
  silence_size : 0
  boundary     : 1073741824
Audio capture - buffer 603 blocks of 16384 bytes, skew average from 16 meas.
Using a ring buffer for maximum 1704 frames, 247 MB total size.
v4l2: set Brightness: 32768 [0, 65535]
v4l2: set Hue: 32768 [0, 65535]
v4l2: set Saturation: 32768 [0, 65535]
v4l2: set Contrast: 32768 [0, 65535]
[V] filefmt:9  fourcc:0x32315659  size:352x288  fps:29.970  ftime:=0.0334
SPU: Display only forced subs now disabled
[file] File size is 0 bytes
STREAM: [file] /rw/testy.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
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 - 352 x 288 (preferred colorspace: Planar YV12)
Trying filter chain: expand lavc
vo_debug: query(Planar YV12) returned 0x401 (i=0)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (352x288->352x288,flags=0,'MPlayer',0x32315659)
REQ: flags=0x401  req=0x0
videocodec: libavcodec (352x288 fourcc=34504d46 [FMP4])
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
==========================================================================
Forcing audio preload to 0, max pts correction to 0.
v4l2: going to capture

fps = -1.000000, interval = 0.000000, a_skew = 0.000000, corr_skew = 
0.000000
vcnt = 0, acnt = 0

fps = 29.967036, interval = 0.033370, a_skew = 0.000000, corr_skew = 
0.000000
vcnt = 0, acnt = 0
*** [expand] Exporting mp_image_t, 352x288x12bpp YUV planar, 152064 bytes
(imgfmt: 32315659, planes: (nil),(nil),(nil) strides: 0,0,0, chroma: 
176x144, shift: h:1,v:1)
*** [lavc] Allocating mp_image_t, 352x288x12bpp YUV planar, 152064 bytes
(imgfmt: 32315659, planes: 0xb5d79040,0xb5d97f40,0xb5d91c40 strides: 
352,176,176, chroma: 176x144, shift:)
get_path('subfont.ttf') -> '/root/.mplayer/subfont.ttf'
Unicode font: 239 glyphs.
get_path('subfont.ttf') -> '/root/.mplayer/subfont.ttf'
Unicode font: 239 glyphs.
OSD chg: 6  V: no  pb:-1
OSD chg: 3  V: no  pb:-1
OSD chg: 2  V: no  pb:-1
Muxer frame buffer sending 1 frame(s) to the muxer.
Writing header...
ODML: vprp aspect is 4:3.
Writing header...
ODML: vprp aspect is 4:3.
Pos:   0.0s      1f ( 0%)   0fps Trem:   0min   0mb  A-V:0.000 [0:0] 
A/Vms 0/8 D/B/S 0/0/0
fps = 29.967036, interval = 0.066740, a_skew = 0.000000, corr_skew = 
0.000000
vcnt = 0, acnt = 0
Pos:   0.1s      2f ( 0%)   0fps Trem:   0min   0mb  A-V:0.000 [0:0] 
A/Vms 0/7 D/B/S 0/0/0
fps = 29.976019, interval = 0.100100, a_skew = 0.000000, corr_skew = 
0.000000
vcnt = 0, acnt = 0
Pos:   0.1s      3f ( 0%)   0fps Trem:   0min   0mb  A-V:0.000 [0:0] 
A/Vms 0/6 D/B/S 0/0/0
fps = 29.971527, interval = 0.133465, a_skew = -0.030993, corr_skew = 
-0.020018
vcnt = 0, acnt = 2

<-------Snip--------->

vcnt = 0, acnt = 74
Pos:   7.0s    209f ( 0%)  30fps Trem:   0min   0mb  A-V:0.000 [859:0] 
A/Vms 0/4 D/B/S 18/17/17
Flushing video frames.
Writing index...
Writing header...
ODML: vprp aspect is 4:3.

Video stream:  859.602 kbit/s  (107450 B/s)  size: 752904 bytes  7.007 
secs  209 frames
Uninit video: raw
DEMUXER: freeing demuxer at 0x8b3cea0

fps = 29.969731, interval = 7.006852, a_skew = -0.037320, corr_skew = 
-0.037320
vcnt = 0, acnt = 76
v4l2: 211 frames successfully processed, -210 frames dropped.
v4l2: up to 1 video frames buffered.
DEMUXER: freeing sh_video at 0x8b3db40
[B-999:ATOM:12:38 PM, Wed Sep 17 - /usr/src/mplayer]>

 >  




More information about the MEncoder-users mailing list