SageTV Community  

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

Notices

SageTV Media Extender Discussion related to any SageTV Media Extender used directly by SageTV. Questions, issues, problems, suggestions, etc. relating to a SageTV supported media extender should be posted here. Use the SageTV HD Theater - Media Player forum for issues related to using an HD Theater while not connected to a SageTV server.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-28-2015, 12:50 PM
tvmaster2's Avatar
tvmaster2 tvmaster2 is offline
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
handbrake conversions out of sync via hd300

I convert hdpvr and colossus recordings to mp4 for archive purposes. I use their default setup for audio, which creates a stereo mix down as the first audio track, and a ac3 pass thru track, usually 5.1, as a second audio track.
When viewing thru my HD300 media extender, the 5.1 audio track is out of sync. But it's not out of sync when viewing on the PC it was created on.
Does anyone know why this would be?
Thanks.
__________________
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
  #2  
Old 12-28-2015, 07:49 PM
troycheek's Avatar
troycheek troycheek is offline
Sage Advanced User
 
Join Date: Feb 2008
Posts: 148
Have you tried converting a few minutes from the middle of the video to see if the problem is also present? Back when I started having A/V sync problems with HandBrake (going from version 0.9.3 to 0.9.4), I noticed that it was only in videos that I converted from start to end. If I skipped the first second (or two or three in some cases) of the video, the sync was fine. My "theory" is that there's something wrong with the first packet in the stream and skipping it clears up the problem.
Reply With Quote
  #3  
Old 12-28-2015, 09:42 PM
tvmaster2's Avatar
tvmaster2 tvmaster2 is offline
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
Quote:
Originally Posted by troycheek View Post
Have you tried converting a few minutes from the middle of the video to see if the problem is also present? Back when I started having A/V sync problems with HandBrake (going from version 0.9.3 to 0.9.4), I noticed that it was only in videos that I converted from start to end. If I skipped the first second (or two or three in some cases) of the video, the sync was fine. My "theory" is that there's something wrong with the first packet in the stream and skipping it clears up the problem.
I'll try that. However, I usually trim the .ts file heads and tails with VideoReDo, especially from premium movie channels. Then, I convert with Handbrake. So that should eliminate the problem you've mentioned. How did you "skip" time before converting?
__________________
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
  #4  
Old 12-28-2015, 11:54 PM
troycheek's Avatar
troycheek troycheek is offline
Sage Advanced User
 
Join Date: Feb 2008
Posts: 148
Using the CLI version of HandBrake, add the parameter "--start-at duration:1" to skip the first second. Using the GUI, in the Source area of the main screen (where it says Title, Angle, etc), change the dropdown "Chapters" to "Seconds" and set the next setting to 00:00:01. Change "1" to however many seconds you want to skip. 1 usually works for me, but a program called MCEBuddy defaults to 3 and suggests going as high as 30.

Edit: I did a little research. What I called a packet is apparently a GOP or Group of Pictures which contains a collection of I, P, and B frames. VideoReDo defaults (or at least the version I just installed defaults) to cutting at the frame accurate (FA) level. "When to use GOP or FA mode? For most people, FA mode is best. Its more accurate, therefore your cuts will appear exactly where you want them. However, to create frame accurate cuts without re-encoding your entire file, VideoReDo has to create shortened GOPs at the cut points. Some programs might not like the shortened GOPs even though they are MPEG2 compliant. If you come across such a program, then switch to GOP mode." In VideoReDo, look under Tools, Options..., General Parameters, Editing Accuracy. I suggest changing that and seeing if it makes any difference.

Edit edit: Been playing around with VideoReDo trial versions a bit. Using TVSuite was able to create a H.264 MP4 file with A/V sync issues after the first cut when played back in VLC Media Player and Windows Media Player. (Ironically, this was in GOP mode. In FA mode the resulting output plays fine.) Have you tried encoding a problem video with HandBrake without cutting it with VideoReDo first?

Last edited by troycheek; 12-29-2015 at 02:10 AM.
Reply With Quote
  #5  
Old 12-29-2015, 12:52 AM
tvmaster2's Avatar
tvmaster2 tvmaster2 is offline
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
Quote:
Originally Posted by troycheek View Post
Using the CLI version of HandBrake, add the parameter "--start-at duration:1" to skip the first second. Using the GUI, in the Source area of the main screen (where it says Title, Angle, etc), change the dropdown "Chapters" to "Seconds" and set the next setting to 00:00:01. Change "1" to however many seconds you want to skip. 1 usually works for me, but a program called MCEBuddy defaults to 3 and suggests going as high as 30.

