Hello,
Many people are using mjpeg utils to create DVDs under Linux. One of the trickiest part is creating menus. It is advised some places that people should (or at least could) do:
pngtopnm "menu_bg.png" | ppmtoy4m -n 1 -F25:1 -A59:54 -I t -L | mpeg2enc -f 8 -n p -o "menu_vmgm.m2v"
creating an mpeg stream out of a still picture (then multiplex the required stuff with it like buttons, soundtrack, etc).
[If this is wrong, advise better, and I try to google this line and warn those who advertise it not to.]
Seems to work, however Ogle (the finest and probably only real DVD player under
linux) chokes on DVD menus created this way. Ogle authors are probably unwilling
to fix others' programs apart from pointing out the errors in the stream, so it
took some time to spot the problem, which was probably caused somewhere in the
aforementioned piped commands.
I cannot tell where or what the error is. If you can create a DVD layout using the
command and start Ogle on it (it handles DVD structure on hdd fine) it should
choke and die. If possible would be neat to have this fixed or having an alternate,
maybe better, way to create movie from png/jpg. (I would like to create something
to be able to generate easy dvd menus because the utils available did not really
suit my needs.)
Below is the mail from ogle-devel regarding the problem. I hope it tells you
more than to me...
Peter
---- Forwarded Usenet-message ---- From: "Peter Gervai" <[EMAIL PROTECTED]> Newsgroups: gmane.comp.video.ogle.user Subject: Re: *demux: SEND A BUG REPORT Date: Thu, 16 Sep 2004 10:03:40 +0200 URL: news://<[EMAIL PROTECTED]>
[this email was disappeared - seems that I failed to subscribe, and the server doesn't bother to send rejects. the mail was getting through and it's just me who doesn't see it, sorry for the duplicates.]
On Thu, 2 Sep 2004 12:18:54 +0200, Bj|rn Englund <[EMAIL PROTECTED]> wrote:
The last VOBU of VIDEO_TS.VOB is invalid. The nav packets in sector 65 of VIDEO_TS.VOB gives the following info: vobu_s_ptm 0x0001e6cb vobu_e_ptm 0x0003000b this gives a length of 0.8 seconds which is ok.
nv_pck_lbn 0x00000041 vobu_ea 0x00000b99 this gives the length of the vobu as 2905 blocks
this gives a datarate of 2905 blocks * 2048 bytes/block / 0.8 seconds => 7436800 bytes/second which is about 60Mbit/s, clearly over the maximum 11 Mbit/s on a DVD.
I think the multiplexer that created the .VOB has a bug.
I have the same problem and I guess we use the same tools. I guess, that there is something stinky about the menus I created, but since there is no way to test them (since ogle only chokes and doesn't give any indication about the reason) it's really hard to guess where's the problem.
I have this script to create the menu of mine:
pngtopnm "menu_bg.png" | ppmtoy4m -n 1 -F25:1 -A59:54 -I t -L | mpeg2enc -f 8 -n p -o "menu_vmgm.m2v" mplex -f 8 -o "menu_vmgm.mpg" "menu_vmgm.m2v" "menu.mp2" spumux "menu_vmgm.xml" < "menu_vmgm.mpg" > "menu.mpg" dvdauthor -x "dvdauthor.xml"
mplex: mjpegtools mplex-2 version 1.6.2 (2.2.3) DVDAuthor::spumux, version 0.6.10.
I put the files to http://narya.grin.hu/bug/ogle/ if anyone thinks they could help. Without the proper (debug) tools and knowledge I cannot even file a proper bugreport against mplex? spumux? dvdauthor? ...
==[ days pass by ]==
Answering myself: the bug was probably caused along the
pngtopnm "menu_bg.png" | ppmtoy4m -n 1 -F25:1 -A59:54 -I t -L | mpeg2enc -f 8 -n p -o "menu_vmgm.m2v"
line, some of these create the buggy file ogle chokes on.
Using a proper mpeg (from my cam) solves the problem. *sigh*
peter
------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users