[MPlayer-dev-eng] [PATCH] appending with mencoder

Georgi Hristov georgi at eontechnologies.bg
Mon Jan 6 19:32:05 CET 2003


hi people,

i wrote an append patch for mencoder - so that it can
concatenate 2 avi files. so far i made it work with oac/ovc "copy" in both
cbr and vbr films.
it did not work when i tried with oac mp3lame on an ac3 audio movie.

the way i do it is add few more variables to mirror *demuxer, *stream,
*sh_*, and use them to open the second file, then in mencoder's main loop
when the at_eof gets triggered, i switch the variables to the new ones, and
thus continue until they are done too. this is just about 20-30 lines of
code added to mencoder.c plus the option "-append" added to cfg-mencoder.h,
which takes the second filename.

i'm sending you the patch so someone more knowledgable can add the checks
for compatibility between the two files, and whatever else is necessary. or
maybe it could be stripped of everything unrelated and made a separate
utility?

regards,
joro

-------------- next part --------------
A non-text attachment was scrubbed...
Name: append.patch
Type: application/octet-stream
Size: 5047 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030106/7aa5fd8e/attachment.obj>


More information about the MPlayer-dev-eng mailing list