SageTV Community  

Go Back   SageTV Community > Hardware Support > Hardware Support
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

Hardware Support Discussions related to using various hardware setups with SageTV products. Anything relating to capture cards, remotes, infrared receivers/transmitters, system compatibility or other hardware related problems or suggestions should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #61  
Old 05-11-2010, 07:53 AM
ericscottf's Avatar
ericscottf ericscottf is offline
Sage Aficionado
 
Join Date: Oct 2009
Location: ny
Posts: 357
I was just about to say... That would have made my video really really long..

Anyway, i'll test tonight and post my results. Thanks for the help!
__________________
Sage Server(7): Win7SP1 32bit Quad core 2.6ghz 4gb ram (~3.2ish)
1TB RAID 10 Promise TX4310, 1TB external USB
2x HD PVR (1.05.301 whql working flawlessly) <-Verizon FIOS HD QIP7100 2 cable box controlled by USB-UIRT 2 zones
1x HDHR (dual tuner) <- Verizon wire
3x HD200 wired latest beta fw
Gig-E wired network
Reply With Quote
  #62  
Old 05-11-2010, 08:38 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by Fuzzy View Post
Yeah (well no) It's in milliseconds... sorry.. just woke up...
Yea, that's what I meant. ;-P
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #63  
Old 05-12-2010, 07:38 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Got a reply back from George saying the reason they implemented the time scaling was because they were getting too many support questions asking why their records were a couple seconds too short. Reasonably technical people would understand that it takes a couple seconds for the tuner to tune but I can see how it would confuse someone who wouldn't understand this concept.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #64  
Old 05-13-2010, 06:10 AM
ericscottf's Avatar
ericscottf ericscottf is offline
Sage Aficionado
 
Join Date: Oct 2009
Location: ny
Posts: 357
That makes sense to me, but it would also make sense to keep an invisible timescale from which to do all the sensitive math.

anyway, fuzzy's fix seems to work for me. Comskip still needs more playing, but for some 50% of my shows, it is perfect, showing me one second of commercial on each side, just what i'd like.

previously, it would cut off the show for a few seconds and show me a few seconds of commercial by the time the show was half over.

thanks fuzzy!
__________________
Sage Server(7): Win7SP1 32bit Quad core 2.6ghz 4gb ram (~3.2ish)
1TB RAID 10 Promise TX4310, 1TB external USB
2x HD PVR (1.05.301 whql working flawlessly) <-Verizon FIOS HD QIP7100 2 cable box controlled by USB-UIRT 2 zones
1x HDHR (dual tuner) <- Verizon wire
3x HD200 wired latest beta fw
Gig-E wired network
Reply With Quote
  #65  
Old 05-13-2010, 06:42 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
As for myself I have to either wait for SageTV 7 to come out or for someone to implement this workaround in SageMC. Can't stand the default STV.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #66  
Old 05-13-2010, 07:03 AM
ericscottf's Avatar
ericscottf ericscottf is offline
Sage Aficionado
 
Join Date: Oct 2009
Location: ny
Posts: 357
You could write a program to modify the edl files if you were so inclined.
Fuzzy's fix does this internally, but there's no reason that modifying the edl before it hits comskip wouldn't work.
__________________
Sage Server(7): Win7SP1 32bit Quad core 2.6ghz 4gb ram (~3.2ish)
1TB RAID 10 Promise TX4310, 1TB external USB
2x HD PVR (1.05.301 whql working flawlessly) <-Verizon FIOS HD QIP7100 2 cable box controlled by USB-UIRT 2 zones
1x HDHR (dual tuner) <- Verizon wire
3x HD200 wired latest beta fw
Gig-E wired network
Reply With Quote
  #67  
Old 05-13-2010, 07:11 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
True, if I got the calculations he uses I could create a batch file which creates a new modified edl file. My only concern would be making sure that ShowAnalyzer was finished before creating the modified edl.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #68  
Old 05-13-2010, 07:14 AM
ericscottf's Avatar
ericscottf ericscottf is offline
Sage Aficionado
 
Join Date: Oct 2009
Location: ny
Posts: 357
You can do math in a batch file? and read in lines from another file?

This would probably be best done in C. Yes, you'll need to know when SA is done. I imagine that SJQ can do such things?
__________________
Sage Server(7): Win7SP1 32bit Quad core 2.6ghz 4gb ram (~3.2ish)
1TB RAID 10 Promise TX4310, 1TB external USB
2x HD PVR (1.05.301 whql working flawlessly) <-Verizon FIOS HD QIP7100 2 cable box controlled by USB-UIRT 2 zones
1x HDHR (dual tuner) <- Verizon wire
3x HD200 wired latest beta fw
Gig-E wired network
Reply With Quote
  #69  
