[MEncoder-users] MP3 audio garbled when encoding (Suse 10.2)

Meneer Jansen meneerjansen00 at hotmail.com
Fri Jun 22 00:14:52 CEST 2007


----------------------------------------
> Date: Thu, 21 Jun 2007 16:44:28 -0500
> From: joey.parrish at gmail.com
> To: mencoder-users at mplayerhq.hu
> Subject: Re: [MEncoder-users] MP3 audio garbled when encoding (Suse
10.2)
> 
> On 6/21/07, Meneer Jansen <meneerjansen00 at hotmail.com> wrote:
> > I have two Suse Linux versions on my PC: 10.0 and 10.2. On both I
> > compiled mplayer 1.0rc1 from source code (I used the same tarballl).
> > When I encode a dvd to avi (xvid and mp3) in suse 10.0 it's perfect.
> > However when I use the same command on the same input file in suse
10.2
> > then the audio (mp3lame) is garbled.
> 
> Please post your command line as well as the output from both systems.
> 
> > Strange thing is that on suse 10.0 and 10.2 the mencoder versions
are
> > slightly different: 1.0rc1-4.0.2 versus 1.0rc1-4.1.2.
> 
> 4.0.2 vs. 4.1.2 is your gcc version.
> 
> --Joey
> _______________________________________________

Thanks for the tip on the gcc version :)

Command and output suse 10.2:

[code]
mencoder -dvd-device ./VIDEO_TS dvd:// -oac mp3lame -lameopts cbr:br=128
\
 -ovc xvid -xvidencopts bitrate=1000\
 -vf scale=384:288,crop=384:288\
 -aid 128 -of avi -o movie.avi -ffourcc xvid  
______________________________________________________________________
MEncoder 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) XP 1800+ (Family: 6, Model: 6, Stepping: 2)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

libdvdread: Using libdvdcss version 1.2.9 for DVD access
libdvdread: Couldn't find device name.
*** Zero check failed in ifo_read.c:324
    for vmgi_mat->zero_3 = 0x00000000010000000000000000000000000000
There are 1 titles on this DVD.
There are 28 chapters in this DVD title.
There are 1 angles in this DVD title.

*** libdvdread: CHECK_VALUE failed in ifo_read.c:974 ***
*** for n % 4 == 0 ***

audio stream: 0 format: ac3 (stereo) language: unknown aid: 128.
number of audio channels on disk: 1.
number of subtitles on disk: 0
success: format: 0  data: 0x0 - 0x99165800

*** libdvdread: CHECK_VALUE failed in nav_read.c:356 ***
*** for dsi->dsi_gi.zero1 == 0 ***

[cut out a lot of those same messages]

MPEG-PS file format detected.
VIDEO:  MPEG2  352x480  (aspect 2)  29.970 fps  9586.8 kbps (1198.4
kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:352x480  fps:29.97  ftime:=0.0334
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
xvid: using library version 1.1.2 (build xvid-1.1.2)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [crop w=384 h=288]
Crop: 384 x 288, -1 ; -1
Opening video filter: [scale w=384 h=288]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 352 x 480 (preferred colorspace: Mpeg PES)
The selected video_out device is incompatible with this codec.
Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder
libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Forcing output FourCC to 64697678 [xvid].
MP3 audio selected.

*** libdvdread: CHECK_VALUE failed in nav_read.c:356 ***
*** for dsi->dsi_gi.zero1 == 0 ***

VDec: vo config request - 352 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 8 -> 7
SwScaler: reducing / aligning filtersize 8 -> 7

SwScaler: BICUBIC scaler, from yuv420p to yuv420p using MMX2
SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
SwScaler: using n-tap MMX scaler for vertical scaling (YV12 like)
SwScaler: 352x480 -> 384x288
videocodec: XviD (384x288 fourcc=64697678 [xvid])
xvid: par=0/0 (vga11), displayed=384x288, sampled=384x288
xvid: CBR Rate Control -- bitrate=1000kbit/s
Writing header...2f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.003 [0:0]
ODML: vprp aspect is 4:3.
Setting audio delay to 0.024s.
Writing header...
ODML: vprp aspect is 4:3.
Setting audio delay to 0.024s.

1 duplicate frame(s)!
Pos:   0.1s      3f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.007 [0:0]
*** libdvdread: CHECK_VALUE failed in nav_read.c:356 ***
*** for dsi->dsi_gi.zero1 == 0 ***

Pos:   0.5s     19f ( 0%) 13.53fps Trem:   0min   0mb  A-V:0.060 [0:128]
*** libdvdread: CHECK_VALUE failed in nav_read.c:356 ***
*** for dsi->dsi_gi.zero1 == 0 ***

Pos:   0.6s     22f ( 0%) 13.70fps Trem:   0min   0mb  A-V:0.070 [0:127]
Skipping frame!
Pos:   0.9s     32f ( 0%) 14.02fps Trem:   0min   0mb  A-V:0.070 [0:128]
Skipping frame!
Pos:   1.1s     38f ( 0%) 14.66fps Trem:   0min   0mb  A-V:0.021
[396:128]
*** libdvdread: CHECK_VALUE failed in nav_read.c:356 ***
*** for dsi->dsi_gi.zero1 == 0 ***

Pos:   1.6s     53f ( 0%) 14.98fps Trem:   0min   0mb  A-V:0.042
[363:128]
*** libdvdread: CHECK_VALUE failed in nav_read.c:356 ***
*** for dsi->dsi_gi.zero1 == 0 ***

Pos:   1.9s     63f ( 0%) 14.66fps Trem:   0min   0mb  A-V:0.046
[345:128]
Flushing video frames


CBR audio: 16000 bytes/sec, 384 bytes/block
Writing index...
Writing header...
ODML: vprp aspect is 4:3.
Setting audio delay to 0.033s.

Video stream:  334.652 kbit/s  (41831 B/s)  size: 82351 bytes  1.969
secs  63 frames

Audio stream:  128.000 kbit/s  (16000 B/s)  size: 38016 bytes  2.376
secs
[/code]






Output from suse 10.0:




[code]
MEncoder 1.0rc1-4.0.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) XP 1800+ (Family: 6, Model: 6, Stepping: 2)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

