Click here to Skip to main content
15,883,870 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
for my steganography project i have to paste the embedded frame into the orignal frame ,i am using avifile library but i am facing an exception so i need solution of this exception......
i have to paste a frame but avifile library only deals with the video stream then i made a video stream of 1 frame ...


C#
private void btnPaste_Click(object sender, EventArgs e)
        {
           
            
            OpenFileDialog open = new OpenFileDialog();
           // open.Filter = "Bitmap Image|*.bmp";
            if (open.ShowDialog() == DialogResult.OK)
            {
                try
                {
                    Bitmap bb = new Bitmap(open.FileName);
                    VideoStream CreateVideo = new VideoStream(1111, false, 25, bb);//exception occures here (accessvoilation exception)
                  
                    editableStream.Paste(CreateVideo, 0, 156, 1);
                }
                    catch (System.Exception ex)
            {
                throw new Exception(string.Format("StackTrace = {0}", ex.StackTrace));
            }
Posted
Updated 12-Mar-14 22:10pm
v2
Comments
ZurdoDev 13-Mar-14 7:49am    
I don't understand. If you are getting an exception you need to fix the code. Where are you stuck?
Adi5555 14-Mar-14 6:44am    
i just want to paste a frame in the video........just telme how can i do it ??

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