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
  #21  
Old 05-07-2010, 01:16 PM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
mmmph... weird... do these recordings have padding? ... i ask bc my understanding of GetMediaTime() is that it is relative to the airing start time (not the beginning of the mediafile)
__________________
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
  #22  
Old 05-07-2010, 01:33 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by razrsharpe View Post
mmmph... weird... do these recordings have padding? ... i ask bc my understanding of GetMediaTime() is that it is relative to the airing start time (not the beginning of the mediafile)
Nope, no padding at all.
__________________
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
  #23  
Old 05-07-2010, 03:19 PM
blade blade is offline
SageTVaholic
 
Join Date: Jan 2005
Posts: 2,500
I've never run commercial processing on HD-PVR files, but I do know that showanalyzer used to be more accurate when run on completed recordings than those in progress because there was more information to check against.

Comskip was just as accurate on live recordings because after the processing was complete it ran a quick check (took a couple of seconds at most) against the complete recording and adjusted the commercial blocks as necessary.

Is it possible that showanalyzer does this check as well now? If so maybe the final check against the completed file is causing the markings to become less accurate instead of improving detection.

Has anyone actually opened the edl file during processing of an accurately marked show and made note of when the beginning and end of commercials were marked and then compared it to what the edl file shows after the recording is complete and the show is not accurately skipping? If the blocks have changed then something in the final check would be throwing it off. If not then the problem should be somewhere else.
Reply With Quote
  #24  
Old 05-07-2010, 03:24 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Quote:
Originally Posted by Taddeusz View Post
But I usually have it do live detection using SJQ which is how I discovered that the segments were dead-on while still recording.
How are you checking that they're "Accurate" as the recording is taking place? Is it by watching where SA flags commercials vs the "live" point, ie that it finishes flagging the commercial right when it ends?

I ask because my running theory is that Sage's skipping/timing is inaccurate on HD PVR recordings by some multiplier. Marked commercials seem to be further and further off as the show progresses.

Essentially I'm noticing/theorizing the same thing as razrsharpe.
Reply With Quote
  #25  
Old 05-07-2010, 04:44 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by blade View Post
I've never run commercial processing on HD-PVR files, but I do know that showanalyzer used to be more accurate when run on completed recordings than those in progress because there was more information to check against.

Comskip was just as accurate on live recordings because after the processing was complete it ran a quick check (took a couple of seconds at most) against the complete recording and adjusted the commercial blocks as necessary.

Is it possible that showanalyzer does this check as well now? If so maybe the final check against the completed file is causing the markings to become less accurate instead of improving detection.

Has anyone actually opened the edl file during processing of an accurately marked show and made note of when the beginning and end of commercials were marked and then compared it to what the edl file shows after the recording is complete and the show is not accurately skipping? If the blocks have changed then something in the final check would be throwing it off. If not then the problem should be somewhere else.
I think it's been 'confirmed' to not really be SAV's inaccuracy (as the files DO have perfect skip point sin VRD). It definately seems to be a playback issue, in sage, but one that is NOT there if the file is being played back 'live'. I agree it seems to be something to do with the airing time, and that it is different when live vs. recorded.
__________________
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
  #26  
Old 05-08-2010, 07:33 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
stanger is right. I received this from SageTV support last night:

Quote:
Yes the developers know why it's happening but there's no configuration
setting in V6 that'll fix it. They will add a property for V7 called:
"videoframe/disable_timescaling_on_seek" which will default to false, but
you can set it to true to resolve the problem.
Apparently after it completes the recording it adds some kind of timescaling on seek and the feature to disable it will be in version 7. At least we know it will be fixable.
__________________
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
  #27  
Old 05-08-2010, 08:53 AM
bialio's Avatar
bialio bialio is offline
SageTVaholic
 
Join Date: May 2007
Location: Frisco, TX
Posts: 3,445
I wonder why it's going to be a property rather than just fixing it - you would think inaccurate seeking would be undesirable all the time.......
__________________
PHOENIX 3 is here!
Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient
Reply With Quote
  #28  
Old 05-08-2010, 09:30 AM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Presumably they added it for some reason in the first place (not sure what it is) I suppose there's a reason some might still want it.
Reply With Quote
  #29  
Old 05-08-2010, 09:35 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
I'm guessing the 'time-scaling' is a feature that is adjusting the timeline reported to the UI such that an hour long show is exactly an hour long (timeline being 0:00 to 60:00). In actuality, most recording are NOT exactly an hour long, due to variances in the time it takes to start and stop the graphs, and for some sources, waiting for a B-Frame, etc. If they used actual length for display (0:00 to 59:48), they would get complaints like "Sage is cutting off the last 12 seconds of my show!" It seems obvious, now, that they figure out a scaling factor after the show is complete (and they have the 'real' length), and use that for the UI time based calls, which are what the comskip plugins use.
__________________
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
  #30  
