rdp / screen-capture-recorder-to-video-windows-free

a free open source windows "screen capture" device and recorder (also allows VLC/ffmpeg and others to capture/stream desktop/audio)
https://github.com/rdp/screen-capture-recorder-to-video-windows-free/releases
Other
2.11k stars 463 forks source link

Compiling 'screen-capture-recorder.dll' #53

Open marcfowler opened 9 years ago

marcfowler commented 9 years ago

Hey,

I'd like to recompile 'screen-capture-recorder.dll' because I'd like to change the name of the DirectShow device as it appears inside ffmpeg/vlc/etc and because, more importantly, I am concerned that other software which makes use of this same .dll will have set registry keys to control the width/height etc but I want that controlled by my own application.

When I open the project and try to compile, I'm getting an error about missing 'streams.h'. I've tried installing the DirectX SDK and trying again but this hasn't helped.

I've not got much experience in this so any help would be really appreciated!

Thanks!,

rdp commented 9 years ago

you need to install the windows [7.1?] SDK then open the "baseclasses" project in there and compile it locally Debug and Release. That "might" be enough.... more details can be seen by looking at the project settings [include paths, etc.]

On Thu, Feb 5, 2015 at 7:33 AM, Marc Fowler notifications@github.com wrote:

Hey,

I'd like to recompile 'screen-capture-recorder.dll' because I'd like to change the name of the DirectShow device as it appears inside ffmpeg/vlc/etc and because, more importantly, I am concerned that other software which makes use of this same .dll will have set registry keys to control the width/height etc but I want that controlled by my own application.

When I open the project and try to compile, I'm getting an error about missing 'streams.h'. I've tried installing the DirectX SDK and trying again but this hasn't helped.

I've not got much experience in this so any help would be really appreciated!

Thanks!,

— Reply to this email directly or view it on GitHub https://github.com/rdp/screen-capture-recorder-to-video-windows-free/issues/53 .

marcfowler commented 9 years ago

Thank you very much for the reply, I really appreciate it. Unfortunately this really has me stuck - it's pretty far from my normal! I'm mostly a Mac guy and I cannot seem to compile the baseclasses project for the life of me.

Would it be absurdly cheeky to ask you to compile the screen-capture-recorder.dll for me under a different name?

rdp commented 9 years ago

is this for one time use or for distributing to people "out there"?

On Thu, Feb 5, 2015 at 2:44 PM, Marc Fowler notifications@github.com wrote:

Thank you very much for the reply, I really appreciate it. Unfortunately this really has me stuck - it's pretty far from my normal! I'm mostly a Mac guy and I cannot seem to compile the baseclasses project for the life of me.

Would it be absurdly cheeky to ask you to compile the screen-capture-recorder.dll for me under a different name?

— Reply to this email directly or view it on GitHub https://github.com/rdp/screen-capture-recorder-to-video-windows-free/issues/53#issuecomment-73135180 .

marcfowler commented 9 years ago

It would be to distribute to people. My main reason for wanting it renamed is to prevent other software which uses the registry keys from overwriting my own app's settings.. I want to only use the 'screen-capture-recorder.dll' part and use ffmpeg to hook into it, but I want it to always be recording full screen so that I can use a crop filter to crop if necessary.

rdp commented 9 years ago

you just want the dll's then? 32 bit or 64? both?

On Fri, Feb 6, 2015 at 2:57 AM, Marc Fowler notifications@github.com wrote:

It would be to distribute to people. My main reason for wanting it renamed is to prevent other software which uses the registry keys from overwriting my own app's settings.. I want to only use the 'screen-capture-recorder.dll' part and use ffmpeg to hook into it, but I want it to always be recording full screen so that I can use a crop filter to crop if necessary.

— Reply to this email directly or view it on GitHub https://github.com/rdp/screen-capture-recorder-to-video-windows-free/issues/53#issuecomment-73213206 .

marcfowler commented 9 years ago

Yes just the .dll's - both would be excellent. And if you could call it something like 'evp-capture', I would be very much indebted to you.

rdp commented 9 years ago

you can rename the dll files as desired. GL!

On Fri, Feb 6, 2015 at 11:54 AM, Marc Fowler notifications@github.com wrote:

Yes just the .dll's - both would be excellent. And if you could call it something like 'evp-capture', I would be very much indebted to you.

— Reply to this email directly or view it on GitHub https://github.com/rdp/screen-capture-recorder-to-video-windows-free/issues/53#issuecomment-73291792 .

marcfowler commented 9 years ago

I did try that but it still shows the virtual device in ffmpeg as 'screen-capture-recorder', and it still reads from the same registry locations. What I meant is that my goal is to change how it shows up there to 'evp-capture' and read from different registry keys too. Just renaming doesn't do that unfortunately!

rdp commented 9 years ago

Did you remove the previous one first [you're right though on the location oops]. regsvr32 /u dll_name.dll

On Mon, Feb 9, 2015 at 3:51 AM, Marc Fowler notifications@github.com wrote:

I did try that but it still shows the virtual device in ffmpeg as 'screen-capture-recorder', and it still reads from the same registry locations. What I meant is that my goal is to change how it shows up there to 'evp-capture' and read from different registry keys too. Just renaming doesn't do that unfortunately!

— Reply to this email directly or view it on GitHub https://github.com/rdp/screen-capture-recorder-to-video-windows-free/issues/53#issuecomment-73489697 .

marcfowler commented 9 years ago

Yeah I tried it on a computer which had never had this on it previously.

From what I can tell, if you can actually compile it, it's pretty simple to change the name right? Reading through the source it looks like this line controls what shows inside VLC/ffmpeg, and the registry key location is specified in DibHelper.cpp.

But I'm stuck on being able to compile the .dll unfortunately!

marcfowler commented 9 years ago

Sorry to bug you again @rdp but do you think you could help me out on this one?

rdp commented 9 years ago

It didn't seem immediately clear to me if github posts the attachments or not. Anyway sorry for the wait, try these...

On Fri, Feb 6, 2015 at 5:04 PM, Roger Pack rogerdpack@gmail.com wrote:

you can rename the dll files as desired. GL!

On Fri, Feb 6, 2015 at 11:54 AM, Marc Fowler notifications@github.com wrote:

Yes just the .dll's - both would be excellent. And if you could call it something like 'evp-capture', I would be very much indebted to you.

— Reply to this email directly or view it on GitHub https://github.com/rdp/screen-capture-recorder-to-video-windows-free/issues/53#issuecomment-73291792 .

rdp commented 9 years ago

https://gist.github.com/rdp/fe289186080a25c15903 was the diff [for my own reference]

marcfowler commented 9 years ago

I am so sorry but it doesn't seem to show any kind of attachment or anything like that where I can get the binary. Obviously if I follow the link through to the diff I can see the code changes but how do I access the compiled version to get it?

Also, you're an absolute hero and I really appreciate your help!

rdp commented 9 years ago

what's your normal email?

On Tue, Mar 10, 2015 at 2:27 PM, Marc Fowler notifications@github.com wrote:

I am so sorry but it doesn't seem to show any kind of attachment or anything like that where I can get the binary. Obviously if I follow the link through to the diff I can see the code changes but how do I access the compiled version to get it?

Also, you're an absolute hero and I really appreciate your help!

— Reply to this email directly or view it on GitHub https://github.com/rdp/screen-capture-recorder-to-video-windows-free/issues/53#issuecomment-78140875 .

marcfowler commented 9 years ago

It's marc@dfr.me - thanks!