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
  #181  
Old 06-07-2009, 12:03 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
EP,

There appears to be a problem when doing MP4 if the video has subtitles. It does mp4box etc... but then it fails on no audio or video. The VRD and handbrake steps run fine.

See Attached log.
Attached Files
File Type: txt DarkAngel-BorrowedTime-2226570-0.autoEncode.(1).log.txt (182.9 KB, 171 views)
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
  #182  
Old 06-07-2009, 03:34 PM
rsagetv99's Avatar
rsagetv99 rsagetv99 is offline
Sage Fanatic
 
Join Date: Nov 2004
Posts: 766
Quote:
Originally Posted by evilpenguin View Post
Is this happening on one video or multiple?
Everything I throw at it.
  #183  
Old 06-07-2009, 03:47 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by rsagetv99 View Post
Everything I throw at it.
Are you using a batch file to run it through SJQ or are you calling mediashrink directly in SJQ? If using a batch file post it... not all batch files work with mediashrink Penguin had posted a batch file that works great with SJQ.


This is how I run MediaShrink in SJQ.

Code:
PENG512MP4 {
:CPU BELOWNORMAL
:MAX 1
  "S:\\vrdnbencode\\penguin\\mediaShrink.exe \"%c%\" /inPlace /divx /cutComm /cliBitrate 1000 /onePass /horizontalScale 512 /mp4 /savelog"
}
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
  #184  
Old 06-11-2009, 09:51 AM
rsagetv99's Avatar
rsagetv99 rsagetv99 is offline
Sage Fanatic
 
Join Date: Nov 2004
Posts: 766
Quote:
Originally Posted by rsagetv99 View Post
Everything I throw at it.
Here are some other errors from the log.

Code:
2009/06/04 15:36:57.873	Encoding Paused by user command, 'r' to resume
2009/06/04 15:36:57.873	
2009/06/04 15:36:57.873	Encoding Quit by user command
This error occurs during the first pass of Handbrake, and it happens in the same second that Handbrake starts with only .02% of the video processing.

Then I think mediascraper is trying to run Handbrake against the .mkv file, which is only .02% of the original video which then gives the error.

Code:
! Error reported from profile file: No Audio or Video
When I drag and drop the file, it runs without a problem.

Anyone seen this before?
  #185  
Old 06-16-2009, 10:59 AM
rsagetv99's Avatar
rsagetv99 rsagetv99 is offline
Sage Fanatic
 
Join Date: Nov 2004
Posts: 766
Hi Evil,

I am having a problem with the timebar of some recordings being messed up after conversion. It happened to me with your Video Tools 3.0 plugin, and now with mediashrink - which I looks like maybe they both use the same logic and underlying utilities.

Basically, after conversion the timebar is all red, and I can play the video, but if I try to skip ahead it starts over. It's as if Sage cannot correctly read the length of the movie.

Anyone else have this problem?
  #186  
Old 06-16-2009, 11:35 AM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
That's a SageTV bug where they are still trying to use the file timestamp to determine the duration of the recording. I haven't seen it in a while, are you on the latest beta?
  #187  
Old 06-16-2009, 11:43 AM
rsagetv99's Avatar
rsagetv99 rsagetv99 is offline
Sage Fanatic
 
Join Date: Nov 2004
Posts: 766
Yes. I was on 6.5.14 and I just upgraded to .17 to see if it would fix the problem, but it didn't.
  #188  
Old 06-16-2009, 12:02 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Upgrading won't fix the issue, as the files are only scanned right when they're in-place swapped with the original. I've been bugging Sage about this for *years* and while they've certainly gotten much better (this used to happen all the time) they clearly haven't completely fixed the problem yet.

I've been doing a lot of compression lately but I haven't been checking to make sure they all are getting imported properly. Can you do me a favor and submit this as a bug and i'll do the same if I find any in my collection?
  #189  
Old 06-16-2009, 12:16 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Well there are two different bugs that pretty much look the same...

