mbm Posted July 3, 2009 Share Posted July 3, 2009 can you help me making two scripts. One that will make audio under ffdshow to passtrough ac3 and dts, and one that doesnt. So when I use HDMI audio it will be in stereo to my TV, and when I use Spdif it will passtrough to my reciever. Is this possible? Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted July 3, 2009 Share Posted July 3, 2009 Possible? Yes, in multiple ways. I suggest you lookup RegWrite() in the helpfile, FFDShow saves it settings in the registry. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
mbm Posted July 5, 2009 Author Share Posted July 5, 2009 Did a search in help on regwrite. Nothing showed up. Link to comment Share on other sites More sharing options...
picaxe Posted July 5, 2009 Share Posted July 5, 2009 HKEY_LOCAL_MACHINE\SOFTWARE\GNU\ffdshow_audio Link to comment Share on other sites More sharing options...
mbm Posted July 6, 2009 Author Share Posted July 6, 2009 HKEY_LOCAL_MACHINE\SOFTWARE\GNU\ffdshow_audioI was hoping to get some help on how to make the script.I havent made one on my own yet. So im not sure how its done. Link to comment Share on other sites More sharing options...
picaxe Posted July 6, 2009 Share Posted July 6, 2009 I was hoping to get some help on how to make the script. I havent made one on my own yet. So im not sure how its done.Modified help file example to read ffdshow_audio key values$key = "HKEY_LOCAL_MACHINE\SOFTWARE\GNU\ffdshow_audio" $j = "" For $i = 1 To 50 $val = RegEnumVal($key, $i) If @error <> 0 Then ExitLoop $j &= $val & " = " & RegRead($key, $val) & @LF Next MsgBox(262144 +64, "", "ffdshow_audio Key Values " & @LF & @LF & $j) Link to comment Share on other sites More sharing options...
mbm Posted July 6, 2009 Author Share Posted July 6, 2009 Modified help file example to read ffdshow_audio key values$key = "HKEY_LOCAL_MACHINE\SOFTWARE\GNU\ffdshow_audio" $j = "" For $i = 1 To 50 $val = RegEnumVal($key, $i) If @error <> 0 Then ExitLoop $j &= $val & " = " & RegRead($key, $val) & @LF Next MsgBox(262144 +64, "", "ffdshow_audio Key Values " & @LF & @LF & $j) thanks for helping out, cant see it changes though. The AC3 and DTS keeps being unchecked Link to comment Share on other sites More sharing options...
Inverted Posted July 6, 2009 Share Posted July 6, 2009 Dude, please, be more careful. The script reads the settings. Go and change them in ffdshow, then read them again to make sure they are correct, they should have changed. Then go find RegWrite function in the helpfile and use it to write instead of read. Link to comment Share on other sites More sharing options...
Shark007 Posted July 6, 2009 Share Posted July 6, 2009 (edited) just some information; ffdshows settings, as being targeted in this thread, are found in hkcu, not hklm I believe the hklm keys are only used by the vfw encoder portion of ffdshow. Edited July 6, 2009 by Shark007 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now