Log in

View Full Version : v_mpeg4/iso/avc to avi?


wierdlingz
21st February 2006, 13:08
I've got a h264 in an mkv container and I tried to convert it to avi (XviD) for editing using mkvextract-avc2avi. Problem is, it seems to be desync from the audio and subtitles (audio and subtitles are in sync). There has been no change of the framerate from mkv to avi (i.e. 23.976fps). Any ways to correct this problem?

celtic_druid
21st February 2006, 13:14
No change of the framerate?
So the mkv wasn't VFR then? Because that would have been my guess.

mkvextract/avc2avi will give you an AVC avi, not an XviD one.

wierdlingz
22nd February 2006, 08:41
I don't think its VFR since its able to constantly give 23.976 fps.
What I did was use mkvextract, rename the track1.avi to track1.264 to convert it to a raw .avi before processing it through VirtualDub via the Twopass method together with the subtitles via VSFilter.dll and the audio which was originally mp3 at CBR of 128kbps. The the same parameters were used for the audio. Final product ended up as a in sync audio and subtitle but desync video.

celtic_druid
22nd February 2006, 10:46
since its able to constantly give 23.976 fps.
I don't understand what that is meant to mean. I could have a 25fps source and it will be able to constantly give 23.976fps. Just that the audio won't match because the video is not constantly 23.976fps.

I really don't understand the need for the extra steps of demuxing and remuxing to avi only to then reconvert. Why not just convert directly the mkv?

Daodan
22nd February 2006, 12:53
My bet is that it actually is vfr. I don't see any other reson for this. Try using mkv2vfr and see if you can extract some timecodes from it, to be sure it's not vfr.

wierdlingz
23rd February 2006, 11:01
How do I convert it directly from mkv to xvid?
By the way, would the steps be the same if it is VFR?

Daodan
23rd February 2006, 11:16
Basically something like this in avs

DirectShowSource("somethingVFR.mkv", fps=119.88, convertfps=true, audio=false)
ChangeFPS(23.976)

Of course, expect some jittering since you throw out good frames.
And what do you mean, 'directly' from mkv to xvid?

wierdlingz
23rd February 2006, 14:02
Basically something like this in avs

DirectShowSource("somethingVFR.mkv", fps=119.88, convertfps=true, audio=false)
ChangeFPS(23.976)

Of course, expect some jittering since you throw out good frames.
And what do you mean, 'directly' from mkv to xvid?

As in converting the avc stream inside the mkv container into xvid (avi container).

celtic_druid
23rd February 2006, 14:28
Open avs in VDub and encode.