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
  #281  
Old 09-11-2009, 05:45 PM
DanB50 DanB50 is offline
Sage User
 
Join Date: Mar 2009
Location: Missouri
Posts: 32
Well I'm off to a ballgame. I'll get back to this later.

Dan

Edit: I renamed the file log.txt, but it still says it's an invalid file......argggg

Last edited by DanB50; 09-11-2009 at 08:45 PM.
  #282  
Old 09-11-2009, 08:52 PM
DanB50 DanB50 is offline
Sage User
 
Join Date: Mar 2009
Location: Missouri
Posts: 32
Here is the end of the file. I can at least copy and paste that much......

Some of the beginning....

lcome to mediaEngine v1.0beta
Staring Proccesing at 18:28:16 9-11-2009

+ Logfile :
+ Executable : C:\MediaShrink\mediaEngine.exe
+ EXE path : C:\MediaShrink
+ Parsing switches
- optionsString:
- optionsArray: /defaultProfile autoEncode /findFileRegEx avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms /mediaShrink bugFix D:\movies\A View To A Kill /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: bugFix
- Adding Inputfile: D:\movies\A View To A Kill
- Adding to to options Hash
+ Key: savelog

------------------Profiles--------------------
+ Looking for profiles file...
- Found = C:\MediaShrink\mediaEngineProfiles
- Scanning Directory: C:\MediaShrink\mediaEngineProfiles (profile|func|snip|output|scrape)
- Scanning Directory: C:\MediaShrink\mediaEngineProfiles\encodingProfiles (profile|func|snip|output|scrape)
- Scanning Directory: C:\MediaShrink\mediaEngineProfiles\scrapingProfiles (profile|func|snip|output|scrape)
+ Reading Profiles
- Profile "(don't compress)"
+ Number of Commands : 1
- Command #1 : #No_Compress#"%%ORIGINAL%%" "%%OUTPUT_MAIN%%.%%ORIGINAL_EXT%%"
- Encoder #1 : /exe copy
- Profile "all to dvd"


and the end.....


+ Seraching for input files (avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms)
- Scanning Directory: D:\movies\A View To A Kill (avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms)
- Scanning Directory: D:\movies\A View To A Kill\New Folder (avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms)
- Scanning Directory: D:\movies\A View To A Kill\Video_TS (avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms)
! No input file found
- Making Log File: C:\MediaShrink\mediaEngine.log


Dan
  #283  
Old 09-20-2009, 08:25 AM
gveres gveres is offline
Sage Aficionado
 
Join Date: Nov 2007
Location: Waterloo, Ontario
Posts: 404
Is anybody using this with the old version of SJQ? I am trying launch this with SJQ using this command line:

"C:\QFIXSAGE\MediaScraper\mediaShrink.exe" "/cliBitrate" "1000" "%f%"

and it starts ok. It analyses the video ok. But when handbrake starts, it goes a bit and then hangs. Handbrake sits there doing nothing.

If I take the same command line and execute it at a command prompt it works fine. I am making sure that SageTV runs as a service under the same user name as the one I am logged in as.

Any ideas?

Greg
  #284  
Old 09-20-2009, 06:39 PM
gveres gveres is offline
Sage Aficionado
 
Join Date: Nov 2007
Location: Waterloo, Ontario
Posts: 404
Any idea why handbrake is still set to run at Normal priority? I see from the log that the command line for running handbrake is:

Code:
       - Executing command: start /D "C:\QFIXSAGE\MediaScraper\mediaEngineBins\Handbrake 9.3" /BELOWNORMAL /WAIT /B HandBrakeCLI.exe -v -i "c:/Videos/Sage Recordings/ImaginationMovers-TreasureoftheWarehouse-4566888-0.mpg" -o "c:/Videos/Sage Recordings/ImaginationMovers-TreasureoftheWarehouse-4566888-0.workFolder/ImaginationMovers-TreasureoftheWarehouse-4566888-0.scratch.33.MAIN.mkv"  -e x264 -T -x ref=2:bframes=2:me=umh -b 1000 -B 160 -E faac --decomb -2   --crop 16:16:15:17 -l 448 -w 592

