[MEncoder-users] Problem with ac3 encoding: 1 duplicate frame(s)!
Bernd Butscheidt
bbutscheidt at yahoo.de
Mon Mar 28 15:45:21 CEST 2011
From: Bernd Butscheidt <bbutscheidt at yahoo.de>
To: MEncoder usage discussions <mencoder-users at mplayerhq.hu>
sent: Sunday 27th. March 2011, 14:29:58 h
subject: Re: [MEncoder-users] Problem with ac3 encoding: 1 duplicate frame(s)!
>I'm sorry to say that I cannot find a difference up to now. The audio is way too
>
>fast!!.
After recompiling this and that and playing around, I can at least say that the
same source file seems to encode well not telling mencoder that it is 6-channel
input, e.g. setting "-channels 2".
The duplicate frame messages stop at 14.9 seconds and the reencode seems to
continue as usual. The sound plays correctly. Output below.
================================================
mencoder -demuxer lavf -speed 24000/25000 -ofps 24 -ovc x264 -vf
pp=fd,framestep=2,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 2 -srate 48000 -oac lavc -af lavcresample=48000 -lavcopts
acodec=ac3_fixed:abitrate=448:acodec=ac3_fixed:abitrate=448 Tatort_HH.ts -of
lavf -lavfopts format=matroska -o Tatort_HH€reenc.mkv
MEncoder 33132-4.5.2 (C) 2000-2011 MPlayer Team
success: format: 0 data: 0x0 - 0xfd9e08c8
libavformat file format detected.
[h264 @ 0x29313a0] mmco: unref short failure
[h264 @ 0x29313a0] 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, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
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 filter: [framestep=2]
Opening video filter: [pp=fd]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
[ac3_fixed @ 0xa5b780]No channel layout specified. The encoder will guess the
layout, but it might be incorrect.
Unsupported PixelFormat 61
Unsupported PixelFormat 53
[h264 @ 0xa5b780]mmco: unref short failure
[PP] Using external postprocessing filter, max q = 6.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
Opening video filter: [scale]
[swscaler @ 0xb0a780]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 1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Skipping frame!
Pos: 0.0s 5f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.008 [0:0]
1 duplicate frame(s)!
VIDEO CODEC ID: 28
AUDIO CODEC ID: 15003, TAG: 0
Writing header...
[matroska @ 0x9e70a0]Codec for stream 0 does not use global headers but
container format requires global headers
[matroska @ 0x9e70a0]Codec for stream 1 does not use global headers but
container format requires global headers
Pos: 0.0s 6f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.010 [0:0]
[h264 @ 0xa5b780]mmco: unref short failure
Pos: 0.1s 7f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.012 [0:0]
1 duplicate frame(s)!
Pos: 0.1s 9f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.015 [0:0]
1 duplicate frame(s)!
Pos: 0.2s 11f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.019 [0:0]
1 duplicate frame(s)!
Pos: 0.2s 13f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.023 [0:0]
1 duplicate frame(s)!
Pos: 0.2s 15f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.027 [0:0]
1 duplicate frame(s)!
Pos: 0.3s 17f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.031 [0:0]
1 duplicate frame(s)!
Pos: 0.3s 19f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.035 [0:0]
[h264 @ 0xa5b780]number of reference frames exceeds max (probably corrupt
input), discarding one
1 duplicate frame(s)!
Pos: 0.4s 21f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.038 [0:0]
1 duplicate frame(s)!
Pos: 0.4s 23f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.042 [0:0]
1 duplicate frame(s)!
Pos: 0.5s 25f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.046 [0:0]
1 duplicate frame(s)!
Pos: 0.5s 27f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.050 [0:448]
1 duplicate frame(s)!
Pos: 0.5s 29f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.054 [0:448]
1 duplicate frame(s)!
Pos: 0.7s 37f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.069 [0:448]
1 duplicate frame(s)!
Pos: 0.9s 45f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.084 [0:448]
1 duplicate frame(s)!
Pos: 1.4s 67f ( 0%) 46.82fps Trem: 0min 0mb A-V:-0.085 [0:448]
1 duplicate frame(s)!
Pos: 1.9s 88f ( 0%) 43.41fps Trem: 0min 0mb A-V:-0.084 [0:448]
1 duplicate frame(s)!
Pos: 2.4s 110f ( 0%) 40.74fps Trem: 0min 0mb A-V:-0.084 [0:448]
1 duplicate frame(s)!
Pos: 2.9s 132f ( 0%) 33.99fps Trem: 0min 0mb A-V:-0.085 [130:448]
1 duplicate frame(s)!
Pos: 3.4s 153f ( 0%) 26.33fps Trem: 0min 0mb A-V:-0.084 [597:448]
1 duplicate frame(s)!
Pos: 3.9s 175f ( 0%) 24.29fps Trem: 0min 0mb A-V:-0.084 [887:447]
1 duplicate frame(s)!
Pos: 4.4s 197f ( 0%) 23.54fps Trem: 0min 0mb A-V:-0.085 [1089:448]
1 duplicate frame(s)!
Pos: 4.9s 219f ( 0%) 21.95fps Trem: 0min 0mb A-V:-0.085 [1180:448]
1 duplicate frame(s)!
Pos: 5.3s 240f ( 0%) 20.56fps Trem: 0min 0mb A-V:-0.084 [1362:448]
1 duplicate frame(s)!
Pos: 5.8s 262f ( 0%) 19.74fps Trem: 220min 1324mb A-V:-0.084 [1646:448]
1 duplicate frame(s)!
Pos: 6.3s 284f ( 0%) 19.16fps Trem: 227min 1456mb A-V:-0.085 [1784:448]
1 duplicate frame(s)!
Pos: 6.8s 305f ( 0%) 18.73fps Trem: 232min 1516mb A-V:-0.084 [1873:448]
1 duplicate frame(s)!
Pos: 7.3s 327f ( 0%) 18.30fps Trem: 238min 1564mb A-V:-0.084 [1919:448]
1 duplicate frame(s)!
Pos: 7.8s 349f ( 0%) 18.18fps Trem: 239min 1571mb A-V:-0.085 [1925:448]
1 duplicate frame(s)!
Pos: 8.3s 370f ( 0%) 17.67fps Trem: 247min 1707mb A-V:-0.083 [2095:447]
1 duplicate frame(s)!
Pos: 8.8s 392f ( 0%) 17.04fps Trem: 256min 1841mb A-V:-0.084 [2280:448]
1 duplicate frame(s)!
Pos: 9.3s 414f ( 0%) 16.87fps Trem: 258min 1921mb A-V:-0.085 [2405:448]
1 duplicate frame(s)!
Pos: 9.8s 436f ( 0%) 16.54fps Trem: 263min 2011mb A-V:-0.085 [2505:448]
1 duplicate frame(s)!
Pos: 10.3s 457f ( 0%) 16.30fps Trem: 268min 2084mb A-V:-0.084 [2597:448]
1 duplicate frame(s)!
Pos: 10.8s 479f ( 0%) 16.13fps Trem: 269min 2129mb A-V:-0.084 [2673:448]
1 duplicate frame(s)!
Pos: 11.3s 501f ( 0%) 15.92fps Trem: 271min 2157mb A-V:-0.085 [2725:448]
1 duplicate frame(s)!
Pos: 11.8s 522f ( 0%) 15.78fps Trem: 272min 2182mb A-V:-0.084 [2774:448]
1 duplicate frame(s)!
Pos: 12.2s 544f ( 0%) 15.54fps Trem: 276min 2224mb A-V:-0.084 [2835:448]
1 duplicate frame(s)!
Pos: 12.8s 566f ( 0%) 15.50fps Trem: 275min 2237mb A-V:-0.085 [2865:448]
1 duplicate frame(s)!
Pos: 13.2s 587f ( 0%) 15.33fps Trem: 278min 2260mb A-V:-0.083 [2908:448]
1 duplicate frame(s)!
Pos: 13.8s 609f ( 0%) 15.39fps Trem: 276min 2255mb A-V:-0.084 [2899:448]
1 duplicate frame(s)!
Pos: 14.2s 631f ( 0%) 15.18fps Trem: 280min 2352mb A-V:-0.085 [3022:448]
1 duplicate frame(s)!
Pos: 14.9s 659f ( 0%) 15.02fps Trem: 282min 2385mb A-V:-0.084 [3095:448]
1 duplicate frame(s)!
Pos: 56.2s 2643f ( 1%) 10.21fps Trem: 422min 4964mb A-V:-0.066 [7044:448]
... and so on without(!!!!) "1 duplicate frame(s)!"
More information about the MEncoder-users
mailing list