Combining music or video files?

Dan Upton upton at virginia.edu
Mon Jun 16 00:10:45 EDT 2008


On Sun, Jun 15, 2008 at 11:55 PM, Jason Scheirer
<jason.scheirer at gmail.com> wrote:
> On Jun 15, 7:53 pm, John Salerno <johnj... at gmailNOSPAM.com> wrote:
>> Before I try this and destroy my computer :) I just wanted to see if
>> this would even work at all. Is it possible to read a binary file such
>> as an mp3 or an avi, put its contents into a new file, then read another
>> such file and append its contents to this same new file as well, thereby
>> making, for example, a single long video instead of two smaller ones?
>>
>> Thanks.
>
> This works with basic mpeg videos, but pretty much nothing else.
> You're going to need some video editing software.
> --
> http://mail.python.org/mailman/listinfo/python-list
>

I actually don't know what would happen if you concatenated even MP3s
with the ID3 tags that are stored at the end... I know with some DivX
files at least you could approximate this by running a separate
program on them that would recreate whatever index it needed.  (At
least, you could recreate the index for files that cut off early, I
guess it could figure out what to do if it found a second index
halfway through the file.)



More information about the Python-list mailing list