PDA

View Full Version : PS3 : Changing profile header info from 5.1 to 3.1 to remux mkvs to mp4 super quick.


zeroprobe
10th May 2007, 17:58
Ok guys PS3 Video 9 can remux an x264 mkv file to a ps3 compatible MP4 format. It saves re-encoding the video which can take ages.

Problem is this method only works on I think 3.1 and 4.1 profile videos.

In the thread below someone claimed to have changed the header information which was the only thing holding back the PS3 to play it.

Is there anyway to hexedit to make the header read 3,1 or 4.1???

http://www.redkawa.com/forums/showthread.php?t=723&page=9

jcar
10th May 2007, 22:42
Does it Do the trick?!?! I'll be damned!!
The guy says he played with both Quicktime and Videolan. I haven't had success with any VLC transcoding, but as far as I know, QT won't even open High profile @ 5.1 files. I've tried and it doesnt, and when you attempt to re-mux using "pass through" there will be an error.

zeroprobe
10th May 2007, 23:24
Does it Do the trick?!?! I'll be damned!!
The guy says he played with both Quicktime and Videolan. I haven't had success with any VLC transcoding, but as far as I know, QT won't even open High profile @ 5.1 files. I've tried and it doesnt, and when you attempt to re-mux using "pass through" there will be an error.


would like to try changing the track info from 5.1 to 3.1 if anyone knows? worth a shot.

jcar
11th May 2007, 00:04
I've watched that youtube video and it can't be reproduced in windows because if you open a regular (I don't even know what to call regular anymore) mp4 file encoded with high profile, the save as .MOV won't work.

I tried the following:
1) I downloaded a mkv sample off bittorrent. It's from a movie. It's a 60 second sample, it's all I need :P
2) Used ps3 video 9 to 'convert' the file to mp4, using the mkv profile. It remuxes it into an mp4
3) That mp4 file CAN'T be saved into a .mov file using QT pro.
The mp4 files OPENS, the window gets resized to the actual 1280x... (it's not 720, it's 500 something :P) and the audio plays or seems to play.
4) Since that didn't work, I used VLC to do the trick and re-save it in .MOV. QT opens that file but now it thinks its size is 16x16 and no audio.
5) Went two paths:
a) Saved the "vlc mov" into a "qt mov" using qt pro "save as.." and then opened it and used the pass-through settings in qt to get an MP4 file
b) Directly saved the "vlc mov" into an mp4 file using qt pro pass-through.

Both mp4 files from 5) are exactly the same.

Neither mp4 obtained in steps 2 or 5 are playable on the ps3. YAMB reports the mp4 from step 2 as high profile @ 5.2 and the mp4 from step 5 as "uknown profile" @ 5.2

Tried a different path, used the mp4 from step 2 and used VLC to get another mp4. That one makes YAMB crash so I didn't even bother .



MP4 from step 2
* Movie Info *
Timescale 600 - Duration 00:00:59.183
Fragmented File no - 2 track(s)
File Brand isom - version 1
Created: GMT Thu May 10 22:06:40 2007

File has root IOD
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: AVC/H264 Profile (0x15)
Audio PL: AAC Profile @ Level 4 (0x2a)
No streams included in root OD

Track # 1 Info - TrackID 1 - TimeScale 24000 - Duration 00:00:59.184
Media Info: Language "Undetermined" - Type "vide:avc1" - 1419 samples
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 1280 x 528 - Profile High @ Level 5.1
NAL Unit length bits: 24
Self-synchronized

Track # 2 Info - TrackID 2 - TimeScale 48000 - Duration 00:00:59.072
Media Info: Language "Undetermined" - Type "soun:mp4a" - 2769 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio AAC LC - 6 Channel(s) - SampleRate 48000
Synchronized on stream 1



MP4 from step 5
* Movie Info *
Timescale 90000 - Duration 00:00:58.183
Fragmented File no - 1 track(s)
File Brand mp42 - version 1
Created: GMT Fri May 11 23:13:56 2007

File has no MPEG4 IOD/OD

Track # 1 Info - TrackID 1 - TimeScale 1001 - Duration 00:00:58.220
Media Info: Language "English" - Type "vide:avc1" - 905 samples
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 16 x 16 - Profile Unknown @ Level 5.1
NAL Unit length bits: 32
Self-synchronized
---------------

I'm using an hex editor to change the header so that it will show as main profile and something else. Now, yamb reports main profile @ level 5.1
I don't know the level hex values though
Okay, Now I got it 'hacked' to Main profile @ 3.1... let's play!!


Let's see what I can get from this

jcar
11th May 2007, 00:44
I changed the hex values of the mp4 file I got from ps3 video converter. It still won't play on the ps3, but now it correctly plays on VLC! So that's something.

The mp4 file is still a file the ps3 doesn't like... so let's try the qt trick. QT won't play it, because it obviously can't handle it.

zeroprobe
11th May 2007, 07:47
Great Work,

Could you share which bit to edit in a hex editor im going crazy trying find it.

jcar
11th May 2007, 08:31
near the beginning of the file, it says "avcC." after the dot (which I suppose is not an actual dot, but a "00" character) there are 3 more bytes which are "64 00 33"
64 is "high level" and "33" is 51 in decimal (level 5.1)

"4D 40 1F" would be "main profile @ level 3.1"

This is the page where I got the info from
http://66.102.9.104/search?q=cache:EKwSvcSd_dMJ:lists.xiph.org/pipermail/theora/2007-April/001439.html+avc+hex+profile+codes&hl=en&ct=clnk&cd=3&client=firefox-a

and the rest was messing with the file :P

jcar
11th May 2007, 08:39
The hacked file, remuxed into a .MOV using VLC and then remuxed into an MP4 using QT pass-through didn't work either. In the process of getting it muxed to MOV, it seems that the audio track info gets lost, as well as the video resolution. The file was reported as "corrupted" in the PS3, which is different than "Unsupported data" :P

zeroprobe
11th May 2007, 09:11
The hacked file, remuxed into a .MOV using VLC and then remuxed into an MP4 using QT pass-through didn't work either. In the process of getting it muxed to MOV, it seems that the audio track info gets lost, as well as the video resolution. The file was reported as "corrupted" in the PS3, which is different than "Unsupported data" :P

Thanks

Have you give 4.1 a try. Think I have had more success with 4.1 encodes. Can't try this until I get in from work.

Jcar this was an x264 tv ep that worked with redkawa mkv>mp4 remux. It was 4.1 and the hex was 4D 40 29