Log in

View Full Version : Demuxing/Encoding .pmf (PSP) video files


Cyber Akuma
15th August 2006, 06:37
Now, I know these are Linux tools, but im using Windows 2000. Also, this is my first time using mplayer and mencoder (normally I use vdub mod).

Ok, this one is driving me crazy, im trying to encode the intro of a PSP game, I got the video file off the disk but I am having trouble converting it.

It appears to be a h264 video stream and an (by my best guess) ATRAC3 audio stream (AAAARRRGGGHHH) muxed within some type of modified mpeg-2 container.

Using mplayer I was able to attempt to dump the video data successfully, problem is it was dumped as a raw h264 stream. I have tried my best to mess around with mencoder and try to put it in an avi container, but while it works if I use raw output or re-encode, it dosent work if I just attempt to put the raw stream into an AVI container. The original h264 quality is already pretty much perfect and the filesize is decent as well, how can I just put this stream into an avi container? I don't want to re-encode it.

As for the audio, I am COMPLETELY clueless. To be honest, im not even 100% sure if it is AC3, or if it is that its being extracted correctly. I have had problems like this before with the PS2's MPEG-2 format (.pss) where video streams werent a problem to extract but audio was a real pain. Regardless, nothing I tried seems to be able to play it or even analyze it, and mplayer crashes attempting to play the muxed version, but has no trouble palying the video if I extract it, audio it can't even touch however.

blutach
15th August 2006, 07:10
Thread transferred to H264.

Regards

Blue_MiSfit
15th August 2006, 09:26
Take the raw stream and mux to an MP4 with mp4box / yamb.

Good luck dealing with that ATRAC3 shit. Sony and their proprietary crap...:devil: :devil: :devil:

h264 doesn't mux happily in AVI. It can be done but there has been much discussion on the pros and cons of this. I think the program AVC2AVI can do it, though I cant vouch either way.

H.264 belongs in a container that natively supports it I always say.

Cyber Akuma
15th August 2006, 13:53
Take the raw stream and mux to an MP4 with mp4box / yamb.

Good luck dealing with that ATRAC3 shit. Sony and their proprietary crap...:devil: :devil: :devil:

h264 doesn't mux happily in AVI. It can be done but there has been much discussion on the pros and cons of this. I think the program AVC2AVI can do it, though I cant vouch either way.

H.264 belongs in a container that natively supports it I always say.

Huh.... ive had no problems encoding AVi/h264/VBRMP3 files before.

Also, I tried mp4box, it complained that the h264 stream was truncated and refused to work.

bond
15th August 2006, 18:31
are you sure that its h264? what tells you so?

try a newer mp4box compile. still if your h264 stream starts with garbage it starts with garbage...

about reencoding atrac3: no idea

Cyber Akuma
16th August 2006, 00:12
Well, guides about PSP video file ripping tell me that usually these videos are 264 format.

Mplayer tells me that the video is 264 format when I play it.

Gspot also identifies it as 264 format, both the full file (though it can't detect the audio stream) and the video stream alone.