View Full Version : How to encode VFR video for PSP?
gabbon
6th November 2005, 10:30
HI
I would like to ask for your help. I was trying to convert one .mkv with VFR to AVC for Sony PSP. I used changeFPS in the script but its still out of the sync with audio....pls can anyone help?
Thanks
DarkZell666
6th November 2005, 10:35
there's a tool on haali's site which is intended to convert VFR videos to CFR.
Then you will be able to work on it.
Check it out here :
http://haali.cs.msu.ru/mkv/ (see VFR helper tool on the right hand side :))
foxyshadis
6th November 2005, 10:45
Directshowsource("...",fps=x,convertfps=true) will also work if you're using avisynth.
gabbon
6th November 2005, 11:04
to foxyshadis
I tried that before (found it on avisynth page) but when I entered the script to megui, but it wont take it. I hope its just my fault....I am pretty new to .avs and all stuff but I got couple of .avs scripts to work by now. I definitely would prefer Avisynth solution, so pls advise....
My script is
DirectShowSource("D:\[AHQ]_Gundam_SEED_-_50_-_To_an_Endless_Future.mkv", fps=29.97, convertfps=true)
LoadPlugin("VSFilter.dll")
TextSub("C:\Pokus\Track5.srt")
LanczosResize(320,240)
THank you and DarkZell666 for quick answer
bond
6th November 2005, 13:01
does the .mkv include a vfr avc stream already?
gabbon
6th November 2005, 13:17
Negative, its XVID
gabbon
6th November 2005, 13:25
But my problem may be more fundamental.....once I saw another script with parameters in Directsource and it didnt take it as well....what could be the problem? Is there sth I am missing?
(parameters meaning " fps=29.97, convertfps=true" in my script)
bond
6th November 2005, 13:32
Negative, its XVIDxvid is already mpeg-4 asp, which the psp can play so there is no need to reencode the video and loose quality
what would be needed is to get mkvextract (or any other tool) to place n-vops in the xvid stream to make it constant framerate without reencoding
(afaik such a tool exists)
than you can mux this stream into .mp4 (in either vfr or cfr as you like) with mp4box/yamb, which the psp should handle
gabbon
6th November 2005, 14:03
Well there are some problems....first of all, I tried using mkvexctract long time ago, but I found out that it simply copy frames with constant framerate...meaning the video track will be longer/shorter than audio track and thus causing desync problems. Till now I used mewig for this purpose.....this one worked for xvid/divx conversions, when I first directCopyed video track with Mewig and then encoded normally in Virtualdub (no sync problems at all), but somehow, even when I prepare video with Mewig, after processing with megui and h264 it is as if I was working with the original....I dont get this.
And since there are strong limitations in PSPs ability to play movies (such as resolution restrictions) I doubt it will work.
Wilbert
6th November 2005, 15:05
@gabbon, you need AviSynth v2.56 for that.
foxyshadis
6th November 2005, 15:12
I responded in PM, but my suggestion was to update avisynth since convertfps is a recently added parameter, and also to open in vdub to see what the actual error message is.
gabbon
6th November 2005, 15:55
Hip HIp hurraaa
It works.....just like you guys suggested it required update of avisynth, nothing more!! Now it works excelently.
So its always the easiest solution....I just expected that since I downloaded new PSP 9Video with bundled Avisynth just yesterday, that it will contain actual version of avisynth.....apparently I was wrong.
Thank you all guys for help...its very appreciated.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.