lexor
6th February 2008, 19:59
Hi guys. I have an issue and a quesion I'd like some help with.
First, close on the heals of my AviSource issues comes the issue of no sound using DirectShowSource. FFDshow just doesn't load to decode the audio track. My script is just DirectShowSource("filename"), and I even tried specifying audio=true, video plays fine, but no sound (regardless of what type of audio it is). What could be causing this?
Second, is there a way to select a percentage of random frames. I know of SelectEvery to select frames uniformly (constant distance), but I want random selection. Say I have 100 frames and I want 2%, I roll random twice (from 1 to 100) re-rolling duplicates then order those number in increasing order and load only those frames in avisynth. Is there a way to do that?
First, close on the heals of my AviSource issues comes the issue of no sound using DirectShowSource. FFDshow just doesn't load to decode the audio track. My script is just DirectShowSource("filename"), and I even tried specifying audio=true, video plays fine, but no sound (regardless of what type of audio it is). What could be causing this?
Second, is there a way to select a percentage of random frames. I know of SelectEvery to select frames uniformly (constant distance), but I want random selection. Say I have 100 frames and I want 2%, I roll random twice (from 1 to 100) re-rolling duplicates then order those number in increasing order and load only those frames in avisynth. Is there a way to do that?