SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV v7 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 7 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 7 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #961  
Old 04-07-2014, 10:09 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
I use SJQv4 to kick off a Handbrake process to automatically encode all kids shows to MP4 format and store in a folder based off of the show name. It works well but requires some CPU resources.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #962  
Old 04-07-2014, 01:06 PM
mkanet's Avatar
mkanet mkanet is offline
SageTVaholic
 
Join Date: Feb 2004
Posts: 3,359
Sorry for the off-topic response; but, I couldn't help but think... what kind of a media playback device that doesn't support cableTV and ATSC OTA recordings? I did a quick search on google; but didn't see anything that suggests that (except for a couple of old forum posts).

If you do decide to add yet another generation of re-encoding (H.264) to already very-compressed cableTV media files; you may consider NOT to delete your "original quality" mpeg2 recordings after you convert it to H.264 (keeping two copies). That way, all your software and hardware that do support mpeg2 (such as PLEX and SageTV clients) wont be unnecessarily limited to the lower quality re-encoded files media files you make. This is especially true when also trying to stream these media files to PLEX/SageTV clients; where their transcoders will re-encode yet again for a 3rd time.

For all your high bitrate mpeg2 files (such as untouched 19.2Mbps ATSC encoding), adding a subsequent 2nd (or even 3rd generation re-encoding for streaming) should still be acceptable video quality; especially on portable devices.

Quote:
Originally Posted by bialio View Post
Is there a 'defacto standard' utility that does a good job converting HDHR (ie mpg2) into a format that is more Roku friendly (ie h264)?

I've never had much luck transcoding. But I think it's almost to the inevitable point now - I'm growing weary of switching between sage extenders and roku/plex clients...

btl.
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming

***RIP SageTV***
Reply With Quote
  #963  
Old 04-07-2014, 01:18 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by mkanet View Post
Sorry for the off-topic response; but, I couldn't help but think... what kind of a media playback device that doesn't support cableTV and ATSC OTA recordings? I did a quick search on google; but didn't see anything that suggests that (except for a couple of old forum posts).

If you do decide to add yet another generation of re-encoding (H.264) to already very-compressed cableTV media files; you may consider NOT to delete your "original quality" mpeg2 recordings after you convert it to H.264 (keeping two copies). That way, all your software and hardware that do support mpeg2 (such as PLEX and SageTV clients) wont be unnecessarily limited to the lower quality re-encoded files media files you make. This is especially true when also trying to stream these media files to PLEX/SageTV clients; where their transcoders will re-encode yet again for a 3rd time.

For all your high bitrate mpeg2 files (such as untouched 19.2Mbps ATSC encoding), adding a subsequent 2nd (or even 3rd generation re-encoding for streaming) should still be acceptable video quality; especially on portable devices.
Not all Plex clients can playback MPEG2 or interlaced H.264. Most ARM devices such as Android phones/tablets are very poor at decoding or don't have the correct CODEC capabilities. I have a Raspberry Pi that I've been toying with as a Plex client and while it will play MPEG2 video it can't seem to deinterlace the video. It also has a problem with my interlaced HDPVR recordings. They play too slowly and they are not deinterlaced. When I had a Nexus 7 I tried repeatedly to get it to play non-trancoded video but nothing would work properly. That is the reason I finally settled on Plex. But I also don't pre-transcode stuff. Everything is in it's "raw" state until Plex does its thing.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD

Last edited by Taddeusz; 04-07-2014 at 01:28 PM.
Reply With Quote
  #964  
Old 04-07-2014, 01:20 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
And iDevices don't play MPEG-2 natively either.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #965  
Old 04-07-2014, 01:37 PM
bialio's Avatar
bialio bialio is offline
SageTVaholic
 
Join Date: May 2007
Location: Frisco, TX
Posts: 3,445
Roku doesn't support mpeg2 encoded video. Neither does the new amazon FireTV. In my use case it's the uncompressed ATSC encoding that I want to move over to h264 so that these devices can play it back.

Ideally I want to not have the PLEX MS doing on the fly transcoding of my recorded TV content.
btl.
__________________
PHOENIX 3 is here!
Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient
Reply With Quote
  #966  
Old 04-07-2014, 02:14 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by bialio View Post
Roku doesn't support mpeg2 encoded video. Neither does the new amazon FireTV. In my use case it's the uncompressed ATSC encoding that I want to move over to h264 so that these devices can play it back.

Ideally I want to not have the PLEX MS doing on the fly transcoding of my recorded TV content.
btl.
I personally don't see what's wrong with on-the-fly transcoding as long as you have a machine that is up to the task. For me processing power is much cheaper than storage. My Plex is running on a decent quad core. I don't want to delete the originals for the times that we watch through SageTV at home. I have enough media that I would need to purchase more drives to keep lower quality duplicates. Leveraging the processing power I already have with Plex's sync feature gives me great flexibility. I can prepare stuff I know I will watch on my iPad and still have the ability to stream everything else on-the-fly.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #967  
Old 04-07-2014, 02:41 PM
bialio's Avatar
bialio bialio is offline
SageTVaholic
 
