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 

Current AVC decoder hardware hack is not completed?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
happycoding



Joined: 22 Jan 2006
Posts: 31

PostPosted: Mon Jul 23, 2007 11:33 pm    Post subject: Current AVC decoder hardware hack is not completed? Reply with quote

I am a AVC newbie, and please correct me if I am wrong.

I know Jonny's PMP MOD AVC 1.02 and jockyw2001's PMP VLC Player 009 Rev4 all depend on a patched x264[1].

Why? I mean SONY's PSP player can play AVC encoded with un-patched x264, but our hacked AVC hardware decoder[2] can only deal with patched x264 data?

Reference
1. patched x264. http://jonny.leffe.dnsalias.com/pmp_mod_avc/rar/x264_2nd_source.rar
2. pspsdk's mpeg and libmpeg. http://www.geardome.com/pspsdk-doc/pspmpeg_8h.html
Back to top
View user's profile Send private message
jockyw2001



Joined: 29 Sep 2005
Posts: 339

PostPosted: Tue Jul 24, 2007 2:28 am    Post subject: Reply with quote

How do you know that PSP plays standard compliant h264 video and do you know for sure video UMDs contain standard h264?
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Jul 25, 2007 11:21 am    Post subject: Reply with quote

You didn't read the page carefully. Look at this quote:

Quote:
In the muxer you need to specify width, height and fps of the video.
I've patched x264 to write a file with this informations.


The only patch to x264 is to make it write a small text file containing certain paramters (resolution, frame rate) for use by the MUXER. If you enter those parameters by hand in the muxer, you can use the normal x264 just fine.
Back to top
View user's profile Send private message AIM Address
happycoding



Joined: 22 Jan 2006
Posts: 31

PostPosted: Wed Jul 25, 2007 2:08 pm    Post subject: Reply with quote

J.F. wrote:
You didn't read the page carefully. Look at this quote:

Quote:
In the muxer you need to specify width, height and fps of the video.
I've patched x264 to write a file with this informations.


The only patch to x264 is to make it write a small text file containing certain paramters (resolution, frame rate) for use by the MUXER. If you enter those parameters by hand in the muxer, you can use the normal x264 just fine.


I don't agree with you. The following is the readme for the x264 patch[1].
--------
x264-pictiming-magik.diff:
this patch is made by magiK (magik@hypermagik.com), it makes the stream compatible with the psp

x264-info_file.diff:
this patch is made by jonny (jonny@leffe.dnsalias.com), it writes stream informations to a file (to make the muxing process

easier)
it also changes some defaults (to make vfw interface compatible)

usage:
x264 --crf 25 -A all --level 3 --pictiming --aud --no-psnr --thread-input --progress --output out.264 in.avs
--------
I am a x264 newbie and I don't know the tech details about this patch, then I ask for clarification here.

Reference
1. patched x264. http://jonny.leffe.dnsalias.com/pmp_mod_avc/rar/x264_2nd_source.rar
Back to top
View user's profile Send private message
jockyw2001



Joined: 29 Sep 2005
Posts: 339

PostPosted: Wed Jul 25, 2007 2:55 pm    Post subject: Reply with quote

PSP doesn't play x264 streams/files w/o x264-pictiming-magik patch. I come back to my question, how do you know that PSP can play std h264 vid streams? (i.e. w/o pictiming tweak). You can try by creating h264/aac files with an unpatched VLC and my patched VLC (uses patched x264).

And search for magiK's original post to get background information about his unbelievable research.
Back to top
View user's profile Send private message
jockyw2001



Joined: 29 Sep 2005
Posts: 339

PostPosted: Fri Jul 27, 2007 8:24 pm    Post subject: Reply with quote

There are h.264 encoders which encode fine for PSP. I tried a file encoded with Elgato Turbo.264 encoder (uses Mobilygen MG1264 video processor) and it works fine. So it must include the buffering_period and pic_timing SEIs in the videostream. Only a few sw encoders do that, e.g. Mainconcept and Elecard and of course the tweaked x264. Perhaps the current x264 no longer needs MagiK's patch. You can easily test that.
Back to top
View user's profile Send private message
happycoding



Joined: 22 Jan 2006
Posts: 31

PostPosted: Sun Jul 29, 2007 8:09 pm    Post subject: Reply with quote

jockyw2001 wrote:
PSP doesn't play x264 streams/files w/o x264-pictiming-magik patch. I come back to my question, how do you know that PSP can play std h264 vid streams? (i.e. w/o pictiming tweak).


I know PSP 2.71 firmware Video Player (not homebrew) can play AVC-MP4 created by 3GP_Converter 0.34(http://www.nurs.or.jp/~calcium/3gpp/) which was released on 2005/12/1 and the pictiming-magik patch was released on 2006 (then 3GP_Converter 0.34 does not contain the pictiming-magik patch)

AFAIK, 3GP_Converter 0.34 has not patched x264 then I think it is a std h264 vid stream.

I mean PSP 2.71 firmware Video Player (not homebrew) can play std h264 vid stream, while current homebrew AVC hardware decode (e.g., PSPSDK libmpeg) can not.

Anyway, I am investigating on how to let PMP VLC Player play UMD Video with AVC hardware decoder because there are a lot of existing UMD Video (AVC-MP4) and I don't want to transcode UMD Video using patched x264. (I know I can use PSP 2.71 firmware Video Player to play UMD Video)
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
Page 1 of 1

 
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