VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. Member
    Join Date
    Jul 2015
    Location
    Ireland
    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?

    Thanks
    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
    Location
    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).

    Scott
    Quote Quote  



Similar Threads