NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 48 49 50 51 52 … 1231 Next »
Audio out of sync when converted to h.264

 
  • 0 Vote(s) - 0 Average
Audio out of sync when converted to h.264
cisasteelersfan
Offline

Junior Member

Posts: 9
Threads: 3
Joined: Sep 2009
#1
2010-02-02, 02:27 AM
I have tried HDTV2MPEG2 and iFrame. They cut the commercials fine (no audio sync issues), but when I convert that file to h.264 (for my iPod) the audio ends up out of sync. This happens every single time I try to convert, doesn't matter what converter I use. Is this the fault of HDTV2MPEG2? Or is it the fault of the video converters?

Any ideas are appreciated.
cisasteelersfan
Offline

Junior Member

Posts: 9
Threads: 3
Joined: Sep 2009
#2
2010-02-02, 12:43 PM
I've done some digging around in other forums and it sounds like I have an audio drift. Does anyone know how to correct this? Should I use a different setting when recording in GBPVR?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,661
Threads: 767
Joined: Nov 2003
#3
2010-02-02, 03:09 PM
cisasteelersfan Wrote:Does anyone know how to correct this? Should I use a different setting when recording in GBPVR?
There is unlikely to be any setting in GB-PVR that would make any difference to this. Digital recordings are just an exact copy of what your broadcaster transmitted. Any fix would more likely be in HDTV2MPEG2 or iFrame, or through switching to some alternate software for this same job.
raceviper13
Offline

Junior Member

UA
Posts: 33
Threads: 4
Joined: Jun 2007
#4
2010-02-02, 08:50 PM
I know exactly what you're running into. It's at the breaks that HDTV2MPEG2 breaks the audio sync. Mencoder is the only program that can take an edited HDTV2MPEG2 stream and keep the synchronization throughout the conversion process, but it's h264 creation leaves a lot to be desired compared to x264. If you want, apparently VideoReDo keeps sync after cutting commercials, but it's not free. Here is my solution (free):
1. cut commercials using HDTV2MPEG2.
2. demux audio from video using ProjectX (get the latest build at http://oozoon.de/main_en.html) ProjectX is the magic here. It will demux the audio and video into two separate files that can be processed independently. The cool part is that it keeps the sync between both files.
3. use DGMPGDec to create valid d2v file from demuxed video file to input into Avisynth. (get it at http://neuron2.net/dgmpgdec/dgmpgdec.html).
4. create avisynth file and load into x264 (output to mkv or else you may encounter problems).
5. convert AC3 (if desired) into AAC using BeSweet.
6. mux audio and video into mkv using mkvtoolnix (mkvmerge).

I have a smart batch file I use to automatically crop the video and it has options for scaling and ivtc conversion to film and PAL.

If you have any questions, please let me know.
cisasteelersfan
Offline

Junior Member

Posts: 9
Threads: 3
Joined: Sep 2009
#5
2010-02-02, 09:42 PM
Sweet Raceviper! Thanks so much for the reply. I'll try the instructions and get back to you.
cisasteelersfan
Offline

Junior Member

Posts: 9
Threads: 3
Joined: Sep 2009
#6
2010-02-02, 11:52 PM
Sorry I'm such a noob. I demuxed the audio alright with Project X. I used DGMPGDec and got a d2v file. How do I import it to avisynth? How do I load into x264? Detailed, step-by-step instructions are best. Sorry I'm a n00b
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#7
2010-02-03, 01:30 PM (This post was last modified: 2010-02-03, 02:08 PM by pBS.)
that's a sign of a bad cutter, it's not redoing the timeline where it cuts...
and mencoder can actually use the x264 codec if you set it up..
but really it's about the cuts, they must be done right or you have to go thru all this..
videoredo can cut them correctly, as well as a couple others..
progs that cut on i-frames will produce perfect cuts everytime...otherwise need complete re-encode..
i believe mpgtx cuts on gop so would produce good cuts on mpeg2..

or you can cut it like you wish and just remux it after to fix the timeline...retime does this well, or i believe ffmpeg actually can, or any demux/mux combo..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
raceviper13
Offline

Junior Member

UA
Posts: 33
Threads: 4
Joined: Jun 2007
#8
2010-02-03, 07:29 PM
for avisynth, here is a representative script (Thomas & Friends - Determination.avs) for a file of mine that is transcoding right now:

----------------
LoadPlugin("C:\Program Files (x86)\DGMPGDecode\DGDecode.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\TIVTC.dll")
MPEG2Source("C:\TEMP\Thomas & Friends - Determination.d2v")
TFM(d2v="C:\TEMP\Thomas & Friends - Determination.d2v")
BilinearResize(960, 720, 256, 8, -259, -13)
----------------

FYI, TIVTC will deinterlace for you (or film conversion if needed)

Then you load the script right into x264:

START "x264" /B /LOW /WAIT "C:\Program Files (x86)\x264\x264.exe" --tune ssim --partitions p8x8,b8x8,i8x8,i4x4 --bframes 2 --ref 4 --me hex --subme 4 --mixed-refs --crf 23 --nr 0 --threads 0 --thread-input --output "D:\Converted\Thomas & Friends - Determination.mkv" "C:\TEMP\Thomas & Friends - Determination.avs"

you would replace "Thomas & Friends - Determination" with whatever you want.

as for making an iPod video, I don't know the specific settings in x264 for that.

as for pBS, yes you are correct, HDTV2MPEG2 is a bad cutter, but is free and I've figured out how to get around the problems. Mencoder and ffmpeg have given me fits so much I had to abandon them completely.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Audio buzzing second time recording launched. dennit 2 4,514 2012-12-09, 11:28 PM
Last Post: dennit
  Help wih AAC audio Pob 14 9,346 2012-07-03, 04:23 AM
Last Post: SLR_65
  HVR-1950 Audio Distortion Paul D. Bellamy 0 1,752 2011-09-06, 02:36 PM
Last Post: Paul D. Bellamy
  GB-PVR + LAVF Audio decoder (DVD) hoborg 0 1,848 2011-04-06, 04:15 PM
Last Post: hoborg
  mkv embedded subtitles and audio tracks jam_zhou 10 4,212 2010-11-23, 05:05 PM
Last Post: hoborg
  Descriptive Audio Service Question mikeh49 3 3,099 2010-10-21, 10:49 PM
Last Post: sub
  Skip forward during playback freezes video then audio smiffypr 3 2,780 2010-10-19, 12:46 AM
Last Post: smiffypr
  Audio bit rate. brianj 2 1,779 2010-09-03, 11:38 AM
Last Post: brianj
  Digital TV Audio - Is AC3 better? NICAM - How do I get Track1 to Track2 ? jksmurf 9 3,119 2010-08-27, 04:17 PM
Last Post: sub
  Problem with audio on livetv play, but not in recording? hexibot43 3 2,089 2010-07-10, 03:24 PM
Last Post: hexibot43

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode