SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-12-2020, 06:35 PM
xjim1's Avatar
xjim1 xjim1 is offline
Sage Advanced User
 
Join Date: Sep 2010
Location: colorado
Posts: 221
Continuing Handbrake recode saga

On my old system, I would experience several issues with Handbrake recodes. I concluded that an old cpu, lack of memory, and and obsolete OS were not doing me any favors, so I quit using HB.

So now that I have new hardware and software, I figured I'd have better luck, but no such luck.
My first one, while it will play, has no playback control and 00:00 showing on the playback bar. Jumping forward ends video.

It looks like there may be others here who use HB, so I'd like to find out if anyone has playback or other issues after importing them into Sage. Heck, I'd like to know if anyone is successfully using it. Maybe changing tuning parameters might help.
Thanks.
Reply With Quote
  #2  
Old 09-12-2020, 07:09 PM
CptKirk CptKirk is offline
Sage Aficionado
 
Join Date: Sep 2010
Posts: 268
When you say recode do you mean take a show SageTV recorded and then re-encode into a different format?

If so, to what format?

Handbrake has so many settings. You should take a capture of each Handbrake tab so we know what you are doing.

I'm using the latest 1.3.3 Handbrake and I use it all the time to re-encode my ripped DVDs into MP4 files. I've never had a problems playing the MP4s in SageTV. If you want to see what my Handbrake settings are I can post them.
__________________
SageTV running on: Win10 21H2
SageTV 9.2.6.976 (64 bit)
Java 1.8.0 311 (64 bit)
OpenDCT 0.5.32 (64 bit)
Clients: HD300 (x2)
HDHR3-CC Prime 20220822 (Comcast CableCard) - 3 Tuners
HDFX-4K Flex 20220822 (OTA) - 4 Tuners
Reply With Quote
  #3  
Old 09-12-2020, 07:36 PM
xjim1's Avatar
xjim1 xjim1 is offline
Sage Advanced User
 
Join Date: Sep 2010
Location: colorado
Posts: 221
I mainly recode dvd's, but yesterday I tried a Sage recording and got the symptom I mentioned. They're all into mp4. If you wouldn't mind posting the parameters you'd use, maybe snapshots of the Summary and Video tabs, for an HD recording, I'd be appreciative.

Here's a snap from my Summary tab.

Attached Images
File Type: jpg HB Summary NFL.jpg (260.6 KB, 446 views)
Reply With Quote
  #4  
Old 09-12-2020, 08:29 PM
xjim1's Avatar
xjim1 xjim1 is offline
Sage Advanced User
 
Join Date: Sep 2010
Location: colorado
Posts: 221
I did some more digging and see the original recording has two files, a really short one (version 0) and the larger one which is the file I used in HB. So maybe that file had some corruption or something in it at the beginning. I did a test recode from 5-10m into the file and that plays ok. Then I did a second test from the beginning to +10 min and THAT plays ok. Just to ensure my sanity I tried replaying the original 'bad' recode and that's still broken.

I'm going to fire off another full recode after I go to bed and start over. But I'll still take the offer of taking a peek at your params if you're offering.
Reply With Quote
  #5  
Old 09-13-2020, 07:00 AM
NetworkGuy NetworkGuy is offline
Sage Fanatic
 
Join Date: Dec 2009
Location: Central NJ
Posts: 869
I used to use Handbrake all the time. I found a better and faster program I like better. VideoProc.
__________________
Hardware: Intel Core i5-3330 CPU; 8GB (2 x 4GB); 2-4TB WD Blue SATA 6.0Gb/s HDD; Windows 7
Servers: ChannelsDVR, Plex, AnyStream, PlayOn,
Tuner: HDHomeRun Connect Quatro
Tuner: HDHomeRun Connect Duo
Sources: OTA, Sling Blue, Prime, Disney+,
Clients: ShieldTV (2), Fire TV Stick 4K (4)
Reply With Quote
  #6  
