PMP Mod v2.02 & PMP Mod AVC v1.02
-
- Posts: 84
- Joined: Thu Jan 05, 2006 8:52 am
Here is my guide ;)
Tools needed:
Avisynth 2.5.6a
http://sourceforge.net/project/showfile ... _id=366697
VurtualdubMOD
http://sourceforge.net/project/showfile ... _id=352709
Step 1 - Make an avs script - or just use this one:
DirectShowSource("X:\myvob.vob")
KillAudio
Sharpen(1.0)
Lanczos4Resize(480, 272)
X is your drive letter - my vob is your source - could even be avi if thats what you're using.
Copy and paste the above 4 lines into a notepad txt file and rename the extension .avs
Step 2 - Load virtualdubMOD and open the .avs file - you will see your source load and the resize and sharpen filter applied.
If you need to crop - the easiest way is now to add null transform filter in vdub and crop. OR if you know about DVD2AVI_nic - this can do it for you and generate an avs script.
Step 3 - Setup compression in vdub - setup xvid codec with no options enabled - No qpel - No B-VOP - No Adaptive - No GMC - Absolutely nothing!
Setup each of the 2 passes using the quantisizer 4.0 - you dont need to bother setting the bitrate - the quantisizer will take care of it.
Remember when you save each pass to tick the 'dont run this job now' so both pass 1 and pass 2 go to the jobs list. Also remember to give each pass a different name.
NOTE: the higher you move the quant value - the smaller your encode will be and a rough estimate is as follows:
quant 4=1400kbs
quant 5=1200kbs
quant 6=1000kbs
quant 7=850kbs
But it can really depend on your source.....
Step 4 - In vdub goto job control and start the encoding.......
Step 5 - Using your prefered audio converter - mine is belight rip a 128kbs mp3 of your sources audio.
Step 6 - Mux the pass 2 avi and mp3 - your done!
My net connection has been down most of the day thanks to BT so I haven't had time to upload much - but here is a quant 4 encode of the Blade trinity trailer which comes in at 1400kbs.
One 3rd smaller than the 2000kbs bitrate encode, this file is better quality and much smaller.
Blade.Trinity.PURE.Quant4.pmp 24.2mb 2.11 secs
http://download.filefront.com/4672727;1 ... fcd266f720
Note: Remember that the resize and sharpen filter are applied in YUY colour field - That means that before any encoding starts the source file is not degraded in any way - only enhanced - THIS IS NOT THE CASE WITH FILTERS IN VDUB OR ANY OTHER ENCODING METHOD! - All other encoder apply filters as they are encoding - thus reducing quality and increasing encode time.
I hope you all find this of help - I'm very pleased with the results so far and have uninstalled DIVX6 from my machine..........
All the best
J.
Tools needed:
Avisynth 2.5.6a
http://sourceforge.net/project/showfile ... _id=366697
VurtualdubMOD
http://sourceforge.net/project/showfile ... _id=352709
Step 1 - Make an avs script - or just use this one:
DirectShowSource("X:\myvob.vob")
KillAudio
Sharpen(1.0)
Lanczos4Resize(480, 272)
X is your drive letter - my vob is your source - could even be avi if thats what you're using.
Copy and paste the above 4 lines into a notepad txt file and rename the extension .avs
Step 2 - Load virtualdubMOD and open the .avs file - you will see your source load and the resize and sharpen filter applied.
If you need to crop - the easiest way is now to add null transform filter in vdub and crop. OR if you know about DVD2AVI_nic - this can do it for you and generate an avs script.
Step 3 - Setup compression in vdub - setup xvid codec with no options enabled - No qpel - No B-VOP - No Adaptive - No GMC - Absolutely nothing!
Setup each of the 2 passes using the quantisizer 4.0 - you dont need to bother setting the bitrate - the quantisizer will take care of it.
Remember when you save each pass to tick the 'dont run this job now' so both pass 1 and pass 2 go to the jobs list. Also remember to give each pass a different name.
NOTE: the higher you move the quant value - the smaller your encode will be and a rough estimate is as follows:
quant 4=1400kbs
quant 5=1200kbs
quant 6=1000kbs
quant 7=850kbs
But it can really depend on your source.....
Step 4 - In vdub goto job control and start the encoding.......
Step 5 - Using your prefered audio converter - mine is belight rip a 128kbs mp3 of your sources audio.
Step 6 - Mux the pass 2 avi and mp3 - your done!
My net connection has been down most of the day thanks to BT so I haven't had time to upload much - but here is a quant 4 encode of the Blade trinity trailer which comes in at 1400kbs.
One 3rd smaller than the 2000kbs bitrate encode, this file is better quality and much smaller.
Blade.Trinity.PURE.Quant4.pmp 24.2mb 2.11 secs
http://download.filefront.com/4672727;1 ... fcd266f720
Note: Remember that the resize and sharpen filter are applied in YUY colour field - That means that before any encoding starts the source file is not degraded in any way - only enhanced - THIS IS NOT THE CASE WITH FILTERS IN VDUB OR ANY OTHER ENCODING METHOD! - All other encoder apply filters as they are encoding - thus reducing quality and increasing encode time.
I hope you all find this of help - I'm very pleased with the results so far and have uninstalled DIVX6 from my machine..........
All the best
J.
Last edited by xxxstarmanxxx on Fri Jan 27, 2006 12:53 pm, edited 2 times in total.
-
- Posts: 84
- Joined: Thu Jan 05, 2006 8:52 am
2598kbs??? your quantisizer is too high - change it to 4.0 or lower your target bitrate for movies.zshadow wrote:does xvid even support more than 2 passes? if so, please tell me how because I thought it was limited to 2 pass.
for the record, I encoded a 2-pass episode of "24" at 2598kbps / 128kbps audio, no stuttering at all. however, movie files are larger than tv shows, so possibly that affects disk performance, i am not sure.
i'll upload a sample later on to show you guys.
I believe if you just keep adding the second pass to the jobs list in VDUB it will continue for as many passes as you like - However your file size will not reduce - the quality will just improve.
Hope that helps
J.
thanks, I will try that.xxxstarmanxxx wrote:2598kbs??? your quantisizer is too high - change it to 4.0 or lower your target bitrate for movies.zshadow wrote:does xvid even support more than 2 passes? if so, please tell me how because I thought it was limited to 2 pass.
for the record, I encoded a 2-pass episode of "24" at 2598kbps / 128kbps audio, no stuttering at all. however, movie files are larger than tv shows, so possibly that affects disk performance, i am not sure.
i'll upload a sample later on to show you guys.
I believe if you just keep adding the second pass to the jobs list in VDUB it will continue for as many passes as you like - However your file size will not reduce - the quality will just improve.
Hope that helps
J.
btw.. yea, well 2598kbps gave me pretty much no noticeable artifacts at all (I was encoding from a high res hdtv source). may be a little too high, but it looks great.
@xxxstarmanxxx I just DL and watched your Blade.Trinity.PURE.Quant4.pmp. I like what I see and would try your methods on a full movie, I can live with theses results (nice eye candy and no audio issues) and intend to build on them as I learn more about the tools you suggested. Thanks for your guide and keep up the work:)
For god's sake... be my guest and remove the post count =) See if I care, really ;)Raphael wrote:You like tripple-posting, don't you wooolF? You should try getting along with editing unless you're just keen on getting a lot of posts quickly :P
Sure deal =) I'll be back Monday evening, then I can try your material =) Posting now from my job =)Eingang wrote:If I would cut out a special scene and send you (as a download) would you encode it in your way for me, as I would be interested in the results.. ???
Guide/tutorial for converting DVD (and other normal files) to PMP at best quality possible (works for me) avoiding the usual audio stuttering and ghosting problems.
http://maxt.dk/archives/2006/02/01/dvd-to-psp/
http://maxt.dk/archives/2006/02/01/dvd-to-psp/
-
- Posts: 84
- Joined: Thu Jan 05, 2006 8:52 am
Hi all - Here is a low bitrate encode using my method:
Blade.Trinity.Trailer.PURE.Bitrate768.pmp 13.5mb
http://download.filefront.com/4674179;1 ... fcd266f720
Another 10mb average knocked off this encode with what I think is an acceptable quality loss/size.
I think over the duration of a full movie - this would work very well.
These will give you an idea about the quality of the resize filter I'm using.
I have also been experimenting with a filter called "undot" which helps with ghosting - but at the mo it doesn't look like it performs well with the "sharpen" filter - no matter which order they are in. Using it without "sharpen" produces a divx like encode - which is not at all bad - especially for long movies.
I'm going to rip the full movie at this rate and see how it is.
More tests on the trailer later this evening.
All the best.
J.
Blade.Trinity.Trailer.PURE.Bitrate768.pmp 13.5mb
http://download.filefront.com/4674179;1 ... fcd266f720
Another 10mb average knocked off this encode with what I think is an acceptable quality loss/size.
I think over the duration of a full movie - this would work very well.
These will give you an idea about the quality of the resize filter I'm using.
I have also been experimenting with a filter called "undot" which helps with ghosting - but at the mo it doesn't look like it performs well with the "sharpen" filter - no matter which order they are in. Using it without "sharpen" produces a divx like encode - which is not at all bad - especially for long movies.
I'm going to rip the full movie at this rate and see how it is.
More tests on the trailer later this evening.
All the best.
J.
-
- Posts: 84
- Joined: Thu Jan 05, 2006 8:52 am
Yeh, I could up it, but I wont be home until Monday evening... So I'll take the VOB with me Monday evening and I'll up it from my job Tuesday. =)xxxstarmanxxx wrote:@wooolf.
Is there any way I could get hold of your Matrix scene mate - as I haven't got that movie.
It would be good to see how my method holds up to that orgasm scene???
Guide/tutorial for converting DVD (and other normal files) to PMP at best quality possible (works for me) avoiding the usual audio stuttering and ghosting problems.
http://maxt.dk/archives/2006/02/01/dvd-to-psp/
http://maxt.dk/archives/2006/02/01/dvd-to-psp/
-
- Posts: 84
- Joined: Thu Jan 05, 2006 8:52 am
Thanks ever so much mate.wooolF wrote:Yeh, I could up it, but I wont be home until Monday evening... So I'll take the VOB with me Monday evening and I'll up it from my job Tuesday. =)xxxstarmanxxx wrote:@wooolf.
Is there any way I could get hold of your Matrix scene mate - as I haven't got that movie.
It would be good to see how my method holds up to that orgasm scene???
Have a good break - All the best
J.
-
- Posts: 84
- Joined: Thu Jan 05, 2006 8:52 am
xxxstarmanxxx wrote:Hi all - Here is a low bitrate encode using my method:
Blade.Trinity.Trailer.PURE.Bitrate768.pmp 13.5mb
http://download.filefront.com/4674179;1 ... fcd266f720
Another 10mb average knocked off this encode with what I think is an acceptable quality loss/size.
I think over the duration of a full movie - this would work very well.
These will give you an idea about the quality of the resize filter I'm using.
I have also been experimenting with a filter called "undot" which helps with ghosting - but at the mo it doesn't look like it performs well with the "sharpen" filter - no matter which order they are in. Using it without "sharpen" produces a divx like encode - which is not at all bad - especially for long movies.
I'm going to rip the full movie at this rate and see how it is - but obviously I cant post the movie. You'll have to try your own encodes with my method.
More tests on the trailer later this evening.
All the best.
J.
-
- Posts: 2
- Joined: Sat Jan 28, 2006 1:20 am
@xxxstarmanxxx
Thanks for your suggested settings for the Blade trailer - I'm trying them out now on an episode of Lost to see how it looks with a DivX source.
One problem I have is that when I go to select the 2nd-pass for Xvid I don't see the option for setting a quantizer level. All I can choose between is either a target size or a target bitrate. I know I could just use these, but I want to replicate your settings exactly to see what quality I get. Is there another setting I have to change to enable the quantizer settings?
(Also, I've never used AVISynth before and I've noticed that for this DivX file I have to use 'AVISource' instead of 'DirectShowSource' in order to get VDub to open the .avs file. Probably old news to most people here, but I thought I'd mention it.)
Thanks for your suggested settings for the Blade trailer - I'm trying them out now on an episode of Lost to see how it looks with a DivX source.
One problem I have is that when I go to select the 2nd-pass for Xvid I don't see the option for setting a quantizer level. All I can choose between is either a target size or a target bitrate. I know I could just use these, but I want to replicate your settings exactly to see what quality I get. Is there another setting I have to change to enable the quantizer settings?
(Also, I've never used AVISynth before and I've noticed that for this DivX file I have to use 'AVISource' instead of 'DirectShowSource' in order to get VDub to open the .avs file. Probably old news to most people here, but I thought I'd mention it.)
@xxxstarmanxxx
May I ask for the .vcf file that you can dump will all the preset in virtualdub ?
You can ouput your file CTR^S ...
Thanx.
I don't get the 2 pass in the JOB queue, what i'm doing wrong ?
May I ask for the .vcf file that you can dump will all the preset in virtualdub ?
You can ouput your file CTR^S ...
Thanx.
I don't get the 2 pass in the JOB queue, what i'm doing wrong ?
-----------
Now using PMP Mod 1.02 with some nice FPS gain with my slow SONY MS...
Thanx Jonny ! & Malloc ! & Raphael !
Now using PMP Mod 1.02 with some nice FPS gain with my slow SONY MS...
Thanx Jonny ! & Malloc ! & Raphael !
I converted this week's Lost (xvid source), nothing fancy just 2-pass divx (lavc to be precise) in Winmenc, 900kpbs, vhq, lancoz, 280MBs, quality was A+ excellent. There was little fast movement the whole ep, so it came out very crisp & detailed with no bleeding or audio stutters. I normally watch it in HD on my gf's plasma, but the PMP experience was like having a mini-plasma on the train. :)xxxstarmanxxx wrote: Thanks for your suggested settings for the Blade trailer - I'm trying them out now on an episode of Lost to see how it looks with a DivX source.
I didn't apply the sharpening filter, I'm not really sure how necessary or effective that would be using a non-DVD source. I'll edit some clips and run some side-by-side tests this weekend, but for now 900kpbs 2-pass is perfect for TV eps.
does not work -- i quened the file 7 times, and it did output more avi files but they were the same exact size, so i did an md5 check and they all turned out to be the same.xxxstarmanxxx wrote:2598kbs??? your quantisizer is too high - change it to 4.0 or lower your target bitrate for movies.zshadow wrote:does xvid even support more than 2 passes? if so, please tell me how because I thought it was limited to 2 pass.
for the record, I encoded a 2-pass episode of "24" at 2598kbps / 128kbps audio, no stuttering at all. however, movie files are larger than tv shows, so possibly that affects disk performance, i am not sure.
i'll upload a sample later on to show you guys.
I believe if you just keep adding the second pass to the jobs list in VDUB it will continue for as many passes as you like - However your file size will not reduce - the quality will just improve.
Hope that helps
J.
-
- Posts: 84
- Joined: Thu Jan 05, 2006 8:52 am
Seamonster wrote:@xxxstarmanxxx
Thanks for your suggested settings for the Blade trailer - I'm trying them out now on an episode of Lost to see how it looks with a DivX source.
One problem I have is that when I go to select the 2nd-pass for Xvid I don't see the option for setting a quantizer level. All I can choose between is either a target size or a target bitrate. I know I could just use these, but I want to replicate your settings exactly to see what quality I get. Is there another setting I have to change to enable the quantizer settings?
(Also, I've never used AVISynth before and I've noticed that for this DivX file I have to use 'AVISource' instead of 'DirectShowSource' in order to get VDub to open the .avs file. Probably old news to most people here, but I thought I'd mention it.)
Double click on the Weight 1.0 and change it to quantizer and pick your prefered number.
Ignore the second line on this pic - I just ripped it from another site.
Sorry - you were right about the syntax for avi's - I dont use them personally.
Hope that helps
J.
-
- Posts: 84
- Joined: Thu Jan 05, 2006 8:52 am
Hi mate - that would be a great help to me but only if you have the time - I need the vob file containing the scene - which may need an upload of over 1gb - unless you know how to just rip the chapter (I dont :( ) but if you have the connection - and the time - I'll grab it and test it to hell and back.psp360 wrote:xxxstarmanxxx if you need the matrix clip any sooner let me know. I have all the DVD. But I have to admit I am not that big of a matrix's fan so I don't know which disk to rip...so let me know, I could upload for you later this evening...it is now 8:59am in my country:)
Thanks in advance
J.
-
- Posts: 84
- Joined: Thu Jan 05, 2006 8:52 am
-
- Posts: 84
- Joined: Thu Jan 05, 2006 8:52 am
Hello.csuper wrote:@xxxstarmanxxx
May I ask for the .vcf file that you can dump will all the preset in virtualdub ?
You can ouput your file CTR^S ...
Thanx.
I don't get the 2 pass in the JOB queue, what i'm doing wrong ?
The contents of my .vcf file is as follows -
VirtualDub.RemoveInputStreams();
VirtualDub.video.DeleteComments(1);
VirtualDub.video.AdjustChapters(1);
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(3);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
That wont be much help to you as no filters are applied during encoding with Vdub.
My filter are applied using avisynth to pre-process without degrading the original source as follows:
LoadPlugin("C:\Program Files\DVD2AVI_NIC\System\DGDecode.DLL")
MPEG2Source("E:\test.d2v").Crop(4,16,712,548)
Sharpen(1.0)
Lanczos4Resize(480, 272)
NOTE: the DGDecode Vob plugin is only available using DVD2AVI_nic - which is a mod of the original dvd2avi.
I use the DGDecode plugin as DVD2AVI can sometimes be a bit buggy about frame times with vobs.
I would encourage anyone having crop/resize issuies to use this program as it actually shows you your Lanczos4Resise in realtime - That way you know your aspect ratio is correct.
Hope that helps
J.
-
- Posts: 84
- Joined: Thu Jan 05, 2006 8:52 am
Sorry mate - I checked and double checked this evening and it appears only DivX supports multi passes.zshadow wrote:does not work -- i quened the file 7 times, and it did output more avi files but they were the same exact size, so i did an md5 check and they all turned out to be the same.xxxstarmanxxx wrote:2598kbs??? your quantisizer is too high - change it to 4.0 or lower your target bitrate for movies.zshadow wrote:does xvid even support more than 2 passes? if so, please tell me how because I thought it was limited to 2 pass.
for the record, I encoded a 2-pass episode of "24" at 2598kbps / 128kbps audio, no stuttering at all. however, movie files are larger than tv shows, so possibly that affects disk performance, i am not sure.
i'll upload a sample later on to show you guys.
I believe if you just keep adding the second pass to the jobs list in VDUB it will continue for as many passes as you like - However your file size will not reduce - the quality will just improve.
Hope that helps
J.
J.
-
- Posts: 84
- Joined: Thu Jan 05, 2006 8:52 am
I totally agree here - My filters are only really necessary for sources like High Density and Mpeg2 DVD sources.k0nan wrote:I converted this week's Lost (xvid source), nothing fancy just 2-pass divx (lavc to be precise) in Winmenc, 900kpbs, vhq, lancoz, 280MBs, quality was A+ excellent. There was little fast movement the whole ep, so it came out very crisp & detailed with no bleeding or audio stutters. I normally watch it in HD on my gf's plasma, but the PMP experience was like having a mini-plasma on the train. :)xxxstarmanxxx wrote: Thanks for your suggested settings for the Blade trailer - I'm trying them out now on an episode of Lost to see how it looks with a DivX source.
I didn't apply the sharpening filter, I'm not really sure how necessary or effective that would be using a non-DVD source. I'll edit some clips and run some side-by-side tests this weekend, but for now 900kpbs 2-pass is perfect for TV eps.
Any other source - save yourself some time and make use of the solid divx codec - If your source file is 'messy' there is so much you can do with the divx codec on PSP - Adaptive/Phyco Visuals to name a few.
Xvid should only be used for 'prime' sources.
All the best
J.
- Itaintrite
- Posts: 54
- Joined: Fri Jul 15, 2005 12:32 pm
-
- Posts: 84
- Joined: Thu Jan 05, 2006 8:52 am
-
- Posts: 84
- Joined: Thu Jan 05, 2006 8:52 am
- Itaintrite
- Posts: 54
- Joined: Fri Jul 15, 2005 12:32 pm
Yeah, I tried that too, but didn't work either. This happens to a lot of the files that I have. Some do work though. Very weird.xxxstarmanxxx wrote:Dont bother wav'ing it mate - belight will open the original avi and rip the mp3.Itaintrite wrote:For some reason, belight refuses to convert most of the WAVs I got from the avis. Any idea why? :/
Just change the file selector to avi.
Hope that helps
J.
-
- Posts: 84
- Joined: Thu Jan 05, 2006 8:52 am
Hello mate -Itaintrite wrote:Yeah, I tried that too, but didn't work either. This happens to a lot of the files that I have. Some do work though. Very weird.xxxstarmanxxx wrote:Dont bother wav'ing it mate - belight will open the original avi and rip the mp3.Itaintrite wrote:For some reason, belight refuses to convert most of the WAVs I got from the avis. Any idea why? :/
Just change the file selector to avi.
Hope that helps
J.
Can you give us any more info on the type of errors you are getting???
Are they during muxing or with belight itself.
One thing I would say is that if you load these problem files into VitrualDub and they contain VBR mp3 in the avi - Virtualdub will convert them to cbr before any encoding is done.
Do you get any messages in virtualdub before it indexes the avi file????
J.
h.264 is not experimental, it's already included in libavcodec (only changing a constant in pmpmod is needed in order to try it)Somewhere in this thread there was a guy who had recoded PMPmod with an experimental h.264 library that ran slow and was not optimised.
this sounds to me like: jonny, you have made the plane, are you working on the spaceship now?@jonny - are you possibly working on h.264 at the mo????
i'm still working on the plane, the current model fly but can be better :)