Saturday, February 20, 2010

Python notes, optparse positional argument parsing

    parser = optparse.OptionParser()
    try:
        (options, (first_posarg, second_posarg, )) = parser.parse_args()
    except ValueError:
        parser.error("Two positional arguments are required.")

Saturday, February 6, 2010

VLC S/PDIF Stuttering fix

I had this problem with VLC where all output going S/PDIF was stuttering with Windows Vista, and now that I got myself Windows 7 X64, I had to re-fix this problem.

Now I finally found the fix, so I decided to save it to here for future reference:

Preferences -> Advanced settings -> Audio -> Output modules -> Win32 waveOut extension output.


Now the AC3/DTS passthrough works without stuttering.