a) Sage things the duration is 00:00 - This comes from Sage trying to determine the duration of the file but failing for some reason.
b) Sage thinks the duration of the show is giant (100+ hours) - This comes from Sage trying to use the timestamp to determine the duration of the recording which it shouldn't be doing once a file has been converted.
  #190  
Old 06-16-2009, 12:55 PM
rsagetv99's Avatar
rsagetv99 rsagetv99 is offline
Sage Fanatic
 
Join Date: Nov 2004
Posts: 766
Actually NPlayer, it is an mp4. I created it using the command-line switches that you provided as part of helping me with the other problem.

The only thing I did was take out /cutComm.
Code:
/inPlace /divx /cutComm /cliBitrate 1000 /onePass /horizontalScale 512 /mp4 /savelog
  #191  
Old 06-16-2009, 01:12 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Yeah I deleted my post. The reason why I am not seeing the problem is because I encode to mp4 using mediashrink and then move to my NAS using the Sage built in transcoder using a profile that just copies the video and audio along with SJQ. So doing this causes Sage to recognize the new location and the timeline is fixed.

I did see the problem in some that have not moved over to my NAS yet though.

My Copy Profiles

Code:
transcoder/formats/Copy-MP4\ Move\ Play=f\=mp4;[bf\=vid;f\=copy;][bf\=aud;f\=copy;]
transcoder/formats/Copy-MPG\ Move\ Play=f\=dvd;MCompressionDetails\=-target dvd;[bf\=vid;f\=copy;][bf\=aud;f\=copy;]
transcoder/formats/Copy-avi\ Move\ Play=f\=avi;[bf\=vid;f\=copy;][bf\=aud;f\=copy;]
__________________
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; 06-16-2009 at 01:18 PM.
  #192  
Old 06-16-2009, 01:43 PM
rsagetv99's Avatar
rsagetv99 rsagetv99 is offline
Sage Fanatic
 
Join Date: Nov 2004
Posts: 766
Now you tell me!

Pretty cool though, might be a good workaround to the problem. I don't really understand the syntax of the command, but is there a way to use the Transcode to just rename the file without moving it - and still get Sage to recreate the timeline?

I was actually thinking of creating a SJQ job that would rename my movies recorded by Sage to the title of the show (rather than title+numbers) so I could process them with mediascraper.
  #193  
Old 06-18-2009, 09:19 AM
rsagetv99's Avatar
rsagetv99 rsagetv99 is offline
Sage Fanatic
 
Join Date: Nov 2004
Posts: 766
Quote:
This is how I run MediaShrink in SJQ.
Code:
PENG512MP4 {
:CPU BELOWNORMAL
:MAX 1
  "S:\\vrdnbencode\\penguin\\mediaShrink.exe \"%c%\" /inPlace /divx /cutComm /cliBitrate 1000 /onePass /horizontalScale 512 /mp4 /savelog"
}
Hmm, I was just thinking... Nplayer, maybe you are able to run mediashrink directly because you are specifying /divx /mp4, which may cause mediashrink to not use Handbrake (guessing). Can you check to see if your logs show that your files are getting encoded with Handbrake?
  #194  
Old 06-18-2009, 09:30 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Make sure you have the correct path where mediashrink is.

You have to change this part S:\\vrdnbencode\\penguin.

Where do you have your mediashrink?

Post your full job in your client you can copy and paste it.

It always uses handbrake
__________________
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; 06-18-2009 at 09:36 AM.
  #195  
Old 06-18-2009, 09:44 AM
rsagetv99's Avatar
rsagetv99 rsagetv99 is offline
Sage Fanatic
 
Join Date: Nov 2004
Posts: 766
Code:
SHRINK {
   :MAX 1
   :CPU "BELOWNORMAL"
  "C:/sjqc/shrink/mediashrink.exe \"%c%\" /defaultProfile autoEncode /forceMencoder /onePass /inPlace savelog" 
}
The process starts, but dies before it gets to 3%. The log shows Handbrake reporting "Encoding Quit by user command", and then later in the log "! Error reported from profile file: No Audio or Video".
  #196  
Old 06-18-2009, 09:56 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
First you should double // the path. Also you are forcing to use mencoder. I believe there is a bug in mediashrink using mencoder that you have to include the number of cpu's in yor command line. I believe something like this /CPUs 1

