Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#758 closed defect (fixed)

duplicate frame around 4000 sec when replacing audio in avi

Reported by: r_rt.bug@… Owned by: reimar
Priority: normal Component: core
Version: HEAD Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

Hello,

When I try to replace audio in an avi file with :
mencoder -v -oac copy -ovc copy src.avi -audiofile cut1.mp3 -o res.avi

then I have duplicates frames when the position is around 4000 sec.

Here is the output :
MEncoder dev-SVN-r22249-3.4.6 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3000+ (Family: 15, Model: 47, Stepping: 0)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

98 audio & 216 video codecs
Configuration: --prefix=/usr --confdir=/etc/mplayer --enable-gui --enable-xmms --codecsdir=/usr/lib/codecs --win32codecsdir=/usr/lib/codecs --realcodecsdir=/opt/RealPlayer/codecs --enable-largefiles --enable-radio --enable-radio-capture
init_freetype
get_path('font/font.desc') -> '/home/regis/.mplayer/font/font.desc'
font: can't open file: /home/regis/.mplayer/font/font.desc
Bitmap font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay?
[file] File size is 2103080086 bytes
STREAM: [file] src.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
success: format: 0 data: 0x0 - 0x7d5a7496
[file] File size is 390064588 bytes
STREAM: [file] cut1.mp3
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
AVI file format detected.
list_end=0x1DE
======= AVI Header =======
us/frame: 40000 (fps=25.000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (2320) HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE
frames total: 106676 initial: 0
streams: 2
Suggested BufferSize?: 0
Size: 720 x 480
==========================
list_end=0x114
==> Found video stream: 0

STREAM Header =====

Type: vids FCC: DX50 (30355844)
Flags: 0
Priority: 0 Language: 0
InitialFrames?: 0
Rate: 25/1 = 25.000
Start: 0 Len: 209176
Suggested BufferSize?: 91458
Quality 0
Sample size: 0
==========================
Found 'bih', 40 bytes of 40
======= VIDEO Format ======

biSize 40
biWidth 720
biHeight 480
biPlanes 1
biBitCount 24
biCompression 808802372='DX50'
biSizeImage 1036800

===========================
Regenerating keyframe table for MPEG-4 video.

AVI Super Index Header ==

FCC (indx) dwSize (56) wLongsPerEntry(4)
bIndexSubType (0) bIndexType (0)
nEntriesInUse (2) dwChunkId (00dc)
dwReserved[0] (0) dwReserved[1] (0) dwReserved[2] (0)

===========================
ODML (00dc): [0] 0x000000007d3ee05e 0xd05e0 106680
ODML (00dc): [1] 0x000000007d4be63e 0xc8320 102496
list_end=0x1C6
==> Found audio stream: 1

STREAM Header =====

Type: auds FCC: U (55)
Flags: 0
Priority: 0 Language: 0
InitialFrames?: 0
Rate: 40000/1 = 40000.000
Start: 0 Len: 334680013
Suggested BufferSize?: 20000
Quality 0
Sample size: 1
==========================
Found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 40000
Block align: 1
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=960
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
==========================================================================

AVI Super Index Header ==

FCC (indx) dwSize (56) wLongsPerEntry(4)
bIndexSubType (0) bIndexType (0)
nEntriesInUse (2) dwChunkId (01wb)
dwReserved[0] (0) dwReserved[1] (0) dwReserved[2] (0)

===========================
ODML (01wb): [0] 0x000000007d58695e 0x10ae0 170720000
ODML (01wb): [1] 0x000000007d59743e 0x10058 163960013
list_end=0x1DE
AVI: dmlh found (size=4) (total_frames=106676)
list_end=0x20A
hdr=Software size=23
Software : MEncoder 1.0pre7-3.3.4
list_end=0x3FE3D3A8
Found movie at 0x100C - 0x3FE3D3A8
Reading INDEX block, 115212 chunks for 106676 frames (fpos=1071895472).
Additional RIFF header...
list_end=0x7D5A7496
Found movie at 0x100C - 0x7D5A7496
AVI: ODML: Building ODML index (2 superindexchunks).

AVI Standard Index Header ==

FCC (ix00) dwSize (853464) wLongsPerEntry(2)
bIndexSubType (0) bIndexType (1)
nEntriesInUse (106680) dwChunkId (00dc)
qwBaseOffset (0x5E3C) dwReserved3 (0)

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

AVI Standard Index Header ==

FCC (ix00) dwSize (819992) wLongsPerEntry(2)
bIndexSubType (0) bIndexType (1)
nEntriesInUse (102496) dwChunkId (00dc)
qwBaseOffset (0x400063B4) dwReserved3 (0)

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

AVI Standard Index Header ==

FCC (ix01) dwSize (68312) wLongsPerEntry(2)
bIndexSubType (0) bIndexType (1)
nEntriesInUse (8536) dwChunkId (01wb)
qwBaseOffset (0x1014) dwReserved3 (0)

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

AVI Standard Index Header ==

FCC (ix01) dwSize (65616) wLongsPerEntry(2)
bIndexSubType (0) bIndexType (1)
nEntriesInUse (8199) dwChunkId (01wb)
qwBaseOffset (0x40013E7E) dwReserved3 (0)

===========================
AVI index offset: 0x0 (movi=0x100C idx0=0x100C idx1=0x5E34)
Auto-selected AVI video ID = 0
AVI video size=1762833494 (209176) audio size=0 (0)
VIDEO: [DX50] 720x480 24bpp 25.000 fps 1685.5 kbps (205.7 kbyte/s)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo?
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename cut1.mp3 ext: .mp3
Trying demuxer 17 based on filename extension
==> Found audio stream: 0
demux_audio: seeking from 0x173FE94F to start pos 0x0
demux_audio: audio data 0x0 - 0x173FE9CC
Audio file file format detected.
[V] filefmt:65536 fourcc:0x30355844 size:720x480 fps:25.00 ftime:=0.0400
[file] File size is 1609797282 bytes
STREAM: [file] res.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
videocodec: framecopy (720x480 24bpp fourcc=30355844)
Building audio filter chain for 44100Hz/0ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 44100Hz/0ch/s16le
[libaf] Adding filter format
[format] Changing sample format from little-endian 16-bit signed int to big-endian 8-bit signed int
[dummy] Was reinitialized: 44100Hz/0ch/s16le
[format] Changing sample format from little-endian 16-bit signed int to big-endian 8-bit signed int
audiocodec: framecopy (format=55 chans=2 rate=44100 bits=16 B/s=40000 sample-0)
Muxer frame buffer sending 21 frame(s) to the muxer.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Pos:1770.4s 44259f (21%) 792fps Trem: 3min 2172mb A-V:0.080 [1837:320] A/Vms 0/0 D/B/S 0/0/0
Skipping frame!
Pos:3519.7s 87994f (42%) 886fps Trem: 2min 1996mb A-V:0.080 [1673:319] A/Vms 0/0 D/B/S 0/0/1
Skipping frame!
Pos:4110.1s 102755f (49%) 880fps Trem: 2min 2017mb A-V:-0.080 [1693:320] A/Vms 0/0 D/B/S 0/0/2
1 duplicate frame(s)!
Pos:4114.4s 102861f (49%) 880fps Trem: 2min 2019mb A-V:-0.080 [1693:319] A/Vms 0/0 D/B/S 1/0/2
1 duplicate frame(s)!
Pos:4118.7s 102967f (49%) 880fps Trem: 2min 2021mb A-V:-0.080 [1692:320] A/Vms 0/0 D/B/S 2/0/2
1 duplicate frame(s)!
Pos:4123.0s 103074f (49%) 880fps Trem: 2min 2023mb A-V:-0.080 [1692:320] A/Vms 0/0 D/B/S 3/0/2
1 duplicate frame(s)!
Pos:4127.3s 103180f (49%) 880fps Trem: 2min 2024mb A-V:-0.080 [1691:320] A/Vms 0/0 D/B/S 4/0/2
1 duplicate frame(s)!

and so on.

Change History (5)

comment:1 Changed 13 years ago by compn

just a message?
it does not say 'skipping frame'...

use -really-quiet if you want ;p

comment:2 Changed 13 years ago by r_rt.bug@…

Well, i forgot to say it, the sound is going out of sync beginning à 4110 sec.

comment:3 Changed 13 years ago by compn

try -mc 0 and/or -noskip
or -mc 10

not sure which is best, there is -vf harddup but i dont think it works
with ovc copy.

comment:4 Changed 12 years ago by r_rt.bug@…

  • Resolution set to fixed
  • Status changed from new to closed

I don't reproduce the problem with rc2.

Change the resolution to FIXED.

comment:5 Changed 12 years ago by r_rt.bug@…

Mark as CLOSED

Note: See TracTickets for help on using tickets.