We have codes that can read a video stream and extract frames out of the stream. After extracting the raw video frames, we encrypt it (both the p-frame or i-frames) and then save the encrypted frames to a new video file. We found that if we encrypt the I-frames as well as the p-frames, the encrypted videos can’t be played back correctly (we have decryption at the playback stage. The video just looks like it has no i-frames and only the p-frames are played back with all the shades). But when we encrypt the p-frames only, the playback can be done correctly. (We use SDL for frame displaying).
How can we write a player that can playback the encrypted video that has both i-frame and p-frame encrypted.
For each packet, we feed the packet data to the encoder/decoder:
// Is this a packet from the video stream?
if(packet.stream_index==videoStream) {
// Decode video frame
avcodec_decode_video2(pCodecCtx, pFrame, &frameFinished,
&packet);
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 3 of 3
Thread
-
-
Make sure that any other frames that your i-frame references are decrypted.
-
i need codes that can read a video stream and extract frames out of the stream, I,P,B frames , and i want it under windows,
please any body can help me
Similar Threads
-
How do I debug/extract i-frame p-frame and b-frame?
By jwbrasil2 in forum ProgrammingReplies: 0Last Post: 20th Nov 2011, 12:24 -
Play an MTS file frame by frame, displaying timecode or frame number
By SeánB in forum Software PlayingReplies: 5Last Post: 5th Oct 2010, 16:26 -
ffmpeg 50Mps I-frame only for mpeg2-cards?
By jonar in forum Video ConversionReplies: 5Last Post: 14th Oct 2009, 03:53 -
ffmpeg faac frame decode failed
By fobster in forum Video ConversionReplies: 2Last Post: 28th Mar 2008, 07:10 -
FFMPEG QUESTION :How do I take one frame and make a jpeg with FFMPEG?
By goheadtry in forum Newbie / General discussionsReplies: 1Last Post: 18th Sep 2007, 02:55