[FFmpeg-devel] [FFmpeg-user] Remuxing for the PS3

Patrik Kullman patrik
Mon Apr 6 09:18:46 CEST 2009

On Sat, 2009-04-04 at 12:49 +0200, Christian Iversen wrote:
> M?ns Rullg?rd wrote:
> > Baptiste Coudurier <baptiste.coudurier at gmail.com> writes:
> > 
> >> On 4/3/2009 12:57 PM, M?ns Rullg?rd wrote:
> >>> Robert Swain <robert.swain at gmail.com> writes:
> >>>
> >>>> Rather than arguing about whether it's on- or off-topic, why don't we
> >>>> try to figure out what is wrong with ts muxing with regard to the
> >>>> files being demuxed on the PS3? If it is insisted upon, this could
> >>>> move back to FFmpeg-user.
> >>>>
> >>>> A good start would be to have a sample ts file or so that is (/are)
> >>>> known to be working on a PS3 and a sample file that is known to be not
> >>>> working on a PS3 and the attention of someone who knows something
> >>>> about ts.
> >>> The problem is that TS files created by FFmpeg are wildly out of
> >>> spec.  What is needed is a complete rewrite of the TS muxer, which is
> >>> not a simple task.
> >> I don't think this is needed, what is needed is to implement a correct
> >> buffering model for the TS muxer, it can/should reuse some existing code
> >> in PS muxer if possible.
> > 
> > For H.264 some additional descriptors need to be generated as well.
> > This part should be fairly simple though.
> Also, for H.264, ffmpeg seems to set video type = 0x0000. I'm pretty 
> sure that's wrong too. In fact, it might be one of the major reasons the 
> PS3 wont recognize the video, come to think of it.
> (Or, it's just some wrong info ffmpeg displays on the screen only. I'm 
> not sure if 0x0000 actually goes into the file anywhere)

I was looking at this some time ago as well.
There was a couple of things I noticed.

First, the PS3 doesn't seem to play H264 Level 5.1, so it has to be
changed to 4.1.

But more interestingly, tsMuxer seems to add the header like 10-15
times, apparently that is needed by some hardware decoders (including
the PS3?).

I'd be glad to help out with this if I can be of any assistance.

Best regards,

More information about the ffmpeg-devel mailing list