forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PMP Mod v2.02 & PMP Mod AVC v1.02
Goto page Previous  1, 2, 3 ... 52, 53, 54 ... 60, 61, 62  Next
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
jonny



Joined: 22 Sep 2005
Posts: 351

PostPosted: Wed Jul 05, 2006 12:11 am    Post subject: Reply with quote

i assume you have installed the splitter in this way:

regsvr32 pmpsplitter.ax


now, the splitter alone doesn't work, it is supposed that you also have an h264 directshow decoder installed

you'll probably solve installing ffdshow:

http://tirnanog.fate.jp/mirror/ffdshow/
Back to top
View user's profile Send private message Visit poster's website
Khannie



Joined: 25 Apr 2006
Posts: 27
Location: Dublin, Ireland

PostPosted: Wed Jul 05, 2006 2:11 am    Post subject: Re: small HOWTO: AVC pmp on Linux Reply with quote

Khannie wrote:
606u wrote:
As this topic went too long, maybe there is a similar HOWTO in the previous pages...


I just wanted to say thanks for this. :)

I recently removed windows from my home PC and I thought I was scuppered because the x264 doesn't natively support avi files on linux.


More thanks to 606u are in order for the .c patch to fix the empty text file (and thanks to Jonny for the simplification).

I'm available for linux testing at any point. I usually drop by fairly regularly (though post infrequently). A PM with testing request should suffice. :)

I have ubuntu 6.06 running the k7-smp kernel.
Back to top
View user's profile Send private message
someguy2



Joined: 05 Jul 2006
Posts: 1

PostPosted: Wed Jul 05, 2006 6:38 pm    Post subject: rw/ff Reply with quote

Hi.
Could you please make rw/ff more like in pc players ( +/- N sec) ?
Back to top
View user's profile Send private message
-m-



Joined: 05 Jul 2006
Posts: 2

PostPosted: Wed Jul 05, 2006 9:14 pm    Post subject: Bookmark function Reply with quote

hi!

first of all let me just say - thx for a great psp app!

one of the earlier versions of pmp mod had a bookmark function. it auto saved my last position in a pmp movie, allowing me to resume where i left off.
is this something you will readd in a future version of pmp mod? it would be great if the bookmark could be set with a push of a button :)

-m-
Back to top
View user's profile Send private message
pegasus



Joined: 17 Jan 2006
Posts: 61

PostPosted: Wed Jul 05, 2006 10:26 pm    Post subject: hello Reply with quote

hi jonny just a question.. what is the purpose of "debug level" in pmp muxer avc?? do i need to set it too??
Back to top
View user's profile Send private message
csuper



Joined: 03 Jan 2006
Posts: 103

PostPosted: Wed Jul 05, 2006 11:30 pm    Post subject: Re: Bookmark function Reply with quote

-m- wrote:
hi!

first of all let me just say - thx for a great psp app!

one of the earlier versions of pmp mod had a bookmark function. it auto saved my last position in a pmp movie, allowing me to resume where i left off.
is this something you will readd in a future version of pmp mod? it would be great if the bookmark could be set with a push of a button :)

-m-


The POS feature was added in a mod of the PMP Mod (Malloc/Raphael/...), but it was never implemented in the core PMP Mod because Jonny dislike the way it works (with the addition of .pos file)

I asked him if he would add this feature to the core player, he had said "i will think about it, but with an another method" ...

So it' up to him... has you can see...
Back to top
View user's profile Send private message
-m-



Joined: 05 Jul 2006
Posts: 2

PostPosted: Thu Jul 06, 2006 12:46 am    Post subject: Re: Bookmark function Reply with quote

csuper wrote:
-m- wrote:
hi!

first of all let me just say - thx for a great psp app!

one of the earlier versions of pmp mod had a bookmark function. it auto saved my last position in a pmp movie, allowing me to resume where i left off.
is this something you will readd in a future version of pmp mod? it would be great if the bookmark could be set with a push of a button :)

-m-


The POS feature was added in a mod of the PMP Mod (Malloc/Raphael/...), but it was never implemented in the core PMP Mod because Jonny dislike the way it works (with the addition of .pos file)