Old 05-13-2010, 07:20 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by ericscottf View Post
You can do math in a batch file? and read in lines from another file?

This would probably be best done in C. Yes, you'll need to know when SA is done. I imagine that SJQ can do such things?
Sort of, there is a command-line program which serves the purpose. However, thinking about it, I could probably manage it in C. I just haven't exercised those skills in quite a while.

It's a little more complicated with SAV1. It has its own queue. So when you execute ShowAnalyzer.exe it simply puts the item in the queue rather than running it immediately as with the old version. As a result it appears to SJQ that it has already completed.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #70  
Old 05-13-2010, 07:24 AM
ericscottf's Avatar
ericscottf ericscottf is offline
Sage Aficionado
 
Join Date: Oct 2009
Location: ny
Posts: 357
Perhaps SA has a feature to dump a file indicating that processing is complete?
Alternately, monitor the SA thread for activity and operate on the file when it is 0%?
or you could constantly try to write to the edl file - which should fail if SA keeps the file handle open - and operate on it when the file is free... Not good if SA only opens the file when it finds a commercial and closes it while processing...
Does SA have a log feature that dumps a file you can watch for a key word like "100%" or "finished" or some such?
__________________
Sage Server(7): Win7SP1 32bit Quad core 2.6ghz 4gb ram (~3.2ish)
1TB RAID 10 Promise TX4310, 1TB external USB
2x HD PVR (1.05.301 whql working flawlessly) <-Verizon FIOS HD QIP7100 2 cable box controlled by USB-UIRT 2 zones
1x HDHR (dual tuner) <- Verizon wire
3x HD200 wired latest beta fw
Gig-E wired network
Reply With Quote
  #71  
Old 05-13-2010, 07:35 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by ericscottf View Post
Perhaps SA has a feature to dump a file indicating that processing is complete?
Alternately, monitor the SA thread for activity and operate on the file when it is 0%?
or you could constantly try to write to the edl file - which should fail if SA keeps the file handle open - and operate on it when the file is free... Not good if SA only opens the file when it finds a commercial and closes it while processing...
Does SA have a log feature that dumps a file you can watch for a key word like "100%" or "finished" or some such?
Yes, the log appears to be space delimited and the last line reads something like:

Code:
[A59] 2010/05/11 15:29:22.203125  Exiting normally with code 0
The first three values change but the message at the end is always the same.

Can't remember how I'd parse that in C though.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #72  
Old 05-13-2010, 07:44 AM
ericscottf's Avatar
ericscottf ericscottf is offline
Sage Aficionado
 
Join Date: Oct 2009
Location: ny
Posts: 357
There are far more efficient ways to do find-a-string-in-a-string, but here's one.

some of the more efficient ones will search for the last letter of the wanted string, starting at a point into the target string that is the length of the wanted string, and move around by lengths of the target string to be much much more efficient than this, but you're not doing db searches for google here, so this will suffice.
Code:
unsigned int findstr(char targetstring[], char wantedstring[], unsigned int start){
unsigned int loc;
unsigned int i,j,k;
unsigned char len;
unsigned char inc;
inc=0;
len = strlen(wantedstring);

if (start==0 || start > strlen(targetstring))
	start=1;

for (i=(start-1);1;i++){

	for (j=0;j<len;j++){
		if (targetstring[i+j]==wantedstring[j]){
			inc++;
			if (inc==len)
				return(i+1);
		}
		else{
			inc=0;
			break;
		}
}
}

return(0);
}
Edit: Watch out for artificial string length issues with the typedefs in the code above. I pulled it from an embedded project of mine where no string would have been longer than 100 chars and memory was very precious.
Oh, and hey, wtf, tabs don't go through on this forum?!
__________________
Sage Server(7): Win7SP1 32bit Quad core 2.6ghz 4gb ram (~3.2ish)
1TB RAID 10 Promise TX4310, 1TB external USB
2x HD PVR (1.05.301 whql working flawlessly) <-Verizon FIOS HD QIP7100 2 cable box controlled by USB-UIRT 2 zones
1x HDHR (dual tuner) <- Verizon wire
3x HD200 wired latest beta fw
Gig-E wired network

Last edited by ericscottf; 05-13-2010 at 09:08 AM.
Reply With Quote
  #73  
Old 05-13-2010, 09:06 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by ericscottf View Post
Oh, and hey, wtf, tabs don't go through on this forum?!
put it in [code] brackets and they should come through just fine...
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #74  
Old 05-13-2010, 09:49 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
The problem with 'correcting' the edl itself, is that it is essentially making the EDL incorrect. Then, when sage does release a fix, they'll all be trash, and have to be redone.