Join Date: May 2007
Location: Frisco, TX
Posts: 3,445
I don't like having to wait for seek and skipping. Which on the fly transcoding seems to introduce.
__________________
PHOENIX 3 is here!
Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient
Reply With Quote
  #968  
Old 04-07-2014, 02:51 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by bialio View Post
I don't like having to wait for seek and skipping. Which on the fly transcoding seems to introduce.
That is a bit annoying. That's the reason I started using sync for stuff that I know I will be watching remotely.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #969  
Old 04-07-2014, 03:40 PM
bialio's Avatar
bialio bialio is offline
SageTVaholic
 
Join Date: May 2007
Location: Frisco, TX
Posts: 3,445
On an unrelated note, I see some media durations in PLEX from sage recordings that are Whack. One file had an 18 minute duration, but it was 1:04:00 in reality. Then another 1:04:00 had a 3:26:xx duration.

I'm seeing this from the iOS plex app.
__________________
PHOENIX 3 is here!
Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient
Reply With Quote
  #970  
Old 04-08-2014, 08:10 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by bialio View Post
On an unrelated note, I see some media durations in PLEX from sage recordings that are Whack. One file had an 18 minute duration, but it was 1:04:00 in reality. Then another 1:04:00 had a 3:26:xx duration.

I'm seeing this from the iOS plex app.
The best solution i have found for transcoding is using MCEBuddy. I persoally just let Plex transcode on the fly, but I def. understand your frustration with the buffering. I would try out MCEBuddy or DVRMSToolbox. I have also found that the built in SageTV Transcoder for Apple TV Widescreen is quite good.
Reply With Quote
  #971  
Old 04-09-2014, 11:54 AM
wildgoose wildgoose is offline
Sage Advanced User
 
Join Date: Jan 2010
Location: CA
Posts: 156
TV Image not downloaded?

I just installed sagetv for plex by following the direction here:
http://code.google.com/p/sagetv-for-...allingAndUsing

All my TV recordings are imported in correctly. Shows are correctly grouped under name/season/etc.. Show/episode detail also shows up correctly for I think most of them.

But, none of the image shows up.

Anyone know what's going on? Thanks!
Reply With Quote
  #972  
Old 04-09-2014, 12:18 PM
mkanet's Avatar
mkanet mkanet is offline
SageTVaholic
 
Join Date: Feb 2004
Posts: 3,359
Yes, that sounds like the same issue some of us are having; including me. There isn't a fix for this issue yet. Hopefully soon.

Quote:
Originally Posted by wildgoose View Post
I just installed sagetv for plex by following the direction here:
http://code.google.com/p/sagetv-for-...allingAndUsing

All my TV recordings are imported in correctly. Shows are correctly grouped under name/season/etc.. Show/episode detail also shows up correctly for I think most of them.

But, none of the image shows up.

Anyone know what's going on? Thanks!
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming

***RIP SageTV***
Reply With Quote
  #973  
Old 04-09-2014, 12:42 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by PiX64 View Post
The best solution i have found for transcoding is using MCEBuddy. I persoally just let Plex transcode on the fly, but I def. understand your frustration with the buffering. I would try out MCEBuddy or DVRMSToolbox. I have also found that the built in SageTV Transcoder for Apple TV Widescreen is quite good.
MCEBuddy now handles SageTV recordings quite nicely as long as you have a valid properties file. I use CMT to generate the properties file then I have mcebuddy transcode rename and move to a NAS using the proper Plex naming conventions. I also have it rename all my recordings in place. So all my recordings are properly named.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #974  
Old 04-09-2014, 07:02 PM
wildgoose wildgoose is offline
Sage Advanced User
 
Join Date: Jan 2010
Location: CA
Posts: 156
Quote:
Originally Posted by mkanet View Post
Yes, that sounds like the same issue some of us are having; including me. There isn't a fix for this issue yet. Hopefully soon.
Anyone know what the issue is? Is this a bug in the sage side of things, or the plex side? If plex side then I know a little bit of python so maybe I can tweak the python code to make it work?
Reply With Quote
  #975  
Old 04-10-2014, 07:21 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by nyplayer View Post
MCEBuddy now handles SageTV recordings quite nicely as long as you have a valid properties file. I use CMT to generate the properties file then I have mcebuddy transcode rename and move to a NAS using the proper Plex naming conventions. I also have it rename all my recordings in place. So all my recordings are properly named.
thats right, I remember you emailing me about that. I totally forgot about it with everything going on... Ill have to check it out.

What setting are you using in MCEBuddy for transcode? custom or did the dev add a new one for roku?
Reply With Quote
  #976  
Old 04-10-2014, 07:23 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by wildgoose View Post
Anyone know what the issue is? Is this a bug in the sage side of things, or the plex side? If plex side then I know a little bit of python so maybe I can tweak the python code to make it work?
There is no garauntee that this is the same issue mkanet is having. I have seen this issue before and there have been various fixes for it on my side. I am continuing to look into mkanets issue but have had some family emergencies (like real ER emergencies) come up in the past week.

