SageTV Community  

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

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-06-2010, 12:18 PM
broconne broconne is offline
Sage Aficionado
 
Join Date: Feb 2009
Location: Cary, NC
Posts: 306
Imported Video Runtime/Duration

What is the correct method to get the runtime or duration of imported videos? I have tried various combinations GetFileDuration, DurationForSegment, GetFileDuration, GetMediaDuration. All seem to return 1 - and the videos are not 1 millisecond long :-)
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram
Guest: Ubuntu 16.04 with Sage v9 in Docker
Tuners: 2 HDHR (OTA);
Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD
Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case.
Reply With Quote
  #2  
Old 11-06-2010, 12:21 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
What kind of video is it?

If this is just for display in the UI, try checking both GetShowDuration() and GetAiringDuration(), then display whichever one is > 1000.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #3  
Old 11-06-2010, 02:47 PM
broconne broconne is offline
Sage Aficionado
 
Join Date: Feb 2009
Location: Cary, NC
Posts: 306
It is an MKV. Here is the output I log for each query using the various methods:

File Duration: 1
Show Duration: 0
Airing Duration: 1


I will note that when I am using the default STV and I look at the detailed info - there is no runtime info listed - for any of the imported videos.
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram
Guest: Ubuntu 16.04 with Sage v9 in Docker
Tuners: 2 HDHR (OTA);
Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD
Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case.
Reply With Quote
  #4  
Old 11-09-2010, 06:46 AM
broconne broconne is offline
Sage Aficionado
 
Join Date: Feb 2009
Location: Cary, NC
Posts: 306
Not sure exactly how this is related.. But when I was testing, I was accessing my NAS via a VPN. Once I was within the local network, I deleted all videos and reimported them. After that, runtime information was available using the normal methods...
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram
Guest: Ubuntu 16.04 with Sage v9 in Docker
Tuners: 2 HDHR (OTA);
Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD
Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case.
Reply With Quote
  #5  
Old 11-09-2010, 06:53 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by broconne View Post
Not sure exactly how this is related.. But when I was testing, I was accessing my NAS via a VPN. Once I was within the local network, I deleted all videos and reimported them. After that, runtime information was available using the normal methods...
I would guess that it couldn't parse the information or read the properties files correctly or they didn't exist on the first import.
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
BMT Movie Runtime On SMW viperdiablo SageTV Customizations 3 03-03-2010 11:35 AM
Java Runtime Environment RandyJohnson SageTV Software 1 02-10-2009 12:41 PM
Runtime error BlueH2O SageTV Software 6 07-13-2006 12:58 PM
Audio Decoder - Runtime identification antplugger SageTV Software 0 04-01-2006 04:09 AM
Imported Video Files -- 0 minutes duration dragon SageTV Software 4 06-22-2004 07:23 AM


All times are GMT -6. The time now is 11:46 PM.


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