Log in

View Full Version : Problem with Mpeg-4 H.264 AVC .TS


bokonon
3rd February 2008, 18:47
OK, so i have a Transport Stream cap from HDTV and it plays smoothly until half way through there is a glitch where the capper has cut out the half time break. It jumps about 10 minutes from ~50min => ~60min. This area is also impossible to seek to. (using MPC with FFD Show).
Tried demuxing the raw video and audio streams in Xport and it seems to hang for a while, report discontinuities, hang again, and then exit. The .mpv and .mpa files are 0 bytes. (see screengrab).
http://i27.tinypic.com/1t99h2.png
Tried opening the file in AVInaptic (which is usually very good with most files) and it doens't even recognise it as a video file! (see screengrab)
http://i31.tinypic.com/71o9s7.png

I thought the error was just a timestamp problem, so i cut it into two files (the timestamp error is bang in the middle) cutting out a few extra frames either side just to be safe. (used H264TS_Cutter for this). However, i had no luck demuxing these streams either. xport just seems to sit there for a minute and then close. However, i don't get the discontinuity errors. The mpv and mpa files are both 0 bytes

So the question is, is this a bad source? Can I overcome these problems to encode it? Any ideas are welcomed, cuz i haven't a clue!

I just want to get this into and avs script so i can encode it. The only method i know is to demux, run dgavcdecode to index the video stream and use the dgdecode plugin to load it in my script. As i said, the file plays fine in ffdshow (aside from the timestamp glitch...which can be avoided by splitting the files). So there must be SOME way of getting it into an AVS script

Thanks for your time, I really hope someone can help me :)

Guest
4th February 2008, 05:47
Can you cut the section containing the problem area and make it available for download? I have just added demux capability to DGAVCIndex and would like to try it. I'll be able to tell you what the problem is.

BTW, that version of DGAVCIndex with full transport support will be posted shortly.

You can use DGSplit and then just give me the segment with the problem area.

drmpeg
4th February 2008, 11:03
Tried demuxing the raw video and audio streams in Xport and it seems to hang for a while, report discontinuities, hang again, and then exit. The .mpv and .mpa files are 0 bytes. (see screengrab).
http://i27.tinypic.com/1t99h2.png


Thanks for your time, I really hope someone can help me :)
You have to tell xport which program you want to demux. The first thing that xport does is show you the program numbers that are in the stream. For your stream, the program numbers are 3802, 3877, 3878 and 3881. Try xport with the command line:

xport 1.ts 3877 1 1

You should get elementary streams for that program, since there's packets on pid 258 (which is the PMT for program 3877).

After that, try the other programs:

xport 1.ts 3802 1 1
xport 1.ts 3878 1 1
xport 1.ts 3881 1 1

If you don't see the elementary stream information appear right away, you can always abort xport with control-c.

Ron