Also, just to point something out, I'm almost certain there will be no SageMC after Sage7 is released. The UI itself will probably be the biggest change in Sage7, and with it, SageMC will probably be broken, with no-one really interested in fixing it (as they're all onto newer projects).
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #75  
Old 05-13-2010, 10:00 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
I would try and copy your code into SageMC but browsing through I didn't see anything similar to the comskip code in there and besides my programming skills are rusty at best. I'd be better at creating my own program from scratch rather than trying to figure out someone else's.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #76  
Old 05-13-2010, 10:00 AM
ericscottf's Avatar
ericscottf ericscottf is offline
Sage Aficionado
 
Join Date: Oct 2009
Location: ny
Posts: 357
Obviously we'd be breaking the EDL, but once sage7 was installed, the user would recognize that something is wrong, then remember this whole thing, then disable the edl-fixer.

what's more, the impression that i got was that the time scaling would be an option, on by default in 7, so installing 7 wouldn't even break things unless i misread things...

Instead of having SA constantly running, one could launch it with some software that monitored the thread and ran the fixer when the thread was terminated...
__________________
Sage Server(7): Win7SP1 32bit Quad core 2.6ghz 4gb ram (~3.2ish)
1TB RAID 10 Promise TX4310, 1TB external USB
2x HD PVR (1.05.301 whql working flawlessly) <-Verizon FIOS HD QIP7100 2 cable box controlled by USB-UIRT 2 zones
1x HDHR (dual tuner) <- Verizon wire
3x HD200 wired latest beta fw
Gig-E wired network
Reply With Quote
  #77  
Old 05-13-2010, 10:07 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by ericscottf View Post
Obviously we'd be breaking the EDL, but once sage7 was installed, the user would recognize that something is wrong, then remember this whole thing, then disable the edl-fixer.

what's more, the impression that i got was that the time scaling would be an option, on by default in 7, so installing 7 wouldn't even break things unless i misread things...

Instead of having SA constantly running, one could launch it with some software that monitored the thread and ran the fixer when the thread was terminated...
The old SA could work that way. Unfortunately SAV1 doesn't. It has a service that runs all the time. When you execute ShowAnalyzer.exe all it does is place the item in the queue. Then the service will prioritize them and spawn showanalyzerengine programs for each item in the active queue.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #78  
Old 05-13-2010, 10:09 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by Taddeusz View Post
The old SA could work that way. Unfortunately SAV1 doesn't. It has a service that runs all the time. When you execute ShowAnalyzer.exe all it does is place the item in the queue. Then the service will prioritize them and spawn showanalyzerengine programs for each item in the active queue.
You can use SJQ to launch SAEngine instead, eliminating the SA queue altogether. Then add your extra tasks after SAEngine is done in the SJQ client setup.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #79  
Old 05-13-2010, 10:11 AM
ericscottf's Avatar
ericscottf ericscottf is offline
Sage Aficionado
 
Join Date: Oct 2009
Location: ny
Posts: 357
Yup, what Fuzzy said, or you're going to have to monitor the directory for log files and launch when you see an error code 0.

also remember to somehow mark files that have been post-processed, or you'll shrink your edl file over and over and over and over...
__________________
Sage Server(7): Win7SP1 32bit Quad core 2.6ghz 4gb ram (~3.2ish)
1TB RAID 10 Promise TX4310, 1TB external USB
2x HD PVR (1.05.301 whql working flawlessly) <-Verizon FIOS HD QIP7100 2 cable box controlled by USB-UIRT 2 zones
1x HDHR (dual tuner) <- Verizon wire
3x HD200 wired latest beta fw
Gig-E wired network
Reply With Quote
  #80  
Old 05-13-2010, 10:13 AM
bialio's Avatar
bialio bialio is offline
SageTVaholic
 
Join Date: May 2007
Location: Frisco, TX
Posts: 3,445
SageMC will work in Sage V7. But don't expect any new features
__________________
PHOENIX 3 is here!
Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Commercial detection myoung84 SageTV Customizations 25 02-11-2008 10:01 PM
HW req for commercial detection hedlung SageTV Customizations 4 03-15-2007 08:58 AM
Lost Commercial Detection AWS SageTV Customizations 2 05-12-2006 08:37 PM
commercial detection options AHX SageTV Customizations 5 04-11-2006 11:38 AM
Best Commercial Detection kaudley SageTV Customizations 7 02-02-2006 04:29 PM


All times are GMT -6. The time now is 03:39 AM.


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