MythTV and PS3: problems with formats

Michael Fox has commented on the reasonable UPnP client in the PS3 and its interactions with MythTV, and I think he's helped me work out why I've been having some problems. It seems Myth is recording in different formats, for what reason I don't know. So when MythTV offers them over UPnP, some of them play and others just don't.

For example the output from file:

1010_20090217175500.mpg: MPEG transport stream data
1020_20090216233000.mpg: data
1020_20090217172200.mpg: data
1020_20090217190000.mpg: data
1020_20090217192700.mpg: data
1020_20090217212700.mpg: MPEG transport stream data
1020_20090217223000.mpg: TeX font metric data (\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377

Dunno about the TeX font metric data, but there's some that are MPEG and others that are just "data". On that first item (identified as MPEG TS by file), mplayer reports:

VIDEO MPEG2(pid=512) AUDIO MPA(pid=650) NO SUBS (yet)!  PROGRAM N. 1
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  9000.0 kbps (1125.0 kbyte/s)

The second one is reported as

VIDEO MPEG2(pid=2314) AUDIO A52(pid=2315) NO SUBS (yet)!  PROGRAM N. 1
VIDEO:  MPEG2  1280x720  (aspect 3)  50.000 fps  9600.0 kbps (1200.0 kbyte/s)

So the first file is MPEG2, 576i with MPEG audio. The second is MPEG2, 720p with A/52 (AC-3) audio. Trouble is, the next one that file identified as MPEG TS is also 720p MPEG2 video with A/52 audio.

Is the problem, perhaps, just that MythTV is a bit sloppy about writing MPEG TS to the disk and just writes whatever crap is coming down the aerial, regardless of whether it's a valid MPEG header? I seem to recall a rather obscure option in the MythTV settings to wait until some kind of start thing ("Wait for SEQ"?). Will try that out tonight.

A couple of questions, dear lazyweb. Can anyone suggest some better tools to analyse these files? And how do I match these programmes up with their equivalent recordings in MythTV, so I can see if it's perhaps a specific tuner or channel that's causing problems?