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.

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #321  
Old 11-25-2009, 06:33 PM
ohpleaseno ohpleaseno is offline
Sage Aficionado
 
Join Date: Apr 2009
Location: South Florida
Posts: 464
do i need a batch file to go with it?

i.e.

Code:
@ECHO OFF
set DIRECTORY="D:\shares\Software\sage tv\media shrink"

:LOOP
IF (%1)==() GOTO NEXT
set COMMAND=%COMMAND% "%~f1"
shift
GOTO LOOP

:NEXT
cd /D "%DIRECTORY%"
c:
start /I /BELOWNORMAL /MIN /WAIT mediaShrink.exe %COMMAND%
__________________
Server: WHS with 11TB of storage
Clients:1) HD-200 to a Samsung 32" Slimfit CRT HDTV 2) HD-200 to a Pioneer 26" X1 LCD
Tuners: 1) HD-Homerun 2) Avermedia USB ATSC
Twitter: ohpleaseno
  #322  
Old 11-25-2009, 06:35 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
I don't use a batch file, try just this and see where it gets you...

Code:
MEDIASHRINKHQ
{
   :CPU "LOW"
   :OFFHOUR "0-2, 10-23"
   :OFFDAY "1, 7"
   :MAX 1
   :RESOURCES 50
   "D:/mediaScraper/mediaShrink.exe /batch \"%c%\""
}
  #323  
Old 11-25-2009, 07:10 PM
ohpleaseno ohpleaseno is offline
Sage Aficionado
 
Join Date: Apr 2009
Location: South Florida
Posts: 464
It kicked the queue to "completed" w/o doing anything to the file.

Code:
Wed Nov 25 13:39:44 EST 2009: Starting task with priority 5/1/10
Executing command line: D:/shares/Software/sage tv/media shrink/mediaShrink.exe "\\SERVER\RECORDED TV\ThisOldHouse-1231705-0.mpg"
Couldn't find encode profile:  at script/mediaEngine.pl line 230, <PREFS> line 2179.
Welcome to mediaEngine v1.0beta
Staring Proccesing at 13:39:45 11-25-2009