libdvdread: Using libdvdcss version 1.2.8 for DVD access
libdvdread: Couldn't find device name.
*** Zero check failed in ifo_read.c:324
    for vmgi_mat->zero_3 = 0x00000000010000000000000000000000000000
There are 1 titles on this DVD.
There are 28 chapters in this DVD title.
There are 1 angles in this DVD title.

*** libdvdread: CHECK_VALUE failed in ifo_read.c:974 ***
*** for n % 4 == 0 ***

audio stream: 0 format: ac3 (stereo) language: unknown aid: 128.
number of audio channels on disk: 1.
number of subtitles on disk: 0
success: format: 0  data: 0x0 - 0x99165800

*** libdvdread: CHECK_VALUE failed in nav_read.c:356 ***
*** for dsi->dsi_gi.zero1 == 0 ***

[cut a lot of those errors out]

MPEG-PS file format detected.
VIDEO:  MPEG2  352x480  (aspect 2)  29.970 fps  9586.8 kbps (1198.4
kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:352x480  fps:29.97  ftime:=0.0334
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
xvid: using library version 1.1.2 (build xvid-1.1.2)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [crop w=384 h=288]
Crop: 384 x 288, -1 ; -1
Opening video filter: [scale w=384 h=288]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 352 x 480 (preferred colorspace: Mpeg PES)
The selected video_out device is incompatible with this codec.
Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder
libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Forcing output FourCC to 64697678 [xvid].
MP3 audio selected.

*** libdvdread: CHECK_VALUE failed in nav_read.c:356 ***
*** for dsi->dsi_gi.zero1 == 0 ***

VDec: vo config request - 352 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 8 -> 7
SwScaler: reducing / aligning filtersize 8 -> 7

SwScaler: BICUBIC scaler, from yuv420p to yuv420p using MMX2
SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
SwScaler: using n-tap MMX scaler for vertical scaling (YV12 like)
SwScaler: 352x480 -> 384x288
videocodec: XviD (384x288 fourcc=64697678 [xvid])
xvid: par=0/0 (vga11), displayed=384x288, sampled=384x288
xvid: CBR Rate Control -- bitrate=1000kbit/s
Writing header...2f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.003 [0:0]
ODML: vprp aspect is 4:3.
Setting audio delay to 0.024s.
Writing header...
ODML: vprp aspect is 4:3.
Setting audio delay to 0.024s.

1 duplicate frame(s)!
Pos:   0.1s      3f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.007 [0:0]

[cut a lot of the same errors out]

Pos:   7.1s    219f ( 0%) 41.13fps Trem:   0min   0mb  A-V:0.025
[226:128]
Flushing video frames


CBR audio: 16000 bytes/sec, 384 bytes/block
Writing index...
Writing header...
ODML: vprp aspect is 4:3.
Setting audio delay to 0.033s.

Video stream:  225.188 kbit/s  (28148 B/s)  size: 201933 bytes  7.174
secs  219 frames

Audio stream:  128.000 kbit/s  (16000 B/s)  size: 121344 bytes  7.584
secs

[/code]






More information about the MEncoder-users mailing list