Log in

View Full Version : Stream h.264/ac3 to PS3?


jkc120
12th January 2008, 00:27
Sorry if this is in the wrong forum...If so, can a mod move it to the appropriate place (or where it'll get the proper exposuse)?

Anyway, I was wondering if it is possible to stream ab AVC/AC3 video to the PS3. My input file is an mkv file, and I know this is not supported directly, but I have found a way to play them back:

- mkvextract the mkv into .h264 and .ac3 files
- use h264info (or a C program I wrote for linux) to change the Level from 5.1 to 4.1
- transcode ac3 into aac
- mux with mp4box

This works great. However, the audio is 5.1 AAC which I understand the PS3 sends out as PCM 2.0 via TOSLINK.

Is there a way to combine the edited .h264 stream and the original .ac3 stream into an appropriate container/file, and stream that to the PS3? If so, what mime-type is it expecting? I am currently using ushare, and it has various definition for each extension. E.g. for mp4, I had to change it to:

{ "mp4", "AVC_TS_MP_HD_AAC_MULT5", UPNP_VIDEO, "http-get:*:video/mp4:"},

Any help would be appreciated! I do not have a wired windows box, so I need to be able to do all this with open source tools, though if a step is missing and is something I can write my own perl/c script for, I'm ok with that.

Thanks in advance!

dburckh
12th January 2008, 05:53
You best bet is to get it into an M2TS container. You may be able to mux it to .ts with ffmpeg and remux it to m2ts with TsRemux.

jkc120
12th January 2008, 17:20
You best bet is to get it into an M2TS container. You may be able to mux it to .ts with ffmpeg and remux it to m2ts with TsRemux.

Thanks for the response! I can target a .ts with ffmpeg, yeah, no problem. What does TsRemus do exactly, though? What's the difference between a .ts and an .m2ts?

Thanks!

dburckh
12th January 2008, 23:59
m2ts is just ts with the arrival time (an extra timestamp) prepended on the packet making it 192 bytes instead of the normal ts 188. It's what is used by BluRay, so the PS3 really likes this format.