DrNick2
11th March 2008, 00:05
I have a Hauppuage Win TV Nova S2 Satellite card and a few months ago I recorded the whole 5 episodes of 'Mountains' which were shown back to back, in 1080i H.264 (1440x1080 pixels) with a 48kHz uncompressed PCM audio track, for a grand total of 4 hours 58 mins and 2s and 36,572,295 KB. I wish to edit this to create individual episodes and scale down to 1280x720.
I have used DG Index 1.5 to open the file and index it, which also creates a 558,827KB mp2 file with the audio in. I can play this and have checked it has the whole stream, and is the right length.
I tried using the following script, which I open in VirtualDub, select the frames I want and then recompress
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Dgavcdecode\DGAVCDecode.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mpasource\mpasource.dll")
Load_Stdcall_plugin("C:\Program Files\AviSynth 2.5\plugins\yadif\yadif.dll")
video = AVCSource("Mountains.dga")
audio = MPASource("Mountains PID 052 L2 2ch 48 256.mp2", normalize=false)
AudioDub(video, audio)
yadif()
BilinearResize(1280, 720)
This opens fine, but in File information (shown in File Ino 1.png below), the length of the audio track is given as only 1 hr 51.47, and it does indeed cut out after this exact point.
Converting the mp2 file to WAV (using Winamp) and using the following script
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Dgavcdecode\DGAVCDecode.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mpasource\mpasource.dll")
Load_Stdcall_plugin("C:\Program Files\AviSynth 2.5\plugins\yadif\yadif.dll")
video = AVCSource("Mountains.dga")
audio = WAVSource("Mountains PID 052 L2 2ch 48 256.wav")
AudioDub(video, audio)
yadif()
BilinearResize(1280, 720)
seemed to work at first, but the audio then cuts out at 3 hours and 6 minutes, roughly at frame 280,000. I can play both the original recording, the mp2 file and the final .wav file in many applications and none of them cut out or drop out at the points in question.
I'm now just opening the .wav file in virtualdub and not giving an audio stream in avisynth, but I would like to resolve the bug out of interest.
Any thoughts?
Thanks to all whose previous posts have helped me to pick up so much from this forum by the way, I'm a long time lurker, but this is my first post.
Nick.
I have used DG Index 1.5 to open the file and index it, which also creates a 558,827KB mp2 file with the audio in. I can play this and have checked it has the whole stream, and is the right length.
I tried using the following script, which I open in VirtualDub, select the frames I want and then recompress
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Dgavcdecode\DGAVCDecode.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mpasource\mpasource.dll")
Load_Stdcall_plugin("C:\Program Files\AviSynth 2.5\plugins\yadif\yadif.dll")
video = AVCSource("Mountains.dga")
audio = MPASource("Mountains PID 052 L2 2ch 48 256.mp2", normalize=false)
AudioDub(video, audio)
yadif()
BilinearResize(1280, 720)
This opens fine, but in File information (shown in File Ino 1.png below), the length of the audio track is given as only 1 hr 51.47, and it does indeed cut out after this exact point.
Converting the mp2 file to WAV (using Winamp) and using the following script
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Dgavcdecode\DGAVCDecode.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mpasource\mpasource.dll")
Load_Stdcall_plugin("C:\Program Files\AviSynth 2.5\plugins\yadif\yadif.dll")
video = AVCSource("Mountains.dga")
audio = WAVSource("Mountains PID 052 L2 2ch 48 256.wav")
AudioDub(video, audio)
yadif()
BilinearResize(1280, 720)
seemed to work at first, but the audio then cuts out at 3 hours and 6 minutes, roughly at frame 280,000. I can play both the original recording, the mp2 file and the final .wav file in many applications and none of them cut out or drop out at the points in question.
I'm now just opening the .wav file in virtualdub and not giving an audio stream in avisynth, but I would like to resolve the bug out of interest.
Any thoughts?
Thanks to all whose previous posts have helped me to pick up so much from this forum by the way, I'm a long time lurker, but this is my first post.
Nick.