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 

Capabilities of the hardware mpeg4 decoder.

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



Joined: 14 Dec 2007
Posts: 2

PostPosted: Thu Jan 01, 2009 12:28 pm    Post subject: Capabilities of the hardware mpeg4 decoder. Reply with quote

Recently I realized that the psp is capable of decoding 480p h.264...

Today, after doing a few searches around these forums, I found this thread:
http://forums.ps2dev.org/viewtopic.php?t=8846&highlight=264

It seems to suggest that we can decode mpeg4 part 2.


I was just wondering if someone could please give me a summary of what exactly we can do this decoder and what we might be able to do in the future.

what I would like to do (and everyone else I am sure) is decode everything that is floating around on the tubes these days. Essentially, decoding of files containing xvid and x264 without being picky about it.


I was hoping that I would be able to play h.264 or XviD 480p video of resolutions 856x480 and 640x480 at full speed.

Is this possible? Will it ever be possible?

Thanks
Back to top
View user's profile Send private message
Shapyi



Joined: 25 Apr 2005
Posts: 95

PostPosted: Thu Jan 01, 2009 3:44 pm    Post subject: Reply with quote

Well right now cooleyes and others have only been able to decode 480x272 res H.264 and MPEG4 videos with PSP in homebrew. But you are correct, in the XMB you can play 720x480p videos without a problem. Hopefully someone will figure out how to perform the same task in homebrew.

It would be great to have a media player that allows me to drag and drop my standard def AVI and MKV files to PSP for smooth playback without any extra encoding.
Back to top
View user's profile Send private message
iam



Joined: 28 Nov 2007
Posts: 3

PostPosted: Fri Jan 23, 2009 1:25 pm    Post subject: Reply with quote

Shapyi wrote:
Well right now cooleyes and others have only been able to decode 480x272 res H.264 and MPEG4 videos with PSP in homebrew. But you are correct, in the XMB you can play 720x480p videos without a problem. Hopefully someone will figure out how to perform the same task in homebrew.

It would be great to have a media player that allows me to drag and drop my standard def AVI and MKV files to PSP for smooth playback without any extra encoding.


I'm pretty sure the PSP doesn't have the guts to run MKVs (at least not the standard 720p ones)...
I sure hope a good media player makes it sometime though, avi, wmv container is what I'm looking for...
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Fri Jan 23, 2009 2:30 pm    Post subject: Reply with quote

iam wrote:
Shapyi wrote:
Well right now cooleyes and others have only been able to decode 480x272 res H.264 and MPEG4 videos with PSP in homebrew. But you are correct, in the XMB you can play 720x480p videos without a problem. Hopefully someone will figure out how to perform the same task in homebrew.

It would be great to have a media player that allows me to drag and drop my standard def AVI and MKV files to PSP for smooth playback without any extra encoding.


I'm pretty sure the PSP doesn't have the guts to run MKVs (at least not the standard 720p ones)...
I sure hope a good media player makes it sometime though, avi, wmv container is what I'm looking for...


Well, if it could be figured out how to make the codec decode more resolutions, it would be possible to make a player that decoded MKV/et al and re-muxed the streams as mp4. That would take almost no power at all. The power would be used to decode just the audio while the video was passed along (if the audio was aac, it could be passed along as well).
Back to top
View user's profile Send private message AIM Address
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Fri Jan 23, 2009 8:35 pm    Post subject: Reply with quote

If you can identify the internal working of the scevideoopen (or whatever) function you wouldn't need to remux at all. Its highly probably that that function is just handling the MP4 container.

Most MKVs are AAC 5.1 anyway cos they are BD/HDDVD rips, unless they chose the less efficient original alternate DTS/AC3 stream to save them the headache of transcoding the HD audio as well.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sat Jan 24, 2009 8:13 am    Post subject: Reply with quote

Torch wrote:
If you can identify the internal working of the scevideoopen (or whatever) function you wouldn't need to remux at all. Its highly probably that that function is just handling the MP4 container.


Yeah, having one level further up would be useful, but more likely to be changed by Sony without warning.

Quote:
Most MKVs are AAC 5.1 anyway cos they are BD/HDDVD rips, unless they chose the less efficient original alternate DTS/AC3 stream to save them the headache of transcoding the HD audio as well.


