My question is half about programming, half about the video structures.
I hope you can help me.
1)I want to write a program to open a .mpg file as a binary file(can any file be opend as binary file?), then packetize it (every 188 bytes should be a packet, and then zero out some packets)
I have never worked with binary files in C/C++, so I wanted to see how can I write a code to access the packets (which are blockes of 188 bytes), and zero out each of them that I want(say, in a simple scenario, every 5 packets)
2)I also wanted to know, whether these binary files have some headers, and/or I need to skip them, or I can work with them from the beginning?(Honestly, I don't expect a reply for this second section, since it is more video related than C/C++ related)