I asked him if he would add this feature to the core player, he had said "i will think about it, but with an another method" ...

So it' up to him... has you can see...



ok, thanks for the input. :-l

i really hope he implement it. i miss it alot when watching full features 1.5 hour +, and i have to shut my psp down in the middle of it all. my comute to work takes about an hour or so.

all i can do is pray then ;)
Back to top
View user's profile Send private message
jonny



Joined: 22 Sep 2005
Posts: 351

PostPosted: Thu Jul 06, 2006 2:05 am    Post subject: Reply with quote

@someguy2:

no, too much complications


Quote:

it would be great if the bookmark could be set with a push of a button :)


exactly what i want to do ( but i don't know exactly when i'll do this :P )


Quote:

hi jonny just a question.. what is the purpose of "debug level" in pmp muxer avc??


it show more infos if you enable high values
(it's useful for me to identify eventual problems)
Back to top
View user's profile Send private message Visit poster's website
Khannie



Joined: 25 Apr 2006
Posts: 27
Location: Dublin, Ireland

PostPosted: Thu Jul 06, 2006 10:31 pm    Post subject: Reply with quote

I have found a bug in the x264 app on linux (edit: I don't have access to a windows machine, so I'm not sure if it applies there too). I'm not sure if it's related to the changes that have been applied to make it pmp compatible.

Specifically, if I use the --threads flag to encode, it improves encode time slightly, but the player will not play the file. The resulting output files also differ.

Quote:
mylogin@computa:~/temp/small$ cmp unthreaded.pmp two_threads.pmp
unthreaded.pmp two_threads.pmp differ: byte 57, line 1


I should also point out that on linux I had to run the x264 app in the background /before/ kicking off the mplayer app (which is the input to the pipe) instead of the way 606u's script does it. I wont speculate on why this is (though I have some ideas).

I haven't tried 2 pass encoding yet, but I've seen some limitations in the single pass encode. I'll give that a bash.

On a more positive note, I was stunned at the smoothness of the playback from the pmp mod avc. Well done Jonny and Magick. Really great job.

Last thing: Jonny: Is this the kind of thing that you think should be kept in a separate thread? If so I'll move it to it's own thread (I was considering making an "encode for pmp mod in linux" thread anyway).
Back to top
View user's profile Send private message
jonny



Joined: 22 Sep 2005
Posts: 351

PostPosted: Thu Jul 06, 2006 11:39 pm    Post subject: Reply with quote

yep i know
when you enable more than 1 thread, the generated stream is no more compatible
for example, with 2 threads, the frame is divided in 2 parts and the data is stored in 2 different NALs, the psp decoder seems to don't like this
i think you can still use multithreading if you do multiple passes (only be sure to do the last pass with 1 th only)

your post is 100% ok
about what to post and not post here, the message was mainly directed to the discussion about mediacoder (too much unrelated to this thread imho)
what i also don't like here, are discussion/requests about basic encoding things that can be easly "googled"
actually the discussion about x264 under linux was quite technical, informative and useful
Back to top
View user's profile Send private message Visit poster's website
psp



Joined: 01 Jun 2006
Posts: 43

PostPosted: Fri Jul 07, 2006 6:21 pm    Post subject: Reply with quote

can pmp mod work on a 1.0 firmware?
Back to top
View user's profile Send private message
Khannie



Joined: 25 Apr 2006
Posts: 27
Location: Dublin, Ireland

PostPosted: Fri Jul 07, 2006 7:05 pm    Post subject: Reply with quote

jonny wrote:
i think you can still use multithreading if you do multiple passes (only be sure to do the last pass with 1 th only)


I'll try this out today and report back (probably tonight GMT). I'm not sure if there's a more convenient way of getting the input to the x264 program (on linux) than playing it through mplayer twice. It wont affect performance, but it might alter the output.


jonny wrote:
actually the discussion about x264 under linux was quite technical, informative and useful


Nice one. :)
Back to top
View user's profile Send private message
Khannie



Joined: 25 Apr 2006
Posts: 27
Location: Dublin, Ireland

PostPosted: Sat Jul 08, 2006 2:37 am    Post subject: Reply with quote

