View Full Version : Embed ffdshow settings in a Matroska file?
Blue_MiSfit
27th November 2006, 09:17
Hey folks,
So - I had an idea today. I'm sure many of you obsess over tweaking ffdshow settings for each movie in your archives as much as I do. For these new AVC encodes I need to add some grain on playback, but the amount varies from source to source. I also tend to switch resizers in and out, also depending on the source.
So it's a real pain in the ass to do this for each and every movie whenever you watch it. I know that ffdshow can export its settings as a registry entry file, so would it theoretically be possible to mux this REG file with the audio/video/subs in a Matroska container (assuming this would be the container of choice given its inherent flexibility)? I assume some modification would have to be made to the splitter to automatically apply the registry entry on playback.
I'm no coder, and I wouldn't dream of demanding such a feature, but what do you guys think? Is it feasible? It would be VERY nice to have settings automatically applied on playback, and then reset to a specified default on close.
~MiSfit
KoD
27th November 2006, 13:33
I think you'll hit the same old issue: security. You will not see many people thrilled about the idea of having the registry written with some values they don't know beforehand. Just think of what one cold accomplish writting arbitrary keys no matter where in the registry.
joseph5
27th November 2006, 22:37
You will not see many people thrilled about the idea of having the registry written with some values they don't know beforehand. Just think of what one cold accomplish writting arbitrary keys no matter where in the registry.
This wouldn't happen if you're the only one who uses the files.
foxyshadis
28th November 2006, 07:06
Presumably you'd want something a little less flaky than a regedit /a temp.reg. For one, you can define a ffdshow preset, then give it your movie's name. You can have as many as you want on a single preset, so you can have 3-4 main presets and a few one-off ones to pick up the slack.
If you still want embedded, which I agree is a nice idea, embedding a preset as a text file, not a reg file, and having ffdshow read it and set its options accordingly would be a little better. I haven't messed with the presets like some of the other devs have though.
Blue_MiSfit
28th November 2006, 09:40
That's a pretty good idea foxyshadis. The name of the game is simplicity and speed.
If I were to make several REG files, and put them in a windows taskbar toolbar, say 3-4 generic settings and a couple of special settings, then I could apply them with 2 clicks.
And... *embarrassed* now that I made all that noise, I cant remember how to export ffdshow settings as a reg file... I scoured every freaking menu in the decoder configuration and I cant find it. I know its there somewhere but... Siigh...
Anyone? :)
~MiSfit
foxyshadis
28th November 2006, 11:24
Image Settings -> "Save to file"? =p It's actually in ini format, not reg. For reg you have to open the key in regedit and export.
So the functionality's all in ffdshow for reading from a file, I just don't have a clue how to register ffdshow as a handler for some new mediatype, or how you'd go about setting the mediatype while muxing it. Need someone smarter than me; too bad gabest is gone.
Blue_MiSfit
28th November 2006, 11:57
I've got it now!
Actually you can save the settings as a REG file. You just have to open "video decoder configuration" from the start menu. You can't do it by using the filter menu in mplayerc or the tray icon. I dont know why...
There's a button on the lower left called 'export all settings'.
It does work as you would think, but unfortunately it will not apply in real time. You have to close and re-open the media player for it to work.
It would be very sweet to be able to apply in real time. Any ideas on how to do it? Maybe the INI system that you mentioned will work foxyshadis?
~MiSfit
Seb.26
28th November 2006, 14:10
Maybe not usable idea in your case, but why don't you add a tag in your file name :
- My movie1 [DeblockHQ].mkv
- My movie2 [DeblockLQ].mkv
And then, add some presets in ffdshow with auto-activation with input file name test, for exemple : << activate preset 'DeblockHQ' if input file name contain '[DeblockHQ]' >> ...
I think this could work, don't ?
Else, IMO : Girder can allow you to modify the registry in real time ...
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.