It is currently Wed Jul 17, 2019 4:20 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: Play videos from memory?
PostPosted: Wed Jan 07, 2015 9:16 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Apr 25, 2003 7:06 pm
Posts: 2242
Location: Argentina
Hi,

Its possible to build the executable with some videos included and then play them from memory?
I dont want to write it to the disc to be able to play it because people can copy the videos.


Thanks in advance for any advice


Top
 Profile  
Reply with quote  
 Post subject: Re: Play videos from memory?
PostPosted: Thu Jan 08, 2015 1:17 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Hi ricardo,

See if either of the following examples work for you: Services, Stuff, and Shellhook
- folder: /Stuff/MovieData/

The ADS folder example uses an Alternate Data Stream to conceal the video file.
- the current executable: MovieData.exe will not work because zip files do not include ADS
-- if I chose to compress using WinRAR the option to include ADS is available
- recompile the file: MovieData.pb (MovieData.exe) then add the ADS by running the file: ADS.pb

The DS folder example uses a DataSection to conceal the video file.
- the example highlights PureDataConverter by ts-soft

NB*: In both examples the temp file is created in the current directory, but this should be changed for better concealment.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Thu Jan 08, 2015 10:31 pm, edited 5 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Play videos from memory?
PostPosted: Thu Jan 08, 2015 5:51 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Apr 12, 2009 6:27 am
Posts: 3351
Hi
1- Create your videos in a format that do Not need any special codecs
2- Dowload the free copy of (AudioVideo_To_Exe)
3- Run the program And create an encrypted movie file With any password you like
4- Run the movie file from your main program you will Not need even the player

No one can run it without the proper password
Give it a try maybe it will suite you

_________________
Egypt my love


Top
 Profile  
Reply with quote  
 Post subject: Re: Play videos from memory?
PostPosted: Thu Jan 08, 2015 7:14 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Hi RASHAD,

Is this the utility: http://www.videotoexe.com/index.html?
Quote:
What's the difference between the free version and paid version?
The free trial version is full functional but is locked to expire after 30 days, and a watermark of our website address will be added on every video you record. The paid version never expires and no watermark will be added on video. Paid users are entitled to get FREE technical support and FREE software upgrades.

I believe the password option is only available with the paid version:
- I can't find it under settings
Quote:
Enable Registration
If you enable registration, if someone want to play the video, he must ask the password(registration key) from you, otherwise he cannot play the video

After you create the video-executable, open the temp directory under your user profile (C:\Users\[PROFILE]\AppData\Local\Temp\). Run the video-executable and a new folder will be created. Inside the new folder will be the file: av2e, add the proper video extension and you have a copy of your video file.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Play videos from memory?
PostPosted: Thu Jan 08, 2015 8:33 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Apr 12, 2009 6:27 am
Posts: 3351
Hi JHPJHP
Yes you are right
I am trying to let him protect his movie
Beside this is the first time I face something like that
I spent a few hours comparing between such software (But as you knew free version is not enough to have a full picture)
But I came to conclusion that (VaySoft Video to EXE) is the best
It let you run the final movie with a command using your key
That means he can run the file from within his software and the file is full protected (I guess)

Edit :Amazing I could run the output exe file from memory :mrgreen:
And that mean you got your problem solved

ricardo it worth it my friend $45 :)

_________________
Egypt my love


Top
 Profile  
Reply with quote  
 Post subject: Re: Play videos from memory?
PostPosted: Thu Jan 08, 2015 10:09 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Apr 12, 2013 1:55 pm
Posts: 1058
Location: just outside of Ferguson
In Linux you might be able to include binary the video, then at runtime create a ramdisk (which mounts it), chmod the file permissions so that it is secure, and write the video onto it for playback.
And if that is possible, then it should be doable in Windows®.

_________________
Keep it BASIC.


Top
 Profile  
Reply with quote  
 Post subject: Re: Play videos from memory?
PostPosted: Thu Jan 08, 2015 10:46 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Hi RASHAD,

Wouldn't the DataSection and LoadMovie function (compiled to an executable) provide similar results?
- adding a password to the DataSection / executable, including encoding is simple with PureBasic

