[MEncoder-users] audio issue,

Sw@g sweetthdevil at gmail.com
Sat May 28 04:13:24 CEST 2011


Hi all,

I am using mencoder to record a webcam for security reason and wanted to 
record audio also, the issue I have is that when adding the audio into 
the mix the ended video is really fast. it seems the audio is having 
some issue.

Please see below for information the command used, and the output.

Many thanks for your time and assistance,

command:
mencoder tv:// -tv 
driver=v4l2:width=800:height=600:fps=15:device=/dev/video0:forceaudio:adevice=/dev/audio1 
-ovc x264 -oac mp3lame -lameopts abr:br=128  -o cam_`date +%F_%T`.avi

terminal output:
$ mencoder tv:// -tv 
driver=v4l2:width=800:height=600:fps=15:device=/dev/video0:forceaudio:adevice=/dev/audio1 
-ovc x264 -oac mp3lame -lameopts abr:br=128  -o cam_`date +%F_%T`.avi
MEncoder SVN-r33159-4.5.2 (C) 2000-2011 MPlayer Team
162 audio & 359 video codecs
success: format: 9  data: 0x0 - 0x0
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: your device driver does not support VIDIOC_G_STD ioctl, 
VIDIOC_G_PARM was used instead.
Selected device: UVC Camera (046d:08c9)
  Capabilities:  video capture  streaming
  supported norms:
  inputs: 0 = Camera 1;
  Current input: 0
  Current format: MJPEG
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Invalid argument
Error: Cannot set norm!
Selected input hasn't got a tuner!
Video buffer shorter than 3 times audio frame duration.
You will probably experience heavy framedrops.
v4l2: ioctl set mute failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
[V] filefmt:9  fourcc:0x32595559  size:640x480  fps:15.000  ftime:=0.0667
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
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
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0xb007ed0] using unscaled yuyv422 -> yuv420p special converter
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle 
SSE4.1 Cache64
x264 [info]: profile High, level 2.2
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
MP3 audio selected.
Forcing audio preload to 0, max pts correction to 0.

1 duplicate frame(s)!
Pos:   0.1s      1f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
Writing header...
ODML: vprp aspect is 4:3.
Setting audio delay to 0.131s.
Writing header...
ODML: vprp aspect is 4:3.
Setting audio delay to 0.131s.
Pos:   0.2s      2f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]

Skipping frame!
Pos:   0.3s      4f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]

Skipping frame!
Pos:   0.3s      6f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]

Skipping frame!
Pos:   0.3s      7f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]

Skipping frame!
Pos:   0.4s      9f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]

Skipping frame!
Pos:   0.5s     11f ( 0%)  9.90fps Trem:   0min   0mb  A-V:0.000 [0:0]

Skipping frame!
Pos:   0.5s     12f ( 0%) 10.22fps Trem:   0min   0mb  A-V:0.000 [0:0]

Skipping frame!
Pos:   0.5s     14f ( 0%) 10.71fps Trem:   0min   0mb  A-V:0.000 [0:0]

Skipping frame!
Pos:   0.6s     16f ( 0%) 11.09fps Trem:   0min   0mb  A-V:0.000 [0:0]

Skipping frame!
Pos:   0.6s     17f ( 0%) 11.29fps Trem:   0min   0mb  A-V:0.000 [0:0]

Skipping frame!
Pos:   0.7s     19f ( 0%) 11.59fps Trem:   0min   0mb  A-V:0.000 [0:0]

Skipping frame!
Pos:   0.7s     21f ( 0%) 11.83fps Trem:   0min   0mb  A-V:0.000 [0:0]

Skipping frame!
Pos:   0.7s     22f ( 0%) 11.97fps Trem:   0min   0mb  A-V:0.000 [0:0]

Skipping frame!
Pos:   0.8s     24f ( 0%) 12.17fps Trem:   0min   0mb  A-V:0.000 [0:0]

Skipping frame!
Pos:   0.9s     26f ( 0%) 12.34fps Trem:   0min   0mb  A-V:0.000 [0:0]

Skipping frame!
Pos:   0.9s     27f ( 0%) 12.44fps Trem:   0min   0mb  A-V:0.000 [0:0]

Skipping frame!
Pos:   0.9s     29f ( 0%) 12.59fps Trem:   0min   0mb  A-V:0.000 [0:0]

Skipping frame!
Pos:   1.0s     31f ( 0%) 12.72fps Trem:   0min   0mb  A-V:0.000 [0:0]

Skipping frame!
Pos:   1.0s     32f ( 0%) 12.79fps Trem:   0min   0mb  A-V:0.000 [0:96]

Skipping frame!
Pos:   1.1s     34f ( 0%) 12.85fps Trem:   0min   0mb  A-V:0.000 [0:96]

Skipping frame!
Pos:   1.1s     36f ( 0%) 12.99fps Trem:   0min   0mb  A-V:0.000 [0:96]

Skipping frame!
Pos:   1.1s     37f ( 0%) 13.01fps Trem:   0min   0mb  A-V:0.000 [0:96]

Skipping frame!
Pos:   1.2s     39f ( 0%) 13.10fps Trem:   0min   0mb  A-V:0.000 [0:96]

Skipping frame!
Pos:   1.3s     41f ( 0%) 13.21fps Trem:   0min   0mb  A-V:0.000 [0:96]

Skipping frame!
Pos:   1.3s     42f ( 0%) 13.22fps Trem:   0min   0mb  A-V:0.000 [0:96]

Skipping frame!
Pos:   1.3s     44f ( 0%) 13.29fps Trem:   0min   0mb  A-V:0.000 [0:96]

Skipping frame!
Pos:   1.4s     46f ( 0%) 13.39fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   1.4s     47f ( 0%) 13.40fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   1.5s     49f ( 0%) 13.45fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   1.5s     51f ( 0%) 13.50fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   1.5s     52f ( 0%) 13.54fps Trem:   0min   0mb  A-V:0.000 [0:96]

Skipping frame!
Pos:   1.6s     54f ( 0%) 13.59fps Trem:   0min   0mb  A-V:0.000 [0:96]

Skipping frame!
Pos:   1.7s     56f ( 0%) 13.63fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   1.7s     57f ( 0%) 13.66fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   1.7s     59f ( 0%) 13.70fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   1.8s     61f ( 0%) 13.73fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   1.8s     62f ( 0%) 13.76fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   1.9s     64f ( 0%) 13.80fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   1.9s     66f ( 0%) 13.82fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   1.9s     67f ( 0%) 13.85fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   2.0s     69f ( 0%) 13.88fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   2.1s     71f ( 0%) 13.91fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   2.1s     72f ( 0%) 13.93fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   2.1s     74f ( 0%) 13.95fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   2.2s     76f ( 0%) 13.98fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   2.2s     77f ( 0%) 13.99fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   2.3s     79f ( 0%) 14.02fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   2.3s     81f ( 0%) 14.04fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   2.3s     82f ( 0%) 14.06fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   2.4s     84f ( 0%) 14.08fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   2.5s     86f ( 0%) 14.07fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   2.5s     87f ( 0%) 14.11fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   2.5s     89f ( 0%) 14.11fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   2.6s     91f ( 0%) 14.12fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   2.6s     92f ( 0%) 14.14fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   2.7s     94f ( 0%) 14.15fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   2.7s     96f ( 0%) 14.19fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   2.7s     97f ( 0%) 14.18fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   2.8s     99f ( 0%) 14.20fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   2.9s    101f ( 0%) 14.21fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   2.9s    102f ( 0%) 14.22fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   2.9s    104f ( 0%) 14.24fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   3.0s    106f ( 0%) 14.25fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   3.0s    107f ( 0%) 14.26fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   3.1s    109f ( 0%) 14.27fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   3.1s    111f ( 0%) 14.28fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   3.1s    112f ( 0%) 14.29fps Trem:   0min   0mb  A-V:0.000 [0:96]

Skipping frame!
Pos:   3.2s    114f ( 0%) 14.30fps Trem:   0min   0mb  A-V:0.000 [0:96]

Skipping frame!
Pos:   3.3s    116f ( 0%) 14.31fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   3.3s    117f ( 0%) 14.32fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   3.3s    119f ( 0%) 14.33fps Trem:   0min   0mb  A-V:0.000 [0:97]

Skipping frame!
Pos:   3.3s    120f ( 0%) 14.34fps Trem:   0min   0mb  A-V:0.000 [0:97]
Writing header...
ODML: vprp aspect is 4:3.
Setting audio delay to 0.131s.
Pos:   3.4s    121f ( 0%) 14.34fps Trem:   0min   0mb  A-V:0.000 [16:97]

Skipping frame!
Pos:   3.4s    122f ( 0%) 14.35fps Trem:   0min   0mb  A-V:0.000 [16:97]

Skipping frame!
Pos:   3.5s    124f ( 0%) 14.36fps Trem:   0min   0mb  A-V:0.000 [26:97]

Skipping frame!
Pos:   3.5s    126f ( 0%) 14.37fps Trem:   0min   0mb  A-V:0.000 [50:97]

Skipping frame!
Pos:   3.5s    127f ( 0%) 14.38fps Trem:   0min   0mb  A-V:0.000 [50:97]

Skipping frame!
Pos:   3.6s    129f ( 0%) 14.39fps Trem:   0min   0mb  A-V:0.000 [74:97]

Skipping frame!
Pos:   3.7s    131f ( 0%) 14.39fps Trem:   0min   0mb  A-V:0.000 [92:97]

Skipping frame!
Pos:   3.7s    132f ( 0%) 14.39fps Trem:   0min   0mb  A-V:0.000 [92:97]

Skipping frame!
Pos:   3.7s    134f ( 0%) 14.40fps Trem:   0min   0mb  A-V:0.000 [113:97]

Skipping frame!
Pos:   3.8s    136f ( 0%) 14.40fps Trem:   0min   0mb  A-V:0.000 [148:97]

Skipping frame!
Pos:   3.8s    137f ( 0%) 14.41fps Trem:   0min   0mb  A-V:0.000 [148:97]

Skipping frame!
Pos:   3.9s    139f ( 0%) 14.42fps Trem:   0min   0mb  A-V:0.000 [165:97]

Skipping frame!
Pos:   3.9s    141f ( 0%) 14.43fps Trem:   0min   0mb  A-V:0.000 [165:97]

Skipping frame!
Pos:   3.9s    142f ( 0%) 14.44fps Trem:   0min   0mb  A-V:0.000 [165:97]

Skipping frame!
Pos:   4.0s    144f ( 0%) 14.44fps Trem:   0min   0mb  A-V:0.000 [163:97]

Skipping frame!
Pos:   4.1s    146f ( 0%) 14.45fps Trem:   0min   0mb  A-V:0.000 [192:97]

Skipping frame!
Pos:   4.1s    147f ( 0%) 14.46fps Trem:   0min   0mb  A-V:0.000 [192:97]

Skipping frame!
Pos:   4.1s    149f ( 0%) 14.46fps Trem:   0min   0mb  A-V:0.000 [190:97]

Skipping frame!
Pos:   4.2s    151f ( 0%) 14.47fps Trem:   0min   0mb  A-V:0.000 [206:97]

Skipping frame!
Pos:   4.2s    152f ( 0%) 14.48fps Trem:   0min   0mb  A-V:0.000 [206:97]

Skipping frame!
Pos:   4.3s    154f ( 0%) 14.48fps Trem:   0min   0mb  A-V:0.000 [206:97]

Skipping frame!
Pos:   4.3s    156f ( 0%) 14.49fps Trem:   0min   0mb  A-V:0.000 [204:97]

Skipping frame!
Pos:   4.3s    157f ( 0%) 14.50fps Trem:   0min   0mb  A-V:0.000 [204:97]

Skipping frame!
Pos:   4.4s    159f ( 0%) 14.49fps Trem:   0min   0mb  A-V:0.000 [202:97]

Skipping frame!
Pos:   4.5s    161f ( 0%) 14.51fps Trem:   0min   0mb  A-V:0.000 [210:97]

Skipping frame!
Pos:   4.5s    162f ( 0%) 14.50fps Trem:   0min   0mb  A-V:0.000 [210:97]

Skipping frame!
Pos:   4.5s    164f ( 0%) 14.51fps Trem:   0min   0mb  A-V:0.000 [208:97]

Skipping frame!
Pos:   4.6s    166f ( 0%) 14.51fps Trem:   0min   0mb  A-V:0.000 [206:97]

Skipping frame!
Pos:   4.6s    167f ( 0%) 14.52fps Trem:   0min   0mb  A-V:0.000 [206:97]

Skipping frame!
Pos:   4.7s    169f ( 0%) 14.52fps Trem:   0min   0mb  A-V:0.000 [203:97]

Skipping frame!
Pos:   4.7s    171f ( 0%) 14.53fps Trem:   0min   0mb  A-V:0.000 [211:97]

Skipping frame!
Pos:   4.7s    172f ( 0%) 14.53fps Trem:   0min   0mb  A-V:0.000 [211:97]

Skipping frame!
Pos:   4.8s    174f ( 0%) 14.54fps Trem:   0min   0mb  A-V:0.000 [210:97]

Skipping frame!
Pos:   4.9s    176f ( 0%) 14.54fps Trem:   0min   0mb  A-V:0.000 [208:97]

Skipping frame!
Pos:   4.9s    177f ( 0%) 14.54fps Trem:   0min   0mb  A-V:0.000 [208:97]

Skipping frame!
Pos:   4.9s    179f ( 0%) 14.54fps Trem:   0min   0mb  A-V:0.000 [206:97]

Skipping frame!
Pos:   5.0s    181f ( 0%) 14.56fps Trem:   0min   0mb  A-V:0.000 [211:97]

Skipping frame!
Pos:   5.0s    182f ( 0%) 14.55fps Trem:   0min   0mb  A-V:0.000 [211:97]

Skipping frame!
Pos:   5.1s    184f ( 0%) 14.56fps Trem:   0min   0mb  A-V:0.000 [209:97]

Skipping frame!
Pos:   5.1s    186f ( 0%) 14.56fps Trem:   0min   0mb  A-V:0.000 [207:97]