+ Logfile      :
+ Executable   : D:\shares\Software\sage tv\media shrink\mediaEngine.exe
+ EXE path     : D:\shares\Software\sage tv\media shrink
+ Parsing switches
- optionsString:
- optionsArray: /defaultProfile autoEncode /findFileRegEx avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms /inPlace /mediaShrink bugFix \\SERVER\RECORDED TV\ThisOldHouse-1231705-0.mpg
- Adding to to options Hash
+ Key: defaultProfile
+ Value: autoEncode
- Adding to to options Hash
+ Key: findFileRegEx
+ Value: avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms
- Adding to to options Hash
+ Key: inPlace
- Adding to to options Hash
+ Key: mediaShrink
+ Value: bugFix
! couldn't understand (\\SERVER\RECORDED TV\ThisOldHouse-1231705-0.mpg), throwing it away
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineProfiles (profile|func|snip|output|scrape)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineProfiles\encodingProfiles (profile|func|snip|output|scrape)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineProfiles\scrapingProfiles (profile|func|snip|output|scrape)
+ Seraching for avaialble binaries
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineProfiles (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineProfiles\encodingProfiles (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineProfiles\scrapingProfiles (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\Comskip (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\Curl (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\ffmpeg (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\ffmpeg\FFmpeg-svn-16596 (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\ffmpeg\FFmpeg-svn-16596\docs (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\Handbrake 9.3 (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mkvtoolnix (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mkvtoolnix\data (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mkvtoolnix\doc (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mkvtoolnix\doc\images (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mkvtoolnix\examples (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mp4box (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\MPlayer-rtm-svn-28311 (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\MPlayer-rtm-svn-28311\codecs (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\MPlayer-rtm-svn-28311\docs (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\MPlayer-rtm-svn-28311\fonts (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\MPlayer-rtm-svn-28311\fonts\conf.avail (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\MPlayer-rtm-svn-28311\fonts\conf.d (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\MPlayer-rtm-svn-28311\mplayer (exe)
+ ccextractorwin.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\ccextractorwin.exe
+ mp4creator.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mp4creator.exe
+ mtee.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mtee.exe
+ touch.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\touch.exe
+ wget.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\wget.exe
+ comskip.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\Comskip\comskip.exe
+ curl.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\Curl\curl.exe
+ ffmpeg.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\ffmpeg\ffmpeg.exe
+ ffmpeg_SVN.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\ffmpeg\FFmpeg-svn-16596\ffmpeg_SVN.exe
+ HandBrakeCLI.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\Handbrake 9.3\HandBrakeCLI.exe
+ mkvextract.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mkvtoolnix\mkvextract.exe
+ mkvinfo.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mkvtoolnix\mkvinfo.exe
+ mkvmerge.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mkvtoolnix\mkvmerge.exe
+ mmg.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mkvtoolnix\mmg.exe
+ uninst.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mkvtoolnix\uninst.exe
+ MP4Box.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mp4box\MP4Box.exe
+ mencoder.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\MPlayer-rtm-svn-28311\mencoder.exe
+ mplayer.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\MPlayer-rtm-svn-28311\mplayer.exe
+ vfw2menc.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\MPlayer-rtm-svn-28311\vfw2menc.exe
+ Seraching for input files (avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms)
------------ Processing ----------------
+ Adding per run options: ()()
+ Parsing switches
- optionsString:
+ Processing:
+ Looking for profile:
Wed Nov 25 17:12:35 EST 2009: Starting task with priority 5/1/10
Executing command line: D:/shares/Software/sage tv/media shrink/mediashrink.bat "\\SERVER\RECORDED TV\ThisOldHouse-1231705-0.mpg"
'D:\shares\Software\sage' is not recognized as an internal or external command,
operable program or batch file.
Wed Nov 25 20:07:54 EST 2009: Starting task with priority 5/1/10
Executing command line: D:/shares/Software/sage tv/media shrink/mediashrink.exe /batch "\\SERVER\RECORDED TV\ThisOldHouse-1231705-0.mpg"
Couldn't find encode profile:  at script/mediaEngine.pl line 230, <PREFS> line 2179.
Welcome to mediaEngine v1.0beta
Staring Proccesing at 20:07:55 11-25-2009

+ Logfile      :
+ Executable   : D:\shares\Software\sage tv\media shrink\mediaEngine.exe
+ EXE path     : D:\shares\Software\sage tv\media shrink
+ Parsing switches
- optionsString:
- optionsArray: /defaultProfile autoEncode /findFileRegEx avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms /inPlace /mediashrink bugFix /batch \\SERVER\RECORDED TV\ThisOldHouse-1231705-0.mpg
- Adding to to options Hash
+ Key: defaultProfile
+ Value: autoEncode
- Adding to to options Hash
+ Key: findFileRegEx
+ Value: avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms
- Adding to to options Hash
+ Key: inPlace
- Adding to to options Hash
+ Key: mediashrink
+ Value: bugFix
- Adding to to options Hash
+ Key: batch
+ Value: \\SERVER\RECORDED TV\ThisOldHouse-1231705-0.mpg
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineProfiles (profile|func|snip|output|scrape)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineProfiles\encodingProfiles (profile|func|snip|output|scrape)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineProfiles\scrapingProfiles (profile|func|snip|output|scrape)
+ Seraching for avaialble binaries
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineProfiles (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineProfiles\encodingProfiles (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineProfiles\scrapingProfiles (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\Comskip (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\Copy of Handbrake 9.3 (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\Curl (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\ffmpeg (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\ffmpeg\FFmpeg-svn-16596 (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\ffmpeg\FFmpeg-svn-16596\docs (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\Handbrake 9.3 (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mkvtoolnix (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mkvtoolnix\data (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mkvtoolnix\doc (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mkvtoolnix\doc\images (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mkvtoolnix\examples (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mp4box (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\MPlayer-rtm-svn-28311 (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\MPlayer-rtm-svn-28311\codecs (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\MPlayer-rtm-svn-28311\docs (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\MPlayer-rtm-svn-28311\fonts (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\MPlayer-rtm-svn-28311\fonts\conf.avail (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\MPlayer-rtm-svn-28311\fonts\conf.d (exe)
- Scanning Directory: D:\shares\Software\sage tv\media shrink\mediaEngineBins\MPlayer-rtm-svn-28311\mplayer (exe)
+ ccextractorwin.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\ccextractorwin.exe
+ mp4creator.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mp4creator.exe
+ mtee.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mtee.exe
+ touch.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\touch.exe
+ wget.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\wget.exe
+ comskip.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\Comskip\comskip.exe
+ HandBrakeCLI.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\Copy of Handbrake 9.3\HandBrakeCLI.exe
+ curl.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\Curl\curl.exe
+ ffmpeg.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\ffmpeg\ffmpeg.exe
+ ffmpeg_SVN.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\ffmpeg\FFmpeg-svn-16596\ffmpeg_SVN.exe
+ HandBrakeCLI.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\Handbrake 9.3\HandBrakeCLI.exe
+ mkvextract.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mkvtoolnix\mkvextract.exe
+ mkvinfo.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mkvtoolnix\mkvinfo.exe
+ mkvmerge.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mkvtoolnix\mkvmerge.exe
+ mmg.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mkvtoolnix\mmg.exe
+ uninst.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mkvtoolnix\uninst.exe
+ MP4Box.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\mp4box\MP4Box.exe
+ mencoder.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\MPlayer-rtm-svn-28311\mencoder.exe
+ mplayer.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\MPlayer-rtm-svn-28311\mplayer.exe
+ vfw2menc.exe	: D:\shares\Software\sage tv\media shrink\mediaEngineBins\MPlayer-rtm-svn-28311\vfw2menc.exe
+ Seraching for input files (avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms)
------------ Processing ----------------
+ Adding per run options: ()()
+ Parsing switches
- optionsString:
+ Processing:
+ Looking for profile:
__________________
Server: WHS with 11TB of storage
Clients:1) HD-200 to a Samsung 32" Slimfit CRT HDTV 2) HD-200 to a Pioneer 26" X1 LCD
Tuners: 1) HD-Homerun 2) Avermedia USB ATSC
Twitter: ohpleaseno
  #324  
Old 11-25-2009, 07:55 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
And you're sure everything is working with drag and drop?

Edit: Ok, it looks like there are two issues here.

1) Open up mediaShrink.defaults and add /batch there and take it out of the SJQ command.

2) When running in SJQ mediaShrink can't see the video. If you're running the SJQ service, make sure you have it setup as a user with network permissions.

Last edited by evilpenguin; 11-25-2009 at 08:11 PM.
  #325  
Old 11-25-2009, 08:47 PM
ohpleaseno ohpleaseno is offline
Sage Aficionado
 
Join Date: Apr 2009
Location: South Florida
Posts: 464
I went into services and had SJQ log in as the admin for the WHS. I restarted the job and will see how it goes.

Is there any way to expose the console window so I can watch it in real time?
__________________
Server: WHS with 11TB of storage
Clients:1) HD-200 to a Samsung 32" Slimfit CRT HDTV 2) HD-200 to a Pioneer 26" X1 LCD
Tuners: 1) HD-Homerun 2) Avermedia USB ATSC
Twitter: ohpleaseno
  #326  
Old 11-25-2009, 08:48 PM
ohpleaseno ohpleaseno is offline
Sage Aficionado
 
Join Date: Apr 2009
Location: South Florida
Posts: 464
Oh, and as always, thanks a ton for all the help. You and Slugger.
__________________
Server: WHS with 11TB of storage
Clients:1) HD-200 to a Samsung 32" Slimfit CRT HDTV 2) HD-200 to a Pioneer 26" X1 LCD
Tuners: 1) HD-Homerun 2) Avermedia USB ATSC
Twitter: ohpleaseno
  #327  
Old 11-25-2009, 09:01 PM
kevine kevine is offline
Sage Expert
 
Join Date: Aug 2007
Posts: 514
Quote:
Originally Posted by ohpleaseno View Post
I went into services and had SJQ log in as the admin for the WHS. I restarted the job and will see how it goes.

Is there any way to expose the console window so I can watch it in real time?
mstsc /v:YOURSERVERNAME /console
  #328  
Old 11-25-2009, 09:10 PM
ohpleaseno ohpleaseno is offline
Sage Aficionado
 
Join Date: Apr 2009
Location: South Florida
Posts: 464
I don't see the console, but the process is running at 98%, so I think we're good to go.
__________________
Server: WHS with 11TB of storage
Clients:1) HD-200 to a Samsung 32" Slimfit CRT HDTV 2) HD-200 to a Pioneer 26" X1 LCD
Tuners: 1) HD-Homerun 2) Avermedia USB ATSC
Twitter: ohpleaseno
  #329  
Old 11-25-2009, 09:12 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
There should be an 'autoencode' log file next to the video you can use to check on its progress.
  #330  
Old 11-27-2009, 07:49 AM
ohpleaseno ohpleaseno is offline
Sage Aficionado
 
Join Date: Apr 2009
Location: South Florida
Posts: 464
Now getting it started works, but it doesn't finish. The encode works great, but it doesn't get out of the work folder and SJQ hangs up waiting for it to move the file. What would keep it from not getting out of the work folder?
__________________
Server: WHS with 11TB of storage
Clients:1) HD-200 to a Samsung 32" Slimfit CRT HDTV 2) HD-200 to a Pioneer 26" X1 LCD
Tuners: 1) HD-Homerun 2) Avermedia USB ATSC
Twitter: ohpleaseno
  #331  
Old 11-27-2009, 08:10 AM
ohpleaseno ohpleaseno is offline
Sage Aficionado
 
Join Date: Apr 2009
Location: South Florida
Posts: 464
Quote:
Originally Posted by kevine View Post
mstsc /v:YOURSERVERNAME /console
sorry, i meant is there a way to have SJQ open the console window of mediashrink so that I can watch it from there.
__________________
Server: WHS with 11TB of storage
Clients:1) HD-200 to a Samsung 32" Slimfit CRT HDTV 2) HD-200 to a Pioneer 26" X1 LCD
Tuners: 1) HD-Homerun 2) Avermedia USB ATSC
Twitter: ohpleaseno
  #332  
Old 11-27-2009, 07:04 PM
ohpleaseno ohpleaseno is offline
Sage Aficionado
 
Join Date: Apr 2009
Location: South Florida
Posts: 464
Quote:
Originally Posted by ohpleaseno View Post
Now getting it started works, but it doesn't finish. The encode works great, but it doesn't get out of the work folder and SJQ hangs up waiting for it to move the file. What would keep it from not getting out of the work folder?
to be a little more descriptive, the file finishes encoding and is labeled with the "*.scratch.33.MAIN.mkv" ending and sits there in the work folder. SJQ just waits and waits and waits because the task isn't finished. Is this a media shrink or SJQ problem?

Here is the end of the error log

Code:
[03:34:47] output track 0: ac3 in sync after skipping 1168 bytes
[03:34:47] sync: adding 76 ms of silence to audio 0  start 143978218, next 143971294
[03:34:49] output track 0: ac3 in sync after skipping 1288 bytes
[03:34:49] sync: adding 76 ms of silence to audio 0  start 144001258, next 143994334
[03:34:53] output track 0: ac3 in sync after skipping 1550 bytes
[03:34:53] output track 0: ac3 in sync after skipping 1904 bytes
[03:34:54] output track 0: ac3 in sync after skipping 1352 bytes
[03:34:54] output track 0: ac3 in sync after skipping 1338 bytes
[03:34:54] sync: adding 241 ms of silence to audio 0  start 144085164, next 144063454
[03:34:54] output track 0: ac3 in sync after skipping 1472 bytes
[03:34:54] sync: video time didn't advance - dropped 4 frames (delta 289 ms, current 144114852, next 144134391, dur 19539)
[03:34:54] sync: video time didn't advance - dropped 1 frames (delta 339 ms, current 144134391, next 144140397, dur 6006)
[03:34:55] output track 0: ac3 in sync after skipping 1232 bytes
[03:34:55] sync: adding 128 ms of silence to audio 0  start 144154284, next 144142764
[03:35:01] output track 0: ac3 in sync after skipping 2166 bytes
[03:35:02] reader: done. 252 scr changes
[03:35:02] output track 0: ac3 in sync after skipping 1104 bytes
[03:35:02] sync: adding 128 ms of silence to audio 0  start 144292524, next 144281004
[03:35:02] sync: got 43658 frames, 43658 expected
[03:35:02] work: average encoding speed for job is 2.424834 fps
[03:35:04] mux: track 0, 41136 frames, 311556669 bytes, 1554.34 kbps, fifo 64
[03:35:04] mux: track 1, 50103 frames, 76958208 bytes, 383.94 kbps, fifo 256
[03:35:04] mpeg2 done: 44332 frames
[03:35:04] render: lost time: 11817083 (3846 frames)
[03:35:04] render: gained time: 11817083 (14776 frames) (0 not accounted for)
[03:35:04] render: average dropped frame duration: 3072
[03:35:04] encx264: 585 frames had to be split (39811 in, 41138 out)
x264 [info]: frame I:377   Avg QP:32.37  size: 28119  PSNR Mean Y:38.51 U:42.62 V:43.22 Avg:39.52 Global:37.98
x264 [info]: frame P:23679 Avg QP:34.26  size: 10406  PSNR Mean Y:37.02 U:41.23 V:41.98 Avg:38.04 Global:36.52
x264 [info]: frame B:17080 Avg QP:38.31  size:  3195  PSNR Mean Y:35.90 U:40.16 V:41.16 Avg:36.94 Global:35.09
x264 [info]: consecutive B-frames: 25.0% 48.6% 26.4%
x264 [info]: mb I  I16..4: 30.3% 58.5% 11.3%
x264 [info]: mb P  I16..4:  4.5%  7.4%  1.8%  P16..4: 26.1%  5.8%  3.0%  0.0%  0.0%    skip:51.5%
x264 [info]: mb B  I16..4:  1.0%  1.2%  0.2%  B16..8: 25.5%  0.7%  0.7%  direct: 1.8%  skip:68.9%  L0:40.2% L1:58.7% BI: 1.1%
x264 [info]: 8x8 transform intra:54.1% inter:79.7%
x264 [info]: coded y,uvDC,uvAC intra: 37.8% 52.0% 24.7% inter: 7.3% 12.2% 2.0%
x264 [info]: i16 v,h,dc,p: 38% 36%  9% 17%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 19% 24%  5%  6%  7%  7%  6%  6%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 30% 16%  4%  5%  5%  5%  4%  4%
x264 [info]: Weighted P-Frames: Y:1.2%
x264 [info]: ref P L0: 60.2% 19.7% 20.1%
x264 [info]: SSIM Mean Y:0.9345482
x264 [info]: PSNR Mean Y:36.568 U:40.799 V:41.648 Avg:37.596 Global:35.877 kb/s:1504.31
[03:35:05] deca52: 39414 frames decoded, 1655 crc errors, 8404558 bytes dropped
[03:35:05] decomb: deinterlaced 24049 | blended 7730 | unfiltered 8032 | total 39811
[03:35:05] libhb: work result = 0
__________________
Server: WHS with 11TB of storage
Clients:1) HD-200 to a Samsung 32" Slimfit CRT HDTV 2) HD-200 to a Pioneer 26" X1 LCD
Tuners: 1) HD-Homerun 2) Avermedia USB ATSC
Twitter: ohpleaseno
  #333  
Old 11-29-2009, 07:00 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Mediashrink dev version

Hey, as promised (long ago ) here's my latest dev version of mediaShrink. I've been tweaking it constantly for a year so I'm not really sure what's different, but i'm fairly certain its better than the current version. Just off the top of my head...
  • Fixed scaling
  • Cleaned up process execution to work better with SJQ/Dirmon2
  • Improved DVD title detection
  • Added /forceTitle <#,#,...> for when DVD title detection fails
  • Added Touch.exe for matching timestamps
  • Always run at IDLE priority
  • Attaches .edl and property files to mkv's for backup
  • Added exit codes so that a failures return a 1
  • And lots and lots of little that I may remember over time..
I also updated it to include/support Handbrake 9.4. Its another solid release from the dedicated Handbrake devs and the most noticeable improvement you'll enjoy the encoding speed. I personally gained 10-15 fps, but your milage may vary. The flip side is that, since at the core mediaShrink is really just a Handbrake CLI wrapper, since they removed support for XVID/AVI I had to also.


Here's all the options that I'm *fairly* sure are working, but as always I recommend not using any and letting mediaShrink make all the decisions for you
Code:
mediaShrink v2.0beta -

Simple Usage: Drag and drop videos on MediaShrink.exe 
CLI Syntax  : mediaShrink.exe [options] <File|Folder> <File|Folder>

### Basic Options-----------------------------------------------------------

    /saveLog                Save log file when complete (default)
    /saveAll                Save all temp files when complete
    /batch                  Run in batch mode, intended for Dirmon2/SJQ (default)

### Output Options-----------------------------------------------------------

    /inPlace                Replace the original video when complete
    /outputName <name>      Name for output file.  Default is same as original
                            with new extention.
    /outputDirectory <path> Directory to place encoded video.  Default is same
                            path as original.

### Standard Options ------------------------------------------------------------

    /x264                   Use x264 encoder (default)
    /divx                   Use ffmpeg encoder, roughly divx

    /highProfile            High quality encode, recommended for fast systems       
    
    /cliBitrate <kbs>       Set video bitrate 
                              - 2500 kbs if HDTV 
                              - Otherwise 1500 kbs
    
    /onePass                Do a one-pass encode, faster
    /twoPass                Do a two-pass encode, slower/higher quality
                              - two-pass if HDTV
                              - Otherwise one-pass
    
    /autoCrop               Auto detect crop settings using comskip (default)
    
    /reverseTelecine        Uses Handbrakes variable frame rate encoding
                              - Default for DVD
                              - Autodetected for 1080i HDTV
                              - Otherwise disabled
                              
    /denoise                Uses Hanbrakes denoise filter

    /mkv                    Use the mkv container (default)
    /mp4                    Use the mp4 container
    
    /verticalScale   <#>    Set the vertical Scale, horizontal adjusted to match
    /horizontalScale <#>    Set the horizontal Scale, vertical adjusted to match
                              - Handbrake decides for DVD's
                              - ####x720 for HDTV
                              - Otherwise same as original

    /ac3                    Pass though original audio
    /aac                    Encode audio to aac, mix down if nessiary
    /mp3                    Encode audio to mpg, mix down if nessiary
                              - AC3 for DVD/HDTV
                              - 160 kbs AAC if original only has two channels
                              
    /audioBitrate <#>       Set audio bitrate (default: 160 kbs)
    
    /attachSubtitles        Attach subtitle track if available
                              - Default Autodetected

### DVD Options ------------------------------------------------------------

    /forceTitle <#,#,...>   By default mediaShrink will automatically attempt to 
                            detect which titles to encode, however, sometimes it
                            is impossible.  For those cases you can specify just
                            the DVD title numbers you want to encode sepeated by
                            commas.
                            
### Commercial Cutting Options ------------------------------------------------------------
    REQUIRES VIDEOREDO TO BE INSTALLED
    
    /cutComm                Attempt to cut the commercials.  If no edl or vprj
                            file exists it will attempt to make one using comskip
    
    /onlyWhenVprj           Only cut if a vprj file already exists (default)
Also, for you SJQ users, here's my server/client configuration for launching it and its working great.

Server: Encode any mpg older than 30 days
Code:
# My Favorites to be encoded at the highest quality
if [IsObjMediaFile == true && $.IsTVFile{} == true && MediaAge > "30D" && Filename =$ ".mpg" && $.GetShowTitle{} =% "(Lost|Burn Notice|24|Dollhouse|House)"] 
{
   MEDIASHRINKHQ
}
# Hour long shows are usually more cinematic so give them more bitrate
if [IsObjMediaFile == true && $.IsTVFile{} == true && MediaAge > "30D" && Filename =$ ".mpg" && $.GetShowTitle{} !% "(Lost|Burn Notice|24|Dollhouse|House)" && $.GetFileDuration{} >= 1800000] 
{
   MEDIASHRINKMQ
}
# 30 Minute shows usually don't have a lot of action and can live with less bitrate
if [IsObjMediaFile == true && $.IsTVFile{} == true && MediaAge > "30D" && Filename =$ ".mpg" && $.GetShowTitle{} !% "(Lost|Burn Notice|24|Dollhouse|House)" && $.GetFileDuration{} < 1800000]  
{
   MEDIASHRINKLQ
}
Client: Run Monday-Friday 1 AM - 2 PM
Code:
MEDIASHRINKHQ
{
   :CPU "LOW"
   :OFFHOUR "0-1, 16-23"
   :OFFDAY "1, 7"
   :MAX 1
   :RESOURCES 51
   "D:/upnp2podcast/mediaScraper/mediaShrink.exe \"%c%\" /inPlace /batch /highProfile /cliBitrate 2500"
}

MEDIASHRINKMQ
{
   :CPU "LOW"
   :OFFHOUR "0-1, 16-23"
   :OFFDAY "1, 7"
   :MAX 1
   :RESOURCES 51
   "D:/upnp2podcast/mediaScraper/mediaShrink.exe \"%c%\" /inPlace /batch /onePass /cliBitrate 2500"
}

MEDIASHRINKLQ
{
   :CPU "LOW"
   :OFFHOUR "0-1, 16-23"
   :OFFDAY "1, 7"
   :MAX 1
   :RESOURCES 51
   "D:/upnp2podcast/mediaScraper/mediaShrink.exe \"%c%\" /inPlace /batch /onePass /cliBitrate 1500"
}

Last edited by evilpenguin; 12-04-2009 at 08:40 PM.
  #334  
Old 11-29-2009, 09:22 PM
ohpleaseno ohpleaseno is offline
Sage Aficionado
 
Join Date: Apr 2009
Location: South Florida
Posts: 464
Thanks for the update. I plopped it over on my WHS and will let you know how SJQ plays with it.

Mediashrink truly is one of the best no-brainer programs for video encoding I've ever seen. Thanks so much for writing this great app.
__________________
Server: WHS with 11TB of storage
Clients:1) HD-200 to a Samsung 32" Slimfit CRT HDTV 2) HD-200 to a Pioneer 26" X1 LCD
Tuners: 1) HD-Homerun 2) Avermedia USB ATSC
Twitter: ohpleaseno
  #335  
Old 11-29-2009, 09:32 PM
ohpleaseno ohpleaseno is offline
Sage Aficionado
 
Join Date: Apr 2009
Location: South Florida
Posts: 464
Question about the /cutcomm switch though.

If I'm not running Videoredo, but would like a .edl file created for the video, if I run it with /cutcomm, will it look for one and then add it to sit next to the resultant .mkv if an .edl doesn't exist? If so, could I skip comskip as a separate process through SJQ (I use it to run though all programs from the last 4 days unlike your posted process to archive old recordings) and use mediashrink exclusively?
__________________
Server: WHS with 11TB of storage
Clients:1) HD-200 to a Samsung 32" Slimfit CRT HDTV 2) HD-200 to a Pioneer 26" X1 LCD
Tuners: 1) HD-Homerun 2) Avermedia USB ATSC
Twitter: ohpleaseno
  #336  
Old 11-29-2009, 10:16 PM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by ohpleaseno View Post
Question about the /cutcomm switch though.

If I'm not running Videoredo, but would like a .edl file created for the video, if I run it with /cutcomm, will it look for one and then add it to sit next to the resultant .mkv if an .edl doesn't exist? If so, could I skip comskip as a separate process through SJQ (I use it to run though all programs from the last 4 days unlike your posted process to archive old recordings) and use mediashrink exclusively?
Short answer: No
Slightly longer answer: Videoredo uses an existing .edl file to cut the commercials out of the original video (resulting in a smaller commercial free video... if your commercial cutting is accurate). It can not create the .edl file (that i know of).
__________________
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
  #337  
Old 11-29-2009, 10:35 PM
ohpleaseno ohpleaseno is offline
Sage Aficionado
 
Join Date: Apr 2009
Location: South Florida
Posts: 464
yeah, but part of the process of /cutcomm as a switch involves running comskip (which is included in the bins for mediashrink). If Videoredo is not part of my setup, will mediashrink then just create the .edl and it will sit out there to be used?
__________________
Server: WHS with 11TB of storage
Clients:1) HD-200 to a Samsung 32" Slimfit CRT HDTV 2) HD-200 to a Pioneer 26" X1 LCD
Tuners: 1) HD-Homerun 2) Avermedia USB ATSC
Twitter: ohpleaseno
  #338  
Old 11-29-2009, 11:02 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
evilpenguin,

Running at low priority through sjq does not work. It still runs handbrake at normal priority.... guess I will have to go back to using a batch file.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
  #339  
Old 11-29-2009, 11:10 PM
ohpleaseno ohpleaseno is offline
Sage Aficionado
 
Join Date: Apr 2009
Location: South Florida
Posts: 464
Quote:
Originally Posted by nyplayer View Post
evilpenguin,

Running at low priority through sjq does not work. It still runs handbrake at normal priority.... guess I will have to go back to using a batch file.
yeah, i'm getting the same behavior here as well. meant to post that.
__________________
Server: WHS with 11TB of storage
Clients:1) HD-200 to a Samsung 32" Slimfit CRT HDTV 2) HD-200 to a Pioneer 26" X1 LCD
Tuners: 1) HD-Homerun 2) Avermedia USB ATSC
Twitter: ohpleaseno
  #340  
Old 11-30-2009, 01:07 AM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Quote:
Originally Posted by ohpleaseno View Post
yeah, but part of the process of /cutcomm as a switch involves running comskip (which is included in the bins for mediashrink). If Videoredo is not part of my setup, will mediashrink then just create the .edl and it will sit out there to be used?
Hmm, let me check on that, I thought I disabled mencoder commercial cutting, but might still try. How I do it is to someone make sure that an edl file exists before you compress. I do it by waiting at least 30 days to compress but you could also do an edl check like you do for the comskip jobs.

Quote:
Originally Posted by nyplayer View Post
evilpenguin,

Running at low priority through sjq does not work. It still runs handbrake at normal priority.... guess I will have to go back to using a batch file.
Bah, I forgot about that, I'll take a look at it.
Closed Thread


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
Bring focused item to front and call fanart PLUCKYHD SageTV Studio 0 04-08-2009 07:38 AM
Encoder number graphic shows wrong encoder being used jpaddock3000 SageMC Custom Interface 11 02-05-2009 02:29 PM
Get currently focused widget? cncb SageTV Studio 3 05-01-2008 12:22 PM
God does not want me to have HTPC, more problems - network encoder stryker SageTV Software 2 02-03-2008 08:54 AM


All times are GMT -6. The time now is 04:14 PM.


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