SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #21  
Old 07-25-2006, 11:46 PM
Stuntman's Avatar
Stuntman Stuntman is offline
Sage Fanatic
 
Join Date: Dec 2003
Location: Hemet, CA - USA
Posts: 784
Verified that if I 'fix' the spaces in the comskip .edl file to 'tabs' then the .stvi file will now see the commercial breaks! Will have to bring that to Erik's attention.. I see several of my .edl files that have spaces in some places and tabs in others... and/or.. could you look for space/tab as a deliminator?
Reply With Quote
  #22  
Old 07-26-2006, 12:04 AM
sundansx sundansx is offline
Sage Advanced User
 
Join Date: Aug 2003
Posts: 193
I take that back, it did the split on anything except numbers 0-9. I had to change this to anything but 0-9 and a period..like:
commercials = java_lang_String_split(bytes,"[^0-9\\.]+")

anyone have any input on this regular expression?
Reply With Quote
  #23  
Old 07-26-2006, 12:15 AM
sundansx sundansx is offline
Sage Advanced User
 
Join Date: Aug 2003
Posts: 193
Ah, I see the problem...I am doing a replace of "\t0" to nuke that last column of 0's. This looks for tab 0. not entirely robust, but seemed to satisfy the file format I was looking at. Im thinking a better way would be to do a "0[\r\n]" to make it more robust...
Reply With Quote
  #24  
Old 07-26-2006, 12:22 AM
sundansx sundansx is offline
Sage Advanced User
 
Join Date: Aug 2003
Posts: 193
OK,
try this one and let me know how it works...it still works on mine and now looks for a carridge return or a line feed at the last column to eliminate the last zero. Anyone know what the is that column for, anyway?

I will beta test this version for a while and release it if it is doing good...
Attached Files
File Type: stvi comskip_pb_imp_eld_dly_mod.stvi (52.5 KB, 317 views)
Reply With Quote
  #25  
Old 07-26-2006, 01:52 AM
erik erik is offline
Sage Aficionado
 
Join Date: May 2005
Posts: 467
The .edl format is specified by mencoder/mplayer
The last zero is to signal that the indicated segment has to be skipped.
If the last zero would be a 1 than that segment should be muted.
__________________
Support Comskip, visit the forum and donate at http://www.comskip.org/
Reply With Quote
  #26  
Old 07-26-2006, 01:55 AM
erik erik is offline
Sage Aficionado
 
Join Date: May 2005
Posts: 467
Quote:
Originally Posted by Stuntman
Verified that if I 'fix' the spaces in the comskip .edl file to 'tabs' then the .stvi file will now see the commercial breaks! Will have to bring that to Erik's attention.. I see several of my .edl files that have spaces in some places and tabs in others... and/or.. could you look for space/tab as a deliminator?
COmskip always generates spaces in the .edl file, never tabs (at least, its not in the code)
I can change it easily to tabs, but mencoder/mplayer can handle both tabs and spaces.
__________________
Support Comskip, visit the forum and donate at http://www.comskip.org/
Reply With Quote
  #27  
Old 07-26-2006, 05:41 AM
hemicuda's Avatar
hemicuda hemicuda is offline
Sage Icon
 
Join Date: May 2006
Location: north of Chattanooga, Tennessee
Posts: 1,118
Thumbs up

Quote:
Originally Posted by sundansx
OK,
try this one and let me know how it works...it still works on mine and now looks for a carridge return or a line feed at the last column to eliminate the last zero. Anyone know what the is that column for, anyway?

I will beta test this version for a while and release it if it is doing good...
WOOT! working for me except for that same loop issue someone else had at 00:00. great plug-in/apps people
__________________
Server: MS Win7 SP1; FX8350 (H2O cooled); 8GB RAM; Hauppauge HVR-7164 (OTA); HVR-885 (OTA); SageTV 9.1.5.x; 12+TB Sage Storage

Clients: HD300 x2; HD200 x2; Placeshifter