Old 09-13-2020, 08:13 AM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is offline
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
Quote:
Originally Posted by xjim1 View Post
I did some more digging and see the original recording has two files, a really short one (version 0) and the larger one which is the file I used in HB. So maybe that file had some corruption or something in it at the beginning. I did a test recode from 5-10m into the file and that plays ok. Then I did a second test from the beginning to +10 min and THAT plays ok. Just to ensure my sanity I tried replaying the original 'bad' recode and that's still broken.

I'm going to fire off another full recode after I go to bed and start over. But I'll still take the offer of taking a peek at your params if you're offering.
With handbrake, testing is usually best done using the "Preview" where you can pick a point somewhere in the video, and have it just work on a couple minutes of the file. That Preview file is then typically saved in the same target directory as you had selected for the full encoded video. You can then use those small snippets Preview files to test with.
Reply With Quote
  #7  
Old 09-13-2020, 08:15 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
This might sound crazy but see if you can change the file date properties of the encoded file to be the same as the original recording file. When the file created time is different that screws stuff up. I will see if I can find posts on this. I use a utility to change the file created time back to when the recording was initially started.
__________________
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
  #8  
Old 09-13-2020, 08:23 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Here are some things to check out: https://forums.sagetv.com/forums/sho...ile%2Acreation
https://forums.sagetv.com/forums/sho...ile%2Acreation

And here is a way to change timestamps:
https://www.ghacks.net/2017/10/09/ho...ws-powershell/

I think I used a touch command for Windows that I found somewhere.
__________________
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
  #9  
Old 09-13-2020, 08:25 AM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is offline
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
Attached are some [manual] settings from a while ago. There are probably better settings to use with the latest versions of Handbrake that are faster and produce better results, but this could be a good base point to get started and see if it works on your system. If the source video is 1080i, then you'll want to deinterlace or decomb it.
Attached Images
File Type: jpg HB1.jpg (49.2 KB, 146 views)
File Type: jpg HB2.jpg (32.8 KB, 144 views)
File Type: jpg HB3.jpg (66.5 KB, 140 views)
File Type: jpg hb4.jpg (39.5 KB, 138 views)
File Type: jpg HB5.jpg (91.9 KB, 143 views)
Reply With Quote
  #10  
Old 09-13-2020, 08:26 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Here is the touch exe file that I used. I had to convert it to zip to upload to the forum.

If you run touch --help it will show you how to use it.

Here is the way that I use it: (the -r command has it use a reference file for the timestamps)

c:\temp\touch.exe Newfile.mp4 -r Oldfile.mpg
Attached Files
File Type: zip touch.zip (16.7 KB, 128 views)
__________________
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

Last edited by wayner; 09-13-2020 at 08:35 AM.
Reply With Quote
  #11  
Old 09-13-2020, 08:44 AM
CptKirk CptKirk is offline
Sage Aficionado
 
Join Date: Sep 2010
Posts: 268
Here's what I'm using for my DVDs. Also exported the preset that I am using with the latest Handbrake v1.3.3. You can import on your side if you want to give it a try.

I have a huge library of my ripped DVDs and queue up 5 or so to convert overnight whenever I remember to do it.
Attached Images
File Type: jpg 1 Summary.jpg (49.7 KB, 140 views)
File Type: jpg 3 Filters.jpg (27.4 KB, 125 views)
File Type: jpg 4 Video.jpg (59.7 KB, 136 views)
File Type: jpg 5 Audio.jpg (35.4 KB, 133 views)
Attached Files
File Type: zip CptKirk Handbrake DVD Preset.zip (1.2 KB, 118 views)
__________________
SageTV running on: Win10 21H2
SageTV 9.2.6.976 (64 bit)
Java 1.8.0 311 (64 bit)
OpenDCT 0.5.32 (64 bit)
Clients: HD300 (x2)
HDHR3-CC Prime 20220822 (Comcast CableCard) - 3 Tuners
HDFX-4K Flex 20220822 (OTA) - 4 Tuners
Reply With Quote
  #12  
Old 09-13-2020, 06:10 PM
xjim1's Avatar
xjim1 xjim1 is offline
Sage Advanced User
 
