VideoHelp Forum




+ Reply to Thread
Results 1 to 2 of 2
  1. Hi, is there any spumux users here?

    I have some problems with alignment of my buttons when using spumux. They are always somewhere out of place. As I understand this may be related to the aspect ratio problem: the pixels in dvd are not square. But what is the correct aspect ratios for png images for spumux? Can it understand the aspect ratio info in png file at all?


    The spumux script was smth like this

    <subpictures>
    <stream>
    <spu start="00:00:00.0" image="/tmp/buttons-normal.png" highlight="/tmp/buttons-highlighted.png" select="/tmp/buttons-selected.png">
    <button name="0" x0="340" y0="128" x1="647" y1="169" down="1" up="1" />
    <button name="1" x0="340" y0="272" x1="623" y1="313" down="0" up="0" />
    </spu>
    </stream>
    </subpictures>

    while the menu was created like this

    pngtopnm file.png | ppmtoy4m -r -n 50 -I p -F 25:1 -A 10:11 | y4mscaler -O preset=DVD -O infer=EXACT| mpeg2enc -n n -f 8 -o/tmp/menu_background.m2v
    dd if=/dev/zero bs=4 count=1920 | toolame -b 128 -s 48 /dev/stdin /tmp/silent.mp2
    mplex -f 8 /tmp/menu_background.m2v /tmp/silent.mp2 -o /tmp/menu.mpeg
    spumux /tmp/spumux.xml < /tmp/menu.mpeg > out.mpeg

    Initially file.png and all buttons-{whatever}.png were pixel to pixel aligned.
    Quote Quote  
  2. Well, found out what was the problem: this was ppmtoy4m, which has a bad habit to infer the scale of the image from the framerate setting (and therefore it rescaled 720x480 image into 720x576). After changing -F 25:1 into -F 30000:1001 problem disapeared.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!