Cliff Watson PVR app for HD Homerun, MyHD, and FusionHDTV - Page 145 - AVS Forum | Home Theater Discussions And Reviews
Forum Jump: 
 13Likes
Reply
 
Thread Tools
post #4321 of 4329 Old 06-27-2017, 10:05 AM
Advanced Member
 
sengsational's Avatar
 
Join Date: Mar 2003
Location: NC
Posts: 989
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 5 Post(s)
Liked: 10
Hey guys,

This might not be the "perfect" place to start for this question, but given we're all on Windows and have transport stream files laid down by (typically) HDHR devices (or maybe MyHD), I thought I'd start here.

Here's the problem I'm having: A station (my local PBS, to be more specific), often sends out what I consider to be a defective transport stream, and I'd like to know it's defective before I attempt to watch it.

You might think that if it's OTA (over the air), how do I know it's a defective transport stream and not just bad reception. Well, if I'm correct in my thinking, the stats gathered by the HDHR for the recording would be "bad" for bad reception. But that's not the case. Checking http://127.0.0.1:8181/recent, I can see "tste", "tsmiss" are zero, and "tunss" is >95 and "tunsnq" is 100. On other channels, when the recording is pixelated or has dropouts, those numbers are "bad".

The symptom I have is "good" reception stats, but the recording doesn't play well in VLC. For example, we got a recording, watched 35 minutes of it...perfect, then there was a 5 minute segment that caused VLC to hang. After that it played fine again.

Since these recordings come on PBS, they're repeated at different times. What happens is that I get a recording, then CW_EPG skips the repeats, as designed. So the repeats come and go, and I'm sitting on a defective capture file, but don't know it! So one solution would be to configure CW_EPG to record all instances of the problem shows. But what I was wondering was, is there a batch file program/process that can assess the quality of a capture file? If so, I could be alerted right away and make sure I don't miss when the show gets replayed.
sengsational is offline  
Sponsored Links
Advertisement
 
post #4322 of 4329 Old 06-27-2017, 12:03 PM - Thread Starter
AVS Forum Addicted Member
 
TPeterson's Avatar
 
Join Date: May 2002
Location: San Carlos, CA
Posts: 12,022
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 260 Post(s)
Liked: 31
Dale, does TSReader Lite indicate problems with these defective recordings? That doesn't fit your request for a batch file, but if TSReader doesn't see issues, I'm not sure that any other filter would find them either.
TPeterson is offline  
post #4323 of 4329 Old 06-28-2017, 07:33 PM
Advanced Member
 
sengsational's Avatar
 
Join Date: Mar 2003
Location: NC
Posts: 989
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 5 Post(s)
Liked: 10
Terry, Thanks for the reply. I had run it through my crusty copy of TSReaderLite (circa 2003!), and it added an asterisk and said that meant the PID had continuity errors. The "Continuity errors:" field jumped from 0 to 23189 (and the associated asterisk showed up) in the middle of chugging through the file, so that did align with my watching experience.

The same TV station aired that same program again and I ran THAT one through TSReaderLite... no asterisk, zero continuity errors! I haven't watched it yet to see if it plays well, but I bet it will be fine.

Might need to write me a transport stream parser. Whoa! That's above my pay grade!

Last edited by sengsational; 06-28-2017 at 07:38 PM.
sengsational is offline  
 
post #4324 of 4329 Old 06-28-2017, 08:45 PM - Thread Starter
AVS Forum Addicted Member
 
TPeterson's Avatar
 
Join Date: May 2002
Location: San Carlos, CA
Posts: 12,022
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 260 Post(s)
Liked: 31
Hmm...I had thought that the tsmiss HDHR stat was equivalent to continuity errors in TSReader...but I guess that's not right. But in any case I'm sure that the needed utility has been written already.

See, e.g., here
TPeterson is offline  
post #4325 of 4329 Old 06-29-2017, 10:47 AM
ebo
Advanced Member
 
ebo's Avatar
 
