SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-17-2006, 05:12 AM
rickgillyon's Avatar
rickgillyon rickgillyon is offline
Sage Icon
 
Join Date: Sep 2005
Location: Whitley Bay, England
Posts: 1,950
Customising Filenames

Is it possible to get Sage to include channel names or numbers in the filename of a recording? I need to process C5 (UK) recordings differently to other recordings on my overnight jobs, so it would be really helpful to be able to identify them...

I'm not really expecting that we can, but maybe someone is doing something similar? Thanks!
Reply With Quote
  #2  
Old 03-17-2006, 05:32 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
nope...

But you can use the Airing ID from the file name to get the show info from the webserver, which will include the channel info
(And very very soon, the webserver will be able to produce show info in easy-to-parse XML format)

(of course this depends on what your overnight jobs are)
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki

Last edited by nielm; 03-17-2006 at 05:37 AM.
Reply With Quote
  #3  
Old 03-17-2006, 05:53 AM
rickgillyon's Avatar
rickgillyon rickgillyon is offline
Sage Icon
 
Join Date: Sep 2005
Location: Whitley Bay, England
Posts: 1,950
I'm guessing that getting the channel from the webserver in a DOS script is going to be, uh, challenging.

Is there a DOS API for the webserver?
Reply With Quote
  #4  
Old 03-17-2006, 06:41 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
ah... uh... ok...
well, probably with wget or lynx for win32
Code:
C:\> lynx -dump -auth=User:Pass http://localhost:800/sage/DetailedInfo?AiringId=123456 | find "Channel"
   Channel: 3-BBC TWO London and South East
or
C:\> lynx -dump -auth=User:Pass http://localhost:800/sage/DetailedInfo?FileName='\\mediaserver\Sage\Sage-Video\ShowName-123456-0.mpg' | find "Channel"
   Channel: 3-BBC TWO London and South East
I am not enough of a batch script programmer to know how you go from there
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #5  
Old 03-17-2006, 08:12 AM
rickgillyon's Avatar
rickgillyon rickgillyon is offline
Sage Icon
 
Join Date: Sep 2005
Location: Whitley Bay, England
Posts: 1,950
Wow, I'll download Lynx and try it out. Thanks!
Reply With Quote
  #6  
Old 03-20-2006, 05:05 AM
rickgillyon's Avatar
rickgillyon rickgillyon is offline
Sage Icon
 
Join Date: Sep 2005
Location: Whitley Bay, England
Posts: 1,950
Thanks for the advice nielm, it's all working great. I had a problem with my overnight batch, which takes all new MPG files and uses mencoder to process them to XviD files (for burning to DVD for when I'm away from home). However, Channel 5 DVB captures almost always crashed mencoder, so this way I've been able to change the script to check if it's Channel 5 and if so run AutoGK for that file, otherwise run mencoder.

Cheers!

Anyone wants to see my scripts let me know, I'd probably need to tidy them up first...
Reply With Quote
  #7  
Old 03-20-2006, 03:37 PM
alon24 alon24 is offline
Sage Aficionado
 
Join Date: Jun 2004
Posts: 351
I would love to see the scripts, I would like to see the whole process, do u use dirmon?
do u replace the files, I know that works, since I tested on my macine and if I bring the avi file, to the same directory, and then delete the mpeg one it will still show the data on the avi file.

There is no need to restart sagetv for this to work.

So I would love to see the script, and be able to use both mencoder and AutoGK automaticly....
__________________
Server
SageTv 6.3.5, Core2Duo 6300 ,2Gigs ,Saphire x1650, PVR250, 2*320GB + 160GB, java 1.6.1
Client
SageTV Client 6.3.5 , AMD 3000, 1024Mb, Saphire x1600Pro256HDMI, java 1.6.1

Using Nielm's Web server 2.22
Reply With Quote
  #8  
Old 03-30-2006, 02:30 AM
rickgillyon's Avatar
rickgillyon rickgillyon is offline
Sage Icon
 
Join Date: Sep 2005
Location: Whitley Bay, England
Posts: 1,950
Quote:
Originally Posted by alon24
So I would love to see the script, and be able to use both mencoder and AutoGK automaticly....
Sorry, I'm not ignoring you, I just lost all my scripts at the weekend and had to rewrite. All working now so I'll just need to comment them before posting...

nielm, both lynx and wget work, but lynx was a bit unreliable. wget and the webserver provide the information I needed, thanks!
Reply With Quote
  #9  
Old 04-04-2006, 04:56 PM
rickgillyon's Avatar
rickgillyon rickgillyon is offline
Sage Icon
 
Join Date: Sep 2005
Location: Whitley Bay, England
Posts: 1,950
Okay, I've put up all my scripts here.

Would have just posted on this thread but it turned into a bit of an essay...
__________________
unRAID Server: Intel Core i5 7600K, 48GB DDR4, 2x512GB PCIe M.2 Cache Pool, 2x10TB SATA3 Parity Drive, 3x8TB SATA Array, 1x hdHomeRun DVB-T2 Quattro, IPTV via xTeVe, unRAID 6.8.3, tvHeadEnd for recording back end, Emby
Clients: 3 Nvidia Shields, 3 FireTV, 3 Win10 Pro PC Clients
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 03:41 AM.


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