"C://sjqc//shrink//mediashrink.exe \"%c%\" /defaultProfile autoEncode /forceMencoder /onePass /inPlace /CPUs 1"


see thread
http://forums.sagetv.com/forums/show...8&postcount=94
__________________
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; 06-18-2009 at 10:06 AM.
  #197  
Old 06-18-2009, 10:10 AM
rsagetv99's Avatar
rsagetv99 rsagetv99 is offline
Sage Fanatic
 
Join Date: Nov 2004
Posts: 766
Quote:
Originally Posted by nyplayer View Post
First you should double // the path. Also you are forcing to use mencoder. I believe there is a bug in mediashrink using mencoder that you have to include the number of cpu's in yor command line. I believe something like this /CPUs 1

"C://sjqc//shrink//mediashrink.exe \"%c%\" /defaultProfile autoEncode /forceMencoder /onePass /inPlace /CPUs 1"
Sorry, I forgot to take that out, I added the /forceMencoder switch to see if Handbrake was the problem.
When I got the error however, it was without the /forceMencoder switch. I have tried all kinds of switches, including the ones you gave, but I always get the errors I described when it transcodes with Handbrake.
  #198  
Old 06-18-2009, 10:45 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Your example has a wrong switch (savelog should be /savelog) and your path should be double slashed. If you do not want the log .. remove the savelog totally.


Code:
SHRINK {
   :MAX 1
   :CPU "BELOWNORMAL"
  "C:/sjqc/shrink/mediashrink.exe \"%c%\" /defaultProfile autoEncode /forceMencoder /onePass /inPlace savelog" 
}
Should look like this if using autoencode defaults.
Code:
SHRINK {
   :MAX 1
   :CPU "BELOWNORMAL"
  "C:\\sjqc\\shrink\\mediashrink.exe \"%c%\" /onePass /inPlace /savelog" 
}
__________________
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; 06-18-2009 at 10:48 AM.
  #199  
Old 06-18-2009, 10:53 AM
rsagetv99's Avatar
rsagetv99 rsagetv99 is offline
Sage Fanatic
 
Join Date: Nov 2004
Posts: 766
And I don't think I am having the issue you listed in the thread you linked, since I get mencoder was able to detect my CPU. Also, mencoder does not quit instanly, the way the OP describes.

Code:
2009/06/18 08:22:23.880	################# mencoder.exe Output EncodePass_1 ###############
2009/06/18 08:22:23.880	MEncoder Sherpya-SVN-r28311-4.2.5 (C) 2000-2009 MPlayer Team
2009/06/18 08:22:23.880	CPU: AMD Sempron(tm) Processor 3400+ (Family: 15, Model: 47, Stepping: 2)
2009/06/18 08:22:23.880	CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
2009/06/18 08:22:23.880	Compiled with runtime CPU detection.
  #200  
Old 06-18-2009, 11:04 AM
rsagetv99's Avatar
rsagetv99 rsagetv99 is offline
Sage Fanatic
 
Join Date: Nov 2004
Posts: 766
Quote:
Originally Posted by nyplayer View Post
Your example has a wrong switch (savelog should be /savelog) and your path should be double slashed. If you do not want the log .. remove the savelog totally.


Code:
SHRINK {
   :MAX 1
   :CPU "BELOWNORMAL"
  "C:/sjqc/shrink/mediashrink.exe \"%c%\" /defaultProfile autoEncode /forceMencoder /onePass /inPlace savelog" 
}
Should look like this if using autoencode defaults.
Code:
SHRINK {
   :MAX 1
   :CPU "BELOWNORMAL"
  "C:\\sjqc\\shrink\\mediashrink.exe \"%c%\" /onePass /inPlace /savelog" 
}
Another typo, but I had it right when I tried without the /forceMencoder flag.

I'll try your command-line to see if it makes a diff, but according to the SJQ doc, \\ and / are the same thing. Also, I'm pretty sure I tried it with \\ and it still got the error.
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 09:59 AM.


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