Post Reply 
Weird video desynch problem when converting video
Author Message
ZiNgA BuRgA
Smart Alternative

Posts: 17,022.2988
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1274
Offline
Post: #1
Weird video desynch problem when converting video
Probably not too much hope, but since there's a few knowledgable people here on the subject...

Well, basically, I'm encoding some video to put on the PSP.  However, I'm getting some weird video/audio desynch.

Details of the source video:
- AVI container
- WMV3 video stream (23.976fps)
- MP3 audio stream (VBR)

Basically, after conversion and muxing, the audio and video, at first, are fine, but slowly desynch as you go into the video.

The typical cause for the above is bad framerate, however, this is not the case here (and since AVI doesn't support VFR last time I checked...), interestingly enough.


Okay, firstly, the source video plays back fine.  The audio is converted fine (demuxed audio, converted, then muxed with original video stream, and it's fine), so the issue is the video conversion.
I put the video through an AVS script, which is basically a DirectShowSource, and pass it onto x264.  Playing the AVS file works fine, which suggests the problem lies in x264.  However, I've converted tonnes of videos (primarily H.264/XviD/DivX) fine with x264 - it just seems to be these WMV3 streams causing issues, although x264 should never know? (since it's passed via AVS).  (after converting the video and audio streams, I mux it into the PMP container, but that's not the issue, cause it does the exact same thing when muxed into an MP4 container)
Some things I've tried:
- I tried AVISource instead, but the synch was worse?
- Added AssumeFPS(23.976) / ChangeFPS(23.976) / ConvertFPS(23.976) to the AVS file, all to no avail

The resulting frame counts are fine, so the only thing I can think of is some bad frames tripping something up somewhere.  So I did a scan for bad frames, of the AVI in VirtualDubMod, but it found none.

Odd.

I'm converting the video with VirtualDubMod, then converting with x264 - this works fine, though two conversions isn't the most convenient, and I'm somewhat stumped as to why I'm getting these dodgey results.


Anyways, thanks if anyone has any suggestions.
22/06/2008 03:54 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Weird video desynch problem when converting video - ZiNgA BuRgA - 22/06/2008 03:54 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: