Please guide me to Protect Video by Encryption / Resources / Stream
Hello guys, I am very old member of VBF but I was disappreared for a long...
Hi 5 to all... Hope you all are doing well.
This time I have a new challange but I am thinking on it from a long time but didn't meet solution. I hope you will help me. My challange is to protect video.
I have few video files. I will distribute to people in DVD. What I plan is I will make a DVD having an exe, and user has to play video from exe only by passing registration number and user name password.
Along with the exe we can attach video either in resources or as a encrypted file.
Let me tell you I am using VB.Net as technology in VS2010.
As a first try I created encrypted video file and kept in startup folder with exe. When user will open exe then exe will decrypt the file but I don't want to leave a decrypted file on disk for a moment. Because crackers will see the file and they will copy decrypted file.
What I want is to decrypt file and play it from memory only so application will no play video from file but it will play from memory / stream.
I tried with WMP control but as per my knowledge AxWindowsMediaPlayer accepts only URL (That must be a file on disk).
Is it possible to play video in AxWindowsMediaPlayer (or any other control) from MEMORY / STREAM
After that I got another idea that, if I could attach video into resources and if I could play video from resources. I tried following code.
Code:
Dim ResourceFilePath As String
' Determine the Resource File Path
If System.Diagnostics.Debugger.IsAttached() Then
'Debugging mode
ResourceFilePath = System.IO.Path.GetFullPath(Application.StartupPath & "\..\..\resources\")
Else
'Published mode
'ResourceFilePath = Application.StartupPath & "\resources\"
ResourceFilePath = My.Computer.FileSystem.CurrentDirectory & "\"
End If
MsgBox(ResourceFilePath)
' Specify the mp3 file
If (System.IO.File.Exists(ResourceFilePath & "\tst.avi")) Then
AxWindowsMediaPlayer1.URL = ResourceFilePath & "\tst.avi"
End If
it doesn't work. :mad: :(
Is there any directory from where user can't copy the file while the file is in use in our application.???
I have been mad and I want the solution very urgently..
I need you please.
Re: Please guide me to Protect Video by Encryption / Resources / Stream
For years, Hollywood people have been spending $millions trying to find a solution to this problem too. If you succeed in making a video file uncopiable, you'll probably make big bucks selling the technology to them.
Re: Please guide me to Protect Video by Encryption / Resources / Stream
Thank you for your interest in my subject.
Actually I have got solution that, my application decrypt the video and creates a file which is loaded in my application and after playing the decrypted file is deleted. I know this is not secured solution but in my case there will not be any cracker who will get this application. My client wants to protect from normal users.
And about Hollywood,They are not spending money on protection. If they would hire maximum 5 minds team they will for sure get solution which can't be copied.
If I am one of those 5, I am sure I will give them solution in maximum 1 month. When a client wants to spend money then everything is possible. Today my client doesn't want to spend much money he just want a simple solution but to protect video.
Hollywood can invent a special technology to protect video. Its not a big deal for them. Actually they don't want to protect video because they want people to watch pirated videos and be the fan of their movies.
Tell them if they really want to protect videos I will give them many solutions.
Re: Please guide me to Protect Video by Encryption / Resources / Stream
Quote:
Originally Posted by
ishrar
Thank you for your interest in my subject.
Actually I have got solution that, my application decrypt the video and creates a file which is loaded in my application and after playing the decrypted file is deleted. I know this is not secured solution but in my case there will not be any cracker who will get this application. My client wants to protect from normal users.
And about Hollywood,They are not spending money on protection. If they would hire maximum 5 minds team they will for sure get solution which can't be copied.
If I am one of those 5, I am sure I will give them solution in maximum 1 month. When a client wants to spend money then everything is possible. Today my client doesn't want to spend much money he just want a simple solution but to protect video.
Hollywood can invent a special technology to protect video. Its not a big deal for them. Actually they don't want to protect video because they want people to watch pirated videos and be the fan of their movies.
Tell them if they really want to protect videos I will give them many solutions.
Problem is: Video has to travel through a graphics-card to be displayed, and sound has to travel through a sound-card. It is possible to just "listen" and record what the sound-card plays and/or the graphics-card shows, it dosen't matter how encrypted or protected the file is. As far as I can tell there is no getting around this ever.
Re: Please guide me to Protect Video by Encryption / Resources / Stream
Hi ishrar,
Quote:
Originally Posted by
ishrar
Is it possible to play video in AxWindowsMediaPlayer (or any other control) from MEMORY / STREAM
I have spent a lot of time trying to find a reliable solution and here it is.
As we know, controls are able to play from a file. But we don't want to have a real file. So... let's have a pseudofile and redirect all file calls (like Read and Seek) to a .net stream.
There is 3rd part solution that is doing that, for example, here about playing a video from encrypted source (this is your task!) without saving decrypted data into a disk at all! Look: http://boxedapp.com/encrypted_video_streaming.html