PDA

View Full Version : DVB and ProjectX demux problems--Help!!


bcsman
19th May 2005, 15:43
I'm pulling my hair out trying to figure this out!! I'm recording a DVB stream with my SkyStar2 DVB card using Mytheatre 3.08. Everything records just fine, but when I try to demux using ProjectX it looks at the recordings differently. The two recordings are the Hallmark channel and a movie channel. The PMT and PID information seems to look the same but there must be something different about the streams I'm recording that make ProjectX process them differently. I've included a ProjectX text file from the two clips I recorded. THe first is a short clip of the Hallmark channel which demuxed with ProjectX as it should. The second is a PPV short clip which did not demux correctly. I've skipped quite abit of this text file as it consisted mostly of dropping GOP's. I posted the information from the end of the text file also. Notice the video length at the end of both text files. The Hallmark is 1377 frames for almost 46 seconds. The PPV is 81 frames for two seconds because of all the video dropping. I recorded then about 2 minutes apart using the same program. What is ProjectX seeing differetntly about these files????

I've also used ALT-DVB to record these same channels with it's TS Transport Stream and the same thing happens when demuxing with ProjectX and PVAStrumento.

FIRST CLIP

Thursday, May 19, 2005 9:04:04 AM EDT
ProjectX 0.82.01.01 (18.04.2005)

<<< session infos >>>

-> working with collection 0

-> normal log file
-> write all video data
-> write all other data
-> patch c.d.flagged infos of pictures
-> add sequence end code
-> set resolution in SDE

-> write output files to: C:\DVDTemp\

-> Input File 0: C:\Program Files\MyTheatre 3.08\050518_101752 HLMRK.mpg (21304942 bytes)
-> File is MPEG-2 PS/SS (Video/Audio PES)
-> demux
-> found PES-ID 0xE0 (MPEG Video) @ 32
-> found PES-ID 0xC0 (MPEG Audio) @ 34664
-> video basics: 544*480 @ 29.97fps @ 0.6735 (4:3) @ 15000000bps, vbvBuffer 112
-> starting export of video data @ GOP# 0
!> dropping useless B-Frames @ GOP# 0 / new Timecode 00:00:00.000
!> dropping GOP# 8 @ orig.PTS 00:00:17.283 (1555554)
-> Pics exp/cnt 38/38, inGOP PTS diff. 200ms, new Timecode 00:00:10.443
!> dropping GOP# 9 @ orig.PTS 00:00:18.752 (1687686)
-> Pics exp/cnt 31/31, inGOP PTS diff. 183ms, new Timecode 00:00:10.443
!> PTS difference of 241742 (00:00:02.686) to last exported GOP detected
!> dropping useless B-Frames @ GOP# 10 / new Timecode 00:00:10.443
!> dropping GOP# 11 @ orig.PTS 00:00:21.688 (1951950)
-> Pics exp/cnt 36/36, inGOP PTS diff. 200ms, new Timecode 00:00:12.078
!> dropping GOP# 12 @ orig.PTS 00:00:23.123 (2081079)
-> Pics exp/cnt 31/31, inGOP PTS diff. 83ms, new Timecode 00:00:12.078
!> dropping GOP# 13 @ orig.PTS 00:00:24.240 (2181680)
-> Pics exp/cnt 35/35, inGOP PTS diff. 150ms, new Timecode 00:00:12.078
!> dropping GOP# 14 @ orig.PTS 00:00:25.558 (2300298)
-> Pics exp/cnt 37/37, inGOP PTS diff. 66ms, new Timecode 00:00:12.078
!> dropping GOP# 15 @ orig.PTS 00:00:26.860 (2417415)
-> Pics exp/cnt 53/53, inGOP PTS diff. 150ms, new Timecode 00:00:12.078
!> PTS difference of 641140 (00:00:07.123) to last exported GOP detected
!> dropping useless B-Frames @ GOP# 16 / new Timecode 00:00:12.078
!> dropping GOP# 19 @ orig.PTS 00:00:32.999 (2969967)
-> Pics exp/cnt 54/54, inGOP PTS diff. 66ms, new Timecode 00:00:16.216
!> dropping GOP# 20 @ orig.PTS 00:00:34.901 (3141138)
-> Pics exp/cnt 45/45, inGOP PTS diff. 183ms, new Timecode 00:00:16.216
!> PTS difference of 324324 (00:00:03.603) to last exported GOP detected
!> dropping useless B-Frames @ GOP# 21 / new Timecode 00:00:16.216
!> dropping GOP# 25 @ orig.PTS 00:00:40.106 (3609606)
-> Pics exp/cnt 60/60, inGOP PTS diff. 33ms, new Timecode 00:00:19.652
!> PTS difference of 183183 (00:00:02.035) to last exported GOP detected
!> dropping useless B-Frames @ GOP# 26 / new Timecode 00:00:19.652
!> dropping GOP# 41 @ orig.PTS 00:01:05.698 (5912907)
-> Pics exp/cnt 51/51, inGOP PTS diff. 83ms, new Timecode 00:00:43.109
!> dropping GOP# 42 @ orig.PTS 00:01:07.500 (6075069)
-> Pics exp/cnt 18/18, inGOP PTS diff. 50ms, new Timecode 00:00:43.109
!> PTS difference of 222222 (00:00:02.469) to last exported GOP detected
!> dropping useless B-Frames @ GOP# 43 / new Timecode 00:00:43.109
!> dropping GOP# 46 @ orig.PTS 00:01:11.071 (6396390)
-> Pics exp/cnt 48/48, inGOP PTS diff. 150ms, new Timecode 00:00:45.945
!> dropping GOP# 47 @ orig.PTS 00:01:12.839 (6555549)
-> Pics exp/cnt 19/19, inGOP PTS diff. 150ms, new Timecode 00:00:45.945
!> dropping GOP# 48 @ orig.PTS 00:01:13.623 (6626120)
-> Pics exp/cnt 20/20, inGOP PTS diff. 83ms, new Timecode 00:00:45.945
!> dropping GOP# 49 @ orig.PTS 00:01:14.407 (6696690)
-> Pics exp/cnt 39/39, inGOP PTS diff. 133ms, new Timecode 00:00:45.945

-> Video: fr/ ct/ 1p/ cg/ og/ dg -> 1377/ 9/ 1/ 34/ 0/ 16
-> Video length: 1377 frames @ 00:00:45.940
-> GOP summary: min. 2, max. 118 fields; contains interlaced & progressive frames
-> avg. nom. bitrate 2415373bps (min/max: 748000/9430000)
-> set first sequenceheader bitrate to 9430000bps
---> new File: C:\DVDTemp\050518_101752 HLMRK.m2v

--> MPEG Audio (0xC0)
Audio PTS: first packet 00:00:06.070, last packet 00:01:15.334
Video PTS: start 1.GOP 00:00:06.840, end last GOP 00:01:11.071
-> adjusting audio at video-timeline
-> src_audio: MPEG-1, Layer2, 48000Hz, stereo, 192kbps, noCRC @ 00:00:00.000
audio frames: wri/pre/skip/ins/add 1914/0/0/0/0 @ 00:00:45.936 done...
---> new File: C:\DVDTemp\050518_101752 HLMRK.mpa

summary of created media files:
.Video (m2v): 1377 Frames 00:00:45.940 'C:\DVDTemp\050518_101752 HLMRK.m2v'
Audio 0 (mp2): 1914 Frames 00:00:45.936 0/0/0/0 'C:\DVDTemp\050518_101752 HLMRK.mpa'
=> 14974256 bytes written...


SECOND CLIP

Thursday, May 19, 2005 9:10:26 AM EDT
ProjectX 0.82.01.01 (18.04.2005)

<<< session infos >>>

-> working with collection 0

-> normal log file
-> write all video data
-> write all other data
-> patch c.d.flagged infos of pictures
-> add sequence end code
-> set resolution in SDE

-> write output files to: C:\DVDTemp\