It seems like it should set it to BelowNormal priority but when I look with process explorer, I see that it is priority 8 and the system become unusable.When I switch it's priority to be 6 the system becomes usable again.

Thanks
Greg
  #285  
Old 09-21-2009, 09:39 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by gveres View Post
Is anybody using this with the old version of SJQ? I am trying launch this with SJQ using this command line:

"C:\QFIXSAGE\MediaScraper\mediaShrink.exe" "/cliBitrate" "1000" "%f%"

and it starts ok. It analyses the video ok. But when handbrake starts, it goes a bit and then hangs. Handbrake sits there doing nothing.

If I take the same command line and execute it at a command prompt it works fine. I am making sure that SageTV runs as a service under the same user name as the one I am logged in as.

Any ideas?

Greg
In SJQ you need to start mediashrink from wthin a batch file.

cd "c:\mediashrink"
c:
start /I /BELOWNORMAL /MIN /WAIT mediashrink.exe "%~f1" /cliBitrate 1000

you also need to include the /I switch ex. above
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
  #286  
Old 09-26-2009, 08:19 AM
naln's Avatar
naln naln is offline
Sage Advanced User
 
Join Date: Aug 2004
Location: KY
Posts: 236
Thumbs up

Quote:
Originally Posted by evilpenguin View Post
And if you're still using Sage's built in encoding, you should give this (or just handbrake a shot). The difference in the quality of the encodes is *staggering*.
wow - this encoder does an awesome job!! Just used this utility for the first time yesterday and was amazed at the conversion quality. Is there a way to automate the process into recognizing the files within a folder and convert the 'unconverted' ? .... I presume this can be done via Dirmon - but I wonder if this could be an option within this tool itself.
Great utility - and Thanks a lot!!
__________________
Sage Server: Antec Solo, Seasonic S12 430W, AM2 3800, Gigabyte GA-M61P-S3 Mobo, XFX 7600GS 512MB, 2GB DDR2 800, 3 TB SATA, Hauppauge HVR1600, HDHR, indoor antenna, Win 7 Ultimate, MCE05 remote.
Sage Client: Foxconn NT330i Intel Atom Dual Core, 1 GB DDR2 667 RAM, Windows 7 Ultimate.
  #287  
Old 09-26-2009, 10:46 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by naln View Post
wow - this encoder does an awesome job!! Just used this utility for the first time yesterday and was amazed at the conversion quality. Is there a way to automate the process into recognizing the files within a folder and convert the 'unconverted' ? .... I presume this can be done via Dirmon - but I wonder if this could be an option within this tool itself.
Great utility - and Thanks a lot!!
you can manually drag and drop a group of files onto the exe ( i believe this is still the case.... ) but there is no other means of queuing and managing the queue.. i use dirmon2 to do the queuing.. and once sjq supports black out times i will switch over to using that for everything, comskip, compressing, etc.
__________________
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
  #288  
Old 10-04-2009, 08:38 PM
farscapesg1 farscapesg1 is offline
Sage Advanced User
 
Join Date: Mar 2005
Posts: 202
This is probably a stupid question, but how can I force HDTV recorded media to encode to a format playable by my iPhone? All HDTV media seems to encode to 1280x720, but iTunes will only sync video up to 640x480.

I've tried the following, which works great for SDTV recordings...

Code:
/cutcomm /onlywhenvprj /defaultProfile autoEncode /mp4 /verticalscale "320" /cliBitrate "1000" /onepass /centralWorkFolder I:\scratch /outputDirectory I:\encoded /findFileRegEx "avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms"
Do I need to change something for in the Audo Encode.profile file to force it to the correct resolution? What about the Hardware Devices and Auto Encode Device functions? Any way to call these to convert to the appropriate device (I have an iPhone and a Zune). I've tried to look through the thread and I saw a couple posts talking about creating hardware profiles, but no mention on how to use them in the command line.
  #289  