Old 05-08-2010, 09:52 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
After a little more thinking, there should be a way to determine what this scaling factor is (by looking at the media's actual length, and comparing it to the airing length) and reverse 'correction' this in the comskip import. I'm not sure if it's possible to even read the real recording length from the UI, or if all time based calls are 'corrected'.

This really should be considered a bug, and fixed in a minor release. I don't want to wait for the sage7 beta to get accurate skipping back...
__________________
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
  #31  
Old 05-08-2010, 10:34 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Well, did some further digging, and it does look like all time-based api calls have the 'correction' in them. So, to find the REAL file length, I'll have to figure out an external method of getting the real duration from the files.
__________________
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
  #32  
Old 05-09-2010, 06:53 AM
ericscottf's Avatar
ericscottf ericscottf is offline
Sage Aficionado
 
Join Date: Oct 2009
Location: ny
Posts: 357
Wandered over here from another thread. I'm seeing this too, have been as long as i've used sage, but wanted to be sure before i posted.

If you want to do a back calculation, i would recommend breaking out ffmpeg. If you do an ffmpeg -i, you'll get some info on the file, one piece of which will show the duration. Here's what i get from a "60 minute" show recorded from sage:

FFmpeg version Sherpya-r11050, Copyright (c) 2000-2007 Fabrice Bellard, et al.
libavutil version: 49.5.0
libavcodec version: 51.48.0
libavformat version: 51.19.0
built on Nov 18 2007 09:00:58, gcc: 4.2.1 [Sherpya]
Input #0, mpegts, from 'NOVA-AbsoluteZeroTheConquestofCold-1170004-0.ts':
Duration: 00:59:48.4, start: 0.387044, bitrate: 2594 kb/s
Program 1
Stream #0.0[0x1011]: Video: h264, yuv420p, 720x480 [PAR 8:9 DAR 4:3], 29.97
tb(r)
Stream #0.1[0x1100]: Audio: liba52, 48000 Hz, stereo, 384 kb/s
Must supply at least one output file


It is 11.6 seconds short.

Next i'll poke around with a media player that uses the actual timeline and shows EDL data and determine how that offset gets woven into the system to produce the problem.

One thing i've noticed, however, at least on my setup is that sage shows pieces of commercials on both sides, it isn't a solid offset that shows some commercials and eats some tv.
That could be because i put some padding into comskip (i *want* to see a piece of a commercial on each side so i can be sure the show didn't cut early) to deal with the problem at hand...

..more later, after thinking and poking.
__________________
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
  #33  
Old 05-09-2010, 07:09 AM
ericscottf's Avatar
ericscottf ericscottf is offline
Sage Aficionado
 
Join Date: Oct 2009
Location: ny
Posts: 357
I posted the problem to Erik (of comskip fame)'s forum, maybe he'll have something clever to say about it.

I'm trying to find a media player that will read .ts files properly (smplayer thinks they're all 0:00:00 length and will play them, but won't let me jump around in them and won't read an EDL file).

I've seen VRD mentioned here, but can't find a media player by that name. My google-fu is weak today.
Can someone point me to a windows based media player that likes .ts and .edl files so i can ascertain how .edl data needs to be pushed around in order to fix this issue?

thanks!
__________________
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
  #34  
Old 05-09-2010, 08:17 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by ericscottf View Post
I've seen VRD mentioned here, but can't find a media player by that name.
VRD = Videoredo
__________________
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
  #35  
Old 05-09-2010, 09:25 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
If you're dealing with H.264 HDPVR recordings you have to go to the VideoRedo forums and download the V4 Beta. The old program that is still downloadable from the front page only supports MPEG2 video.
__________________
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
  #36  
Old 05-09-2010, 09:50 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Did some digging last night guys. I did confirm that it is because sage is 'faking' the time numbers to make it look like a full length recording. I've got a 'solution' of sorts (just have to polish it up, and I'll get it shared on here).

I've got SJQ set up to run the CLI version of MediaInfo on the recordings (after they've finished) to create a simple text file containing the REAL duration of the media.
Code:
if [IsObjMediaFile == true && $.IsTVFile{} == true && $.IsFileCurrentlyRecording{} == false && FileExists != "%d%/%p%.duration"]
{
   :PRIORITY 20
   DURATION
}
Code:
DURATION
{
   :RESOURCES 25
   :MAX 1
   :CPU LOW
   "C\:\\SJQC\\MediaInfo\\MediaInfo.exe --Inform=General;%Duration% --LogFile=\"%d%\\%p%.duration\" \"%c%\""
}
I then modified the Comskip 1.5.4 STVi to read in this file, and use the real duration from there, and the false reported duration from Sage to come up with a 'correction factor' that is then used when parsing the .edl file. So far, I've tested it on 4 or 5 shows, and the skips are near perfect (within a second).

I'm at work right now, but when I get home this afternoon, I'll finish polishing up the STVi mods and get it posted up. Hopefully it'll straighten this out until Sage gets things straight on their end.
__________________
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

Last edited by Fuzzy; 05-09-2010 at 11:11 PM. Reason: Fixed sjq rules
Reply With Quote
  #37  
Old 05-09-2010, 09:53 AM
ericscottf's Avatar
ericscottf ericscottf is offline
Sage Aficionado
 
Join Date: Oct 2009
Location: ny
Posts: 357
So what is doing the actual correction? The comskip plugin or are you using something else to modify the .edl file?

thanks for the effort!
__________________
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
  #38  
Old 05-09-2010, 10:04 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
The correction is done in the Comskip plugin.
__________________
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
  #39  
Old 05-09-2010, 10:22 AM
ericscottf's Avatar
ericscottf ericscottf is offline
Sage Aficionado
 
Join Date: Oct 2009
Location: ny
Posts: 357
Interesting.
So you'll read in the output from mediainfo if and only if it is present -- so there shouldn't even be a need for a setting in the STVI, right?

I'll do the mediainfo processing with my own software, but i should be able to figure that out from your post above.

I'm looking forward to testing this asap!

thanks!
__________________
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
  #40  
Old 05-09-2010, 10:30 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
yes, basically I check if the .duration file exists, and if it does, use the ratio of that duration and the duration provided by Sage to generate the correction factor. If the .duration file doesn't exist, or if the show is flagged as LiveTV (which doesn't have the false times reported) then if uses a correction factor of 1.0, meaning it skips exactly as the EDL contains.
__________________
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
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 07:13 PM.


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