-> Input File 0: C:\Program Files\MyTheatre 3.08\050518_101108 PPV-15.mpg (27339724 bytes)
-> File is MPEG-2 PS/SS (Video/Audio PES)
-> demux
-> found PES-ID 0xE0 (MPEG Video) @ 32
-> found PES-ID 0xC0 (MPEG Audio) @ 58312
!> dropping GOP# 0 @ orig.PTS 00:00:58.030 (5222714)
-> Pics exp/cnt 18/18, inGOP PTS diff. 133ms, new Timecode 00:00:00.000
!> dropping GOP# 1 @ orig.PTS 00:00:58.780 (5290282)
-> Pics exp/cnt 5/5, inGOP PTS diff. 33ms, new Timecode 00:00:00.000
!> dropping GOP# 2 @ orig.PTS 00:00:58.981 (5308300)
-> Pics exp/cnt 25/25, inGOP PTS diff. 200ms, new Timecode 00:00:00.000
!> dropping GOP# 3 @ orig.PTS 00:01:00.032 (5402894)
-> Pics exp/cnt 30/30, inGOP PTS diff. 233ms, new Timecode 00:00:00.000
!> dropping GOP# 4 @ orig.PTS 00:01:01.283 (5515507)
-> Pics exp/cnt 25/25, inGOP PTS diff. 200ms, new Timecode 00:00:00.000
!> dropping GOP# 5 @ orig.PTS 00:01:02.317 (5608600)
-> Pics exp/cnt 23/23, inGOP PTS diff. 183ms, new Timecode 00:00:00.000
!> dropping GOP# 6 @ orig.PTS 00:01:03.285 (5695687)
-> Pics exp/cnt 31/31, inGOP PTS diff. 250ms, new Timecode 00:00:00.000
!> dropping GOP# 7 @ orig.PTS 00:01:04.570 (5811302)
-> Pics exp/cnt 14/14, inGOP PTS diff. 116ms, new Timecode 00:00:00.000
!> dropping GOP# 8 @ orig.PTS 00:01:05.153 (5863855)
-> Pics exp/cnt 17/17, inGOP PTS diff. 133ms, new Timecode 00:00:00.000
!> dropping GOP# 9 @ orig.PTS 00:01:05.871 (5928419)
-> Pics exp/cnt 21/21, inGOP PTS diff. 166ms, new Timecode 00:00:00.000
!> dropping GOP# 10 @ orig.PTS 00:01:06.738 (6006497)
-> Pics exp/cnt 26/26, inGOP PTS diff. 216ms, new Timecode 00:00:00.000
!> dropping GOP# 11 @ orig.PTS 00:01:07.823 (6104095)
-> Pics exp/cnt 30/30, inGOP PTS diff. 250ms, new Timecode 00:00:00.000
!> dropping GOP# 12 @ orig.PTS 00:01:09.074 (6216707)
-> Pics exp/cnt 23/23, inGOP PTS diff. 183ms, new Timecode 00:00:00.000
!> dropping GOP# 13 @ orig.PTS 00:01:10.042 (6303794)
-> Pics exp/cnt 21/21, inGOP PTS diff. 50ms, new Timecode 00:00:00.000
-> video basics: 544*480 @ 29.97fps @ 0.6735 (4:3) @ 15000000bps, vbvBuffer 112
-> starting export of video data @ GOP# 14
!> dropping useless B-Frames @ GOP# 14 / new Timecode 00:00:00.000
!> dropping GOP# 15 @ orig.PTS 00:01:11.627 (6446437)

SECOND CLIP CONTINUED

!> dropping GOP# 115 @ orig.PTS 00:02:36.578 (14092075)
-> Pics exp/cnt 14/14, inGOP PTS diff. 116ms, new Timecode 00:00:02.702
!> dropping GOP# 116 @ orig.PTS 00:02:37.162 (14144627)
-> Pics exp/cnt 4/4, inGOP PTS diff. 33ms, new Timecode 00:00:02.702

-> Video: fr/ ct/ 1p/ cg/ og/ dg -> 81/ 7/ 7/ 16/ 0/ 101
-> Video length: 81 frames @ 00:00:02.700
-> GOP summary: min. 2, max. 44 fields; contains interlaced & progressive frames
-> avg. nom. bitrate 2555262bps (min/max: 904000/5981200)
-> set first sequenceheader bitrate to 5981200bps
---> new File: C:\DVDTemp\050518_101108 PPV-15.m2v

--> MPEG Audio (0xC0)
Audio PTS: first packet 00:00:57.888, last packet 00:02:37.680
Video PTS: start 1.GOP 00:01:10.876, end last GOP 00:02:32.090
-> adjusting audio at video-timeline
-> src_audio: MPEG-1, Layer2, 48000Hz, stereo, 192kbps, noCRC @ 00:00:00.000
audio frames: wri/pre/skip/ins/add 112/0/0/0/0 @ 00:00:02.688 done...
---> new File: C:\DVDTemp\050518_101108 PPV-15.mpa