OK...as Jonny suspected threading works for the first pass in a two pass encode. It improves first pass encode speed by about 15-20% (judged by fps rather than a hard measurement) on a dual core (or multi-processor) system.

There is a noticeable improvement in quality using a 2 pass encode IMO.

One thing you have to change is the crf option as it doesn't make sense with a 2 pass encode. I replaced it with --bitrate. Your own preference applies here. I used 1000 and 850 and couldn't notice any difference between them (though there was a noticeable drop in filesize :)).

The relevant lines in my shell script now look like this:

Code:
PIPE=/tmp/pipe.y4m

rm -f $PIPE
mkfifo $PIPE || exit 1

~/install/bin/x264 --pass 1 --threads 2 --progress --bitrate 850 -A all --level 3 --pictiming --aud --no-psnr \
    --thread-input --output "/dev/null" $PIPE &
mplayer -benchmark -nosound -quiet -really-quiet \
    -vo yuv4mpeg:file=$PIPE -vf scale=480:272 "$1"

rm -f $PIPE
mkfifo $PIPE || exit 1

~/install/bin/x264 --pass 2 --progress --bitrate 850 -A all --level 3 --pictiming --aud --no-psnr \
    --thread-input --output "$2.264" $PIPE &
mplayer -benchmark -nosound -quiet -really-quiet \
    -vo yuv4mpeg:file=$PIPE -vf scale=480:272 "$1"


You should note that I have forced the width and height to the maximum. To use 606u's built in sizing, change 480:272 to $WIDTH:$HEIGHT

edit: It's probably not necessary to remake the fifo, but it does no harm.

Hope this helps someone. :)
Back to top
View user's profile Send private message
Khannie



Joined: 25 Apr 2006
Posts: 27
Location: Dublin, Ireland

PostPosted: Sat Jul 08, 2006 7:22 am    Post subject: Reply with quote

Only thought of windows users much later....and I think it warrants a new post:

The same encode style will of course work on windows, but you don't have to bother with the mplayer / pipe messing. Instead your complete 2 pass, threaded x264 encode would look like this:

x264 --pass 1 --threads 2 --progress --bitrate 850 -A all --level 3 --pictiming --aud --no-psnr --thread-input --output NUL myVideoFile.avi

x264 --pass 2 --progress --bitrate 850 -A all --level 3 --pictiming --aud --no-psnr --thread-input --output outputFile.264 myVideoFile.avi
Back to top
View user's profile Send private message
csuper



Joined: 03 Jan 2006
Posts: 103

PostPosted: Sat Jul 08, 2006 6:39 pm    Post subject: Reply with quote

psp wrote:
can pmp mod work on a 1.0 firmware?


@ jonny :

May I add... is there interesting (performance related) to have a firmware in 1.0 with PMP Mod or not ?
Back to top
View user's profile Send private message
Raphael



Joined: 17 Jan 2006
Posts: 646
Location: Germany

PostPosted: Sat Jul 08, 2006 7:34 pm    Post subject: Reply with quote

csuper wrote:
psp wrote:
can pmp mod work on a 1.0 firmware?


@ jonny :

May I add... is there interesting (performance related) to have a firmware in 1.0 with PMP Mod or not ?



