Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] mpeg[2] remuxing using mencoder



Hi

One should be able to do (mpeg2) remuxing using mplayer with the following
command line:

mencoder -oac copy -ovc copy -of mpeg2 -o out-file in-file

But, It is broken, since introduced in mplayer CVS 2002/12/27 and up-to
1.0pre2.

The original work of `-of mpeg' was done by Andriy N. Gritsenko against
http://www1.mplayerhq.hu/MPlayer/OLD_stuff/cvs/MPlayer-20021209.tar.bz2
(http://mplayerhq.hu/pipermail/mplayer-dev-eng/2002-December/013458.html).

I tested that version with the patch and it creates at least mplayer
-playable mpeg files (Haven't got time to test more, yet).

W/ 20021209 there is some (minor) problems (but problems anyhow(*)). Therefore
I tested the same patch against 0.90rc2 (released 2002/12/24) -- It went
in with the following patch output:

$ bzip2 -dc ../20021209-patch.bz2 | patch -p1
patching file TOOLS/vivodump.c
patching file cfg-mencoder.h
Hunk #1 succeeded at 126 (offset 6 lines).
patching file libmpdemux/aviwrite.c
patching file libmpdemux/aviwrite.h
patching file mencoder.c
Hunk #1 succeeded at 108 (offset 1 line).
Hunk #2 succeeded at 601 (offset 9 lines).

(0.90rc2 available at 
http://www1.mplayerhq.hu/MPlayer/OLD_stuff/releases/MPlayer-0.90rc2.tar.bz2
)

I added one minor change myself (changed (two) references to "codecs.conf"
to "codecs.conf-200212" in case in the future the format may change to an
incompatible one.

I compiled and tested, and remuxing worked as well as with patched 20021209

I gathered some of the material described above to 
http:/www.iki.fi/too/mplayer-mpeg2-remux/

I hope you find it useful and it spins off some related development.

Tomi

* since not even `rc', not even so well tested -- 20021209 had, for
example, problems with dvdnav. secondly, 20021209 required codecs.conf
-file. 0.90rc2 uses built-in version as fallback.


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index