PDA

View Full Version : Audio out of sync (interleaving?)


flapane
26th February 2009, 23:56
I have just encoded a personal video, here are the stats:
Format : AVI
Format/Info : Audio Video Interleave
File size : 71.3 MiB
Duration : 6mn 1s
Overall bit rate : 1 655 Kbps

Video
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames : 7 frames
Codec ID : H264
Duration : 5mn 42s
Bit rate : 1 600 Kbps
Width : 640 pixels
Height : 480 pixels
Display aspect ratio : 4/3
Frame rate : 30.000 fps
Scan type : Progressive
Bits/(Pixel*Frame) : 0.174
Stream size : 65.4 MiB (92%)

Audio
Format : PCM
Format settings, Endianness : Little
Format settings, Sign : Unsigned
Codec ID : 1
Codec ID/Hint : Microsoft
Duration : 6mn 1s
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 1 channel
Sampling rate : 16.0 KHz
Resolution : 8 bits
Stream size : 5.52 MiB (8%)
Interleave, duration : 51 ms (1.52 video frames)



If I try to open it in mpc I get:
the video was not prepared for sequential reading audio out of sync blah blah blah.... and the audio if out of sync.
I already tried saving it in virtual dub enabling direct stream copying and interleaving, nothing changes.
Of course the original video is synced.
I don't know why there is such a difference in video and audio duration (6m1s vs 5m42s so we are not speaking of 200ms lag).
I have heard that this kind of problem is not very related to video codec, I posted here because of h264, if this is a wrong section please move the thread.

neuron2
27th February 2009, 00:43
What is the source material and what are all the steps you went through to make this AVI?

flapane
27th February 2009, 12:04
Avidemux-->a couple of these files opened togheter in the same project:
General
Format : AVI
Format/Info : Audio Video Interleave
File size : 109 MiB
Duration : 1mn 38s
Overall bit rate : 9 347 Kbps

Video
Format : M-JPEG
Codec ID : MJPG
Duration : 1mn 38s
Bit rate : 9 212 Kbps
Width : 640 pixels
Height : 480 pixels
Display aspect ratio : 4/3
Frame rate : 30.000 fps
Resolution : 24 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 1.000
Stream size : 108 MiB (99%)
Title : FUJIFILM AVI STREAM 0100

Audio
Format : PCM
Format settings, Endianness : Little
Format settings, Sign : Unsigned
Codec ID : 1
Codec ID/Hint : Microsoft
Duration : 1mn 38s
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 1 channel
Sampling rate : 16.0 KHz
Resolution : 8 bits
Stream size : 1.50 MiB (1%)
Interleave, duration : 1000 ms (30.00 video frames)
Interleave, preload duration : 1000 ms


And then I cutted some parts I didn't like.
Then I did a 2nd pass using whatever codec, as the result is unfortunately always the same. It never happend before, so I am afraid that it is due to cut&paste operations on the two videos.

flapane
27th February 2009, 14:57
***************
If you don't answer the asked questions you will not get help for your problem.
***************

That's all I know, feel free to ask a mod to close the thread, as I can't do much.

poisondeathray
27th February 2009, 17:25
The source clips look like they were from a camera?

It is likely your sync issues were caused from the editing of segments. Did you cut on keyframes?

flapane
28th February 2009, 12:26
Hi,
yes, a fuji s6500.
Yeah I agree with you, now I splitted the movie in various segments, encoded them, and then muxed all of them in one .avi and it works.
Please can you explain me how to cut on keyframes on avidemux, in order to avoid future issues?

Inspector.Gadget
1st March 2009, 02:54
Hi,
yes, a fuji s6500.
Yeah I agree with you, now I splitted the movie in various segments, encoded them, and then muxed all of them in one .avi and it works.
Please can you explain me how to cut on keyframes on avidemux, in order to avoid future issues?
http://img407.imageshack.us/img407/6104/avidemuxcutting.th.png (http://img407.imageshack.us/my.php?image=avidemuxcutting.png)

Look here :cool: (click)

flapane
1st March 2009, 12:35
Aaaah, great, thank you :)