Slight audio delay? x264 encode problem

Locked
User avatar
EvaFan
Joined: Sun Mar 21, 2004 10:25 pm
Status: (*゚▽゚)o旦~ ー乾杯ー♪
Location: Somerset, KY
Org Profile

Slight audio delay? x264 encode problem

Post by EvaFan » Sun Feb 15, 2009 1:42 pm

First... Export an Xvid or an uncompressed copy of an amv your working on. Next encode a x264 copy.

OK... Play them both one after the other.

Am I crazy or is the x264 audio VERY SLIGHTLY off sync (delayed by maybe milliseconds)... The xvid copy and uncompressed copy are synced beautifully compared to the x264. It's been this way since I started using it but my most recent work seems most noticeable cause of a majority of external sync.

I tested this with Zarxgui, ASXgui, and megui... They all had the same very slight delay.

Surely I'm not the only one who's experiencing this? It was hard to spot at first but after watching both one after the other it became obvious.

On every GUI I used i made sure the delay was 0.
"The people cannot be [...] always, well informed. The part which is wrong will be discontented, in proportion to [...] the facts they misconceive. If they remain quiet under such misconceptions, it is lethargy, the forerunner of death to public liberty. What country can preserve its liberties, if it's rulers are not warned [...] that this people preserve the spirit of resistance? The tree of liberty must be refreshed from time to time, with the blood of patriots and tyrants."-Thomas Jefferson

User avatar
Bauzi
Joined: Fri May 21, 2004 12:48 pm
Status: Under High Voltage
Location: Austria (uhm the other country without kangaroos^^)
Contact:
Org Profile

Re: Slight audio delay? x264 encode problem

Post by Bauzi » Sun Feb 15, 2009 2:04 pm

I know that I wasn´t able to encode in 23.976 with x264.exe and scripts. It got rounded up to 23.98. Well that was like 3 years ago and should cause a big delay after some time.
You can find me on YT under "Bauzi514". Subscribe to never miss my AMV releases. :amv:

User avatar
EvaFan
Joined: Sun Mar 21, 2004 10:25 pm
Status: (*゚▽゚)o旦~ ー乾杯ー♪
Location: Somerset, KY
Org Profile

Re: Slight audio delay? x264 encode problem

Post by EvaFan » Sun Feb 15, 2009 2:16 pm

Eh, im encodin at NTSC. 29.97

TBH I don't know anymore. It seems like the beats are very slightly off. I can't tell if it's the audio or the video causing the problem.

There is definitely a sync difference between an xvid encode and an x264 encode, though it is very slight.

I might not be an audio delay. Could have something to do with the video encoding. I doubt the encoder is messing up the audio.
"The people cannot be [...] always, well informed. The part which is wrong will be discontented, in proportion to [...] the facts they misconceive. If they remain quiet under such misconceptions, it is lethargy, the forerunner of death to public liberty. What country can preserve its liberties, if it's rulers are not warned [...] that this people preserve the spirit of resistance? The tree of liberty must be refreshed from time to time, with the blood of patriots and tyrants."-Thomas Jefferson

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Re: Slight audio delay? x264 encode problem

Post by Qyot27 » Sun Feb 15, 2009 6:05 pm

The only time I tend to 'notice' something like that is when the XviD file has B-frames in AVI and the H.264 is as usual in its proper containers, in which case I would err on the side of the H.264 being right, and the XviD being slightly wrong. If you put the XviD stream in MP4, does it still look like everyone's in sync?

But what sort of audio are you using for the H.264? MP3 (CBR, ABR, VBR?), or AAC?

Which type are you using for the XviD? Uncompressed PCM, or MP3 (again, CBR, ABR, VBR)?
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog

User avatar
Zarxrax
Joined: Sun Apr 01, 2001 6:37 pm
Contact:
Org Profile

Re: Slight audio delay? x264 encode problem

Post by Zarxrax » Sun Feb 15, 2009 6:07 pm

I think the problem lies with the audio decoder.
Test with mp3 audio instead of aac.

User avatar
EvaFan
Joined: Sun Mar 21, 2004 10:25 pm
Status: (*゚▽゚)o旦~ ー乾杯ー♪
Location: Somerset, KY
Org Profile

Re: Slight audio delay? x264 encode problem

Post by EvaFan » Mon Feb 16, 2009 1:54 pm

Zarxrax wrote:I think the problem lies with the audio decoder.
Test with mp3 audio instead of aac.
This problem makes the most sense but i use players with built in decoders: VLCplayer and SMplayer
Both have the problem. They must both be using the same decoder.

I'll have to mux the mp3 onto an x264 with mkv or something cause I don't recall any of the encoders have an option for mp3 audio.
"The people cannot be [...] always, well informed. The part which is wrong will be discontented, in proportion to [...] the facts they misconceive. If they remain quiet under such misconceptions, it is lethargy, the forerunner of death to public liberty. What country can preserve its liberties, if it's rulers are not warned [...] that this people preserve the spirit of resistance? The tree of liberty must be refreshed from time to time, with the blood of patriots and tyrants."-Thomas Jefferson

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Re: Slight audio delay? x264 encode problem

Post by Qyot27 » Mon Feb 16, 2009 11:44 pm

Eva-Fan wrote:This problem makes the most sense but i use players with built in decoders: VLCplayer and SMplayer
Both have the problem. They must both be using the same decoder.
They do...libavcodec. ffdshow also uses libavcodec (although it can also use libmad or mp3lib instead).

I'll have to mux the mp3 onto an x264 with mkv or something cause I don't recall any of the encoders have an option for mp3 audio.
Well, I generally distrust apps encoding/muxing in audio when encoding video (save for TMPGEnc), so it could actually be the point at which the muxing occurs, the audio settings, or some esoteric mixture of factors therein.

And if you're encoding from Wave, you could try AAC to see if you still notice the problem with it.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog

Locked

Return to “Video & Audio Help”