Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to append extra text with bunch of info that will my script make use of to media files (avi, mkv, mp3, flac, and possibly even zip/rar). I just want to make sure, whether these types of file could get "broken" somehow if I append something to it that wasn't originally there. When I tried it on one file, it still played in VLC player without any problems, but I just wanted to check with you guys, before I'd do some stupid thing, and possibly avoid any unforeseen consequences :) Thank you.

share|improve this question

closed as too broad by Oliver Salzburg Oct 15 at 13:11

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
What are you trying to accomplish? –  Dennis Williamson Sep 21 '10 at 19:58

1 Answer 1

up vote 3 down vote accepted

This is going to depend heavily on the format of the file, and the behavior of the program attempting to use the file. It's possible that VLC ignores "noise" at the end of an AVI file, or, since it's rendering the AVI's bytes as frames of video, that a few random bytes at the end of a file won't be noticeable by the person watching.

A player attempting to play an audio file, on the other hand, might blindly read the bytes you've added and produce static or noise at the end of the song...

Your best bet is to do some research on the file formats you're interested in using, but making arbitrary changes to bytes in a file is bound to lead to problems in some cases. :)

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.