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
  #501  
Old 03-02-2010, 12:55 AM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Wow, that clip with the bad audio detection is strange. Oddly enough, Sage's ffmpeg detects it properly.
Code:
      + Input #0, mpeg, from 'D:\Test Content\2ndAudioBad.mpg':
      +   Duration: 00:00:03.43, start: 0.-173111, bitrate: 12195 kb/s
      +     Stream #0.0[0x1e0], 1/90000: Video: mpeg2video, yuv420p, 1280x720, 1001/120000, AR: 16:9, progressive, 19000 kb/s, 59.94 fps
      +     Stream #0.1[0x81], 1/90000: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
      +     Stream #0.2[0x82], 1/90000: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
Let me mess around with this a bit more, I should be able to come up with a way to detect that and pass handbrake the proper parameters. Just to be clear, the 2nd audio track is the proper one in this case, correct?
__________________
Clients: 1xHD200 Connected to 50" TH-50PZ750U Plasma
Server : Shuttle SFF SSH55J2 w/ Win7 Home, SageTV v7, Core i3 540, 2GB RAM, 30GB SSD for OS, 1.5TB+2x1TB WDGP for Recordings, BluRay, 2xHDHR, 1xFirewire
SageTV : PlayOn, SJQ, MediaShrink, Comskip, Jetty, Web Client, BMT


Having a problem? Don't forget to include a log! (Instructions for: PlayOn For SageTV v1.5, MediaShrink)
  #502  
Old 03-02-2010, 08:42 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by evilpenguin View Post
Wow, that clip with the bad audio detection is strange. Oddly enough, Sage's ffmpeg detects it properly.
Code:
      + Input #0, mpeg, from 'D:\Test Content\2ndAudioBad.mpg':
      +   Duration: 00:00:03.43, start: 0.-173111, bitrate: 12195 kb/s
      +     Stream #0.0[0x1e0], 1/90000: Video: mpeg2video, yuv420p, 1280x720, 1001/120000, AR: 16:9, progressive, 19000 kb/s, 59.94 fps
      +     Stream #0.1[0x81], 1/90000: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
      +     Stream #0.2[0x82], 1/90000: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
Let me mess around with this a bit more, I should be able to come up with a way to detect that and pass handbrake the proper parameters. Just to be clear, the 2nd audio track is the proper one in this case, correct?
yup the second stream is the correct one.. sage detected the original stream as both streams ac3 2.0... my guess is that is how it was detected originally (early 2009) and then never updated when sage updated their ffmpeg implementation... I seem to remember sage doing some work on their end to better handle this type of error...

I have some other clips where the bad audio stream does not contain anything... but when i make a snippet of it the bad stream goes away and youre left with one correctly identified stream... so it makes it more difficult to get you a test clip...
__________________
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
  #503  
Old 03-02-2010, 09:59 AM
kevine kevine is offline
Sage Expert
 
Join Date: Aug 2007
Posts: 514
I am running Mediashrink on the server and the task starts and stops as quickly as it starts. I am trying to figure out what is wrong. Here is my log. At first I thought it was because I did not have VRD installed. It is installed now. Comskip tasks are running fine on SJQ. I thought about trying to run mediaengine directly but I don't know how to cut the commercials then. Thanks.

