[MEncoder-users] Problem with ac3 encoding: 1 duplicate frame(s)!

Bernd Butscheidt bbutscheidt at yahoo.de
Sun Mar 27 14:29:58 CEST 2011





From: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
To Bernd Butscheidt <bernd.butscheidt at yahoo.de>; MEncoder usage discussions 
<mencoder-users at mplayerhq.hu>
Sent: Sunday 27.th March 2011, 12:11:42 h
subject: Re: [MEncoder-users] Problem with ac3 encoding: 1 duplicate frame(s)!

On Sat, Mar 12, 2011 at 10:29:38PM +0000, Bernd Butscheidt wrote:
>> So do newer versions of mencoder break ac3-encoding

>Yes. Try ac3_fixed as codec instead of ac3 and please tell me if that helps.

I'm sorry to say that I cannot find a difference up to now. The audio is way too 
fast!!.

Here is the output of the test:


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

mencoder -demuxer lavf -ovc x264 -vf hqdn3d,delogo=1132:48:48:80:5,softskip 
-x264encopts 
subq=1:frameref=3:me=hex:bframes=3:b_adapt:threads=auto:8x8dct:crf=12:b_pyramid=normal:weightp=2:keyint=250:weight_b:vbv_maxrate=40000:vbv_bufsize=30000:level_idc=41
 -channels 6 -srate 48000 -oac lavc -af lavcresample=48000 -lavcopts 
acodec=ac3_fixed:abitrate=448 Tatort_HH.ts -of lavf -lavfopts format=matroska -o 
Tatort_HH€reenc.mkv
MEncoder 33125-4.5.2 (C) 2000-2011 MPlayer Team
success: format: 0  data: 0x0 - 0xfd9e08c8
libavformat file format detected.
[h264 @ 0x2f76ec0] mmco: unref short failure
[h264 @ 0x2f76ec0] mmco: unref short failure
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (ac3), -aid 0, -alang deu
LAVF: Program 1 
VIDEO:  [H264]  1280x720  0bpp  50.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:35  fourcc:0x34363248  size:1280x720  fps:50.000  ftime:=0.0200
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 6 ch, s16le, 448.0 kbit/9.72% (ratio: 56000->576000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
** MUXER_LAVF *****************************************************************
REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
INCORRECT files in the presence of B-frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit.
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [softskip]
Opening video filter: [delogo x=1132 y=48 w=48 h=80 t=5]
Opening video filter: [hqdn3d]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
[ac3_fixed @ 0xa5a480]No channel layout specified. The encoder will guess the 
layout, but it might be incorrect.
[h264 @ 0xa5a480]mmco: unref short failure
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
Opening video filter: [scale]
[swscaler @ 0xb07da0]using unscaled yuv420p -> yuv420p special converter
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Slow SlowCTZ
x264 [info]: profile High, level 4.1
Pos:   0.0s      2f ( 0%)  0.00fps Trem:   0min   0mb  A-V:-0.002 [0:0]

1 duplicate frame(s)!
VIDEO CODEC ID: 28
AUDIO CODEC ID: 15003, TAG: 0
Writing header...
[matroska @ 0x9e5da0]Codec for stream 0 does not use global headers but 
container format requires global headers
[matroska @ 0x9e5da0]Codec for stream 1 does not use global headers but 
container format requires global headers
Pos:   0.0s      3f ( 0%)  0.00fps Trem:   0min   0mb  A-V:-0.004 [0:0]

1 duplicate frame(s)!
Pos:   0.0s      4f ( 0%)  0.00fps Trem:   0min   0mb  A-V:-0.006 [0:0]

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

1 duplicate frame(s)!
Pos:   0.1s      6f ( 0%)  0.00fps Trem:   0min   0mb  A-V:-0.010 [0:0]
[h264 @ 0xa5a480]mmco: unref short failure

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

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

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

1 duplicate frame(s)!
Pos:   0.2s     10f ( 0%)  0.00fps Trem:   0min   0mb  A-V:-0.018 [0:0]

1 duplicate frame(s)!
Pos:   0.2s     11f ( 0%)  0.00fps Trem:   0min   0mb  A-V:-0.016 [0:0]

1 duplicate frame(s)!
Pos:   0.2s     12f ( 0%)  0.00fps Trem:   0min   0mb  A-V:-0.014 [0:0]

1 duplicate frame(s)!
Pos:   0.2s     13f ( 0%)  0.00fps Trem:   0min   0mb  A-V:-0.012 [0:0]

1 duplicate frame(s)!
Pos:   0.2s     14f ( 0%)  0.00fps Trem:   0min   0mb  A-V:-0.010 [0:0]

1 duplicate frame(s)!
Pos:   0.3s     15f ( 0%)  0.00fps Trem:   0min   0mb  A-V:-0.008 [0:0]

1 duplicate frame(s)!
Pos:   0.3s     16f ( 0%)  0.00fps Trem:   0min   0mb  A-V:-0.006 [0:0]

1 duplicate frame(s)!
Pos:   0.3s     17f ( 0%)  0.00fps Trem:   0min   0mb  A-V:-0.008 [0:0]

1 duplicate frame(s)!
Pos:   0.4s     19f ( 0%)  0.00fps Trem:   0min   0mb  A-V:-0.004 [0:0]
[h264 @ 0xa5a480]number of reference frames exceeds max (probably corrupt 
input), discarding one

1 duplicate frame(s)!
Pos:   0.4s     20f ( 0%)  0.00fps Trem:   0min   0mb  A-V:-0.002 [0:0]

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

1 duplicate frame(s)!
Pos:   0.4s     22f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.002 [0:0]

1 duplicate frame(s)!
Pos:   0.4s     23f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.004 [0:0]

1 duplicate frame(s)!
Pos:   0.4s     24f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.006 [0:0]

1 duplicate frame(s)!
Pos:   0.5s     25f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.008 [0:0]

1 duplicate frame(s)!
Pos:   0.5s     26f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.010 [0:0]

1 duplicate frame(s)!
Pos:   0.5s     28f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.014 [0:448]

1 duplicate frame(s)!
Pos:   0.5s     29f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.016 [0:448]

1 duplicate frame(s)!
Pos:   0.7s     38f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.014 [0:448]

1 duplicate frame(s)!
Pos:   1.0s     52f ( 0%) 42.69fps Trem:   0min   0mb  A-V:0.042 [0:448]

Skipping frame!
Pos:   1.2s     62f ( 0%) 40.00fps Trem:   0min   0mb  A-V:0.042 [0:448]

Skipping frame!
Pos:   1.4s     72f ( 0%) 38.22fps Trem:   0min   0mb  A-V:0.042 [0:448]

Skipping frame!
Pos:   1.6s     82f ( 0%) 35.13fps Trem:   0min   0mb  A-V:0.042 [101:448]

Skipping frame!
Pos:   1.7s     92f ( 0%) 32.66fps Trem:  44min  90mb  A-V:0.042 [239:447]


....

Too many video packets in the buffer: (1168 in 33581959 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

Skipping frame!
Pos:  12.4s    682f ( 0%) 15.89fps Trem: 101min 1168mb  A-V:0.042 [5113:448]

Skipping frame!
Pos:  12.5s    692f ( 0%) 15.96fps Trem: 102min 1182mb  A-V:0.042 [5107:448]

and so on ....


More information about the MEncoder-users mailing list