Service: EPB Fiber (1Gb); OTA (we "cut the cord"); Netflix, Hulu, etc.
Reply With Quote
  #28  
Old 07-26-2006, 07:43 AM
Stuntman's Avatar
Stuntman Stuntman is offline
Sage Fanatic
 
Join Date: Dec 2003
Location: Hemet, CA - USA
Posts: 784
Quote:
Originally Posted by sundansx
OK,
try this one and let me know how it works...it still works on mine and now looks for a carridge return or a line feed at the last column to eliminate the last zero. Anyone know what the is that column for, anyway?

I will beta test this version for a while and release it if it is doing good...
Looks good at first glance.. will test further... Erik says he will use tabs in his next version, though it now appears you may have worked around the issue.. though it never hurts to standardize

I'll report again if I see any problems..

Reply With Quote
  #29  
Old 07-26-2006, 07:45 AM
Stuntman's Avatar
Stuntman Stuntman is offline
Sage Fanatic
 
Join Date: Dec 2003
Location: Hemet, CA - USA
Posts: 784
Quote:
Originally Posted by hemicuda
WOOT! working for me except for that same loop issue someone else had at 00:00. great plug-in/apps people
I still see that looping issue too... I'll keep using the .txt version of my data until that bugger gets fixed.. Comskip is great in that it will produce both .txt and .edl for me..

Reply With Quote
  #30  
Old 07-26-2006, 08:42 AM
erik erik is offline
Sage Aficionado
 
Join Date: May 2005
Posts: 467
Could you download and test comskip 0.79 build 49?

It can be found at
http://mk.kaashoek.com/comskip/files/comskip79_49.zip
__________________
Support Comskip, visit the forum and donate at http://www.comskip.org/
Reply With Quote
  #31  
Old 07-26-2006, 10:04 AM
erik erik is offline
Sage Aficionado
 
Join Date: May 2005
Posts: 467
When using the new build look at the readme.txt for what has changed.
Do keep your old ini file.

F.y.i.

Changes in 0.79.49
- Bug solved: SageTV needs tabs instead of spaces in the .edl file
- Bug solved: SaveTV gets into a loop when a very short commercial at the start is detected.
Changes in 0.79.48
- Bug solved: remove_after does not have any effect, all commercials shortened with fps frames.
Changes in 0.79.47
- Bug solved: Certain DVR-MS files cause a buffer overrun in sound decoding
- Parameter added: BTV requires a longer time to check for end of recording during live_tv. Set live_tv_retries=8 in the ini file.
Changes in 0.79.46
- Added two ini file parameters, remove_before and remove_after, will remove the given amount of seconds of show before or after ALL commercials
- Increase amount of memory available during live_tv processing to prevent out_of_memory crash when processing very long recordings.
Changes in 0.79.45
- Bug solved: A TS file with MANY PID's causes Comskip to crash
- Improved algorithm to deal with LiveTV in BTV 4.3
Changes in 0.79.44
- Added in the debugwindow the option to toggle blocks between commercial and show. Is available after processing an mpeg or a .csv file. Output files are rewritten after each toggle. The refference bar stays at the original detection results. Use the 'T' key to toggle
__________________
Support Comskip, visit the forum and donate at http://www.comskip.org/

Last edited by erik; 07-26-2006 at 01:20 PM.
Reply With Quote
  #32  
Old 07-26-2006, 01:19 PM
erik erik is offline
Sage Aficionado
 
Join Date: May 2005
Posts: 467
The top change should be build 49
__________________
Support Comskip, visit the forum and donate at http://www.comskip.org/
Reply With Quote
  #33  
Old 07-26-2006, 03:20 PM
sundansx sundansx is offline
Sage Advanced User
 
Join Date: Aug 2003
Posts: 193
OK, I looked quick and think I found the cause of the bug that keeps comskip disabled after you do a manual skip. I think it happens if you do two manual skips in a row before the timeout. I am now thinking of a better way to do this and will update for the next stvi release.
For me, I had problems with this in the old stvi also, strangely some people reported that they did not encounter this problem back then. This is an area that I didnt make any changes in the new one. It is probably a corner usage case that I use a lot and others do not...