VaySoft Video to EXE is creating a temp file same as my DataSection example:
- updated my post to include additional example: ADS (Alternate Data Stream)
JHPJHP wrote:
After you create the video-executable, open the temp directory under your user profile (C:\Users\[PROFILE]\AppData\Local\Temp\). Run the video-executable and a new folder will be created. Inside the new folder will be the file: av2e, add the proper video extension and you have a copy of your video file.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Play videos from memory?
PostPosted: Thu Jan 08, 2015 11:15 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Apr 12, 2009 6:27 am
Posts: 3351
@heartbone
I thought about that but creating virtual disk with windows needs to boot the system

@JHPJHP
I tested your point of view with VaySoft
You can not run the file created in the user temp directory
You can not copy it to someplace else
It will be deleted after finishing play

Result = LoadMovie(#Movie, Filename$)
LoadMovie() needs a file name
How can you get a file name to a memory segment?
Unless mapping file can solve this problem

I think what I just got is the best solution to protect your own movie(For now)

Edit :I did not test your last peaces of good work
Maybe it has some answers
But always I like short cut

_________________
Egypt my love


Last edited by RASHAD on Thu Jan 08, 2015 11:24 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Play videos from memory?
PostPosted: Thu Jan 08, 2015 11:22 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
While the movie / executable was playing I copied the temp file to a new location, added the .avi extension, and the temp file played just fine.
- the temp file is deleted after playing same as the DataSection example

Either way I'm good. :)

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Thu Jan 08, 2015 11:40 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Play videos from memory?
PostPosted: Thu Jan 08, 2015 11:27 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Apr 12, 2009 6:27 am
Posts: 3351
@JHPJHP
You are talking about some other software
I could not copy the file while it was played
Try VaySoft Video to Exe

_________________
Egypt my love


Top
 Profile  
Reply with quote  
 Post subject: Re: Play videos from memory?
PostPosted: Thu Jan 08, 2015 11:39 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Hi RASHAD,

I stand corrected, VaySoft Video to Exe has a few more levels of security and a bunch of useful options... nice find.

Sorry I missed that you found another/better solution:
RASHAD wrote:
But I came to conclusion that (VaySoft Video to EXE) is the best

Cheers!

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Play videos from memory?
PostPosted: Thu Jan 08, 2015 11:49 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Apr 12, 2009 6:27 am
Posts: 3351
Hi JHPJHP
You are a very good programmer specially in some field
Why do not you try to find a solution to create an instant RAM Disk without restart ?
I think you can do it
Say YES I will try :D

_________________
Egypt my love


Top
 Profile  
Reply with quote  
 Post subject: Re: Play videos from memory?
PostPosted: Fri Jan 09, 2015 12:56 am 
Offline
Addict
Addict
User avatar

Joined: Fri Apr 12, 2013 1:55 pm
Posts: 1058
Location: just outside of Ferguson
RASHAD wrote:
@heartbone
I thought about that but creating virtual disk with windows needs to boot the system
Are you sure?
Because Paragon manages to accomplish attaching new physical drives. I thought virtual drives would be easier.

RASHAD wrote:
Hi JHPJHP
You are a very good programmer specially in some field
Why do not you try to find a solution to create an instant RAM Disk without restart ?
I think you can do it
Say YES I will try :D
I was thinking the same thing about you.

_________________
Keep it BASIC.


Top
 Profile  
Reply with quote  
 Post subject: Re: Play videos from memory?
PostPosted: Sat Jan 10, 2015 7:58 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Hi RASHAD, heartbone,

Thank you for those kind words.

I started a small project using ImDisk, and the results are promising.
- see: PureBasic Interface to ImDisk

Cheers!

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Sun Jan 11, 2015 12:26 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Play videos from memory?
PostPosted: Sat Jan 10, 2015 10:14 am 
Offline
User
User

Joined: Wed Dec 17, 2014 11:54 am
Posts: 49
ricardo wrote:
Its possible to build the executable with some videos included and then play them from memory?
I dont want to write it to the disc to be able to play it because people can copy the videos.

Question: if the videos are small and have no sound, for example a tutorial, then a possible workaround is to convert them to an animgif and just play that within your app. I've even seen a three-minute long "Lord of the Rings" animgif and it was quite a fun little "movie" to watch.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Bisonte and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye