PMP Mod v2.02b & PMP Mod AVC v1.02M subtitle mod+FW2.0+

General, off-topic discussion about things of interest to the members of these forums.

Moderator: cheriff

User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

You didn't understand. The excerpt I gave you wasn't a header, it was the structure of the whole file. Every line in the file should be formatted like this:
{startframe}{endframe}subtitletext
That's how MicroDVD is defined. However, the extension .sub is sometimes also used by other subtitle formats, which won't play back correctly (it shouldn't quit the playback alltogether if the format is incorrect, though... just skip the subtitle output - I'll fix that asap).
If you want to convert your subtitles to MicroDVD, there are a lot of converter tools out there. Use google and you will find plenty.
SpeedBrkr
Posts: 3
Joined: Wed Jun 14, 2006 6:06 am

Post by SpeedBrkr »

Raphael wrote:You didn't understand. The excerpt I gave you wasn't a header, it was the structure of the whole file. Every line in the file should be formatted like this:
{startframe}{endframe}subtitletext
Whoops my bad, I knew what you meant, just used incorrect terminology. Yeah the entire file when opened in notepad are just random chars (~3.5MB worth). =D Thanks!

Update: I believe the subtitle file I was using is actually a VobSub file! This will require a lot more work to convert (involving OCRing the content). How feasible do you think adding support for VobSub would be (I'd imagine a lot more resource intensive)?
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

SpeedBrkr wrote: Whoops my bad, I knew what you meant, just used incorrect terminology. Yeah the entire file when opened in notepad are just random chars (~3.5MB worth). =D Thanks!

Update: I believe the subtitle file I was using is actually a VobSub file! This will require a lot more work to convert (involving OCRing the content). How feasible do you think adding support for VobSub would be (I'd imagine a lot more resource intensive)?
Yes, VobSub is a format which stores each subtitle frame as a bitmap, which is then to be overlayed with specific transparencies and alike. As such it's not practical to preload the whole subtitle file like I do now but instead use buffered reads to keep a small amount of these subtitles in memory. What makes VobSub better than a text formatted subtitle file, is that you could place graphics inside the subtitles and it also supports any language. However, it's quite complex and thatswhy I won't support this subtitle format for the time being.
psp
Posts: 43
Joined: Thu Jun 01, 2006 3:15 am

Post by psp »

Raphael wrote:This feature (and many many more :)) will definately be included in my upcoming GUI version, but this will take some time until it's finished. I'm not sure yet if I will release a "malloc's mods revival" version before that, but currently I'm not too convinced in doing it.
we have patience. take all the time you need.
pegasus
Posts: 61
Joined: Tue Jan 17, 2006 2:38 pm

hello

Post by pegasus »

tnx for the upload Raphael.

The video was so much smooth for 1+ MB. XD
looks like 768kbps to me

can't wait for another update
7oby
Posts: 25
Joined: Fri Jun 09, 2006 2:18 am

Post by 7oby »

Raphael wrote:
7oby wrote: I did verify/test PMP Mod on a FW 2.50 GTA exploited PSP.

My test video sequence had the following parameters:
. 480x272 resolution @24fps
. 768kbit/s video stream rate
. MP3 128 kbit CBR

Trans- and encoded using VirtualDub/BeLight/XviD-Codec as described in the various PMP MOD Encoding guides.
I was hoping for such encodings to run fine, but didn't have time to test it. Thanks for the confirmation :)
I tested some more:

. 768|1024|1280 kbit/s
. all work fine without any audio stutter

However:

. dark rapid moving areas, turn "red" when moving. Almost looks like a red eye photo flash. It's independent of the scene and always occurs on rapid moving dark areas. When motion stops, colors turn back to normal.

. the XviD Stream (the one before muxing and copy -> PSP) on the PC looks perfect though. This means there are no artefacts in the file.

. I don't have a facility to test it on FW 1.50 PSP with other versions of the PMP MOD. If time permits, I'll upload some demonstration *.pmp, somewhere, but this may take some time.

Outdated:
I assume others would have complained if it would also show up on the ME-based iDCT implementations (FW 1.50). Just a very vague and unqualified guess (since I didn't look at all the code and didn't do testing with other PSP MOD versions): Some registers between calculation rounds are forgotten to be cleared. When moving dark areas, the areas next to the dark have brighter colors. I assume that some of the YCbCr Vectors are not reset and therefore transpone their values into the next frames. This doesn't matter that much as long as the color difference isn't that big, but when moving areas with sharp color differences, it may produce exactly the described artefacts.

The rapid moving "red" things, don't show up in a paused video. Maybe then some kind of VSync problem. Maybe 24fps is not a good idea for the video (but the source has this framerate and I thought PMP MOD is able to do 1-30fps). However I still don't understand: When using double buffering those issues simple can't show up at all.

Can others confirm my observation on the encoded video?

7oby[/i]
Last edited by 7oby on Sun Jun 18, 2006 12:41 am, edited 1 time in total.
csuper
Posts: 103
Joined: Tue Jan 03, 2006 6:19 pm

Request

Post by csuper »

Hye Raphael,

With your WIP GUI, will you add "a delete file" feature that exists a time in a old malloc mod.... ? I miss this feature a lot ;)

