AnimeSuki Forums

Register Forum Rules FAQ Community Today's Posts Search

Go Back   AnimeSuki Forum > Support > Tech Support

Notices

Reply
 
Thread Tools
Old 2007-06-25, 00:32   Link #1
adrianmak
Member
 
Join Date: Nov 2006
conversion of mkv h264 aac vfr to xvid avi

i read thru this post
http://forums.animesuki.com/showthread.php?t=34738

but I still can't figure out to encode in xvid avi

My story is, Ive a 1280x720 x264 aac mkv video. In the past, I
wrote an avs script like the following
Code:

loadplugin("C:\Program Files\GordianKnot\AviSynthPlugins\VSFilter.dll")
)
DirectShowSource("video.mkv",audio=false).lanczosr esize(704,396)
return rextsub("subtitle.ass")

and passed it to VDM for xvid avi encoding and then mux with audio track. I found that the audio and video is out of sync staring in the middle of the video. I tried encoding on other PC and got the same results.

After digging the Internet and found it maybe the problem of mkv vfr. Then I used mkv2fr to get the timecode file. Here it is
# timecode format v1
Assume 23.976
0,24063,23.9760
24064,24168,16.1365
24169,35433,23.9764
As you see that it is a mkv vfr. ( 16.xxx fps, what a strange fps rate)

This is the first time I come across mkv vfr. How to encode it to xvid avi video ?
adrianmak is offline   Reply With Quote
Old 2007-06-25, 00:54   Link #2
Harukalover
In exile
 
 
Join Date: May 2006
Location: There! Not there! There!
Age: 36
Stop using VirtualDubMod. It's ancient and you should always use VirtualDub instead.

Script to use on the original mkv (not the avi you got from mkv2vfr)
Code:
LoadPlugin("C:\Program Files\GordianKnot\AviSynthPlugins\VSFilter.dll") 
DirectShowSource("C:\video.mkv" audio=false, fps=23.976, convertfps=true) 
LanczosResize(704,396) # resize to inefficient non-mod16 resolution 
TextSub("C:\subtitle.ass")
Load in VirtualDub and encode. Then do your muxing of audio in Avimuxgui or whatever you want to use besides VDM please.
__________________
"Brainpower without willpower is no power."
Harukalover is offline   Reply With Quote
Old 2007-06-25, 01:15   Link #3
adrianmak
Member
 
Join Date: Nov 2006
I used your avs script and virtualdub to encode to xvid avi again.

How about the audio ?? Just extract the aac from mkv and convert to mp3 and the mux with the avi encoded previously ?

I'm worried about the mux of video and audio is result out A/V is out of sync.

Let's show you something. Under the same scene but the time is different
Original mkv file


xvid avi file


If just simply mux the audio and video (without special handling), I guess the final avi should be A/V out of sync

Last edited by adrianmak; 2007-06-25 at 02:20.
adrianmak is offline   Reply With Quote
Old 2007-06-25, 05:33   Link #4
adrianmak
Member
 
Join Date: Nov 2006
Pls discard my last reply.

Problem solved. My typo mistake in avs script.
adrianmak is offline   Reply With Quote
Old 2007-06-25, 05:44   Link #5
Tiamat's Disciple
Disciple of the Flames
 
 
Join Date: Sep 2004
To be honest i got frustrated using trying to encode mkv to avi. I'm not a tech wizz so i had difficulty following supposed walk throughs. In the end i bought WinAVI. It converts the mkv to avi and all i have to do is press 2 buttons.

For the few shows i had with external subs, after i converted them i used AVIMux, and all was solved, with no pulling out of the hair
Tiamat's Disciple is offline   Reply With Quote
Old 2007-06-25, 06:45   Link #6
dj_tjerk
Ana-chan~
 
 
Join Date: May 2006
Location: Netherlands
Next time, give that money to me, and I'll tell you how to do it >_>
dj_tjerk is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:55.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
We use Silk.