Help to keep this project alive

Comskip Support Forum

Comskip is a free commercial detector, browse the forum for more information
It is currently Thu Sep 09, 2010 9:50 pm

All times are UTC




Post new topic Reply to topic  [ 47 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject:
PostPosted: Wed Sep 13, 2006 6:43 am 
Offline
Site Admin

Joined: Sun Aug 21, 2005 2:49 pm
Posts: 1719
I learned at the BTV forum that BTV while recording allocates 4MBytes of space ahead of where video is written in the file. This implies that the last 4MByte of the recorded file at any point in time is junk.
I have currently not implemented a way to stay 4MByte way from the end of the file during livetv so the solutions described above MAY help you but it is not guaranteed.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 23, 2006 10:14 am 
Offline

Joined: Sun May 14, 2006 8:15 am
Posts: 116
In case anyone still cares, I tried Comskip with the new version 4.5 of BeyondTV. Unfortunately, it doesn't appear that anything has changed and the "live" function still doesn't work with BTV 4.5. Version 4.2 is the last version that this works with.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 28, 2006 5:40 am 
Offline
Site Admin

Joined: Sun Aug 21, 2005 2:49 pm
Posts: 1719
I made build 62 that implements a possible solution to this.

Set
live_tv_retries=8
standoff=8000000
in comskip.ini

standoff is the amount of bytes counting from end of file NOT to read untill the recording is finished

Its only implemented for mpeg PS and TS recordings, not for DVR-MS, sorry.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 28, 2006 10:35 pm 
Offline

Joined: Sun May 14, 2006 8:15 am
Posts: 116
I did a brief test last night on several shows. I think it's working well! I didn't see any retries when it started. This was on a PC with a Hauppauge WinTV- PVR-150 card. When I get a chance, I'll try it out on my main system which also has HDTV tuners.

THANKS ERIK!!! :D

PS Does BeyondTV even support any tuners that record directly to DVR-MS?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 30, 2006 12:05 pm 
Offline

Joined: Sun May 14, 2006 8:15 am
Posts: 116
:( Darn. Looks like there is still a problem. I think Comskip is still getting to the end of the file and reading junk. For my SD recordings, if I start up Comskip early, commercial detection is very poor. If I wait until late in the show, it detects well. I tried starting it half way through one long show where detection was good at the beginning and poor at the end, indicating that Comskip caught up at some point. It's working okay for HDTV recordings, primarily because my CPU isn't fast enough to keep up. What would changing the standoff value do?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 30, 2006 3:43 pm 
Offline
Site Admin

Joined: Sun Aug 21, 2005 2:49 pm
Posts: 1719
If detection is bad during the show and always gets goor at the end the the backof works.
If comskip does never finish before the end of the show is transmitted backof works.
Possibly the simplified live_tv algorithm needs some improvement


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 30, 2006 7:08 pm 
Offline

Joined: Sun May 14, 2006 8:15 am
Posts: 116
erik wrote:
If detection is bad during the show and always gets goor at the end the the backof works.
If comskip does never finish before the end of the show is transmitted backof works.
Possibly the simplified live_tv algorithm needs some improvement


Actually, detection is good then gets bad. If I start recording a show and start Comskip immediately, detection is bad throughout. If I start recording a 60 minute show and start Comskip 20-30 minutes into it, detection is good for the first half but bad during the last half, presumably when Comskip has caught up to the end. I've verified this several times.

I never do see the 'auto retries'. My suspicion is that the standoff is not going far enough back to get out of the junk at the end. In other words, lets say that there is a moving 30 seconds of junk, but the standoff only goes back 20 seconds. So if Comskip catches up, it is only seeing junk.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 30, 2006 9:40 pm 
Offline
Site Admin

Joined: Sun Aug 21, 2005 2:49 pm
Posts: 1719
could you try to double standoff size?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 01, 2006 12:06 pm 
Offline

Joined: Sun May 14, 2006 8:15 am
Posts: 116
Unfortunately, it's not working. I tried 16000000, 32000000, and even added another zero for 320000000. If I start Comskip five minutes after the program starts recording, it will detect the first commercial block at the most, then nothing after that.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 01, 2006 4:34 pm 
Offline
Site Admin

Joined: Sun Aug 21, 2005 2:49 pm
Posts: 1719
Please set verbose=11 and mail me the log file.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 01, 2006 10:39 pm 
Offline

Joined: Sun May 14, 2006 8:15 am
Posts: 116
Files are on their way. Unfortunately, there are 4 "standoff" entries at the beginning then everything else is "Read only 0 bytes". I forgot that verbose=10 didn't show this. My initial success must have been due to a slower PC that didn't catch up to the end.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 02, 2006 8:09 am 
Offline
Site Admin

Joined: Sun Aug 21, 2005 2:49 pm
Posts: 1719
Could you retest with
live_tv_retries=16
or even higher?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 02, 2006 1:44 pm 
Offline

Joined: Sun May 14, 2006 8:15 am
Posts: 116
I'll give it a try in a few hours, but I don't see why that setting would do any good. It's not hitting the max retries now. With the current settings, the retries are 5 or 6. If it hit 8, it would stop prematurely, but it's not. :?:


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 02, 2006 2:53 pm 
Offline
Site Admin

Joined: Sun Aug 21, 2005 2:49 pm
Posts: 1719
If is has waited half the amount of set retries it assumes it has to read to the end and wait there till finished
Don't ask why but that is how I implemented it.......
If waiting 4 seconds for to fill 4MByte is too little you need 8 or 16 seconds, meaning retries set to 16 or 32.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 02, 2006 11:44 pm 
Offline

Joined: Sun May 14, 2006 8:15 am
Posts: 116
However you did it, setting the retries to 16 seemed to work. I'm now seeing all "standoff" entries with the highest being:
Sleep due to standoff, retries = 5
The files for the latest test are on their way in email. It worked very well! Standoff 8000000 and Retries 16. Are there any other permutations you'd like me to check? :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 47 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group