Edit: I did a little research. What I called a packet is apparently a GOP or Group of Pictures which contains a collection of I, P, and B frames. VideoReDo defaults (or at least the version I just installed defaults) to cutting at the frame accurate (FA) level. "When to use GOP or FA mode? For most people, FA mode is best. Its more accurate, therefore your cuts will appear exactly where you want them. However, to create frame accurate cuts without re-encoding your entire file, VideoReDo has to create shortened GOPs at the cut points. Some programs might not like the shortened GOPs even though they are MPEG2 compliant. If you come across such a program, then switch to GOP mode." In VideoReDo, look under Tools, Options..., General Parameters, Editing Accuracy. I suggest changing that and seeing if it makes any difference.

As an aside, I'd never used VideoReDo before. It's pretty neat and certainly beats loading up a full-blown video editing suite just to cut out a few commercials. I might have to try this on a serious project in the future.
thanks again. VRD is quite nice, and it works with TiVo files as well, which really makes it useful. it's getting more complex and well rounded. If it's recoding didn't take as long (handbrake is much faster), then I wouldn't use Handbrake nearly as much. Since I almost always recode down to a smaller file size, rendering eats up a lot of time
__________________
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

Last edited by tvmaster2; 12-29-2015 at 12:56 AM.
Reply With Quote
  #6  
Old 12-29-2015, 09:56 AM
poto poto is offline
Sage User
 
Join Date: May 2013
Location: 29349
Posts: 46
I have had similar a/v sync problems with handbrake mpg/ts>mp4 conversions, although infrequently. I use VRD "Quick Stream Fix" to pre-process before sending to Handbrake, found this to eliminate sync issues.
Reply With Quote
  #7  
Old 12-29-2015, 10:12 AM
tvmaster2's Avatar
tvmaster2 tvmaster2 is offline
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
Quote:
Originally Posted by poto View Post
I have had similar a/v sync problems with handbrake mpg/ts>mp4 conversions, although infrequently. I use VRD "Quick Stream Fix" to pre-process before sending to Handbrake, found this to eliminate sync issues.
thanks, I'll give that a whirl. What I don't understand is why the stereo mix would be fine, but the 5.1 track would be nearly 1/3 second off
__________________
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
  #8  
Old 12-29-2015, 07:38 PM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is offline
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
Please report back if Quickstream Fix alone completely resolves the issue.

I use "VAP" which automates the workflow that you appear to be doing manually (and uses VideoRedo in the process, allowing you to quickstream fix all files). And it does a bunch of other handy stuff.

http://www.videoredo.net/msgBoard/fo...cessor-Program
Reply With Quote
  #9  
Old 12-29-2015, 07:40 PM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is offline
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
If quickstream fix alone doesn't resolve the issue, report back on what you are using for Handbrake encoding parameters. I assume the original TS file doesn't exhibit this problem when played on the HD300 without any alteration.
Reply With Quote
  #10  
Old 12-29-2015, 10:58 PM
tvmaster2's Avatar
tvmaster2 tvmaster2 is offline
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
Quote:
Originally Posted by KryptoNyte View Post
If quickstream fix alone doesn't resolve the issue, report back on what you are using for Handbrake encoding parameters. I assume the original TS file doesn't exhibit this problem when played on the HD300 without any alteration.
not usually, but the original .ts file has only one audio stream, the one created when recorded. Handbrake is adding the mix down track as the primary track, and a 5.1 track as a secondary track.
__________________
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
  #11  
Old 12-30-2015, 08:00 PM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is offline
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
Let us know which version of VideoRedo you're using. On a sidenote, it's 55 bucks on sale right at the moment for V5. I recall paying nearly 100 bucks for version 4 with h.264 capabilities a while back. I cringed to pay that much for this software, but in hindsight, it has been the perfect tool for modifying TV program streams.
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
Handbrake Bluray and playing on HD300 mayhewda SageTV Software 3 12-23-2013 08:49 PM
HD300 and sync problems, mostly on FX Network phelme SageTV Media Extender 3 11-06-2013 08:29 PM
Converting to MP4 with Handbrake and my audio is out of sync calypsocowboy General Discussion 0 10-24-2011 08:28 PM
HD300 S/PDIF audio out of sync with HDMI video CSCO_TECH SageTV Media Extender 5 01-03-2011 06:38 PM
Audio sync problem with HD300 rdefino SageTV Media Extender 2 01-03-2011 02:36 PM


All times are GMT -6. The time now is 04:31 PM.


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