Join Date: Sep 2010
Location: colorado
Posts: 221
I did another full recode on the recording, and still no playback control. So, small recodes can playback as expected, but recoding the full recording breaks.
I compared recode logs between the sample and full video, and apart from some ac3 audio errors at the beginning, everything is identical.
Maybe Sage player can't handle long videos (3+hrs)?

I probably should mention that the recoded videos are imported into sage as Videos, and play as expected in vlc.

Network Guy: Thanx for the alternative to HB. Right now I'm saving my change for a video file analysis app, which would come in handy about now.

wayner: Thanx for the links and the app! I'll give this a try.

Kryptonyte: I wasn't that familiar w/Preview. That'll save me some time in the future. All previews played as expected in this particular recording. And thanks for the HB params!

And thanx Kirk for the params too! I'll try some variations to see if any make a difference. That'll probably take awhile as recode time's about 5 hrs.
Reply With Quote
  #13  
Old 09-13-2020, 07:38 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
I have had very long videos in excess of 8 hours for Ryder Cup golf. Some of these were OTA and were about 80GB. So length of recordings should not be an issue.

I am pretty sure that your timeline issues for transcoded SageTV recordings is the issue that I highlighted.
__________________
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
  #14  
Old 09-13-2020, 08:32 PM
xjim1's Avatar
xjim1 xjim1 is offline
Sage Advanced User
 
Join Date: Sep 2010
Location: colorado
Posts: 221
Thanks but that didn't work. I started with putting the -r argument on the wrong file. A devil of a time putting it back. Seems 21:30 translates into 10:30 in the Touch command.

I'm trying other HB parameters, but I'm starting to turn cynical on Sage. I even (gasp!) started looking at Kodi and Plex for a library server.
Reply With Quote
  #15  
Old 09-14-2020, 10:23 AM
MattHelm MattHelm is offline
Sage Icon
 
Join Date: Jun 2005
Location: Chicago, IL
Posts: 1,209
I don't use HB on many shows, but a few years ago, I recorded every STtNG off of BBCA, and then re-encoded them with HB.

Like wayner I changed all the date stamps to match, except I did them by hand. Argh!

All these played back just fine. I have had 1 or 2 movies, that for some reason never worked on my HD200, but at least one of those worked fine on the NVIDIA shield using the SageTV client. (same file that would not play on the HD200)
__________________
Server #1= AMD A10-5800, 8G RAM, F2A85-M PRO, 12TB, HDHomerun Prime, HDHR, Colossus (Playback - HD-200)
Server #2= AMD X2 3800+, 2G RAM, M2NPV-VM, 2TB, 3x HDHR OTA (Playback - HD-200)
Reply With Quote
  #16  
Old 09-14-2020, 05:29 PM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is offline
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
I haven't had many video files of *any* kind that didn't play on the HD300, except for h.265 and more current. If it's a problem with playback on the computer, then that's likely a different issue.
Reply With Quote
  #17  
Old 09-14-2020, 10:22 PM
xjim1's Avatar
xjim1 xjim1 is offline
Sage Advanced User
 
Join Date: Sep 2010
Location: colorado
Posts: 221
Well, it only took one beer tonite to realize I have two Sage boxes and to include my old one in my test.

Just to summarize:
Two Sage servers- 9.1 and 9.2
On 9.2:
Recorded NFLgame1. Then converted using Sage's transcoder to turn into a 1080 avi. I have two recordings; nflgame1.mpg and nflgame1.avi. Avi file plays fine as a recording.
Used Handbrake to recode nflgame1.mpg into nflgame1.mp4.
Imported .mp4 as a video into Sage and when played, it would play, but no playback control. 00:00 in playback bar and skipping forward ended video.
Changed timestamp of mp4 file to match mpg file. No change.
Recoded 2nd nfl game(nflgame2) from its original mpg using HB into an mp4 with same results. Also, correctly this time used Touch.exe to correct file timestamps.

On 9.1:
Imported files into Sage. Both mp4 games play as expected, with full playback control and accurate recording time.

I don't know what's going on, but it seems to exonerate HB from the root of the problem. I've reviewed setup options w/in Sage, but, other than the player(both set as sagetvplayer), can't imagine anything affecting playback this way. Contrary thoughts on this welcomed.