summary of created media files:
.Video (m2v): 81 Frames 00:00:02.700 'C:\DVDTemp\050518_101108 PPV-15.m2v'
Audio 0 (mp2): 112 Frames 00:00:02.688 0/0/0/0 'C:\DVDTemp\050518_101108 PPV-15.mpa'
=> 927552 bytes written...second clip continued

Pookie
19th May 2005, 23:51
Run the file(s) through Mpeg2repair and see if your demux works better on the repaired file.

http://users.adelphia.net/~mwilczyn/mpeg2repair/

bcsman
20th May 2005, 06:12
Pookie,
Would love to be able to use mpeg repair, but every time I try to run the TS file thru it can't find the PID's. I try every program number available as options and still says no PID's found. SO it doesn't do anything for me!!

Pookie
21st May 2005, 03:07
Dang. Have you tried DGMpgDec ?

Also, download the beta of GSPOT and see if you can find anything out of the ordinary with the Mpeg file. I suspect you're close to an answer. I wonder if you're truly capturing transport streams.

Frustrating, yes. But at least it is difficult ;)

neuron2
21st May 2005, 05:35
Upload a fragment of the transport stream to my FTP server and tell me the file name here. 100Mbytes would be good.

Pyscrow
21st May 2005, 07:27
It is possible your captured stream is just to "dirty" or corupted for ProjectX, it seems to have dummy spits earlier than some of the other demuxing software, try PVA strumento, it can handle some streams that ProjectX can not, particulary if you are getting heaps of dropped GOPs from projectX (PVA strumento does not hold the audio sync as well though, although usually it is alright)

dvb.matt
21st May 2005, 13:53
sorry, PjX doesn't work well with ATSC files or separate encoded fields yet. that's because we do not have that stuff (and trouble) here in europe, and so it's not implemented.
maybe, sometime later, we'll take care of it..

eb
21st May 2005, 14:50
@bcsman,
to demux your .ts or .mpg use bbtool1.9 /Doom9 download/
use sample about 5MB
let name your .ts file as 1
get info about file bbinfo1 > 1.txt
at end of 1.txt file will be iformation abut PIDs
like this
PACKET #119275, sync_byte = 47
stream_id = C0 MPEG Audio Stream 0, packet #89234

PACKET #119276, sync_byte = 47
stream_id = C0 MPEG Audio Stream 0, packet #89235 PTS = 56614150.966667 ms
0 - audio syncword


Summary:

MPEG Transport Packets = 119277
PID 00D6, Other packets = 30041, total bytes = 5527544
PID 027C, MPEG Audio stream 0 packets = 89236, total bytes = 15575724

Use this streams info to demux required PIDs
bbdmux 1 0xC0 audio.mp2

and so on

eb
PS mpeg files try process by DVD2AVIT3

bcsman
26th May 2005, 14:42
THanks for the replies guys!

Neuron2--Unfortunately for me I still have dial-up and 100MB would keep my phone line busy for a long time!!

Pookie--YEs I've used DGMPGDec and actually it worked quite well with my TS stream. Just trying to figure out how to get the demuxed files into AVISynth and VirtualDub, little bit of a struggle!!

I actually found a program that seems to work quite well with my TS streams--Wombles MPEG Video Wizard. Plows right thru my TS stream to demux and lets me even fix GOP size problems. Also remuxes to a .mpg file I can use with DVD authoring programs. So far the only problem I'm getting is the "famous" audio/video synch, but I think this program can also fix that if I do a little more reading!!

bcsman
4th June 2005, 04:44
Found a pretty easy way to fix my problem. Just kind of time consuming, but works very well and get good quality video and audio is synched also. Found a program called Womble MPEG Video Wizard. It will take my TS stream and either demux or convert it with no problems. What I've been doing is plugging the TS file into Video Wizard and exporting to a DVD NTSC format. It takes about 3-4 hours to re-encode the file but when it's done I can author with any DVD program and burn to DVD. I could find any other encoderes that would accept a TS stream. This sure beats using 4 or 5 different programs which I still hadn't figured out how to script and program. Video Wizard is the only program that seems to want to accept my TS streams.

Just thought I'd let others that are beating their heads against the wall trying to accomplish the same thing there is an alternative. Trust me I want simple also!!