globaldonkey
15th January 2009, 04:59
I am trying to h.264 encode some VHS captures.
I've captured the video as uncompressed YUY2 with PCM Stereo 48K audio into an avi file using VirtualDubMod.
Now I am trying to encode with MeGUI (encoding with x264 and MP3 audio) and incorporate some rough cuts to the source capture (typically trimming the start and end of the capture). I've used AVS Cutter to generate the cuts for the AVS script and here's an example output:
AVISource("H:\Video\Capture\TISM.avi", audio=false)
Load_Stdcall_Plugin("C:\Program Files\megui\tools\yadif\yadif.dll")
Yadif(order=1)
crop( 0, 6, 0, -8)
LanczosResize(720,560) # Lanczos (Sharp)
Undot() # Minimal Noise
__film = last
__t0 = __film.trim(108, 293)
__t1 = __film.trim(395, 606)
FadeOut(__t0, 0, AudioRate(__film)) ++ FadeIn(__t1, 0, AudioRate(__film))
ConvertToYV12()
The problem I have is that (not surprisingly), without the necessary audio cuts, I end up with a video file that has audio out of sync. if I take the cuts out of the script, everything encodes as expected.
Clearly I need to use the audio cutter. However, the audio cutter in MeGui needs an audio file as it's input, and the process has not generated one. I think I need to split the audio out, but not sure how to do it.
Is this the right way to go about this? In the past I was using VDM to capture and edit, and then using AutoGK to encode to xvid, but that was a two step process that resulted in a large uncompressed interim file, which I was hoping to avoid here. And of course I'd like to start using h.264 for the quality and size. I guess I'm looking for a way to frameserve the whole process so that no large interim files are produced.
Any help appreciated.
I've captured the video as uncompressed YUY2 with PCM Stereo 48K audio into an avi file using VirtualDubMod.
Now I am trying to encode with MeGUI (encoding with x264 and MP3 audio) and incorporate some rough cuts to the source capture (typically trimming the start and end of the capture). I've used AVS Cutter to generate the cuts for the AVS script and here's an example output:
AVISource("H:\Video\Capture\TISM.avi", audio=false)
Load_Stdcall_Plugin("C:\Program Files\megui\tools\yadif\yadif.dll")
Yadif(order=1)
crop( 0, 6, 0, -8)
LanczosResize(720,560) # Lanczos (Sharp)
Undot() # Minimal Noise
__film = last
__t0 = __film.trim(108, 293)
__t1 = __film.trim(395, 606)
FadeOut(__t0, 0, AudioRate(__film)) ++ FadeIn(__t1, 0, AudioRate(__film))
ConvertToYV12()
The problem I have is that (not surprisingly), without the necessary audio cuts, I end up with a video file that has audio out of sync. if I take the cuts out of the script, everything encodes as expected.
Clearly I need to use the audio cutter. However, the audio cutter in MeGui needs an audio file as it's input, and the process has not generated one. I think I need to split the audio out, but not sure how to do it.
Is this the right way to go about this? In the past I was using VDM to capture and edit, and then using AutoGK to encode to xvid, but that was a two step process that resulted in a large uncompressed interim file, which I was hoping to avoid here. And of course I'd like to start using h.264 for the quality and size. I guess I'm looking for a way to frameserve the whole process so that no large interim files are produced.
Any help appreciated.