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
  #1  
Old 12-13-2010, 08:18 PM
coppit coppit is offline
Sage Advanced User
 
Join Date: Mar 2003
Posts: 176
MediaShrink + SJQ v4

Can someone help me get MediaShrink set up with SJQ v4?

What I want to do is have MediaShrink automatically compress all recordings during the hours of 1am to 7am.

I'm to the point where I set up the task and the trigger. MediaShrink is installed, and SJQ is licensed.

Using the SJQ UI, I selected my client and added a task. Here are the settings I used:

Task ID: COMPRESS
Executable: C:\Program Files\SageTV\SageTV\MediaShrink\MediaShrink.exe
Executable Arguments: "%c%" /inPlace /batch /vprofile HQ /vbitrate 2500
Test Script:
Test Script Arguments:
Maximum Instances: 1
Maximum Return Code: 0
Minimum Return Code: 0
Maximum Time: 86400
Resources: 100
Schedule * 1,2,3,4,5,6 * * *
Maximum Time Ratio: 1.0

I guessed that %c% is used to represent the media file as before. But it seems wrong. See below.

Next, I set up Events for Tasks, with RecordingStopped and "COMPRESS" selected.

At the end of the show I see a task created in the queue. Then a bit later I see that the task failed. When I look at the log I see literally %c% in the log. When I run the command in the command prompt it seems to work okay.

How do I pass the show.mpg to MediaShrink.exe?
Reply With Quote
  #2  
Old 12-13-2010, 08:59 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Instead of %c% use "$SJQ4_LAST_SEGMENT"

Details on all the predefined variables in SJQv4 are discussed in this doc:

http://code.google.com/p/sagetv-addo...i/Sjq4Metadata
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #3  
Old 12-13-2010, 09:11 PM
coppit coppit is offline
Sage Advanced User
 
Join Date: Mar 2003
Posts: 176
Okay, I figured out that I need to use "$SJQ4_PATH\SJQ4_LAST_SEGMENT" for the path and filename. At least the job isn't failing immediately.

How do I make this automatic for all recordings? When I manually record a show I get a popup for the events and tasks. It seems like I also need to configure each of my many favorites.
Reply With Quote
  #4  
Old 12-13-2010, 10:05 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
If you want it for EVERY recording, go to Setup > SJQ > Assign Tasks to Events and select it from there. Attaching tasks to RecordingStarted there will queue it up for every recording (fav, manual, IR, live tv). If you only want it to run on certain favs then, yes, you will have to go through each fav and assign as desired.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #5  
Old 12-14-2010, 07:00 AM
coppit coppit is offline
Sage Advanced User
 
Join Date: Mar 2003
Posts: 176
Is there a way to avoid the task popup for manual recordings? They should automatically get scheduled for conversion based on the global recording completion event handler.
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
Utility: MediaShrink v3.0 - An HTPC focused encoder evilpenguin SageTV Customizations 228 10-05-2016 07:05 PM
Sage Job Queue (SJQ) - What Do YOU Use It For? SDeGonge SageTV Customizations 7 05-12-2010 03:16 AM
(Old) MediaShrink - An HTPC focused encoder evilpenguin SageTV Customizations 603 04-26-2010 08:05 PM
SRE and SJQ? SageGk SageMC Custom Interface 2 01-15-2009 05:14 PM


All times are GMT -6. The time now is 06:55 AM.


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