Skipping frame!
Pos:   5.1s    187f ( 0%) 14.57fps Trem:   0min   0mb  A-V:0.000 [207:97]

Skipping frame!
Pos:   5.2s    189f ( 0%) 14.57fps Trem:   0min   0mb  A-V:0.000 [205:97]

Skipping frame!
Pos:   5.3s    191f ( 0%) 14.57fps Trem:   0min   0mb  A-V:0.000 [208:97]

Skipping frame!
Pos:   5.3s    192f ( 0%) 14.58fps Trem:   0min   0mb  A-V:0.000 [208:97]

Skipping frame!
Pos:   5.3s    194f ( 0%) 14.59fps Trem:   0min   0mb  A-V:0.000 [207:97]

Skipping frame!
Pos:   5.4s    196f ( 0%) 14.59fps Trem:   0min   0mb  A-V:0.000 [205:97]

Skipping frame!
Pos:   5.4s    197f ( 0%) 14.59fps Trem:   0min   0mb  A-V:0.000 [205:97]

Skipping frame!
Pos:   5.5s    199f ( 0%) 14.60fps Trem:   0min   0mb  A-V:0.000 [203:97]

Skipping frame!
Pos:   5.5s    201f ( 0%) 14.60fps Trem:   0min   0mb  A-V:0.000 [205:97]

Skipping frame!
Pos:   5.5s    202f ( 0%) 14.61fps Trem:   0min   0mb  A-V:0.000 [205:97]

Skipping frame!
Pos:   5.6s    204f ( 0%) 14.61fps Trem:   0min   0mb  A-V:0.000 [203:97]

Skipping frame!
Pos:   5.7s    206f ( 0%) 14.60fps Trem:   0min   0mb  A-V:0.000 [201:97]

Skipping frame!
Pos:   5.7s    207f ( 0%) 14.61fps Trem:   0min   0mb  A-V:0.000 [201:97]

Skipping frame!
Pos:   5.7s    209f ( 0%) 14.61fps Trem:   0min   0mb  A-V:0.000 [199:97]

Skipping frame!
Pos:   5.8s    211f ( 0%) 14.61fps Trem:   0min   0mb  A-V:0.000 [204:97]

Skipping frame!
Pos:   5.8s    212f ( 0%) 14.62fps Trem:   0min   0mb  A-V:0.000 [204:97]

Skipping frame!
^Cs:   5.9s    214f ( 0%) 14.62fps Trem:   0min   0mb  A-V:0.000 [203:97]

Skipping frame!
Pos:   5.9s    215f ( 0%) 14.63fps Trem:   0min   0mb  A-V:0.000 [203:97]

Flushing video frames.

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
Writing index...
Writing header...
ODML: vprp aspect is 4:3.
Setting audio delay to 0.131s.

Video stream:  350.918 kbit/s  (43864 B/s)  size: 257340 bytes  5.867 
secs  215 frames

Audio stream:   97.486 kbit/s  (12185 B/s)  size: 71622 bytes  5.878 secs
x264 [info]: frame I:1     Avg QP:17.73  size:  6854
x264 [info]: frame P:29    Avg QP:20.10  size:  7105
x264 [info]: frame B:57    Avg QP:24.25  size:   780
x264 [info]: consecutive B-frames:  9.2%  4.6% 17.2% 69.0%
x264 [info]: mb I  I16..4: 61.0% 31.8%  7.2%
x264 [info]: mb P  I16..4:  8.8%  5.4%  1.5%  P16..4: 39.6%  8.5%  7.4%  
0.0%  0.0%    skip:28.7%
x264 [info]: mb B  I16..4:  0.1%  0.3%  0.1%  B16..8: 23.7%  1.3%  0.4%  
direct: 1.8%  skip:72.5%  L0:42.3% L1:54.6% BI: 3.1%
x264 [info]: 8x8 transform intra:35.3% inter:66.5%
x264 [info]: coded y,uvDC,uvAC intra: 24.9% 46.9% 22.1% inter: 9.0% 
20.7% 2.2%
x264 [info]: i16 v,h,dc,p: 76% 11%  7%  6%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  9% 15% 37%  6%  7%  5% 10%  
4%  7%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 18% 22%  6% 11%  7% 10%  
5%  8%
x264 [info]: i8c dc,h,v,p: 66% 18% 13%  4%
x264 [info]: Weighted P-Frames: Y:31.0% UV:27.6%
x264 [info]: ref P L0: 51.5% 12.4% 26.7%  8.9%  0.5%
x264 [info]: ref B L0: 76.9% 16.5%  6.6%
x264 [info]: ref B L1: 93.6%  6.4%
x264 [info]: kb/s:354.95

video buffer full - dropping frame
v4l2: ioctl set mute failed: Invalid argument
v4l2: 224 frames successfully processed, 4 frames dropped.




More information about the MEncoder-users mailing list