Old 10-09-2009, 12:25 PM
madas madas is offline
Sage Advanced User
 
Join Date: Jun 2008
Posts: 83
Any idea why this errors out?

+ Parsing switches
- optionsString: /ERROR "No Audio or Video"
Error reported from profile file: No Audio or Video

Thanks!

M
Attached Files
File Type: txt mediashrink.txt (160.5 KB, 216 views)
  #290  
Old 10-09-2009, 01:14 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Quote:
Originally Posted by madas View Post
Any idea why this errors out?

+ Parsing switches
- optionsString: /ERROR "No Audio or Video"
Error reported from profile file: No Audio or Video

Thanks!

M
Looks like Handbrake is failing out on that video. Have you ever been successful, or is the problem just with this video?
  #291  
Old 10-09-2009, 01:22 PM
madas madas is offline
Sage Advanced User
 
Join Date: Jun 2008
Posts: 83
seems to be any video that is recorded from my DVBDream network encoder.

Here are the video specs, if it helps



General
ID : 1
Complete name : 30MinuteMeals-FeelGoodSupper8693052-0.mpg
Format : MPEG-TS
File size : 798 MiB
Duration : 22mn 40s
Overal bit rate : 4917 Kbps

Video
ID : 5410 (0x1522)
Menu ID : 9462 (0x24F6)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Duration : 22mn 40s
Bit rate : 4338 Kbps
Width : 1440 pixels
Height : 1080 pixels
Display aspect ratio : 16/9
Frame rate : 29.970 fps
Standard : Component
Colorimetry : 4:2:0
Scan type : Interlaced
Scan order : Top Field First

Audio
ID : 5411 (0x1523)
Menu ID : 9462 (0x24F6)
Format : AC-3
Format/Info : Audio Coding 3
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Rear: L R, LFE
Sampling rate : 48.0 KHz
Video delay : -632ms
  #292  
Old 10-09-2009, 01:35 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Ahh, yeah, handbrake doesn't like compressing some types of h.264 video right now. They're getting pretty close to another release (9.4) which should include the latest libffmpeg that'll take care of a lot of those problems.
  #293  
Old 10-09-2009, 02:20 PM
loki's Avatar
loki loki is offline
Sage User
 
Join Date: Jul 2009
Posts: 7
Quote:
Originally Posted by madas View Post
Any idea why this errors out?

+ Parsing switches
- optionsString: /ERROR "No Audio or Video"
Error reported from profile file: No Audio or Video

Thanks!

M
Madas - I am running into the same issue with all my recorded mpg's.

Found a few people in this thread that have a similar issue:

http://forums.sagetv.com/forums/show...&postcount=246

Tried the folowing, but that didnt seem to help

Code:
as a temporary solution I deleted %%handbrakeAudioBitrate%% and replaced it with 160 in the snip file
Media this happens with:
.mpg's from Genpix (hd and sd)
.mpg's HD homerun


DVD media seems fine.

Tried using ffmpeg to sanitize mpg the data, but that didnt help either.

Code:
ffmpeg.exe -i PhineasandFerb-BowlRRamaDrama-2163590-0.mpg  -vcodec copy -acodec copy PhineasandFerb-BowlRRamaDrama-2163590-0.mpg

The /ERROR "No Audio or Video" error is reproducible on two vista boxes with fresh installs of mediashrink and UAC disabled. If i run the .mpgs thru the handbrake-cli all is well.


Anyone else running into this issue ?

-loki
  #294  
Old 10-09-2009, 02:25 PM
loki's Avatar
loki loki is offline
Sage User
 
Join Date: Jul 2009
Posts: 7
Quote:
Originally Posted by evilpenguin View Post
Ahh, yeah, handbrake doesn't like compressing some types of h.264 video right now. They're getting pretty close to another release (9.4) which should include the latest libffmpeg that'll take care of a lot of those problems.
EP

I tried dropping in the handbrake snapshot version svn2845 into the .\mediashrink\mediaEngineBins\Handbrake 9.3 dir with no change on the audio/video error.