IF you would please, PM me and I will give you my email address. I will provide you with instructions, and an updated file with better logging. I would then need the log files emailed back to me. Its important to follow the steps i give you as close as possible. thanks!
Reply With Quote
  #977  
Old 04-14-2014, 09:57 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Can the scanner be limited only to shows that have finished recording? I ask because last night I was recording the new Cosmos. Apparently it did a scan during the show. Because I have Plex set to automatically sync all unwatched episodes to my iPad it proceeded to transcode it and ended up getting only 27min of the show on my iPad. Had to stream the rest.

Usually this isn't a problem but because I've been keeping all the Cosmos episodes it's able to actually track everything I've watched. Apparently Plex isn't smart enough to keep track of shows of the same name that come and go however.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #978  
Old 04-15-2014, 07:03 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by Taddeusz View Post
Can the scanner be limited only to shows that have finished recording? I ask because last night I was recording the new Cosmos. Apparently it did a scan during the show. Because I have Plex set to automatically sync all unwatched episodes to my iPad it proceeded to transcode it and ended up getting only 27min of the show on my iPad. Had to stream the rest.

Usually this isn't a problem but because I've been keeping all the Cosmos episodes it's able to actually track everything I've watched. Apparently Plex isn't smart enough to keep track of shows of the same name that come and go however.
the only way would be to fiddle with the scanning time. in plex you can have it scan on an interval, or "watch" the folder and scan everytime it sees a change. There is no way to exclude "currently recording shows" from plex scanning. Plex doesn't care if its a growing file, just that it is in fact a file you want scanned into the library.


MKANET and wildgoose - you guys are in fact having the same issue which is related to a Java exception being returned by GetAbsoluteFilePath. I will be working on this again this week. Things have slowed down with the family crisis and I have some time now to look. hopefully will have some answers soon. Would you guys be willing to test fixes out for me? If so send me an email.
Reply With Quote
  #979  
Old 04-15-2014, 07:29 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by PiX64 View Post
the only way would be to fiddle with the scanning time. in plex you can have it scan on an interval, or "watch" the folder and scan everytime it sees a change. There is no way to exclude "currently recording shows" from plex scanning. Plex doesn't care if its a growing file, just that it is in fact a file you want scanned into the library.
Maybe I don't understand how the scanner works but can you not limit the retrieval of metadata only to recordings that are completed?
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #980  
Old 04-15-2014, 07:55 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by Taddeusz View Post
Maybe I don't understand how the scanner works but can you not limit the retrieval of metadata only to recordings that are completed?
The scanner itself is a very basic animal. IT simply scans physical files and adds them to the plex media stack for metadata retriveal by an Agent. In this case, we have to access the sagex in order to retrieve the basic metadata needed by plex to add an item to the stack i.e. ShowName, Episode Name, Season Number, Episode Number, Year. This information is not contained for the most part in the filename which is why built in Plex Scanner doesn't fit the bill. You could probably modify the scanner in such a way which it would not only grab the necessary metadata to add the media item to the stack, but also check the CurrentlyRecording. If it is yes, then skip the file. the issue with this is that it would be fixing a specific use case and most likely caused undesirable effects for others.

1) if library is set to update every time folder changes, this could cause continuous scanning during a recording (major slow down of plex)
2) other people like myself like the shows to show up immediately when the recording starts, and update the metadata upon the completion of the show. (I personally don't use syncing of items on a regular basis)
3) I am not certain that plex will handle this gracefully. Theoretically it should scan the file, realize code has chosen NOT to add it to the stack, and then upon next scan add it if CurrentlyRecording == False
4) This is essentially the same thing has scheduling a scan to occur periodically throughout the day (I realize there are edge cases where you have a scan set for say 12:00 AM and you decide to record a show at 12:00 AM one night.. well the same issue you are reporting, would happen again.
5) I thought there was an option to say only sync when or sync at xyz time.. but i could be wrong.
6) It may work but it will force other users to not have upto date info in plex SageTV recordings library section because i am insiting that an item only be added in the event that it isn't recording.... If the general concesus is that this doesn't matter, then it may be worth making the change.
Reply With Quote
Reply


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
Comparing to Plex heffneil Batch Metadata Tools 20 01-08-2012 04:54 PM
Need help with SJQv4 remote agent coppit SageTV v7 Customizations 4 12-19-2010 11:03 AM
Plex in a TV? What about sage? rwc General Discussion 9 09-05-2010 04:38 PM
Possible to get SageTV to handle my library more like Plex? DAMAC SageTV Mac Edition 0 06-10-2009 10:33 AM
SagetTVService Virus Win32.Agent.dwo Ponchera SageTV Software 6 02-04-2008 06:33 PM


All times are GMT -6. The time now is 07:09 PM.


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