As an answer, I quote Xtrusion from PSPU, who created the easy 1.5->1.0 downgrader:
Xtrusion wrote:
Remember that the 1.00 version still hasn't got any special applications, so there isn't any reason to leave 1.50 (unless you're a developer).


And yes, PMP Mod should work on 1.0, though I didn't test it yet. Just use the non-% single folder from the release.
Back to top
View user's profile Send private message Visit poster's website
Sudds



Joined: 09 Jul 2006
Posts: 15
Location: Ireland

PostPosted: Sun Jul 09, 2006 4:47 am    Post subject: Reply with quote

Just a bit of help please lads, am having a problem with VDUBMOD i scoured the forums looking for an answer but to no avail.
I have downloaded and installed Jonnys X264vfw fix, ran it and encoded with VDUBMOD used BEHAPPY to create audio and muxed with PMPMOD AVC, however it will not play on the PSP just gives me a black screen.
Am converting using AVI SYNTH SCRIPT (.AVS) there isnt a problem with it as VDUBMOD opens.
It may be simple but i just cant figure it out, any help at all would be apreciated. Thanks.
Back to top
View user's profile Send private message Visit poster's website
Shonen



Joined: 16 Jun 2006
Posts: 26

PostPosted: Sun Jul 09, 2006 7:16 am    Post subject: Reply with quote

Try encoding the same AVS with jonny's own x264 build or with the patched mencoder. See if that works. Try limiting general encoding questions in this thread, as jonny has pointed out. Perhaps you could start a thread over at the PSPVideo9 forums.

In other news, I saw this on PSPUpdates, being the re-addition of the .POS save/restore feature after stopping the playback: http://dl.qj.net/pmpmod-avc-1.02-sub-pos-support-media-apps-psp-homebrew-applications/pg/12/fid/8671/catid/140

Also, I quickly copy/pasted some custom XMB graphics for the eboot, which you can add with programs like PSPBrew. I got the picture from the European official MyPSP.com site. If anyone wants, I can also post the modified eboot.

http://users.pandora.be/erwinspages/test02c.png
http://users.pandora.be/erwinspages/test01a.png
Back to top
View user's profile Send private message
Khannie



Joined: 25 Apr 2006
Posts: 27
Location: Dublin, Ireland

PostPosted: Sun Jul 09, 2006 9:52 am    Post subject: Reply with quote

Shonen wrote:
In other news, I saw this on PSPUpdates, being the re-addition of the .POS save/restore feature after stopping the playback: http://dl.qj.net/pmpmod-avc-1.02-sub-pos-support-media-apps-psp-homebrew-applications/pg/12/fid/8671/catid/140


Nice one. Thanks for the heads up on that. I really missed that feature.
Back to top
View user's profile Send private message
Sudds



Joined: 09 Jul 2006
Posts: 15
Location: Ireland

PostPosted: Sun Jul 09, 2006 9:58 am    Post subject: Reply with quote

Quote:
Try limiting general encoding questions in this thread, as jonny has pointed out. Perhaps you could start a thread over at the PSPVideo9 forums.


Sorry bout that Shonen, will do.
Back to top
View user's profile Send private message Visit poster's website
Khannie



Joined: 25 Apr 2006
Posts: 27
Location: Dublin, Ireland

PostPosted: Sun Jul 09, 2006 12:30 pm    Post subject: Reply with quote

Not sure if this one is a bug or not, so I thought I'd better report it.

I altered the bframes and iframes settings in the x264 command line (as I was encoding a cartoon). I'm still learning as I go, so there may be an error in what I did, but the encode seemed to go without a hitch.

I got an error trying to play the resulting PMP file on the PSP though.

Code:
"avc_get: sceMpegAvcDecode failed"


The iframes / bframes option I used to encode was:

Code:
--ref 9 --bframes 5


The resulting pmp file was /very/ small (38 megs for a 22 minute episode inc 112kb mp3 sound). It was a single pass encode using crf of 25.

edit: ok....just in case I was being a big noob....I went back through this thread and found this:

jonny wrote:
you should post the full parameters set if you encounter problems
(some parameters may generate incompatible stream, i'm interested in this type of feedback)


so....

Code:
x264 --progress --crf 25 -A all --level 3 --pictiming --aud --no-psnr --thread-input --ref 9 --bframes 5 --output output.264 $PIPE


ofc, on windows, $PIPE would just be your avs script, or avi file. :)
Back to top
View user's profile Send private message
606u



Joined: 29 Jun 2004
Posts: 33

PostPosted: Sun Jul 09, 2006 6:02 pm    Post subject: Reply with quote

It doesn't like B-frames, but I might be wrong.
Back to top
View user's profile Send private message Visit poster's website
jonny



Joined: 22 Sep 2005
Posts: 351

PostPosted: Sun Jul 09, 2006 6:25 pm    Post subject: Reply with quote

@Khannie:

x264 support only uncompressed avi (both on windows/linux)
on windows we use avisynth to frameserve, there is a minitut some pages ago
(in case you have missed there is also the possibility to compile mencoder with the modified x264 support - so no need to pipe or frameserve)


@Sudds:

i need to know:
- your psp fw version
- pmpmodavc version used (1.02? mine? Raphael?)
- are you using the settings suggested in the screenshot?
- muxer version used
- you could also encode a small trailer and upload it somewhere


@Shonen:

actually a black screen report deserve some examination, this is not a simple encoding question


@606u:

yep bframes doesn't works
Back to top
View user's profile Send private message Visit poster's website
Sudds



Joined: 09 Jul 2006
Posts: 15
Location: Ireland

PostPosted: Sun Jul 09, 2006 8:55 pm    Post subject: Reply with quote

@ Jonny
My firmware is 1.50.
I,am using PMP Mod AVC v1.02
PMP Muxer AVC v1.01
I have also tryed the X264 Modified version
and the x264vfw Modified version.
All downloaded from your site.
Back to top
View user's profile Send private message Visit poster's website
Shonen



Joined: 16 Jun 2006
Posts: 26

PostPosted: Sun Jul 09, 2006 9:17 pm    Post subject: Reply with quote

Try making an "encode.bat" file, edit it with notepad, and enter this code:

Code:
x264 --bitrate 512 -A all --level 3 --pictiming --aud --no-psnr --thread-input --progress --output youroutput.264 yourfile.avs


Then run encode.bat. This is the most basic command line jonny's suggested, and it has always worked for me.

Then mux the youroutput.264 and the 44.1 stereo mp3 file with the muxer, personally I've stuck with version 1.0 of the muxer.

And sorry that I waved my little finger a bit earlier ^_^
Back to top
View user's profile Send private message
Sudds



Joined: 09 Jul 2006
Posts: 15
Location: Ireland

PostPosted: Sun Jul 09, 2006 9:58 pm    Post subject: Reply with quote

Thanks Shonen.
No worrys mate! ;)

