show training videos just in my program

Everything else that doesn't fall into one of the other PB categories.
Peyman
Enthusiast
Enthusiast
Posts: 203
Joined: Mon Dec 24, 2007 4:15 pm
Location: Iran

show training videos just in my program

Post by Peyman »

hi,
I create some training videos and a purebasic program to show them, but i want to just my program can show them not any other players or programs.

this is necessary to stop people from stealing my videos.

anybody have any idea

THX.
Sorry for my bad english.
Julian
Enthusiast
Enthusiast
Posts: 276
Joined: Tue May 24, 2011 1:36 pm

Re: show training videos just in my program

Post by Julian »

No matter how much effort you put into protecting you video's, someone can always screen+audio capture the whole desktop/application and extract your video.

It is impossible to protect your content 100%, sorry
Peyman
Enthusiast
Enthusiast
Posts: 203
Joined: Mon Dec 24, 2007 4:15 pm
Location: Iran

Re: show training videos just in my program

Post by Peyman »

yea i know this is not 100%, i just want stop amateur peoples and avoid a simple Copy/Paste.
Sorry for my bad english.
Julian
Enthusiast
Enthusiast
Posts: 276
Joined: Tue May 24, 2011 1:36 pm

Re: show training videos just in my program

Post by Julian »

Well the easiest way would be to put a custom header on the front of the file that would stop the file from being opened in any standard media application.

When your program loads the file to play it, remove the header, save it out to a temporary file, load it using PB's media functions, then delete the temporary file when its finished.
Peyman
Enthusiast
Enthusiast
Posts: 203
Joined: Mon Dec 24, 2007 4:15 pm
Location: Iran

Re: show training videos just in my program

Post by Peyman »

yea this is the first idea that i think about it in these scenario :
1 - Corrupt all of my video like you said
2 - when program want play it fix the corruption and play it
3 - when playing is finished, program corrupt that video again.

but the problem is while video is playing it can be copied, and as like you said this is not logical to copy video to tmp and play it.
Sorry for my bad english.
Peyman
Enthusiast
Enthusiast
Posts: 203
Joined: Mon Dec 24, 2007 4:15 pm
Location: Iran

Re: show training videos just in my program

Post by Peyman »

i really like the DRM of GreenForce Player that created in purebasic, with that you can protect videos with password and then play them with the same password without any decryption in harddrive, but @RocketRider didnt post anything about it. :(
Sorry for my bad english.
Julian
Enthusiast
Enthusiast
Posts: 276
Joined: Tue May 24, 2011 1:36 pm

Re: show training videos just in my program

Post by Julian »

I believe purebasic uses Windows MCI which can only load from file, so you will need to use a 3rd party library for this if you don't want to use a temporary file.

If someone is going to know how to hunt down the temporary file to copy it while playing, they surely will be able to download a trial version of fraps and get it that way?
Julian
Enthusiast
Enthusiast
Posts: 276
Joined: Tue May 24, 2011 1:36 pm

Re: show training videos just in my program

Post by Julian »

You would probably be better off just putting a watermark/logo on the video or a roll-in mentioning the software/company than going to lots of effort on security.
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: show training videos just in my program

Post by IdeasVacuum »

No matter how much effort you put into protecting you video's, someone can always screen+audio capture the whole desktop/application and extract your video.
You could have a simple thread that checks (sniffs) for all running applications - if an application is on your list as being a screen recorder, you could halt the play-back in your app and display a polite message about your video being copyright. Of course that won't prevent a camera from being used but it will stop all but the most determined people.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
marroh
User
User
Posts: 72
Joined: Wed Aug 06, 2008 8:21 am

Re: show training videos just in my program

Post by marroh »

Peyman wrote:i really like the DRM of GreenForce Player that created in purebasic, with that you can protect videos with password and then play them with the same password without any decryption in harddrive, but @RocketRider didnt post anything about it. :(
The GreenForce Player uses a virtual filesystem and plays the movie from it. Maybe you can build your own virtual filesystem.

but
Julian wrote:You would probably be better off just putting a watermark/logo on the video or a roll-in mentioning the software/company than going to lots of effort on security.
+1

Maybe the better way.
PureBASIC v5.41 LTS , Windows v8.1 x64
Forget UNICODE - Keep it BASIC !
Post Reply