VideoHelp Forum

Try StreamFab All-in-One and rip streaming video! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 3 of 3
  1. Member
    Join Date
    Jul 2015
    Search PM
    Hi guys,

    I must code an app to put user defined metadata in AVI files.
    Those metadata are binary, not text, and quite big (the ultimate size is not well defined).
    I spent some time googling about but at the end I haven't clear if it is actually allowed to add this kind of metadata without breaking the AVI standard.

    Does anybody know if it is possible and if there is a limit in size to those metadata?

    Quote Quote  
  2. Data in AVI files appears in "chunks". A chunk starts with a fourcc code identifying what that chunk is. That is followed by a four byte size (the size of the chunk, up to 4 GB, though in practice you should stick with less than 2 GB because some software uses signed inters rather than unsigned integers), then the the actual data of that chunk. So you can define your own fourcc and put whatever you want in that chunk. That will work fine with your own software since you will know how to deal with it. Other software will will just skip over it and proceed to the next chunk. If you want your metadata to be usable by other programs you'll need to stick with defined standards.
    Quote Quote  
  3. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Deep in the Heart of Texas
    Search PM
    A good place to stick something like this might be the "Junk"chunk. Most other apps would ignore it and there is no clear defined format for its contents.Know, however, that some other apps may want to stick their own junk in there (probably overwriting yours).

    Quote Quote  

Similar Threads