Click here to Skip to main content
15,889,992 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
i write a video stegonagraphy program (LSB method)
but there is a problem like the original and embeded video size changed
how can i fixed it.
i work with avi files

What I have tried:

i want the video file not be changed after embed a string to video file
Posted
Updated 6-Nov-19 2:24am
Comments
F-ES Sitecore 6-Nov-19 7:00am    
You want us to help you fix code we can't see?

We can't help you: we have no idea what your code looks like, how you are "embedding the string", or anything else.

And do remember: AVI is not a video format: it's a video container format - itr can contain any one of many different types of video and audio stream, and embedding a string into those streams may well increase or decrease the size of the stream, and thus the file. Heck, just recoding the stream into a different video format can make significant changes to the quality, stream size, or even audio syncing.

The changes are that you can't "fix it" - stream size depends on compression method and parameters, and small changes in data can have large effects on compression output.
 
Share this answer
 
See CodeProject article: Steganography: Simple Implementation in C#[^]
This is only about pictures however, not video, the problem is that you can not use JPEG like in MJPEG video as this is a lossy format.

Here is a technical paper about video: Hiding Text in Video using LSB based Steganography[^]

Also see answers here: How do i...impement image steganography in C using LSB algorithm?[^]
It's not in C#, but you will get an idea how it works ... hopefully :)
 
Share this answer
 
v3

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