QuaddiMM
3rd June 2008, 21:47
I load uncompressed video in a script with no other filters and play the script with MPC. Every few frames the audio scratches and some frames appear shifted (appearantly read from shifted offset ~+/- 5000 Bytes as garbage appears on top or bottom of frame).
For testing purposes I save 'colorbars' video with VD to uncompressed "bars.avi" (~1.15 GB truncated to 1000 frames, direct stream copy).
"bars.avi" plays fine on its own in MPC and WMP 6.4, but when I load it with AviSynth (OpenDMLSource), the above error appears with both applications (MPC and WMP 6.4).
Also rendering via GraphEdit gives the error, but strangely, VD 1.7.8 does not (yes, no error playing the script with VD).
The problem does only appear with videos that have sound, and are opened with OpenDMLSource. When I use 'KillAudio' or 'audio=false' on the source, no error occurs (but also no sound).
Also, it seems to be multithreading related, as the problem disappears (after few seconds) when I set the playback-app to only use one core in task manager (have quadcore).
And finally, using 'AVIFileSource' instead of 'OpenDMLSource' solves the problem, but is no solution as it only works for small files.
Some specs:
- Using AviSynth 2.58 RC1, but also had the problem with 2.56 and 2.57
- WinXP Home SP2 32 Bit
- Intel Q6600 with 4 GB RAM
I can run further tests / post more info as needed. Also I'm able to debug AviSynth (but don't understand much of the source code).
For testing purposes I save 'colorbars' video with VD to uncompressed "bars.avi" (~1.15 GB truncated to 1000 frames, direct stream copy).
"bars.avi" plays fine on its own in MPC and WMP 6.4, but when I load it with AviSynth (OpenDMLSource), the above error appears with both applications (MPC and WMP 6.4).
Also rendering via GraphEdit gives the error, but strangely, VD 1.7.8 does not (yes, no error playing the script with VD).
The problem does only appear with videos that have sound, and are opened with OpenDMLSource. When I use 'KillAudio' or 'audio=false' on the source, no error occurs (but also no sound).
Also, it seems to be multithreading related, as the problem disappears (after few seconds) when I set the playback-app to only use one core in task manager (have quadcore).
And finally, using 'AVIFileSource' instead of 'OpenDMLSource' solves the problem, but is no solution as it only works for small files.
Some specs:
- Using AviSynth 2.58 RC1, but also had the problem with 2.56 and 2.57
- WinXP Home SP2 32 Bit
- Intel Q6600 with 4 GB RAM
I can run further tests / post more info as needed. Also I'm able to debug AviSynth (but don't understand much of the source code).