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-12-2005, 02:41 AM
thborchert's Avatar
thborchert thborchert is offline
Sage Advanced User
 
Join Date: Apr 2005
Posts: 108
Quote:
Originally Posted by nielm
This probably happened because the cut file has exactly the same name+ext as the original, so sage does not bother rescanning it to re-dertermine its length...
When I started playing with this, I renamed one file and Sage completely kicked it from its database. So I stopped doing that. I will try it again.

Thomas
Reply With Quote
  #22  
Old 07-12-2005, 07:12 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Firsty, only rename files when sage is shut fully shut down (step 7), otherwise sage will think that they have been deleted.

Secondly, making sure that the second part of the filename contains the airingID ie showname-xxxxxxx-0.mpg (Steps 4 and 10 ensure this), otherwise when Sage is restarted, it will not be able to match the renamed file with the show in it's DB.
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #23  
Old 07-12-2005, 08:58 AM
thborchert's Avatar
thborchert thborchert is offline
Sage Advanced User
 
Join Date: Apr 2005
Posts: 108
So "showname" is part of the airing ID? If so, that was my mistake. So I could add a letter in front of the old filename to force Sage to rescan the filee length, for example?

Thanks!

Thomas
Reply With Quote
  #24  
Old 07-12-2005, 09:10 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
well, the quickest+easiest way to rescan length is just edit-show-info in the webserver

If you had (say) Star Trek Enterprise episode Marauders, with internal AiringID 123456, then the filename should be:
StarTrekEnterprise-Marauders-123456-0.mpg

You could rename this (whilst Sage was shut down) to
Star_Trek_EnterpriseMarauders-123456-0.mpg
and Sage should rescan it and keep it as a Sage recording.

So, yes, adding a letter at the front (whilst Sage was shut down) would force a rescan...
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #25  
Old 07-13-2005, 04:06 AM
thborchert's Avatar
thborchert thborchert is offline
Sage Advanced User
 
Join Date: Apr 2005
Posts: 108
Quote:
Originally Posted by nielm
well, the quickest+easiest way to rescan length is just edit-show-info in the webserver

If you had (say) Star Trek Enterprise episode Marauders, with internal AiringID 123456, then the filename should be:
StarTrekEnterprise-Marauders-123456-0.mpg

You could rename this (whilst Sage was shut down) to
Star_Trek_EnterpriseMarauders-123456-0.mpg
and Sage should rescan it and keep it as a Sage recording.

So, yes, adding a letter at the front (whilst Sage was shut down) would force a rescan...
Ok, I played some more. First, ANY change to the file name while Sage is shut down will - in my installation - force Sage to delete the file from the database AND delete the .mpg-file from the hard disk upon restart. Even name changes in the form you suggest lead to total data loss.

OTOH, using the web server works real well. One caveat, though: An edit of the detailed show info after setting the start time offset to zero will force a recalculation of the length in Sage. However, if at the same time the show length in the detailed info is not adjusted manually to coincide with the real length of the file, Sage will classify the file as a partial recording. This means not only that it is "up for grabs" when more space on the disc is needed, but also that it will not be flagged as a "normal" archived recording. This, in turn, leads to the show not being listed in Sage recordings when using your "include archived" STV-plugin. They will also not be listed in the web server show listing.

In short: If you cut padding from a show, the only thing you have to edit in detailed show info on the web server is the start time offset - set it to zero. If you cut advertising, too, that changes the show length, so you have to change that in detailed info, too.

BTW: In my webserver, there is no search option showing at all. Where should that show? I found it by guessing the URL and entering /Search.
Reply With Quote
  #26  
Old 07-13-2005, 04:37 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally Posted by thborchert
BTW: In my webserver, there is no search option showing at all. Where should that show? I found it by guessing the URL and entering /Search.
Menu: Program Guide/Search EPG (unless you have modified menu.properties)

The same search page can get triggered by an 'Additional Airings' search.
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #27  
Old 07-13-2005, 04:46 AM
thborchert's Avatar
thborchert thborchert is offline
Sage Advanced User
 
Join Date: Apr 2005
Posts: 108
Quote:
Originally Posted by nielm
Menu: Program Guide/Search EPG (unless you have modified menu.properties)
Ah, so that's why the EPG search is really the file search
Reply With Quote
  #28  
Old 07-28-2005, 03:47 PM
abasu2003's Avatar
abasu2003 abasu2003 is offline
Sage Expert
 
Join Date: Jul 2004
Posts: 551
Can you go over this again, nielm.

Right now, after editing out commercials, I have gotten tot eh point where there is a red bar at the beginning of the airing. I then use your webserver to set the File Start Time to 0 seconds later in Edit Show Info->Airing Information, but the Airing ID automatically changes to something different, also changing the suffix on my avi file, but then the show is no longer in my Sage Recordings.

So the question is, is there a way to get rid of the red bar

EDIT: I just now somehow got it to use 0 seconds later (no idea how) so now the red bar is at the end of the show instead of the beginning. but again, if i use Edit Show Info to change the file duration, I end up changing the AiringID and sage can't find the file. seems like using Edit Show Info automatically changes the AiringID to something else

Last edited by abasu2003; 07-28-2005 at 03:57 PM.
Reply With Quote
  #29  
Old 07-28-2005, 04:39 PM
snoopy's Avatar
snoopy snoopy is offline
Sage Expert
 
Join Date: Dec 2004
Location: dog house
Posts: 682
Quote:
Originally Posted by nielm
...use my webserver to edit show info...
I'm not seeing this in your main list for stuff that works with 3.0
__________________
The newest v7 release of SageTV, now a free upgrade for existing owners of SageTV, is a dream come true for any TV enthusiast. Combine it with Play-On for Netflix and Hulu (among others) and no stone has been left unturned. SageTV is TV done right!
-- Snoopy
Reply With Quote
  #30  
Old 07-29-2005, 12:16 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally Posted by abasu2003
show is no longer in my Sage Recordings.
Look in Archived Sage Recordings (this is mentioned by the webserver)
Quote:
seems like using Edit Show Info automatically changes the AiringID to something else
At the moment, yes it does, even if you do not change the airing info...
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #31  
Old 09-27-2005, 04:55 PM
slamduncan slamduncan is offline
Sage User
 
Join Date: May 2005
Posts: 17
In-Place Recompression with Sage running

Maybe I'm missing something and this a) wasn't a problem or b) was known already or alternatively I've just discovered a new way to do in-place recompression without restarting Sage. Lets see... perhaps someone can try this out and see if I'm missing something. What I've done is:

1. Setup automated recompression of all new recordings (used DIRMON and mencoder with an Xvid format but you can do this whichever way you prefer)
2. Name the new files with the same filenames as the orginal Sage file but with a .AVI extension.
3. Put the new .AVI files in the same directory as the original .MPG files
4. Finally, delete the recording through the Sage front-end.

What happens on my machine is that the delete seems to complete successfully and the .MPG file is really deleted from the filesystem. But then a few seconds later the recording re-appears in the Sage front-end but when you drill-down into the recording information it's associated with the .AVI file. Operation after that seems to be normal - you can play etc.

If I'm not going crazy then all I need to do is work-out how to initiate the Sage deletion of the recording from a command line and add this to the DIRMON processor script, which shouldn't be that difficult.

Make sense?
D.
Reply With Quote
  #32  
Old 09-27-2005, 06:36 PM
flashbacck flashbacck is offline
Sage Aficionado
 
Join Date: May 2004
Posts: 326
Slamduncan,
What version of Sage are you doing this with?
__________________
C2D e6320
P4M800Pro, 1gb DDR, 1100GB HDs
Hauppauge HVR-1600, HDHomerun, Geforce 6200
Reply With Quote
  #33  
Old 09-28-2005, 03:01 AM
slamduncan slamduncan is offline
Sage User
 