Many do, but many don't. Most of my MKVs have AC3 or OGG. But that's not a problem if the codec could be used for the video stream as that would leave plenty of power for decoding even DTS audio. The main CPU would split the incoming transport stream (AVI, MKV, OGM, MOV, etc) into the elementary streams, then remux the video into MP4 along with the audio if the audio stream is AAC. If not, the audio stream is passed to a decoder. The MP4 is passed to the codec.

That would be the "ideal" video player for the PSP. The only thing it relies on is that the elementary video stream is compliant with the Sony codec... and that's usually the case. In fact, like you mention, often the ONLY thing that the codec doesn't understand is the container.
Back to top
View user's profile Send private message AIM Address
Shapyi



Joined: 25 Apr 2005
Posts: 95

PostPosted: Mon Jan 26, 2009 7:10 am    Post subject: Reply with quote

iam wrote:
Shapyi wrote:
Well right now cooleyes and others have only been able to decode 480x272 res H.264 and MPEG4 videos with PSP in homebrew. But you are correct, in the XMB you can play 720x480p videos without a problem. Hopefully someone will figure out how to perform the same task in homebrew.

It would be great to have a media player that allows me to drag and drop my standard def AVI and MKV files to PSP for smooth playback without any extra encoding.


I'm pretty sure the PSP doesn't have the guts to run MKVs (at least not the standard 720p ones)...
I sure hope a good media player makes it sometime though, avi, wmv container is what I'm looking for...


Well I wouldn't expect 720p on PSP, but standard def should be possible.

J.F. wrote:
Many do, but many don't. Most of my MKVs have AC3 or OGG. But that's not a problem if the codec could be used for the video stream as that would leave plenty of power for decoding even DTS audio. The main CPU would split the incoming transport stream (AVI, MKV, OGM, MOV, etc) into the elementary streams, then remux the video into MP4 along with the audio if the audio stream is AAC. If not, the audio stream is passed to a decoder. The MP4 is passed to the codec.


So there is no way for PSP just to decode a plain mpeg4/avc stream, it has to be in some sort of container?
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Mon Jan 26, 2009 9:21 am    Post subject: Reply with quote

Shapyi wrote:

J.F. wrote:
Many do, but many don't. Most of my MKVs have AC3 or OGG. But that's not a problem if the codec could be used for the video stream as that would leave plenty of power for decoding even DTS audio. The main CPU would split the incoming transport stream (AVI, MKV, OGM, MOV, etc) into the elementary streams, then remux the video into MP4 along with the audio if the audio stream is AAC. If not, the audio stream is passed to a decoder. The MP4 is passed to the codec.


So there is no way for PSP just to decode a plain mpeg4/avc stream, it has to be in some sort of container?


There may be a way to avoid that, but I think what we have at the moment is container level.
Back to top
View user's profile Send private message AIM Address
Shapyi



Joined: 25 Apr 2005
Posts: 95

PostPosted: Tue Feb 03, 2009 1:43 pm    Post subject: Reply with quote

J.F. wrote:
Shapyi wrote:

J.F. wrote:
Many do, but many don't. Most of my MKVs have AC3 or OGG. But that's not a problem if the codec could be used for the video stream as that would leave plenty of power for decoding even DTS audio. The main CPU would split the incoming transport stream (AVI, MKV, OGM, MOV, etc) into the elementary streams, then remux the video into MP4 along with the audio if the audio stream is AAC. If not, the audio stream is passed to a decoder. The MP4 is passed to the codec.


So there is no way for PSP just to decode a plain mpeg4/avc stream, it has to be in some sort of container?


There may be a way to avoid that, but I think what we have at the moment is container level.


How is the decoder working right now? Are we using a PRX provided by Sony or has it been written from scratch? Because it might be a good idea to figure out how to access the different hardware syscalls and just write our own decoders from scratch that take advantage of the media engine hardware directly instead of going through Sony's.
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Tue Feb 03, 2009 6:18 pm    Post subject: Reply with quote

Thats more or less way beyond the effort anyone is going to put into this.

The Sony PRXs reconfigure the VME and stuff I think, to decode in hardware. Its easier to just use their PRXs, although using them at one level higher that what we are now will be nice.
Back to top
View user's profile Send private message
Shapyi



Joined: 25 Apr 2005
Posts: 95

PostPosted: Wed Feb 04, 2009 4:15 am    Post subject: Reply with quote

Do you know the specific prx modules that are being used? I might want to try disassembling them to get some insight into this.
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