-loki
  #295  
Old 10-09-2009, 02:34 PM
madas madas is offline
Sage Advanced User
 
Join Date: Jun 2008
Posts: 83
So I guess we have to wait for the new handbrake....what a pain!
  #296  
Old 10-09-2009, 05:22 PM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by evilpenguin View Post
Ahh, yeah, handbrake doesn't like compressing some types of h.264 video right now. They're getting pretty close to another release (9.4) which should include the latest libffmpeg that'll take care of a lot of those problems.
wowowo does this mean that handbrake will FINALLY be able to process all my hd-pvr recording without hanging (the majority of the time)
__________________
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
  #297  
Old 10-09-2009, 05:50 PM
loki's Avatar
loki loki is offline
Sage User
 
Join Date: Jul 2009
Posts: 7
Quote:
Originally Posted by evilpenguin View Post
Ahh, yeah, handbrake doesn't like compressing some types of h.264 video right now. They're getting pretty close to another release (9.4) which should include the latest libffmpeg that'll take care of a lot of those problems.

from what i am seeing handbrake is never starting.

Code:
- Executing command: start /D "C:\dvd\mediashrink\mediaEngineBins\Handbrake" /BELOWNORMAL /WAIT /B HandBrakeCLI.exe -v -i "TheDailyShowWithJonStewart-2146774-0.mpg" -o "TheDailyShowWithJonStewart-2146774-0.workFolder/TheDailyShowWithJonStewart-2146774-0.scratch.33.MAIN.mkv"  -e x264 -T -x ref=2:bframes=2:me=umh -b 1500 -B 160 -E faac --decomb     --crop 0:0:0:0

################# HandBrakeCLI.exe Output handbrake_1 ###############

################# HandBrakeCLI.exe handbrake_1 Average FPS = 0.00 ###############
As you can see nothing is in the "HandBrakeCLI.exe Output handbrake_1" section. which results in every else aborting.

Code:
        - Conditional List: inputMain:videoContainer=~matroska
          + Checking: inputMain:videoContainer=~matroska
            - Does perRunOptionsHash{videoInfo}{inputMain}{"videoContainer"} () =~ matroska?
              + file key = thedailyshowwithjonstewart-2146774-0.workfolder\thedailyshowwithjonstewart-2146774-0.scratch.33.main.mkv
              ! Key not found ()
              + False
        - Conditional List: inputMain:videoContainer=~mov
          + Checking: inputMain:videoContainer=~mov
            - Does perRunOptionsHash{videoInfo}{inputMain}{"videoContainer"} () =~ mov?
              + file key = thedailyshowwithjonstewart-2146774-0.workfolder\thedailyshowwithjonstewart-2146774-0.scratch.33.main.mkv
              ! Key not found ()
              + False
        = Overall: False, leaving blank!
If i take the following sample from the log file:

Code:
- Executing command: start /D "C:\dvd\mediashrink\mediaEngineBins\Handbrake" /BELOWNORMAL /WAIT /B HandBrakeCLI.exe -v -i "TheDailyShowWithJonStewart-2146774-0.mpg" -o "TheDailyShowWithJonStewart-2146774-0.workFolder/TheDailyShowWithJonStewart-2146774-0.scratch.33.MAIN.mkv"  -e x264 -T -x ref=2:bframes=2:me=umh -b 1500 -B 160 -E faac --decomb     --crop 0:0:0:0
and run the following by hand, handbrake will create the correct output file.


Code:
C:\dvd\mediashrink\mediaEngineBins\Handbrake\HandBrakeCLI.exe" -i "TheDailyShowWithJonStewart-2146774-0.mpg" -o "TheDailyShowWithJonStewart-2146774-0.scratch.33.MAIN.mkv"  -e x264 -T -x ref=2:bframes=2:me=umh -b 1500 -B 160 -E faac --decomb     --crop 0:0:0:0