Join Date: May 2005
Posts: 17
Sorry, should have put in original post - I'm still on version 2.1 of Sage - absolutely vanilla, no modifications, hacks or STVs applied to the product here. I'm not running in Server mode - just the default setting that comes out of the box, if that's important.

Should have also said that once the .AVI is hooked up with Sage, if you press the GUI delete button again then the .AVI gets deleted. Just as you'd expect really.

I'd be interested to hear if this behaviour changes with the subsequent releases.

D.
Reply With Quote
  #34  
Old 09-28-2005, 05:03 PM
flashbacck flashbacck is offline
Sage Aficionado
 
Join Date: May 2004
Posts: 326
I'll see if I can test this later tonight. I don't have any recompression software or dirmon installed, but I should be able to just makeup a file with notepad and try to reproduce what you're seeing. I'm running Beta 3.0.11.
__________________
C2D e6320
P4M800Pro, 1gb DDR, 1100GB HDs
Hauppauge HVR-1600, HDHomerun, Geforce 6200
Reply With Quote
  #35  
Old 10-02-2005, 06:30 PM
eventerke's Avatar
eventerke eventerke is offline
Sage User
 
Join Date: Sep 2005
Posts: 21
I tried this (in place recompression to AVI then delete MPEG in the interface) with 3.0.11 today and it worked. I did forget to touch the file date, but it looks like there's a pretty simple process that can take place - I bet this could be rolled into neilm's(sp?) web interface and a modification of ajuhawk's SageEncoder to make something pretty slick.
Personally I'd rather manually select what to convert rather than having all files converted.
What do most people prefer for the AVI encode? Virtualdub, mencoder, AutoGK?
If I didn't have to do some server work tonight I'd try to throw something together right away. I'll play with it this week and see what I can come up with.
Reply With Quote
  #36  
Old 10-03-2005, 07:54 AM
eventerke's Avatar
eventerke eventerke is offline
Sage User
 
Join Date: Sep 2005
Posts: 21
Whoops - SageEncoder doesn't work with the latest webserver. I guess it's either wait for ajuhawk's latest version, or learn a little java programming .
Reply With Quote
  #37  
Old 10-28-2005, 11:20 PM
Necro Necro is offline
Sage Advanced User
 
Join Date: Oct 2005
Posts: 90
Has anyone tested SlamDuncans process to see if it works? Curious, as I'd like to get this working (or some kind of recompression) without losing show data.
Reply With Quote
  #38  
Old 10-29-2005, 08:08 PM
eventerke's Avatar
eventerke eventerke is offline
Sage User
 
Join Date: Sep 2005
Posts: 21
Quote:
Originally Posted by Necro
Has anyone tested SlamDuncans process to see if it works? Curious, as I'd like to get this working (or some kind of recompression) without losing show data.
I'm trying it again, but I'm going to use the webserver to force a rescan on the compressed file and see if that works. Sage showed the recompressed AVI the first time I tried it - but the start/end times were screwed because I didn't rescan or use touch to copy the file date/time. I'll report back.
Reply With Quote
  #39  
Old 10-30-2005, 12:52 PM
eventerke's Avatar
eventerke eventerke is offline
Sage User
 
Join Date: Sep 2005
Posts: 21
Here's what I did that works:
- Confirm that I could run DivX files in the video library (I had to change my audio decoder settings)
- Run AutoGK to re-encode a program to DivX
- run "touch -r show.mpg to show.avi" to change the file date/time to the original file
- Delete the show in the Sage UI - it will reappear from the AVI file.

Would be nice to make it more automated - but at least I'm saving some disk space.
Reply With Quote
  #40  
Old 02-18-2006, 11:32 PM
flashbacck flashbacck is offline
Sage Aficionado
 
Join Date: May 2004
Posts: 326
Been a while since this topic has come up...

Has anyone come up with a more integrated way to do inplace recompressions?
__________________
C2D e6320
P4M800Pro, 1gb DDR, 1100GB HDs
Hauppauge HVR-1600, HDHomerun, Geforce 6200
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 11:43 PM.


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