Tools for Manipulating MPEG Headers?
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."
If they know the exact bit to twiddle, it shouldn't be too hard to write a program which opens the file, flips the bit, and closes the file again (a one-liner, if you start sufficiently far to the left :-) ). Or am I missing something?
Guess there're worse ways to spend a Thursday morning.
Karma: Good (despite my invention of the Karma: sig)
"Save the whales, feed the hungry, free the mallocs" -- author unknown
Thanks for dealing another death blow to Linux's image, Slashdot!
Hnnng. thought we were dealing with a/v streams, not just audio...
here is all the information you should need. I used it myself when making a mp3-inspecting program.
man dd
find the bits you're looking for and swap them around, done.
Bonus Karma for people who know where the subject is quoted from.
I want to delete my account but Slashdot doesn't allow it.
Another late night at the office...
Slashdot's Attorney
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 !
You got what you deserved when you didnt pay for copyrighted work
Choosing the lesser of two evils is a choice for evil.
http://www.cmis.csiro.au/maaate/docs/header.txt
can't believe that useless C snippet got 5, Informative.