Click here to Skip to main content
15,887,246 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I try to find i-frame byte code on a MPEG file and make XOR processing to that byte code. and then make new MPEG file with I-frame already edited with XOR.

What I have tried:

right now im using Aforge.video reference and get frame by frame. i cant find how to find just I-frame. anyone can help?
Posted
Updated 24-Mar-18 2:16am
v3
Comments
#realJSOP 24-Mar-18 14:09pm    
Are you trying to embed something in the video stream without making the size of the file or stream any larger?
Member 13741139 24-Mar-18 14:21pm    
this is my code. i'm try to find i-frame bits and do XOR processing.

private void button4_Click(object sender, EventArgs e)
{
FileStream fs = new FileStream(textBox1.Text, FileMode.Open);
FileStream fscreate = new FileStream(textBox2.Text, FileMode.Create);
long size = new FileInfo(textBox1.Text).Length;

byte[] mybyte = new byte[size];
Console.WriteLine("start read");
for (int i = 0; i < size; i++)
{
mybyte[i] = (byte) fs.ReadByte();
// if mybyte[i] is i-frame byte. do XOR;
}

fscreate.Write(mybyte, 0, mybyte.Length);

fs.Dispose();
fscreate.Dispose();
}
Member 13741139 4-Apr-18 8:57am    
I want to make changes the pixel color by making changes the bytes data of each frame.

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