Yeah it works mate, why didnt i think of that earlier...
Cheers Shonen.
Back to top
View user's profile Send private message Visit poster's website
Sudds



Joined: 09 Jul 2006
Posts: 15
Location: Ireland

PostPosted: Mon Jul 10, 2006 7:57 am    Post subject: Reply with quote

I,ve noticed that when using the command line the picture can be blockie in parts, is there any way or incorperating 2pass into the command line?
Back to top
View user's profile Send private message Visit poster's website
Shonen



Joined: 16 Jun 2006
Posts: 26

PostPosted: Mon Jul 10, 2006 9:21 am    Post subject: Reply with quote

Khannie wrote:


x264 --pass 1 --threads 2 --progress --bitrate 850 -A all --level 3 --pictiming --aud --no-psnr --thread-input --output NUL myVideoFile.avi

x264 --pass 2 --progress --bitrate 850 -A all --level 3 --pictiming --aud --no-psnr --thread-input --output outputFile.264 myVideoFile.avi


Or you could try upping the bitrate (768 for standard DVD content, and 1000-1500 is great for flashy trailers) or using CRF (16-22).
Back to top
View user's profile Send private message
Eingang



Joined: 04 Jan 2006
Posts: 59

PostPosted: Mon Jul 10, 2006 6:50 pm    Post subject: Reply with quote

@jonny

request: a tiny program to join several pmp files (avc)

would that be very difficult ?
Back to top
View user's profile Send private message
therock003



Joined: 23 Sep 2005
Posts: 96

PostPosted: Mon Jul 10, 2006 11:52 pm    Post subject: Reply with quote

jonny wrote:
i assume you have installed the splitter in this way:

regsvr32 pmpsplitter.ax


now, the splitter alone doesn't work, it is supposed that you also have an h264 directshow decoder installed

you'll probably solve installing ffdshow:

http://tirnanog.fate.jp/mirror/ffdshow/


I have the patched version of x264.IS it encoder only or decoder as well?Does that mean i still need a codec pack?Also after i register the pmpslitter file,do i need to have the file saved somewhere on the disk or can i safely remove it?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Goto page Previous  1, 2, 3 ... 52, 53, 54 ... 60, 61, 62  Next
Page 53 of 62

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group