Last edited by sundansx; 07-26-2006 at 03:22 PM.
Reply With Quote
  #34  
Old 07-26-2006, 03:34 PM
blade blade is offline
SageTVaholic
 
Join Date: Jan 2005
Posts: 2,500
Quote:
Originally Posted by sundansx
OK, I looked quick and think I found the cause of the bug that keeps comskip disabled after you do a manual skip. I think it happens if you do two manual skips in a row before the timeout. I am now thinking of a better way to do this and will update for the next stvi release.
For me, I had problems with this in the old stvi also, strangely some people reported that they did not encounter this problem back then. This is an area that I didnt make any changes in the new one. It is probably a corner usage case that I use a lot and others do not...
I've always had problems with it in the old .stvi as well.
Reply With Quote
  #35  
Old 07-26-2006, 11:50 PM
Stuntman's Avatar
Stuntman Stuntman is offline
Sage Fanatic
 
Join Date: Dec 2003
Location: Hemet, CA - USA
Posts: 784
End of video

I've noticed that since adding this .stvi tht when a video ends the recordings menu doesn't come up any more.. the video just freezes at where it ended and waits for me to 'close' it manually..

Anybody else seeing this?
Reply With Quote
  #36  
Old 07-27-2006, 12:19 AM
Stuntman's Avatar
Stuntman Stuntman is offline
Sage Fanatic
 
Join Date: Dec 2003
Location: Hemet, CA - USA
Posts: 784
Quote:
Originally Posted by erik
- Bug solved: SaveTV gets into a loop when a very short commercial at the start is detected.
I'm still seeing this bug... was trying to watch a ghost hunters episode and it got stuck at the 5 second mark.. there was a short commercial in front of the show start... it repeats over and over.. but not always the same.. some of the loops get a fraction of a second further.. like it is trying to get past it...

This is what the contents of that .edl file show..

0.03 5.87 0
613.78 835.63 0
1383.38 1563.93 0
1928.73 2078.84 0
2398.33 2600.36 0
2957.82 3149.25 0
3599.33 3599.36 0

Thanks!
Reply With Quote
  #37  
Old 07-27-2006, 12:59 AM
erik erik is offline
Sage Aficionado
 
Join Date: May 2005
Posts: 467
Mmm. will set the boundaries some wider, next build,
__________________
Support Comskip, visit the forum and donate at http://www.comskip.org/
Reply With Quote
  #38  
Old 07-27-2006, 01:27 AM
erik erik is offline
Sage Aficionado
 
Join Date: May 2005
Posts: 467
Done, could you download build 50 and test?
__________________
Support Comskip, visit the forum and donate at http://www.comskip.org/
Reply With Quote
  #39  
Old 07-27-2006, 08:45 AM
Stuntman's Avatar
Stuntman Stuntman is offline
Sage Fanatic
 
Join Date: Dec 2003
Location: Hemet, CA - USA
Posts: 784
Quote:
Originally Posted by erik
Done, could you download build 50 and test?
Sure thing.. doing so now..

I seem to recall seeing this occur also at the end of one of my recordings, have you adjusted for that as well? I'll watch carefully over the next few nights and report anything I find.
Reply With Quote
  #40  
Old 07-27-2006, 09:22 AM
Stuntman's Avatar
Stuntman Stuntman is offline
Sage Fanatic
 
Join Date: Dec 2003
Location: Hemet, CA - USA
Posts: 784
Quote:
Originally Posted by Stuntman
Sure thing.. doing so now..

I seem to recall seeing this occur also at the end of one of my recordings, have you adjusted for that as well? I'll watch carefully over the next few nights and report anything I find.
Ran new version against the 'Ghost Hunters' episode that was previously causing the looping.. and it still looks, same place as far as I can tell.

If you like I could provide the .mpg file and the .edl file to you for study..

-Robert
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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

Forum Jump


All times are GMT -6. The time now is 06:28 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.