|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#221
|
|||
|
|||
Quote:
Here is a batchjob that I use I make sure that the CMT plugin has created a properties file. It has never failed me. What I did was download the latest HandBrake which uses constant quality which is better than bitrate. I copied the Handbrake files into "%shrinkpath%\mediaEngineBins\HandBrake 9.4" Code:
set shrinkpath=C:\MediaShrink if exist "%~d1%~p1%~n1.tmp" copy "%~f1.properties" "%~d1%~p1%~n1.mkv.properties" if exist "%~d1%~p1%~n1.tmp" del "%~f1" if not exist "%~f1" if exist "%~d1%~p1%~n1.tmp" move "%~d1%~p1%~n1.tmp" "%~d1%~p1%~n1.mkv" if exist "%~d1%~p1%~n1.tmp" exit 1 if exist "%~d1%~p1%~n1.mkv" exit 0 move "%~f1" "%~d1%~p1" set checkuse=%ERRORLEVEL% if %checkuse% NEQ 0 exit 1 if exist "%~f1.properties" findstr.exe /I /C:"CMT Metadata" "%~f1.properties" set CMTERR=%ERRORLEVEL% if %CMTERR% NEQ 0 exit 1 if not exist "c:\temp" md "c:\temp" if exist "%~d1%~p1tmpEncode\%~n1.encoded.mkv" del "%~d1%~p1tmpEncode\%~n1.encoded.mkv" md "%~d1%~p1tmpEncode" cd "%shrinkpath%\mediaEngineBins\HandBrake 9.4" c: start /BELOWNORMAL /I /B /W HandBrakeCLI.exe -i "%~f1" -o "%~d1%~p1tmpEncode\%~n1.encoded.mkv" --preset "Normal" -w 720 set shrinklevel=%ERRORLEVEL% if %shrinklevel% NEQ 0 DEL "%~d1%~p1tmpEncode\%~n1.encoded.mkv" if %shrinklevel% NEQ 0 EXIT %shrinklevel% if %shrinklevel% EQU 0 if exist "%~d1%~p1tmpEncode\%~n1.encoded.mkv" move "%~d1%~p1tmpEncode\%~n1.encoded.mkv" "%~d1%~p1tmpEncode\%~n1.mkv" if %shrinklevel% EQU 0 if exist "%~d1%~p1tmpEncode\%~n1.mkv" "%shrinkpath%\mediaEngineBins\touch.exe" -r "%~f1" "%~d1%~p1tmpEncode\%~n1.mkv" if %shrinklevel% EQU 0 move "%~d1%~p1tmpEncode\%~n1.mkv" "%~d1%~p1" if %shrinklevel% EQU 0 if exist "%~d1%~p1%~n1.mkv" copy "%~f1.properties" "%~d1%~p1%~n1.mkv.properties" if %shrinklevel% EQU 0 if exist "%~d1%~p1%~n1.mkv" DEL "%~f1" if exist "%~f1" move "%~d1%~p1%~n1.mkv" "%~d1%~p1%~n1.tmp" if exist "%~f1" exit 1 "%shrinkpath%\mediaEngineBins\wget.exe" --delete-after --tries=3 --directory-prefix="C:\MediaShrink\mediaEngineBins" "http://user:password@servername:8080/sage/GlobalCommand?command=UpdateMediaLibrary" if exist "%~d1%~p1%~n1.mkv" exit 0
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. Last edited by nyplayer; 02-07-2014 at 08:48 AM. |
#222
|
|||
|
|||
Thanks nyplayer, but that's not working for me. I wonder if it's because my recordings are on a network drive that's Linux underneath?
Anyway, MediaShrink does the right thing (somehow), so I guess I'll stick with that. Question: My bat file command has these options: Code:
start "MediaShrink" /B /LOW /WAIT mediaShrink.exe %COMMAND% /handbrakeProfile "Normal" /inPlace /vProfile HQ /xRes 1280 /decomb /autoCrop /acodec lame /cutComm I've attached part of an autoencode log for an encoding that's going on right now. I don't see options being passed to handbrake. |
#223
|
|||
|
|||
Quote:
PS if you updated to the latest HandBrakeCli you need to make the change in the post below. http://forums.sagetv.com/forums/show...&postcount=204
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. Last edited by nyplayer; 02-10-2014 at 10:41 AM. |
#224
|
|||
|
|||
So I have a new tuner (the HD Homerun), and found that the recordings, though they look great, are huge files, so I decided to start using mediashrink again to get them shrunken down to a more manageable size and let it play more nicely with my streaming devices as an added bonus. However, for some reason with Sage v9, I found that Sage deletes the transcoded files for some reason if I use mediashrink with the /inplace option. It sees the old file is gone then decides to delete the new one as well. Here are the logs:
Code:
Mon 8/1 14:37:00.747 [PluginEventQueue@13a4530] CD: sageEvent: MediaFile cleanup successful Channel 10-1 Mon 8/1 14:37:11.162 [ThreadMonitor@a614a4] Top 10 Cumulative CPU(sec) PooledThread:24 16197998@qtp-27218321-2:22 13425866@qtp-27218321-7:12 XcodeStderrConsumer:10 main:5 PooledThread:2 Timer-4:1 Seeker:1 LuceneShowTransactionTask:1 LucenePersonTransactionTask:1 Mon 8/1 14:37:11.163 [ThreadMonitor@a614a4] Top 10 %CPU (last 300s) 16197998@qtp-27218321-2:2% XcodeStderrConsumer:1% WARN - File deleted: E:\SageTV\20495_10-1_0801_1431-0.aspects WARN - File deleted: E:\SageTV\20495_10-1_0801_1431-0.autoEncode.(1).log WARN - File deleted: E:\SageTV\20495_10-1_0801_1431-0.edl WARN - File deleted: E:\SageTV\20495_10-1_0801_1431-0.log WARN - File deleted: E:\SageTV\20495_10-1_0801_1431-0.logo.txt WARN - File deleted: E:\SageTV\20495_10-1_0801_1431-0.mp4 |
#225
|
|||
|
|||
Quote:
__________________
"Keep your goals away from the trolls" |
#226
|
|||
|
|||
Yeah that was my first thought too, so I ran it by tmiranda, and he said that it looked like something in the Sage core was doing it, and not CD. (Refer:
Comskip Detector deleting converted recordings) |
#227
|
|||
|
|||
Quote:
Is this being done on files in a recording folder? If so I would move them to an imported folder FIRST before trying to shrink them. Then the media files should be safe from anything in the core. It only deletes things from recording folders - again as far as I know.
__________________
"Keep your goals away from the trolls" |
#228
|
|||
|
|||
Quote:
|
#229
|
||||
|
||||
I'm still using MediaShrink along with SJQ. I happened to look in my MediaShrink folder today and I found thousands of files that have names that start with OCL. Something like this:
OCL4EB2.tmp OCL2B30.tmp OCLE82A.tmp etc. There appears to be one created for each time I run MediaShrink (I have SJQ compress all new recordings ever night just because). These files are all 0 bytes in size. Based on file dates this started happening back in March of this year. I don't remember changing anything myself to cause this. Any idea what's creating these? OCL seems very specific to something. Thx. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Utility: Web Radio and TV Encoder | michaeldjcox | SageTV Customizations | 858 | 02-27-2021 10:26 PM |
(Old) MediaShrink - An HTPC focused encoder | evilpenguin | SageTV Customizations | 603 | 04-26-2010 08:05 PM |
Bring focused item to front and call fanart | PLUCKYHD | SageTV Studio | 0 | 04-08-2009 07:38 AM |
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 |