HandBrake 0.9.3 (2008112300) - http://handbrake.fr/
4 CPUs detected
Opening TheDailyShowWithJonStewart-2146774-0.mpg...
+ title 1:
  + vts 0, ttn 0, cells 0->0 (0 blocks)
  + duration: 00:30:20
  + size: 544x480, aspect: 1.33, 23.976 fps
  + autocrop: 12/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:30:20
  + audio tracks:
    + 1, Unknown (MPEG) (2.0 ch)
  + subtitle tracks:
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 PHADD SSE4.1 Cache64
x264 [info]: profile Main, level 3.0
Encoding: task 1 of 1, 100.00 %x264 [info]: slice I:504   Avg QP:14.91  size: 32706  PSNR Mean Y:48.22 U:52.00 V:52.61 A
vg:49.06 Global:47.58
x264 [info]: slice P:24227 Avg QP:17.42  size: 12098  PSNR Mean Y:44.18 U:48.13 V:48.61 Avg:45.12 Global:43.84
x264 [info]: slice B:28536 Avg QP:19.02  size:  3826  PSNR Mean Y:43.50 U:47.78 V:48.14 Avg:44.50 Global:43.49
x264 [info]: consecutive B-frames: 12.8% 24.2% 63.0%
x264 [info]: mb I  I16..4: 30.1%  0.0% 69.9%
x264 [info]: mb P  I16..4:  2.0%  0.0%  5.9%  P16..4: 43.5% 19.4% 13.7%  0.0%  0.0%    skip:15.6%
x264 [info]: mb B  I16..4:  1.4%  0.0%  0.0%  B16..8: 31.8%  4.5%  3.7%  direct:18.9%  skip:39.6%  L0:28.6% L1:50.3% BI:
21.1%
x264 [info]: final ratefactor: 17.11
x264 [info]: ref P L0  86.5% 13.5%
x264 [info]: SSIM Mean Y:0.9872005
x264 [info]: PSNR Mean Y:43.853 U:47.980 V:48.399 Avg:44.824 Global:43.672 kb/s:1507.87

Rip done!
HandBrake has exited.

NOTE -v removed to keep the output short

Ahh think I found it, You MUST qualify the full path to the source file.

The following will FAIL:

Code:
cd c:\mediashrink
mediashrink.exe file.mpg /defaultProfile autoEncode /mp4 /onePass /centralWorkFolder

The following will PASS:

Code:
cd c:\mediashrink
mediashrink.exe c:\mediashrink\file.mpg /defaultProfile autoEncode /mp4 /onePass /centralWorkFolder




-loki
Attached Files
File Type: zip autoEncode.zip (20.6 KB, 214 views)

Last edited by loki; 10-09-2009 at 06:55 PM. Reason: found a fix
  #298  
Old 10-11-2009, 03:49 PM
LoopyWolf LoopyWolf is offline
Sage User
 
Join Date: Jan 2009
Posts: 48
Brightening and increasing volume

Atittude:

I've been using MediaShrink for months now - does my mediacenter a treat =) I have a single 500G HD and I just never run out of space thanks to this sweet thing

Problem:

All my recorded videos could do with a volume boost (150%) and a gamma increase of say 1.3 - I searched the thread but couldn't find any parameters to make this kind of change. is it possible?
  #299  
Old 10-15-2009, 01:00 PM
kevine kevine is offline
Sage Expert
 
Join Date: Aug 2007
Posts: 514
I installed Beta2 yesterday and changed the autoencode default file to add the /divx switch. Using the drag and drop method, the process hangs somewhere in the middle. Right now it has been stuck for hours on "Remaining Commands (8): (/exe mencoder.exe)" step. Any thoughts?

It works for SD but the ones it hangs on are 1080i HDHR recordings from cable.

Thanks.
  #300  
Old 10-17-2009, 05:53 AM
kevine kevine is offline
Sage Expert
 
Join Date: Aug 2007
Posts: 514
Can anyone help me with my problem? Should I provide a log or something? Has anyone else seen this problem? Thanks.
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 02:17 PM.


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