Tools for Manipulating MPEG Headers? 21
mattjarvis asks: "Does anyone out there know of a software solution for batch manipulating MPEG file headers, ie. stripping the header and replacing it with another header, or editing the existing header. I've searched the usual places, and have come up with a few libraries that look like they are capable of doing this but I don't seem to be able to find anything already written to do this. Basically I have a client using a hardware MPEG audio recorder, who wishes to change one of the bits in the header ( the original/home bit ) which is causing some problems with other software they are using. Surely this should be relatively simple to achieve and it's possible that I am missing the obvious but there doesn't seem to be anything available open source or not to easily edit the header without reconverting the actual audio stream."
Just flip the bit?! (Score:1)
Re:Just flip the bit?! (Score:2)
You got it (Score:1)
Use the power of C! (Score:4, Informative)
Re:Use the power of C! (Score:1, Informative)
Re:Use the power of C! (Score:5, Insightful)
MPEG headers aren't just at the beginning of the file. You'd have to watch the transport stream for video packets, watch for video headers, and *then* flip the bit. For each one throughout the stream.
Most available software will want you to strip the transport stream into video/audio elementary streams before doing anything further. You would then work on the video stream and finally remux.
doh (Score:1)
Re:doh (Score:2)
I'll help you out (Score:5, Informative)
dd is your friend, binary editors are for wimps (Score:3, Informative)
find the bits you're looking for and swap them around, done.
Bonus Karma for people who know where the subject is quoted from.
Well, careful if you release it... (Score:5, Informative)
Is this a "copyright" bit? (Like the bit set when you make a digital copy of a minidisc?) If so, be careful if you release this program, or you might run into problems similar to my own bit-flipping software [cmu.edu] !
Re:Well, careful if you release it... (Score:1, Interesting)
Re:Well, careful if you release it... (Score:1, Interesting)
Re:Are you one of those fuckers (Score:1, Troll)