Join Date: Sep 2004
Location: Delmar NY
Posts: 851
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 61 Post(s)
Liked: 19
There are a number of programs that claim to fix ATSC transport stream errors. Some are free. Some will log the errors they find. Years ago I used MPEG2Repair which is free and does save a log. It's also handy for joining segmented .TS files into one file. The final version is 1.0.1.5 from 2007.

Back then I used HDTVtoMPEG2 (I might have that name wrong) to edit out commercials. It was very crude, butting the remaining segments together without fixing the timestamp discontinuities. MyHD played the result just fine but other programs and hardware players like WDTV would stop when they hit an edit.

I dropped both programs when I switched to VideoReDo, which does proper frame-accurate edits. Its QuickStream Fix tool can repair .TS errors. But it's not free.

Any version of TSReaderLite can work with saved .TS files but only recent ones work directly with 4th-gen HDHRs such as the HDHR4-2US. The current version is 2.8.48b.
ebo is online now  
post #4326 of 4329 Old 07-04-2017, 11:29 AM
Advanced Member
 
sengsational's Avatar
 
Join Date: Mar 2003
Location: NC
Posts: 989
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 5 Post(s)
Liked: 10
Quote:
Originally Posted by TPeterson View Post
Hmm...I had thought that the tsmiss HDHR stat was equivalent to continuity errors in TSReader...but I guess that's not right. But in any case I'm sure that the needed utility has been written already.
I was under the impression that HDHR's stats would do it too, but, like I said, I got a perfect recording according to the HDHR stats, but had an horrific chunk in it from a watchability standpoint, and it had thousands of continuity errors on TSReaderLite.

I found DVB Inspector, written in Java, and the author is still active. Using that as a library and two lines of code, default logging, it spits out continuity errors!

Code:
       TransportStream transportStream = new TransportStream("c:\\my\\tmp\\11.3-170702-2200-Prime Suspect; Tennison on Masterpiece-.tp");
       transportStream.parseStream();
ebo, I even recall a few of those tools. But I'm less about attempting to fix the files... I just want to know (in an automated way, such as a command line) they're bad so I can delete the entry from the cw_epg history and so allow them to record on the next airing.
sengsational is offline  
post #4327 of 4329 Old 07-04-2017, 06:52 PM - Thread Starter
AVS Forum Addicted Member
 
TPeterson's Avatar
 
Join Date: May 2002
Location: San Carlos, CA
Posts: 12,022
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 260 Post(s)
Liked: 31
Dale, it may not be in the "debug" stats recorded in /recent, but I think that if you look at CWHelper's log of the "...." progress you'll see some "...s...sss.." occurences in the problem recordings. You could use that string as your rejection criterion.
TPeterson is offline  
post #4328 of 4329 Old 07-10-2017, 09:19 AM
Advanced Member
 
sengsational's Avatar
 
Join Date: Mar 2003
Location: NC
Posts: 989
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 5 Post(s)
Liked: 10
Quote:
Originally Posted by TPeterson View Post
Dale, it may not be in the "debug" stats recorded in /recent, but I think that if you look at CWHelper's log of the "...." progress you'll see some "...s...sss.." occurences in the problem recordings. You could use that string as your rejection criterion.
I had my doubts, but looked back at the recording that spawned this thing and the dang dots DID show a problem, when the debug was "clean"! Again, sir, you come through with "the right answer".

sengsational is offline  
post #4329 of 4329 Old 07-10-2017, 09:38 AM - Thread Starter
AVS Forum Addicted Member
 
TPeterson's Avatar
 
Join Date: May 2002
Location: San Carlos, CA
Posts: 12,022
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 260 Post(s)
Liked: 31
Aha! But I was guessing wrong about the source of the problem. According to the "dots", you had LAN issues for that recording, not sequence errors in the TS. That still leaves us with no explanation for the lack of errors in the debug report..."err = 0"?
TPeterson is offline  
Sponsored Links
Advertisement
 
Reply Home Theater Computers

Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page


Forum Jump: 

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off