I'm trying one last recode on a previous HB version, but for videos, Sage is unfortunately becoming more trouble than it's worth.

EDIT: It took one more beer(ok maybe 2) to try HB on the converted avi file and see what happens.

Last edited by xjim1; 09-14-2020 at 11:30 PM.
Reply With Quote
  #18  
Old 09-21-2021, 11:26 PM
tvmaster2's Avatar
tvmaster2 tvmaster2 is offline
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
Quote:
Originally Posted by xjim1 View Post
Well, it only took one beer tonite to realize I have two Sage boxes and to include my old one in my test.

Just to summarize:
Two Sage servers- 9.1 and 9.2
On 9.2:
Recorded NFLgame1. Then converted using Sage's transcoder to turn into a 1080 avi. I have two recordings; nflgame1.mpg and nflgame1.avi. Avi file plays fine as a recording.
Used Handbrake to recode nflgame1.mpg into nflgame1.mp4.
Imported .mp4 as a video into Sage and when played, it would play, but no playback control. 00:00 in playback bar and skipping forward ended video.
Changed timestamp of mp4 file to match mpg file. No change.
Recoded 2nd nfl game(nflgame2) from its original mpg using HB into an mp4 with same results. Also, correctly this time used Touch.exe to correct file timestamps.

On 9.1:
Imported files into Sage. Both mp4 games play as expected, with full playback control and accurate recording time.

I don't know what's going on, but it seems to exonerate HB from the root of the problem. I've reviewed setup options w/in Sage, but, other than the player(both set as sagetvplayer), can't imagine anything affecting playback this way. Contrary thoughts on this welcomed.

I'm trying one last recode on a previous HB version, but for videos, Sage is unfortunately becoming more trouble than it's worth.

EDIT: It took one more beer(ok maybe 2) to try HB on the converted avi file and see what happens.
Hi, so one year later - what’s going on? Did you find a solution? It seems to be a completely random problem, but one that consistently continues with recoded shows. I’ve tried recoding in HB with three different presets. Preview files play fine, long form film shows 00:00 timeline.
It’s got me beat…
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson
Reply With Quote
  #19  
Old 09-23-2021, 08:29 PM
xjim1's Avatar
xjim1 xjim1 is offline
Sage Advanced User
 
Join Date: Sep 2010
Location: colorado
Posts: 221
I seemed to mainly see this when recoding HD Sage recordings(my only source of HD video). I don't record much on Sage any more, so haven't seen it since last year, save for once (You probably already saw this thread, but I'll cross-post it for anyone else interested.
https://forums.sagetv.com/forums/showthread.php?t=66769).

Never found a solution, and I think this has nothing to do with presets. I'm regularly recoding DVD's w/HB, and, while I run into the usual quirky behavior on imported videos in Sage, never had that specific problem with them.

Since I'm not the only one seeing this now, and with the start of NFL season, I'll try to recode a few recorded games, just to see if I can reproduce it. I guess my workaround is to use VLC, which is a poor substitute.
Reply With Quote
  #20  
Old 09-23-2021, 10:08 PM
trk2 trk2 is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Maine
Posts: 499
This type of behavior can occur if Sage doesn't correctly detect the format of the imported video. Using the format detector plugin and then re-detecting the formats (force_full_content_reindex=true in Sage.properties) would probably fix this if it is the cause.
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
Series Continuing nyplayer Diamond 0 05-14-2011 01:58 PM
MyMovies support continuing PLUCKYHD Sage My Movies 10 09-29-2010 10:36 AM
Digital guide saga: STBs (PVR-500MCE) + QAM (HVR-2250) null_pointer_us Hardware Support 6 05-31-2010 02:40 PM
SAGA-TV Websites in Deutsch ?? Heiko123 SageTV Germany 18 08-04-2006 09:03 AM
more thoughts on PVR-350 sage saga maximumpig SageTV Beta Test Software 53 04-08-2004 06:50 PM


All times are GMT -6. The time now is 11:55 AM.


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