Code:
Sat Feb 27 22:40:10 EST 2010: Starting task with priority 5/1/10
Executing command line: C:/sjqc/Mediashrink/mediaShrink.exe "\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.mpg" /saveLog /cutComm /onlyWhenVprj /batch /highProfile /cliBitrate 2500
Welcome to mediaEngine v1.0beta
Staring Proccesing at 22:40:41 2-27-2010
  + Executable   : C:\sjqc\Mediashrink\mediaEngine.exe
  + EXE path     : C:\sjqc\Mediashrink
  + Parsing switches
    - optionsString: "/saveLog" "/defaultProfile" "autoEncode" "/findFileRegEx" "avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms" "/mediaShrink" "fixBug" "\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.mpg" "/saveLog" "/cutComm" "/onlyWhenVprj" "/batch" "/highProfile" "/cliBitrate" "2500" 
        - Replacing quote0: /saveLog
        - Replacing quote1: /defaultProfile
        - Replacing quote2: autoEncode
        - Replacing quote3: /findFileRegEx
        - Replacing quote4: avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms
        - Replacing quote5: /mediaShrink
        - Replacing quote6: fixBug
        - Replacing quote7: \\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.mpg
        - Replacing quote8: /saveLog
        - Replacing quote9: /cutComm
        - Replacing quote10: /onlyWhenVprj
        - Replacing quote11: /batch
        - Replacing quote12: /highProfile
        - Replacing quote13: /cliBitrate
        - Replacing quote14: 2500
    - Adding to to options Hash
      + Key: saveLog
    - 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: mediaShrink
      + Value: fixBug
    - Adding Inputfile: \\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.mpg
    - Adding to to options Hash
      + Key: saveLog
    - Adding to to options Hash
      + Key: cutComm
    - Adding to to options Hash
      + Key: onlyWhenVprj
    - Adding to to options Hash
      + Key: batch
    - Adding to to options Hash
      + Key: highProfile
    - Adding to to options Hash
      + Key: cliBitrate
      + Value: 2500
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineProfiles (profile|func|snip|output|scrape)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineProfiles\encodingProfiles (profile|func|snip|output|scrape)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineProfiles\scrapingProfiles (profile|func|snip|output|scrape)
  + Seraching for avaialble binaries
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineProfiles (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineProfiles\encodingProfiles (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineProfiles\scrapingProfiles (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\Comskip (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\Curl (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\eac3to (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\eac3to\legal stuff (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\eac3to\legal stuff\ffmpeg (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\eac3to\legal stuff\ffmpeg\compiling (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\eac3to\legal stuff\libAften (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\eac3to\legal stuff\libFlac (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\eac3to\legal stuff\libMatrix (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\eac3to\legal stuff\libSsrc (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\eac3to\legal stuff\libSsrc\Sources (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\eac3to\legal stuff\r8brain (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\eac3to\plugins (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\ffmpeg (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\ffmpeg\FFmpeg-svn-16596 (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\ffmpeg\FFmpeg-svn-16596\docs (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\HandBrake 9.4 (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\HandBrake 9.4\doc (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\mkvtoolnix (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\mkvtoolnix\data (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\mkvtoolnix\doc (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\mkvtoolnix\doc\images (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\mkvtoolnix\examples (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\mkvtoolnix\locale (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\mkvtoolnix\locale\de (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\mkvtoolnix\locale\de\LC_MESSAGES (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\mkvtoolnix\locale\ja (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\mkvtoolnix\locale\ja\LC_MESSAGES (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\mkvtoolnix\locale\zh_CN (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\mkvtoolnix\locale\zh_CN\LC_MESSAGES (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\mkvtoolnix\locale\zh_TW (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\mkvtoolnix\locale\zh_TW\LC_MESSAGES (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\mp4box (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\MPlayer-rtm-svn-28311 (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\MPlayer-rtm-svn-28311\codecs (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\MPlayer-rtm-svn-28311\docs (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\MPlayer-rtm-svn-28311\fonts (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\MPlayer-rtm-svn-28311\fonts\conf.avail (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\MPlayer-rtm-svn-28311\fonts\conf.d (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\MPlayer-rtm-svn-28311\mplayer (exe)
    - Scanning Directory: C:\sjqc\Mediashrink\mediaEngineBins\tsMuxeR (exe)
      + ccextractorwin.exe	: C:\sjqc\Mediashrink\mediaEngineBins\ccextractorwin.exe
      + edl2vprj.exe	: C:\sjqc\Mediashrink\mediaEngineBins\edl2vprj.exe
      + mp4creator.exe	: C:\sjqc\Mediashrink\mediaEngineBins\mp4creator.exe
      + mtee.exe	: C:\sjqc\Mediashrink\mediaEngineBins\mtee.exe
      + touch.exe	: C:\sjqc\Mediashrink\mediaEngineBins\touch.exe
      + wget.exe	: C:\sjqc\Mediashrink\mediaEngineBins\wget.exe
      + comskip.exe	: C:\sjqc\Mediashrink\mediaEngineBins\Comskip\comskip.exe
      + curl.exe	: C:\sjqc\Mediashrink\mediaEngineBins\Curl\curl.exe
      + eac3to.exe	: C:\sjqc\Mediashrink\mediaEngineBins\eac3to\eac3to.exe
      + ffmpeg.exe	: C:\sjqc\Mediashrink\mediaEngineBins\ffmpeg\ffmpeg.exe
      + ffmpeg_SVN.exe	: C:\sjqc\Mediashrink\mediaEngineBins\ffmpeg\FFmpeg-svn-16596\ffmpeg_SVN.exe
      + HandBrakeCLI.exe	: C:\sjqc\Mediashrink\mediaEngineBins\HandBrake 9.4\HandBrakeCLI.exe
      + mkvextract.exe	: C:\sjqc\Mediashrink\mediaEngineBins\mkvtoolnix\mkvextract.exe
      + mkvinfo.exe	: C:\sjqc\Mediashrink\mediaEngineBins\mkvtoolnix\mkvinfo.exe
      + mkvmerge.exe	: C:\sjqc\Mediashrink\mediaEngineBins\mkvtoolnix\mkvmerge.exe
      + mkvpropedit.exe	: C:\sjqc\Mediashrink\mediaEngineBins\mkvtoolnix\mkvpropedit.exe
      + mmg.exe	: C:\sjqc\Mediashrink\mediaEngineBins\mkvtoolnix\mmg.exe
      + uninst.exe	: C:\sjqc\Mediashrink\mediaEngineBins\mkvtoolnix\uninst.exe
      + MP4Box.exe	: C:\sjqc\Mediashrink\mediaEngineBins\mp4box\MP4Box.exe
      + mencoder.exe	: C:\sjqc\Mediashrink\mediaEngineBins\MPlayer-rtm-svn-28311\mencoder.exe
      + mplayer.exe	: C:\sjqc\Mediashrink\mediaEngineBins\MPlayer-rtm-svn-28311\mplayer.exe
      + vfw2menc.exe	: C:\sjqc\Mediashrink\mediaEngineBins\MPlayer-rtm-svn-28311\vfw2menc.exe
      + tsMuxeR.exe	: C:\sjqc\Mediashrink\mediaEngineBins\tsMuxeR\tsMuxeR.exe
  + Seraching for input files (avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms)
    - Found File: (\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.mpg)
------------ Processing ----------------
  + Adding per run options: (/inputFile "\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.mpg" /profile autoEncode)(/inputFile "\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.mpg" /profile autoEncode)
    + Parsing switches
      - optionsString: /inputFile "\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.mpg" /profile autoEncode
      - Adding to to options Hash
        + Key: inputFile
        + Value: \\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.mpg
      - Adding to to options Hash
        + Key: profile
        + Value: autoEncode
  + Processing: inputFile = Fringe-Jacksonville-4619992-0
  + Looking for profile: autoEncode
    - Found "autoencode"
  + Getting Video Info: (\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.mpg)(5548334)
    - Input Line:          Input #0, mpeg, from '\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.mpg':
    - Duration Line:       Duration: 00:59:53.99, start: 0.505544, bitrate: 12646 kb/s
    - Video Info Line:     Stream #0.0[0x1e0], 1/90000: Video: mpeg2video, yuv420p, 1280x720, 1001/120000, AR: 16:9, progressive, 19000 kb/s, 59.94 fps
    - Audio Info Line:     Stream #0.1[0x81], 1/90000: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
    - Audio Info Line:     Stream #0.2[0x82], 1/90000: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
    - Detecting Advanced Video Properties (this may take a few minutes...):
        - Cropped Res Divisable by 16: 1248 x 688 
      + telecine : 88% (545 / 613)
      + embeddedCC : 174
      + Analyzing Duration: 00:03:16
######## Starting Processing
    - Remaining Commands (0): (/insertFunction)
      + Command : /insertFunction
    - Remaining Commands (13): (/insertFunction)
      + Command : /insertFunction
    - Remaining Commands (24): (setOptions)
      + Command : setOptions
      + Command Empty, Skipping: ""
    - Remaining Commands (23): (/setOptions)
      + Command : /setOptions
      + Command Empty, Skipping: ""
    - Remaining Commands (22): (/setOptions)
      + Command : /setOptions
      + Command Empty, Skipping: ""
    - Remaining Commands (21): (/setOptions)
      + Command : /setOptions
      + Command Empty, Skipping: ""
    - Remaining Commands (20): (/setOptions)
      + Command : /setOptions
      + Command Empty, Skipping: ""
    - Remaining Commands (19): (/setOptions)
      + Command : /setOptions
      + Command Empty, Skipping: ""
    - Remaining Commands (18): (/setOptions)
      + Command : /setOptions
      + Command Empty, Skipping: ""
    - Remaining Commands (17): (/setOptions)
      + Command : /setOptions
      + Command Empty, Skipping: ""
    - Remaining Commands (16): (/setOptions)
      + Command : /setOptions
      + Command Empty, Skipping: ""
    - Remaining Commands (15): (/setOptions)
      + Command : /setOptions
      + Command Empty, Skipping: ""
    - Remaining Commands (14): (/setOptions)
      + Command : /setOptions
      + Command Empty, Skipping: ""
    - Remaining Commands (13): (/setOptions)
      + Command : /setOptions
        + Parsing switches
          - optionsString: /errorChecked
          - Adding to to options Hash
            + Key: errorChecked
    - Remaining Commands (12): (/branch)
      + Command : /branch
      + Command Empty, Skipping: ""
    - Remaining Commands (11): (/setOptions)
      + Command : /setOptions
        + Parsing switches
          - optionsString: /autoCrop
          - Adding to to options Hash
            + Key: autoCrop
    - Remaining Commands (10): (/setOptions)
      + Command : /setOptions
      + Command Empty, Skipping: ""
    - Remaining Commands (9): (/setOptions)
      + Command : /setOptions
        + Parsing switches
          - optionsString: /mkv
          - Adding to to options Hash
            + Key: mkv
    - Remaining Commands (8): (/setOptions)
      + Command : /setOptions
        + Parsing switches
          - optionsString: /x264
          - Adding to to options Hash
            + Key: x264
    - Remaining Commands (7): (/setOptions)
      + Command : /setOptions
        + Parsing switches
          - optionsString: /aac
          - Adding to to options Hash
            + Key: aac
    - Remaining Commands (6): (/setOptions)
      + Command : /setOptions
        + Parsing switches
          - optionsString: /cliBitrate 2500 /twopass /highProfile
          - Adding to to options Hash
            + Key: cliBitrate
            + Value: 2500
          - Adding to to options Hash
            + Key: twopass
          - Adding to to options Hash
            + Key: highProfile
    - Remaining Commands (5): (/setOptions)
      + Command : /setOptions
        + Parsing switches
          - optionsString: /reverseTelecine
          - Adding to to options Hash
            + Key: reverseTelecine
    - Remaining Commands (4): (/setOptions)
      + Command : /setOptions
      + Command Empty, Skipping: ""
    - Remaining Commands (3): (/setOptions)
      + Command : /setOptions
      + Command Empty, Skipping: ""
    - Remaining Commands (2): (/setOptions)
      + Command : /setOptions
        + Parsing switches
          - optionsString: /addSubtitleTrack
          - Adding to to options Hash
            + Key: addSubtitleTrack
    - Remaining Commands (1): (/setOptions)
      + Command : /setOptions
        + Parsing switches
          - optionsString: /forceMencoder2
          - Adding to to options Hash
            + Key: forceMencoder2
    - Remaining Commands (0): (/branch)
      + Command : /branch
    - Remaining Commands (10): (/insertFunction)
      + Command : /insertFunction
      + Command Empty, Skipping: ""
    - Remaining Commands (9): (/insertFunction)
      + Command : /insertFunction
    - Remaining Commands (11): (/setOptions)
      + Command : /setOptions
      + Command Empty, Skipping: ""
    - Remaining Commands (10): (/setOptions)
      + Command : /setOptions
      + Command Empty, Skipping: ""
    - Remaining Commands (9): (/setOptions)
      + Command : /setOptions
      + Command Empty, Skipping: ""
    - Remaining Commands (8): (/branch)
      + Command : /branch
      + Command Empty, Skipping: ""
    - Remaining Commands (7): (/insertFunction)
      + Command : /insertFunction
      + Command Empty, Skipping: ""
    - Remaining Commands (6): (/insertFunction)
      + Command : /insertFunction
    - Remaining Commands (8): (/setOptions)
      + Command : /setOptions
      + Command Empty, Skipping: ""
    - Remaining Commands (7): (/insertFunction)
      + Command : /insertFunction
    - Remaining Commands (11): (/insertFunction)
      + Command : /insertFunction
      + Command Empty, Skipping: ""
    - Remaining Commands (10): (/exe mencoder.exe)
      + Command : /exe mencoder.exe
        - Executing command: "C:\sjqc\Mediashrink\mediaEngineBins\MPlayer-rtm-svn-28311\mencoder.exe" "\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.mpg" -o "\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.workFolder\Fringe-Jacksonville-4619992-0.scratch.39.MAIN.mpg" -oac copy -ovc copy -edl "\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.edl" -of mpeg -mpegopts format=dvd:tsaf > "\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.workFolder\Fringe-Jacksonville-4619992-0.scratch.39.mencoder.log" 2>&1
          + Getting Video Info: (\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.workFolder\Fringe-Jacksonville-4619992-0.scratch.39.MAIN.mpg)(3655476)
            - Input Line:          Input #0, mpeg, from '\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.workFolder\Fringe-Jacksonville-4619992-0.scratch.39.MAIN.mpg':
            - Duration Line:       Duration: 00:42:54.75, start: 0.250044, bitrate: 11630 kb/s
            - Video Info Line:     Stream #0.0[0x1e0], 1/90000: Video: mpeg2video, yuv420p, 1280x720, 1001/120000, AR: 16:9, progressive, 19000 kb/s, 59.94 fps
            - Audio Info Line:     Stream #0.1[0x80], 1/90000: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
    - Remaining Commands (9): (/insertFunction)
      + Command : /insertFunction
      + Command Empty, Skipping: ""
    - Remaining Commands (8): (/setOptions)
      + Command : /setOptions
      + Command Empty, Skipping: ""
    - Remaining Commands (7): (/setOptions)
      + Command : /setOptions
      + Command Empty, Skipping: ""
    - Remaining Commands (6): (/insertFunction)
      + Command : /insertFunction
      + Command Empty, Skipping: ""
    - Remaining Commands (5): (/insertFunction)
      + Command : /insertFunction
      + Command Empty, Skipping: ""
    - Remaining Commands (4): (/exe HandBrakeCLI.exe)
      + Command : /exe HandBrakeCLI.exe
        - Executing command: "C:\sjqc\Mediashrink\mediaEngineBins\HandBrake 9.4\HandBrakeCLI.exe" -v -i "//ELMS-SERVER/SageTV/Fringe-Jacksonville-4619992-0.workFolder/Fringe-Jacksonville-4619992-0.scratch.39.MAIN.mpg" -o "//ELMS-SERVER/SageTV/Fringe-Jacksonville-4619992-0.workFolder/Fringe-Jacksonville-4619992-0.scratch.45.MAIN.mkv"   -e x264 -T -x b-pyramid:b-adapt=2:me=umh:subme=9:analyse=all:trellis=0 -b 2500 -B 160 -E faac  -2  --detelecine --decomb --crop 16:16:15:17    > "\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.workFolder\Fringe-Jacksonville-4619992-0.scratch.45.HandBrakeCLI.log" 2>&1
          + Getting Video Info: (\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.workFolder\Fringe-Jacksonville-4619992-0.scratch.45.MAIN.mkv)(434040)
            - Input Line:          Input #0, matroska, from '\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.workFolder\Fringe-Jacksonville-4619992-0.scratch.45.MAIN.mkv':
            - Duration Line:       Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
            - Video Info Line:     Stream #0.0(eng), 1/1000: Video: h264, yuv420p, 1280x704, 275/16466, progressive, PAR 1:1 DAR 20:11, 59.88 fps
            - Audio Info Line:     Stream #0.1, 1/1000: Audio: libfaad, 48000 Hz, stereo, s16
    - Remaining Commands (3): (/setOptions)
      + Command : /setOptions
      + Command Empty, Skipping: ""
    - Remaining Commands (2): (/insertFunction)
      + Command : /insertFunction
      + Command Empty, Skipping: ""
    - Remaining Commands (1): (/insertFunction)
      + Command : /insertFunction
    - Remaining Commands (3): (/insertFunction)
      + Command : /insertFunction
    - Remaining Commands (4): (/exe ccextractorwin.exe)
      + Command : /exe ccextractorwin.exe
        - Executing command: "C:\sjqc\Mediashrink\mediaEngineBins\ccextractorwin.exe"  -srt -sc "\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.mpg" -o "\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.workFolder\Fringe-Jacksonville-4619992-0.scratch.50.SUB.srt" > "\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.workFolder\Fringe-Jacksonville-4619992-0.scratch.50.ccextractorwin.log" 2>&1
 Executing command: "C:\sjqc\Mediashrink\mediaEngine.exe"  /saveLog /defaultProfile autoEncode /findFileRegEx "avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms" /mediaShrink fixBug "\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.mpg" "/saveLog" "/cutComm" "/onlyWhenVprj" "/batch" "/highProfile" "/cliBitrate" "2500"
Exiting Code: (1)

Sun Feb 28 17:03:26 EST 2010: Starting task with priority 1/1/10
Executing command line: C:/sjqc/Mediashrink/mediaShrink.exe "\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.mpg" /saveLog /cutComm /onlyWhenVprj /batch /highProfile /cliBitrate 2500
 Executing command: "C:\sjqc\Mediashrink\mediaEngine.exe"  /saveLog /defaultProfile autoEncode /findFileRegEx "avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms" /mediaShrink fixBug "\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.mpg" "/saveLog" "/cutComm" "/onlyWhenVprj" "/batch" "/highProfile" "/cliBitrate" "2500"
Exiting Code: (0)

Tue Mar 02 09:29:23 EST 2010: Starting task with priority 1/1/10
Executing command line: C:/sjqc/Mediashrink/mediaScraper/mediaEngine.exe "\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.mpg" /mediaShrink /batch /saveLog /defaultProfile autoEncode /findFileRegEx "avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms"
Cannot run program "C:/sjqc/Mediashrink/mediaScraper/mediaEngine.exe": CreateProcess error=3, The system cannot find the path specified
Tue Mar 02 09:34:23 EST 2010: Starting task with priority 1/1/10
Executing command line: C:/sjqc/Mediashrink/mediaScraper/mediaEngine.exe "\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.mpg" /mediaShrink /batch /saveLog /defaultProfile autoEncode /findFileRegEx "avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms"
Cannot run program "C:/sjqc/Mediashrink/mediaScraper/mediaEngine.exe": CreateProcess error=3, The system cannot find the path specified
Tue Mar 02 09:39:23 EST 2010: Starting task with priority 1/1/10
Executing command line: C:/sjqc/Mediashrink/mediaScraper/mediaEngine.exe "\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.mpg" /mediaShrink /batch /saveLog /defaultProfile autoEncode /findFileRegEx "avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms"
Cannot run program "C:/sjqc/Mediashrink/mediaScraper/mediaEngine.exe": CreateProcess error=3, The system cannot find the path specified
Tue Mar 02 09:44:24 EST 2010: Starting task with priority 1/1/10
Executing command line: C:/sjqc/Mediashrink/mediaScraper/mediaEngine.exe "\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.mpg" /mediaShrink /batch /saveLog /defaultProfile autoEncode /findFileRegEx "avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms"
Cannot run program "C:/sjqc/Mediashrink/mediaScraper/mediaEngine.exe": CreateProcess error=3, The system cannot find the path specified
Tue Mar 02 10:04:24 EST 2010: Starting task with priority 1/1/10
Executing command line: C:/sjqc/Mediashrink/mediaScraper/mediaEngine.exe "\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.mpg" /mediaShrink /batch /saveLog /defaultProfile autoEncode /findFileRegEx "avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms"
Cannot run program "C:/sjqc/Mediashrink/mediaScraper/mediaEngine.exe": CreateProcess error=3, The system cannot find the path specified
Tue Mar 02 10:19:24 EST 2010: Starting task with priority 1/1/10
Executing command line: C:/sjqc/Mediashrink/mediaShrink.exe "\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.mpg" /saveLog /cutComm /onlyWhenVprj /batch /highProfile /cliBitrate 2500
 Executing command: "C:\sjqc\Mediashrink\mediaEngine.exe"  /saveLog /cutComm /onlyWhenVprj /defaultProfile autoEncode /findFileRegEx "avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms" /mediaShrink fixBug "\\ELMS-SERVER\SageTV\Fringe-Jacksonville-4619992-0.mpg" "/saveLog" "/cutComm" "/onlyWhenVprj" "/batch" "/highProfile" "/cliBitrate" "2500"
Exiting Code: (0)
  #504  
Old 03-03-2010, 06:40 PM
woribhabor woribhabor is offline
Sage User
 
Join Date: Apr 2009
Location: Aspen
Posts: 49
little help

I'm under a time crunch here. I want to compress all my DVD's, keep the originals and move the compressed to a new folder (so as to not be rescanned by SageTV). That way I can dump them on a hard drive.

I have media shrink and sage job queue, and have been reading for an two hours to get this setup right, and as much as I'm sure another hour of reading would help me solve it, I was hoping someone could just show me what to write to make this happen. Pretty, pretty, pretty please.

much love
  #505  
Old 03-03-2010, 08:22 PM
ohpleaseno ohpleaseno is offline
Sage Aficionado
 
Join Date: Apr 2009
Location: South Florida
Posts: 464
I don't think you need SJQ for this. I would just set the output directory to some temporary folder, group all of your DVDs into a common folder, drag that common folder onto MS and it should process them all in a row and put the DVDs into the output folder.

Someone correct me if I'm wrong here.
__________________
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
  #506  
Old 03-03-2010, 08:32 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Quote:
Originally Posted by woribhabor View Post
I'm under a time crunch here. I want to compress all my DVD's, keep the originals and move the compressed to a new folder (so as to not be rescanned by SageTV). That way I can dump them on a hard drive.

I have media shrink and sage job queue, and have been reading for an two hours to get this setup right, and as much as I'm sure another hour of reading would help me solve it, I was hoping someone could just show me what to write to make this happen. Pretty, pretty, pretty please.

much love
Quote:
Originally Posted by ohpleaseno View Post
I don't think you need SJQ for this. I would just set the output directory to some temporary folder, group all of your DVDs into a common folder, drag that common folder onto MS and it should process them all in a row and put the DVDs into the output folder.

Someone correct me if I'm wrong here.
Yep, that's what i'd do. More specifically, i'd make this batch file replacing the two paths in red with the ones for your PC, move all of the DVD's into a folder, and then drag and drop that folder onto the batch file.

autoEncodeDVD.bat:
Code:
@ECHO OFF
REM  MediaScraper.exe
REM    Usage: TO use this batch file set this directory your mediaScraper directory
REM           then drag and drop any number of files and/or directories.

set DIRECTORY="PATH TO DIRECTORY TO MEDIASHRINK DIRECTORY"

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

:NEXT
cd /D "%DIRECTORY%"
mediaShrink.exe %COMMAND% /outputDirectory "PATH TO DIRECTORY TO SAVE ENCODED MOVIES" /profile "autoEncode" /batch /saveLog /twoPass 
pause
GOTO EOF
(In case you don't know, to make a batch file, just open up notepad, copy the above code into the file, then save it as autoEncodeDVD.bat. Make sure you select the file type as "all files" in the save dialog otherwise it'll make autoEncodeDVD.bat.txt)
__________________
Clients: 1xHD200 Connected to 50" TH-50PZ750U Plasma
Server : Shuttle SFF SSH55J2 w/ Win7 Home, SageTV v7, Core i3 540, 2GB RAM, 30GB SSD for OS, 1.5TB+2x1TB WDGP for Recordings, BluRay, 2xHDHR, 1xFirewire
SageTV : PlayOn, SJQ, MediaShrink, Comskip, Jetty, Web Client, BMT


Having a problem? Don't forget to include a log! (Instructions for: PlayOn For SageTV v1.5, MediaShrink)
  #507  
Old 03-04-2010, 04:17 AM
kevine kevine is offline
Sage Expert
 
Join Date: Aug 2007
Posts: 514
EP,

You have any idea on my problem? Thanks.
  #508  
Old 03-04-2010, 06:19 AM
miegs3 miegs3 is offline
New Member
 
Join Date: Jan 2010
Posts: 2
Hi, is anyone able to assist me with the following issue?

I have been previously running mediaShrink on XP with some recordings not converting. I can't remember if there was any error but I think handbrake was getting stuck at an early percentage, I had tried video re-do to fix the video (read it somewhere) but that didn't fix the issue.

I have now upgraded to Windows 7 and on the first video I've tried to run it seems to stop when getting to a handbrake step (before handbrake is run), I'm not sure if it is to do with my setup (I've tried run as administrator and compatible XP mode).

Can anyone point me in the right direction please?
Apart from this issue I'm very grateful for this program, the videos it has converted have been very good without me having to do any thinking/testing for best quality.
Attached Files
File Type: txt LIVEBasketballNBA-11862-0.autoEncode.txt (75.8 KB, 231 views)
  #509  
Old 03-11-2010, 07:34 PM
woribhabor woribhabor is offline
Sage User
 
Join Date: Apr 2009
Location: Aspen
Posts: 49
Been steadily trying to get this to work.

I'm now trying to archive my DVD's with media shrink and queue

Here are my results on all my DVD's,

Code:
MEDIASHRINKHQ
{
   :CPU "LOW"
   :MAX 1
   :RESOURCES 51
    "d:/mediaShrink/mediaEngine.exe \"%c%\" /outPutDirectory \"d:/shares/public/cvid \" /mediaShrink /batch /saveLog /defaultProfile autoEncode /findFileRegEx \"avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms\""
}
With this as the resulting log in the Queue

Code:
Thu Mar 11 18:16:41 MST 2010: Starting task with priority 1/1/10
Executing command line: d:/mediaShrink/mediaEngine.exe "\\localhost\Videos\Milk\VIDEO_TS" /outPutDirectory "d:/shares/public/cvid " /mediaShrink /batch /saveLog /defaultProfile autoEncode /findFileRegEx "avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms"
Welcome to mediaEngine v1.0beta
Staring Proccesing at 18:16:43 3-11-2010
  + Executable   : d:\mediaShrink\mediaEngine.exe
  + EXE path     : d:\mediaShrink
  + Parsing switches
    - optionsString: "\\localhost\Videos\Milk\VIDEO_TS" "/outPutDirectory" "d:/shares/public/cvid " "/mediaShrink" "/batch" "/saveLog" "/defaultProfile" "autoEncode" "/findFileRegEx" "avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms" 
        - Replacing quote0: \\localhost\Videos\Milk\VIDEO_TS
        - Replacing quote1: /outPutDirectory
        - Replacing quote2: d:/shares/public/cvid 
        - Replacing quote3: /mediaShrink
        - Replacing quote4: /batch
        - Replacing quote5: /saveLog
        - Replacing quote6: /defaultProfile
        - Replacing quote7: autoEncode
        - Replacing quote8: /findFileRegEx
        - Replacing quote9: avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms
    - Adding Inputfile: \\localhost\Videos\Milk\VIDEO_TS
    - Adding to to options Hash
      + Key: outPutDirectory
      + Value: d:/shares/public/cvid 
    - Adding to to options Hash
      + Key: mediaShrink
    - Adding to to options Hash
      + Key: batch
    - Adding to to options Hash
      + Key: saveLog
    - 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
    - Scanning Directory: d:\mediaShrink\mediaEngineProfiles (profile|func|snip|output|scrape)
    - Scanning Directory: d:\mediaShrink\mediaEngineProfiles\encodingProfiles (profile|func|snip|output|scrape)
    - Scanning Directory: d:\mediaShrink\mediaEngineProfiles\scrapingProfiles (profile|func|snip|output|scrape)
  + Seraching for avaialble binaries
    - Scanning Directory: d:\mediaShrink\mediaEngineProfiles (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineProfiles\encodingProfiles (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineProfiles\scrapingProfiles (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\Comskip (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\Curl (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\eac3to (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\eac3to\legal stuff (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\eac3to\legal stuff\ffmpeg (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\eac3to\legal stuff\ffmpeg\compiling (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\eac3to\legal stuff\libAften (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\eac3to\legal stuff\libFlac (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\eac3to\legal stuff\libMatrix (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\eac3to\legal stuff\libSsrc (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\eac3to\legal stuff\libSsrc\Sources (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\eac3to\legal stuff\r8brain (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\eac3to\plugins (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\ffmpeg (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\ffmpeg\FFmpeg-svn-16596 (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\ffmpeg\FFmpeg-svn-16596\docs (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\HandBrake 9.4 (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\HandBrake 9.4\doc (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\mkvtoolnix (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\mkvtoolnix\data (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\mkvtoolnix\doc (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\mkvtoolnix\doc\images (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\mkvtoolnix\examples (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\mkvtoolnix\locale (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\mkvtoolnix\locale\de (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\mkvtoolnix\locale\de\LC_MESSAGES (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\mkvtoolnix\locale\ja (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\mkvtoolnix\locale\ja\LC_MESSAGES (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\mkvtoolnix\locale\zh_CN (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\mkvtoolnix\locale\zh_CN\LC_MESSAGES (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\mkvtoolnix\locale\zh_TW (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\mkvtoolnix\locale\zh_TW\LC_MESSAGES (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\mp4box (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\MPlayer-rtm-svn-28311 (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\MPlayer-rtm-svn-28311\codecs (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\MPlayer-rtm-svn-28311\docs (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\MPlayer-rtm-svn-28311\fonts (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\MPlayer-rtm-svn-28311\fonts\conf.avail (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\MPlayer-rtm-svn-28311\fonts\conf.d (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\MPlayer-rtm-svn-28311\mplayer (exe)
    - Scanning Directory: d:\mediaShrink\mediaEngineBins\tsMuxeR (exe)
      + ccextractorwin.exe	: d:\mediaShrink\mediaEngineBins\ccextractorwin.exe
      + edl2vprj.exe	: d:\mediaShrink\mediaEngineBins\edl2vprj.exe
      + mp4creator.exe	: d:\mediaShrink\mediaEngineBins\mp4creator.exe
      + mtee.exe	: d:\mediaShrink\mediaEngineBins\mtee.exe
      + touch.exe	: d:\mediaShrink\mediaEngineBins\touch.exe
      + wget.exe	: d:\mediaShrink\mediaEngineBins\wget.exe
      + comskip.exe	: d:\mediaShrink\mediaEngineBins\Comskip\comskip.exe
      + curl.exe	: d:\mediaShrink\mediaEngineBins\Curl\curl.exe
      + eac3to.exe	: d:\mediaShrink\mediaEngineBins\eac3to\eac3to.exe
      + ffmpeg.exe	: d:\mediaShrink\mediaEngineBins\ffmpeg\ffmpeg.exe
      + ffmpeg_SVN.exe	: d:\mediaShrink\mediaEngineBins\ffmpeg\FFmpeg-svn-16596\ffmpeg_SVN.exe
      + HandBrakeCLI.exe	: d:\mediaShrink\mediaEngineBins\HandBrake 9.4\HandBrakeCLI.exe
      + mkvextract.exe	: d:\mediaShrink\mediaEngineBins\mkvtoolnix\mkvextract.exe
      + mkvinfo.exe	: d:\mediaShrink\mediaEngineBins\mkvtoolnix\mkvinfo.exe
      + mkvmerge.exe	: d:\mediaShrink\mediaEngineBins\mkvtoolnix\mkvmerge.exe
      + mkvpropedit.exe	: d:\mediaShrink\mediaEngineBins\mkvtoolnix\mkvpropedit.exe
      + mmg.exe	: d:\mediaShrink\mediaEngineBins\mkvtoolnix\mmg.exe
      + MP4Box.exe	: d:\mediaShrink\mediaEngineBins\mp4box\MP4Box.exe
      + mencoder.exe	: d:\mediaShrink\mediaEngineBins\MPlayer-rtm-svn-28311\mencoder.exe
      + mplayer.exe	: d:\mediaShrink\mediaEngineBins\MPlayer-rtm-svn-28311\mplayer.exe
      + vfw2menc.exe	: d:\mediaShrink\mediaEngineBins\MPlayer-rtm-svn-28311\vfw2menc.exe
      + tsMuxeR.exe	: d:\mediaShrink\mediaEngineBins\tsMuxeR\tsMuxeR.exe
  + Seraching for input files (avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms)
    - Found File: (\\localhost\Videos\Milk)
------------ Processing ----------------
  + Adding per run options: (/inputFile "\\localhost\Videos\Milk" /profile autoEncode)(/inputFile "\\localhost\Videos\Milk" /profile autoEncode)
    + Parsing switches
      - optionsString: /inputFile "\\localhost\Videos\Milk" /profile autoEncode
      - Adding to to options Hash
        + Key: inputFile
        + Value: \\localhost\Videos\Milk
      - Adding to to options Hash
        + Key: profile
        + Value: autoEncode
  + Processing: inputFile = Milk
  + Looking for profile: autoEncode
    - Found "autoencode"
  + Getting Video Info: (\\localhost\Videos\Milk)(0)
  ! Unable to detect video info, skipping to next video
any help?
  #510  
Old 03-16-2010, 03:02 PM
woribhabor woribhabor is offline
Sage User
 
Join Date: Apr 2009
Location: Aspen
Posts: 49
Since its been silent in here, I would ask another question.

Is anyone MediaShrink'n their DVDs on WHS using SJQ?
I ask, because i have read through most of these forums
and see at lot of TV recording being passed through, but
not a lot of DVDs. Make me think i missed something and
i'm using the wrong stuff to do my stuff.

If so, what is your code?

Last edited by woribhabor; 03-16-2010 at 03:07 PM.
  #511  
Old 03-16-2010, 07:17 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Code Dump!

I've pieced together a new release that addresses a lot of issues. I'm 95% sure its ready to rock but i'm so busy right now I haven't had time to really test it out throughly. But I imagine you'd rather just have it to play with vs. having me sit on it for a few weeks before I can verify it. Enjoy!

* Launching mediaShrink directly via SJQ works again
* I automatically generate mediaShrink.bat which you can use for SJQ also, which is recommended since it sets the priority properly. It'll get created the first time you run mediaShrink.exe (you can even just double click it).
* Autocrop is now smarter, i'll check for obviously bad settings and if I see something strange i'll throw the corp away.
* Audio selection is now smarter also, i'll pick the best audio track available (# channels + bitrate) and if and if there's a collision or confusion, i'll just encode all of them.
* Brand new CLI that's way better than before (NOT BACKWARDS COMPATIBLE)

DOWNLOAD

Code:
mediaShrink v3.0 -

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

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

    /help                   Show these 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)

    /altLaunch             Use alternate launching meathod.  Should only be
                              used if you're having problems and I ask you to 
                              try it.

### 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.
                            
    /centralWorkFolder <path> Directory to do all temp work, useful if your 
                              videos are stored on a NAS or recording drive
                              that you don't want affected by encoding work.
                              
    /container <container>  A/V container to use
                              - mkv : Uses mkv container (default)
                              - mp4 : Uses mp4 container

### Video Options ---------------------------------------------------------

    /vcodec <encoder>      Set the video encoder
                            - x264   : Uses x264 encoder (default)
                            - ffmpeg : Uses ffmpeg encoder, roughly divx
    
    /vbitrate <kbs>        Set video bitrate (Default 1500)

    /vProfile <profile>    Sets the video encoding profile
                             - HQ       : Slow and pretty
                             - MQ       : A nice mix of speed and quality (default)
                             - LQ       : Fast enough for slow machines
                             - portable : For playback on portable devices
                             - custom   : Uses custom parameters from /x264opts

   /x264opts <options>     Sets custom x264 options
                             - ex: ref=2:bframes=2:subme=6:mixed-refs=0
                             
   /onePass                Performs a one-pass encode (default)
   /twoPass                Performs a two-pass encode                         
                                 
   /xRes <###>             Scale video to ????x#### (Y Res is auto-calculated)
   /yRes <###>             Scale video to ####x???? (X Res is auto-calculated)
   
   /IVTC                   Uses Handbrakes variable frame rate encoding
   /noIVTC                 Blocks usage of IVTC by autoEncode
    
   /denoise                Uses Hanbrakes denoise filter
   /noDenoise              Blocks usage of denoise by autoEncode

   /decomb                 Uses Hanbrakes decomb filter (Selective Deinterlace)
   /noDecomb               Blocks usage of decomb by autoEncode

   /deinterlace            Uses Hanbrakes deinterlace filter
   /noDeinterlace          Blocks usage of denoise by autoEncode

   /autoCrop               Automatically crop videos to remove black bars
   /noAutoCrop             Disable Automatic Cropping
    
   /noSubtitles            MediaShrink will automatically attempt to attach
                            all subtitle/CC tracks it finds since its a pretty
                            harmless operation.  Set this if you want to disable
                            
### Audio Options --------------------------------------------------------------

    /acodec <encoder>      Set the audio encoder
                              - faac   : AAC codec (Default Stereo/SDTV)
                              - lame   : MP3 codec
                              - vorbis : OGG codec
                              - ac3    : AC3 passthough (Default HDTV)
                              - dts    : DTS passthough

    /abitrate <kbs>        Set audio bitrate in kbs (Default 160)

    /atrack <Track #>        Set audio bitrate in kbs (Default 160)

    Note: atrack, abitrate, acodec can take comma separated values to force multiple tracks
    
    /allAudio              Force mediaSrhink to encode all audio tracks      

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

    /subLang <lang Code|all>  Lets user specify the language code of the 
                              subtitles they want to extract (default: eng)

                              http://www.loc.gov/standards/iso639-2/php/code_list.php

    /manualTitles           Prompts user to manually specify the DVD titles to encode

    /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 /vprofile HQ /vbitrate 2500 /twopass"
}

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

MEDIASHRINKLQ
{
   :CPU "LOW"
   :OFFHOUR "0-1, 16-23"
   :OFFDAY "1, 7"
   :MAX 1
   :RESOURCES 51
   "D:/upnp2podcast/mediaScraper/mediaShrink.exe \"%c%\" /inPlace /batch /vbitrate 1500 /onePass "
}
__________________
Clients: 1xHD200 Connected to 50" TH-50PZ750U Plasma
Server : Shuttle SFF SSH55J2 w/ Win7 Home, SageTV v7, Core i3 540, 2GB RAM, 30GB SSD for OS, 1.5TB+2x1TB WDGP for Recordings, BluRay, 2xHDHR, 1xFirewire
SageTV : PlayOn, SJQ, MediaShrink, Comskip, Jetty, Web Client, BMT


Having a problem? Don't forget to include a log! (Instructions for: PlayOn For SageTV v1.5, MediaShrink)

Last edited by evilpenguin; 04-22-2010 at 08:05 PM.
  #512  
Old 03-16-2010, 07:45 PM
ChaOConnor's Avatar
ChaOConnor ChaOConnor is offline
Sage Aficionado
 
Join Date: Nov 2008
Location: Bel Air, MD
Posts: 355
Thanks EP!!!! I'll give it a shot tomorrow. As always, I really appreciate your hard work!!!
__________________
Server: AMD Phenom II X6 1090T 3.2GHz, ASRock 890FX Deluxe4 890FX, PNY Optima 8GB DDR3 1333
Media Storage: Rosewill RSV-S4-X 4 Bay Enclosure w/ 4 x 3TB via unRAID
Capture: HDHomerun Prime, HDHomerun x 2
Software: Sage Server 7.1.9 on Windows 7 (Virtualized in ESXi)
Clients: i3-2105, ASRock Z68 Pro3-M, 4GB DDR3 1600, 64GB SATA III (OS), 2TB WD Green (Recording), PNY GT 430 // 2 x HD-300
  #513  
Old 03-16-2010, 08:48 PM
ohpleaseno ohpleaseno is offline
Sage Aficionado
 
Join Date: Apr 2009
Location: South Florida
Posts: 464
I have got to get off my ass and get SJQ reinstalled on my server. The rebuild of this damn thing is taking way too long. It's stable now and I can't wait to start encoding my recorded tv. thanks ep!
__________________
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
  #514  
Old 03-17-2010, 08:15 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
EP,

There appears to be a problem with the scaling if I specify "/xRes" "480" the -l always defaults to 448 (/yres). This causes distortion and an elongated video ... in my case the video was 4:3 so the -l should be 352.

If i remove all mention in the snips of yres then handbrake handles the scaling properly.

snip of code with /res in snips
--crop 12:20:15:17 -l 448 -w 480
Attached Files
File Type: txt AroundtheHorn-5606707-0.autoEncode.(1).txt (82.9 KB, 240 views)
__________________
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; 03-17-2010 at 08:18 AM.
  #515  
Old 03-17-2010, 12:49 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
EP,

I have a couple of channels where the HDHomerun records and mediashrink has problems Identifying the audio. I recorded 5 mins of channel 6 to test. And mediashrink chose the wrong channel. This video is only 5 minutes so if you need it let me know.

As you can see below the first Audio Track is the correct track. The 2nd audio is spa.

Code:
General
Complete name                    : U:\TheYoungandtheRestless-CaneSaysGoodbyetoLily-5956181-1.mpg
Format                           : MPEG-PS
File size                        : 124 MiB
Duration                         : 5mn 16s
Overall bit rate                 : 3 296 Kbps

Video
ID                               : 224 (0xE0)
Format                           : MPEG Video
Format version                   : Version 2
Format profile                   : Main@Main
Format settings, Matrix          : Default
Duration                         : 5mn 16s
Bit rate mode                    : Variable
Bit rate                         : 2 845 Kbps
Nominal bit rate                 : 15.0 Mbps
Width                            : 528 pixels
Height                           : 480 pixels
Display aspect ratio             : 4/3
Frame rate                       : 29.970 fps
Colorimetry                      : 4:2:0
Scan type                        : Progressive
Scan order                       : Top Field First
Bits/(Pixel*Frame)               : 0.375
Stream size                      : 107 MiB (86%)

Audio #1
ID                               : 129 (0x81)
Format                           : AC-3
Format/Info                      : Audio Coding 3
Duration                         : 5mn 16s
Bit rate mode                    : Constant
Bit rate                         : 192 Kbps
Channel(s)                       : 2 channels
Channel positions                : L R
Sampling rate                    : 48.0 KHz
Video delay                      : -354ms
Stream size                      : 7.24 MiB (6%)

Audio #2
ID                               : 130 (0x82)
Format                           : AC-3
Format/Info                      : Audio Coding 3
Duration                         : 5mn 16s
Bit rate mode                    : Constant
Bit rate                         : 128 Kbps
Channel(s)                       : 2 channels
Channel positions                : L R
Sampling rate                    : 48.0 KHz
Video delay                      : -336ms
Stream size                      : 4.82 MiB (4%)

Mediashrink picks up the 2nd Audio ... which is wrong... even though it thinks it's the correct audio.

Code:
    - Input Line:          Input #0, mpeg, from 'U:\testing\TheYoungandtheRestless-CaneSaysGoodbyetoLily-5956181-1.mpg':
      + videoContainer = mpeg
    - Duration Line:       Duration: 00:05:16.65, start: 0.990189, bitrate: 3292 kb/s
      + totalMin = 316
    - Video Info Line:     Stream #0.0[0x1e0], 1/90000: Video: mpeg2video, yuv420p, 528x480, 1001/60000, AR: 4:3, progressive, 15000 kb/s, 29.97 fps
      + ffmpeg Reported Aspect Ratio (ffmpegAR)   = 4:3
        - Estimated DVD aspect ratio {dvdAR)      = 4:3
      + videoResolution   = 528x480
      + videoBitrate      = 15000
      + videoPID     = 1e0
      + frameRate   = 29.97
      + videoCodec      = mpeg2video
      + ffmpeg reports progressive
    - Audio Info Line:     Stream #0.1[0x82], 1/90000: Audio: ac3, 48000 Hz, stereo, s16, 128 kb/s
      + 1) audioCodec     = ac3
      + 1) audioSampleRate = 48000
      + 1) audioBitRate    = 128
      + 1) audioPID    = 82
      + 1) audioChannels  = 2
    - Audio Info Line:     Stream #0.2[0x81], 1/90000: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
      + 2) audioCodec     = ac3
      + 2) audioSampleRate = 48000
      + 2) audioBitRate    = 192
      + 2) audioPID    = 81
      + 2) audioChannels  = 2
      - Checking Audio Track #2 (194 vs 130)
        - Setting Primary Audio Track to 2
          + Handbrake Settings       : -a 2 -E faac -B auto
          + Handbrake Settings (ALL) : -a 1,2 -E faac,faac -B auto,auto
__________________
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; 03-17-2010 at 12:53 PM.
  #516  
Old 03-17-2010, 01:28 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Quote:
Originally Posted by nyplayer View Post
EP,

I have a couple of channels where the HDHomerun records and mediashrink has problems Identifying the audio. I recorded 5 mins of channel 6 to test. And mediashrink chose the wrong channel. This video is only 5 minutes so if you need it let me know.

As you can see below the first Audio Track is the correct track. The 2nd audio is spa.
Hmm, looks like a problem of mediaShrink picking the right audio track, but ffmpeg reports a different track order than handbrake so its getting messed up. No problem, I can check by track PID (0x81 vs. 0x82) in handbrake to verify that its synced up.

I would like a clip of that though, but not 5 minutes worth, can you cut it down to 5 seconds with VRD and email it to me?
__________________
Clients: 1xHD200 Connected to 50" TH-50PZ750U Plasma
Server : Shuttle SFF SSH55J2 w/ Win7 Home, SageTV v7, Core i3 540, 2GB RAM, 30GB SSD for OS, 1.5TB+2x1TB WDGP for Recordings, BluRay, 2xHDHR, 1xFirewire
SageTV : PlayOn, SJQ, MediaShrink, Comskip, Jetty, Web Client, BMT


Having a problem? Don't forget to include a log! (Instructions for: PlayOn For SageTV v1.5, MediaShrink)
  #517  
Old 03-17-2010, 01:58 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
EP,

VRD redoes the file when cut so it really is not a good test and it only selects 1 track.

Check your pm you can download it.

Edit trying razrsharpe way.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
  #518  
Old 03-17-2010, 01:59 PM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by evilpenguin View Post
I would like a clip of that though, but not 5 minutes worth, can you cut it down to 5 seconds with VRD and email it to me?
for most of the tests that i sent you this is what i did...

  1. Load video in videoRedo
  2. Tools -> Trim and Copy Source File...
  3. From Beginning... 5 mb (resulted in about 5 secs of video)
Alternatively you can use VRD to setup cut points and then use Tools -> Trim and Copy Source File... and choose Use Selection Markers


This was the only way that i was able to create a copy of the original where the track information was preserved
__________________
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
  #519  
Old 03-17-2010, 02:00 PM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by nyplayer View Post
EP,

VRD redoes the file when cut so it really is not a good test and it only selects 1 track.

Check your pm you can download it.
@nyplayer - when you use the method that i just posted it maintains the track info... It reuses the headers (even if messed up) when copying from the beginning of the file
__________________
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
  #520  
Old 03-17-2010, 02:02 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by razrsharpe View Post
for most of the tests that i sent you this is what i did...

  1. Load video in videoRedo
  2. Tools -> Trim and Copy Source File...
  3. From Beginning... 5 mb (resulted in about 5 secs of video)
Alternatively you can use VRD to setup cut points and then use Tools -> Trim and Copy Source File... and choose Use Selection Markers


This was the only way that i was able to create a copy of the original where the track information was preserved
Thanks razr that worked
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
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.