Anyway, with your subtitle mod are you planning to add "border"/"shadow"/color features... ? (I really like yellow subtitle with tiny border and shadow...;)

Anyway, Have a nice WE.

csuper.
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

7oby wrote: . dark rapid moving areas, turn "red" when moving. Almost looks like a red eye photo flash. It's independent of the scene and always occurs on rapid moving dark areas. When motion stops, colors turn back to normal.

. the XviD Stream (the one before muxing and copy -> PSP) on the PC looks perfect though. This means there are no artefacts in the file.

The rapid moving "red" things, don't show up in a paused video. Maybe then some kind of VSync problem. Maybe 24fps is not a good idea for the video (but the source has this framerate and I thought PMP MOD is able to do 1-30fps). However I still don't understand: When using double buffering those issues simple can't show up at all.
Hm, could only be the vfpu based idct or idct block clear, since I changed nothing else from libavcodec. I'll have a look at when I get the time.

csuper wrote:With your WIP GUI, will you add "a delete file" feature that exists a time in a old malloc mod.... ? I miss this feature a lot ;)

Anyway, with your subtitle mod are you planning to add "border"/"shadow"/color features... ? (I really like yellow subtitle with tiny border and shadow...;)
Yes, some kind of delete file feature is planned. It will also be possible to change the color of both border and font, and enable shadow. However the border size won't be changeable, since it's hardcoded into the font bitmap for performance reasons.
So far for a first features spoiler, don't tell anyone ;)
pegasus21
Posts: 8
Joined: Sun Jun 18, 2006 4:24 am

Post by pegasus21 »

Yeah, I encountered that with the PMPMod for ASP. It was in Johnny's ver too. However, the AVC mix didn't seem to exhibit that problem in 2 clips I've encoded. Another thing I've observed is that some psp games as well as some homebrew have that problem too.

DGen 1.60 is one.

So I'm thinking it's the method of drawing to the screen that causes it.

Someone was suggesting that it could be due to the psp filling the framerate to 50 or 60fps from the 25 or 30fps with a black frame in between each frame (Half framerate). So if there's movement, it'll show as a darker patch (ie that red artifact you observed).

I can't confirm the part about the half framerate but it sounds possible.

You may want to test out the AVC ver. It works great. Below are the 2 clips I've encoded with AVC.

The smaller clip is about 444kbps video while the larger one is about 980kbps and audio is 128kbps cbr mp3 for both.

http://www.megaupload.com/?d=NF54941O
http://www.megaupload.com/?d=UYGVWUIP
jonny
Posts: 351
Joined: Thu Sep 22, 2005 5:46 pm
Contact:

Post by jonny »

@pegasus21:
this seems to me the usual problem with the psp lcd (search in this forums, there is already some discussion about this), raise the luminosity to make this less noticeable
pegasus21
Posts: 8
Joined: Sun Jun 18, 2006 4:24 am

Post by pegasus21 »

I see. Thanks for the insight. Though it's strange that i didn't seem to notice it with the avc ver.
7oby
Posts: 25
Joined: Fri Jun 09, 2006 2:18 am

Post by 7oby »

jonny wrote:@pegasus21:
this seems to me the usual problem with the psp lcd (search in this forums, there is already some discussion about this), raise the luminosity to make this less noticeable
Thanks a lot! Helps instantly!
pegasus
Posts: 61
Joined: Tue Jan 17, 2006 2:38 pm

hello

Post by pegasus »

hi Raphael! i'm just wonderin' is it possible to change the font color other than white??
and another thing if it not much work could you filter the menu selection with only pmp on the list. XD tnx!

@all
I'll give you guys a list of websites where you can DL subtitle! Don't worry its not illegal XD

Multi-language sites:

Extra Titles
http://www.titles.to/

Subscene
http://www.subscene.com/

DivX Subtitles
http://www.divxsubtitles.net

DivX Subtitles World
http://www.subtitles.cz/en/

RDW Subtitles
http://www.rdwsubs.com/index.php

Subbiee Search
http://www.subbiee.com/


Specific languages:

Central Subtitles (Portuguese, Brazilian)
http://www.central-subtitles.com/legendas/

DivX Norway (Norwegian)
http://www.divxnorway.com/

