I'm using xvid4psp to convert a group of mkv's into mp4's.
I think the problem has to do with xvid4psp automatically changing the framerate from source 29.9 to 23.9.
I've found a long way to remedy the problem by editing the avisynth script but its a hastle.
This is what i do:
1. open all files in xvid4psp
2. Set each individual sub file
3. save each avisynth .avs file
4. copy the temp directory to another temp folder (program auto deletes cache)
5. close all files, xfer back cache
6. out of each avs file delete the "changefps(23..9)"
7. encode and everything is ohk
What doesn't exactly make sense is the "changefps" command doesn't show up until i open the avs into the program.
Is there any way i can save myself time? Thanks for your help guys.
+ Reply to Thread
Results 1 to 2 of 2
-
-
Well, you could do it with command line and batch scripts.
1. Download x264.
2. Download mp4box (can also use mp4creator)
3. Download eac3to
4. Create the following scripts (modify to your need):
avs_generation.bat (modify paths to match your setup) - this will create the same avs script for all .mkv in directory (each with name of .mkv file)
Code:FOR %%A IN (*.mkv) DO ( ECHO import("C:\Program Files\Winnydows\XviD4PSP5\dlls\AviSynth\functions\AudioFunctions.avs"^) ECHO import("C:\Program Files\Winnydows\XviD4PSP5\dlls\AviSynth\functions\VideoFunctions.avs"^) ECHO loadplugin("C:\Program Files\Winnydows:\XviD4PSP5\apps\DGMPGDec\DGDecode.dll"^) ECHO loadplugin("C:\Program Files\Winnydows:\XviD4PSP5\dlls\AviSynth\plugins\vsfilter.dll"^) ECHO loadplugin("C:\Program Files\Winnydows:\XviD4PSP5\dlls\AviSynth\plugins\ffms2.dll"^) ECHO FFMPEGSource2("%%A"^) ECHO Add any filters that you are trying to use here (just copy avs generated by XVID4PSP and add ECHO before each line and ^ before closing parentheses, make sure to include import functions above) ECHO TextSub("%%A.srt"^) <--- Use Vobsub("%%A.idx") if you are trying hardsub DVD bitmaps )> %%~nA.avs
Code:setlocal set x264="Path\To\x264.exe" set mp4box="Path\To\mp4box.exe" set eac3to="Path\To\eac3to.exe" FOR %%A IN (*.avs) DO ( %x264% -crf 18 --sar 1:1 -o %%~nA.264 %%A %eac3to% %%~nA.mkv %%~nA.ac3 %mp4box% -add %%~nA.ac3 -add %%~nA.264 -fps 29.97 %%~nA.mp4 )
I normally mux video and audio separately, but there are ways to do this all within the avisynth script (FFMPEGSource2 can be used with atrack=-1 to include audio). I will leave that to others to help you with since I don't do it and cannot tell you the proper way to do it. You can also look to see how XVID4PSP does it and copy that in the avs script.[IMG]chrome://dictionarytip/skin/dtipIconHover.png[/IMG]
Similar Threads
-
DVD to .MP4 for Iphone using XviD4PSP audio sync issue
By Tearren in forum Video ConversionReplies: 4Last Post: 6th Jun 2010, 21:14 -
Xvid4PSP issue
By oldfolk999 in forum Video ConversionReplies: 1Last Post: 26th Apr 2010, 17:53 -
MKV framerate/Sync issue
By dragonkeeper in forum Blu-ray RippingReplies: 0Last Post: 14th May 2009, 23:14 -
How to change framerate in XviD4PSP other than 15.000 ???
By d003232 in forum Video ConversionReplies: 0Last Post: 26th Apr 2009, 13:24 -
XVID4PSP: VOB to MPEG2 (hard subs) progressive av sync issue
By txporter in forum DVD RippingReplies: 1Last Post: 24th Feb 2009, 11:48