Click here to Skip to main content
15,867,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Anyone who knows how to do partial video encryption,I mean how to extract(find) the binary format of the video frames?Please reply if anyone knows..
Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 30-Mar-11 2:52am    
Not clear. What's "binary format of the video frames"? What do you want to know about it after you "extract" this info?
--SA
amruthch 30-Mar-11 3:22am    
The video is a binary file right? i need to know the binary digits before i can possibly encrypt the video clip, so i wanna know while coding how to get binary (digits) equivalent of clip

1 solution

If all you want to do is read the video file and encrypt it, then just read it as a binary file, excrypt it, and write it back.

If you want to encrypt individual frames so the the video shows as rubbish in a normal media player, then you have to extract each frame, encrypt it, and then re-build the video file. Be aware though of two things:
1) The resulting file is likely to be very large!
2) The chances of decrypting the frames again is extremely poor. Video storage uses a lossy compression technique which will probably destroy your encrypted data.

You can find the info to extract the frames here: Extract Frames from Video Files[^]
 
Share this answer
 
Comments
amruthch 2-Apr-11 0:38am    
thanks ,can i know is it possible to encrypt only the i-frame so that the video will be encrypted(partially i guess),do you know how this can be done or can it be done please.. we are trying to implement elliptic curve cryptography for encryption and decryption of mpeg4 video format.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900