DivX Nurkka (Finnish)
http://www.divxnurkka.net/

DivX Planet (Turkish)
http://www.divxplanet.net/

DivX Sweden (Swedish)
http://forum.divxsweden.net/subs.php

Greek Subs (Greek)
http://www.greeksubs.com/

KinoMania (Polish)
http://www.kinomania.org/

Ondertitels (Dutch)
http://www.ondertitel.com/

Napisy.info (Polish)
http://www.napisy.info/

Napisy.org (Polish)
http://www.napisy.org/

NL Ondertitels (Dutch)
http://www.nlondertitels.com/

SubDivX (Spanish)
http://www.subdivx.com/

Subtitles.de (German)
http://www.subtitles.de/

Subtitles.ee (Russian)
http://www.subtitles.ee/

Torec.net (Hebrew)
http://www.torec.net/

Undertexter (Swedish)
http://www.undertexter.se/

Videometre (Turkish)
http://www.videometre.com/

just convert those srt's to microDVD!!
cheers!
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

Updated the AVC version to jonnys 1.02 core.
Also added ISO8859 fonts, to finally cover the most languages (hopefully). If you find any errors with these fonts, please let me know, as they are mostly untested.
Oh, and asian languages will get support soon too :) (though this might not interest many here)
mhz
Posts: 3
Joined: Wed Jun 28, 2006 6:04 am

Post by mhz »

First off, thanks for this GREAT "mod mod".. :D
And um...
I'm new here or actually I've been reading the forums but have just been too lazy to register... :P
Anyway, I just tried your new ISO8859-15 fonts with Finnish subs and they work fine except that the '€' sign doesn't show up...
There's just the usual square/block or whatever you want to call it..
Well, anyway I'm now gonna try the ISO8859-16 fonts and see if the '€' sign works with them...

Cheers and keep it up with this great mod..!

Edit: Ok, I just tried the ISO8859-16 fonts and when I use it the '€' sign still shows up just as a block but when there's '$' sign it shows up as the '€' sign... :P
So well yeah.. I'm sticking with the ISO8859-15 fonts even if the '€' sign doesn't work...
Hopefully you get it fixed some time, but well anyway it's not very common in subs..
I didn't even find subs with the '€' sign from my "archive" with a quick look, so I just edited some subs myself and included almost all the signs just to try them out...
If I remember right, the only prob is now with the '€' sign, I think the others work fine...
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

Nice to get some feedback on the new fonts :)
Regarding the € sign, it actually is included in -7, -15 and -16 with charcode 164, but I noticed that typing the € sign in a texteditor will most likely not encode it with that charcode (unless that texteditor is explicitly aware of the correct codepage).
I tried with Notepad2 and ASCII encoding, but it used charcode 128, so it's clear this won't be displayed (charcode 128 maps to DEL or blank in ASCII, which some fonts display as replacement character []).
So I could simply add the € sign also in charposition 128, but well... that's not the standard ;)
mhz
Posts: 3
Joined: Wed Jun 28, 2006 6:04 am

Post by mhz »

Well, I used Subtitle Workshop so I think it should work, but again I can't be sure...
I'll report when I find subs that already include the € sign, but I actually know that the ppl subbing those subtitles are also using Subtitle Workshop so...
Well.. We shall see... :)
And thanks for the fast reply..!
toker#
Posts: 27
Joined: Sat Jan 21, 2006 1:48 am

Post by toker# »

Anyone made PMP Mod AVC 1.02 with the GUI yet?

(Mostly missing the resume feature!)
therock003
Posts: 96
Joined: Fri Sep 23, 2005 11:09 pm

Post by therock003 »

Hey dude what;s up?We haven't heard from you for a while?How are things going?Do you have any update to the programma anytime soon?
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

therock003 wrote:Hey dude what;s up?We haven't heard from you for a while?How are things going?Do you have any update to the programma anytime soon?
Don't worry, I'm still at it, although it got very silent here :)
I already thought about releasing a small update with .srt (SubRip) subtitle support and asian languages, but dropped that idea for the following reasons:
1) I don't think .srt support is currently really needed, as microdvd is easy to generate and currently suffices for all subtitle needs (Also, reading .srt would need me to hack a dirty time->framespace conversion into my parser, and that's something I didn't want to do yet :P)
2) I'm not even sure if there are any people out, using pmp mod and wanting asian subtitles... but it's implemented already and will definately be in the final version.

Well, for any other status updates I would suggest you just visit my site, I keep it pretty well updated on my WIP status and have created a dedicated page to all the things I need to code for my GUI with information on when I finished each part. If you look there, you'll see that progress is coming along pretty well, though there's still nothing that could be released. All pretty much low-level and core functionality I implemented up to now.

PS: I also got some very nice updated GUI graphics done by argandona once again, and be believe me when I say it will look marvelous ;)
pegasus
Posts: 61
Joined: Tue Jan 17, 2006 2:38 pm

hello

Post by pegasus »

hi Raphael, BTW I'm asian! =D

Congrats Italy!
psp
Posts: 43
Joined: Thu Jun 01, 2006 3:15 am

Post by psp »

do you plane to integrate avc mod with regular psp mod?
pegasus
Posts: 61
Joined: Tue Jan 17, 2006 2:38 pm

hello

Post by pegasus »

i think the answer is no..
ADePSP
Posts: 58
Joined: Thu Jul 13, 2006 9:07 pm

Post by ADePSP »

Sorry for being a n00b but could someone please explain how I use this or something similar to add some video playback to my app...

I have cygwin and the PSP SDK installed on it and have looked at the code but am not sure exactly how to add this ability to my app...

If you don't want to clutter this forum topic please feel free to PM me... I'm very new to cygwin so may need step by step instructions...

Thanks a lot,
ADe
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

psp wrote:do you plane to integrate avc mod with regular psp mod?
Perhaps somewhere in the future, seriously not before I finished the GUI.
ADePSP wrote:Sorry for being a n00b but could someone please explain how I use this or something similar to add some video playback to my app...

I have cygwin and the PSP SDK installed on it and have looked at the code but am not sure exactly how to add this ability to my app...

If you don't want to clutter this forum topic please feel free to PM me... I'm very new to cygwin so may need step by step instructions...

Thanks a lot,
ADe
You don't need cygwin if you just want to playback videos on your psp, as there are binaries (already compiled executables) available. If you have further questions on how to use and install homebrew on your psp, take a look here: http://forums.qj.net/showthread.php?t=2189
ADePSP
Posts: 58
Joined: Thu Jul 13, 2006 9:07 pm

Post by ADePSP »

Raphael wrote:
psp wrote:do you plane to integrate avc mod with regular psp mod?
Perhaps somewhere in the future, seriously not before I finished the GUI.
ADePSP wrote:Sorry for being a n00b but could someone please explain how I use this or something similar to add some video playback to my app...

I have cygwin and the PSP SDK installed on it and have looked at the code but am not sure exactly how to add this ability to my app...

If you don't want to clutter this forum topic please feel free to PM me... I'm very new to cygwin so may need step by step instructions...

Thanks a lot,
ADe
You don't need cygwin if you just want to playback videos on your psp, as there are binaries (already compiled executables) available. If you have further questions on how to use and install homebrew on your psp, take a look here: http://forums.qj.net/showthread.php?t=2189
I'm writing an application... Not sure if anyone has heard of my "Pimp My Garage" car modifcation web tool for Grand Theft Auto: Liberty City Stories (it did get featured on various sites such as PSPUpdates etc...) but i've downgraded to 1.5 now and am porting it to work directly on the PSP...

Got most of it working as it's quite a simple, multiscreen app with a soundtrack and filesystem access but I want to spice it up a bit here and there with video playback...

I'd be extremely grateful if someone could provide me with a simple example and where to put the extra files i'm sure i'd need...

Thanks...
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

Using pmp mod to add playback feature to your own app is not trivial, you'd most likely have to rewrite half of the videobuffer display code to fit your needs. Have a look at the code in mod/pmp_decode.c and if you have absolutely no clue what's happening there, then this is not for you.
I can't help you either, since I haven't tried anything like that yet, sorry.
If you only want some simple short movie-clips to show, you'd probably be better off trying the pvf library from kojima.
ADePSP
Posts: 58
Joined: Thu Jul 13, 2006 9:07 pm

Post by ADePSP »

Raphael wrote:Using pmp mod to add playback feature to your own app is not trivial, you'd most likely have to rewrite half of the videobuffer display code to fit your needs. Have a look at the code in mod/pmp_decode.c and if you have absolutely no clue what's happening there, then this is not for you.
I can't help you either, since I haven't tried anything like that yet, sorry.
If you only want some simple short movie-clips to show, you'd probably be better off trying the pvf library from kojima.
I also looked at the pvf library... I don't care on the video format so i'll go ask over there then...

Thanks...
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

Update, with quite some new features. Have a look :)
mhz
Posts: 3
Joined: Wed Jun 28, 2006 6:04 am

Post by mhz »

Raphael wrote:Update, with quite some new features. Have a look :)
Just when I was thinking when you would update your mod for the new ver of PMP MOD, thank you..! :D

I'm gonna try to play around with the AVC version soon too... :P

EDiT: Very nice other additions also, keep it up Raphael..! ;)
Last edited by mhz on Thu Jul 20, 2006 1:00 am, edited 1 time in total.
Post Reply