Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Howto author AVI->DVD with menus using Linux only !
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 23, 24, 25 ... 29, 30, 31  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
mds32h
n00b
n00b


Joined: 13 Jul 2005
Posts: 18
Location: Italy

PostPosted: Sun Nov 06, 2005 3:30 pm    Post subject: Reply with quote

bludger wrote:

The file was grabbed with:
dvgrab -i --timestamp --format raw --size 0


If you can re-grab the file, just omit --format raw: dvgrab default format is DV AVI type 2, that's known by lav2yuv.
Back to top
View user's profile Send private message
star.dancer
Tux's lil' helper
Tux's lil' helper


Joined: 18 Sep 2004
Posts: 93

PostPosted: Sun Nov 06, 2005 8:57 pm    Post subject: Re: Howto author AVI->DVD with menus using Linux only ! Reply with quote

geeojr wrote:
shiznix wrote:
geeojr wrote:
Code:
<video format="ntsc" aspect="16:9" widescreen="nopanscan" />

Can you (or anyone else) confirm for sure that this fixes the NTSC overscan problem ?

I have confirmed it on two seperate DVD players here; but I would love to hear feedback from others.


This also works for 4:3 aspect NTSC dvds.

I have overscan problems with the menus I was creating for my NTSC dvd player and I could not apply the transcode cropping fix. It seems like transcode or ffmpeg or the interface between the two is broken on AMD64 processors The "transcode ... -j -18,-34,-22,-34" was segfaulting on me and I could not find an alternative program to do the cropping.

After reading your post I solved the problem in a much more elegant and faster way! Thank you so much. The top of my dvdauthor file now looks like this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<dvdauthor jumppad="1">
  <vmgm>
    <menus>
      <pgc>
        <post>jump titleset 1 menu;</post>
      </pgc>
    </menus>
  </vmgm>
  <titleset>
    <menus>
      <video format="ntsc" resolution="720x480" aspect="4:3" widescreen="nopanscan" />
      <pgc> ...


I don't know why the widescreen="nopanscan" works for non-widescreen menus videos... but it does here. Thanks again.
Back to top
View user's profile Send private message
bludger
Guru
Guru


Joined: 09 Apr 2003
Posts: 389

PostPosted: Mon Nov 07, 2005 3:38 pm    Post subject: Reply with quote

mds32h wrote:
bludger wrote:

The file was grabbed with:
dvgrab -i --timestamp --format raw --size 0


If you can re-grab the file, just omit --format raw: dvgrab default format is DV AVI type 2, that's known by lav2yuv.


Thanks for your help. I can't remember exactly why I ripped it to raw format, but I found that it was the only way to get it working at the time. Anyway, I found another solution using kino.

I just read the raw dv file into kino and then used their default export facility. This produced a beautifully synchronised output file. When I looked at the actual commands being executed, I saw this:

mp2enc -v 0 -r 48000 -b 192 -o dvkino_output.mp2
mpeg2enc -v 0 -f 8 -I 1 -n p -a 3 -o dvkino_output.mpv
- followed by mplex
(Still have to check whether this is the right interlacing parameter)

I assume that this means that the raw format is already "yuv" format and so the lav2yuv phase can be left out.
Back to top
View user's profile Send private message
NassauBlue
n00b
n00b


Joined: 08 Nov 2005
Posts: 1

PostPosted: Tue Nov 08, 2005 4:15 am    Post subject: Widescreen verticle resize Reply with quote

I have DV footage that I recorded in widescreen mode using a Canon Optura 60. When I hook the camcorder to my TV (4:3) aspect ratio, the TV automatically compresses the scan lines so that I have a 16:9 image with no loss of scan lines. The same compression occurs when playing a professional widescreen DVD. However, I have not been able to replicate this with any DVD's that I have made. I have set the 16:9 flag in DVDauthor, as well as setting widescreen to nopanscan. What is odd, however, is that if I change the TV type on the DVD player from 16:9 to 4:3, the DVD player will recognize the 16:9 flag, and place verticle bars at the top and bottom of the image. But, scan lines are lost in this mode. This leads me to believe that there is some other flag that causes the TV to compress the scan lines. Any thoughts would be appreciated.

edit: I used the default settings in kino to generate the MPEG files.

Thanks,
Raymond
Back to top
View user's profile Send private message
pyxel
n00b
n00b


Joined: 04 Nov 2005
Posts: 44
Location: Bratislava/brussels

PostPosted: Thu Nov 17, 2005 4:28 pm    Post subject: Reply with quote

Hello,
i have a .avi file "zidane.avi": RIFF (little-endian) data, AVI, 720 x 416, 25.00 fps, video: DivX 5, audio: MPEG-1 Layer 3 (stereo, 48000 Hz)

i'm from belgium so PAL:

Code:
transcode -i zidane.avi -y ffmpeg --export_prof dvd-pal --export_asr 2 -o zidane -D0 -b224 -N 0x2000 -s2 -m zidane.ac3 -J modfps=clonetype=3 --export_fps 25


after this i have two file, one sound one video, so:

Code:
mplex -f 8 -o zidane_dvd.mpg zidane.m2v zidane.ac3


after i have one file: zidane_dvd.mpg: MPEG sequence, v2, program multiplex
it works in mplayer...

i will no menu, so just:

Code:
<dvdauthor dest="DVD">
  <vmgm />
   <titleset>
     <titles>
       <pgc>
         <vob file="zidane_dvd.mpg" chapters="0,5:30,10:00,15:30,20:30,35:00,40:30,45:00"/>
       </pgc>
     </titles>
   </titleset>
 </dvdauthor>


save as zidane.xml and quit, mkdir DVD and:

Code:
dvdauthor -x zidane.xml


all seen ok, and in video_ts i have:

Code:
total 3.0G
-rwxr-xr-x  1 root root 6.0K 2005-11-17 16:13 video_ts.bup
-rwxr-xr-x  1 root root 6.0K 2005-11-17 16:13 video_ts.ifo
-rwxr-xr-x  1 root root  54K 2005-11-17 16:12 vts_01_0.bup
-rwxr-xr-x  1 root root  54K 2005-11-17 16:12 vts_01_0.ifo
-rwxr-xr-x  1 root root 1.0G 2005-11-17 16:12 vts_01_1.vob
-rwxr-xr-x  1 root root 1.0G 2005-11-17 16:12 vts_01_2.vob
-rwxr-xr-x  1 root root 967M 2005-11-17 16:13 vts_01_3.vob


i can play it in xine, but i have not video, (i thinks that is because i havent codecs for this)...
i burn it with k3b, creane new dvd datab project i copy audio_ts and video_ts and burn it.
when finish i put it into my home dvd player and: DATA WRONG :(
i try to play in playstation2 but no succes.
please help me if you can :)
thanks you, and sorry for my dump english.
Back to top
View user's profile Send private message
mirko_3
l33t
l33t


Joined: 02 Nov 2003
Posts: 605
Location: Birreria

PostPosted: Fri Nov 18, 2005 8:19 pm    Post subject: Reply with quote

God, I have read all 24 pages... but a couple months ago... I noticed that everyone uses "-y ffmpeg", while I'm still using the "-y mpeg2enc,mp2enc" that was suggested at the beginning as giving the best quality... Can someone clear this up real quick? Which one gives better quality output?
Thanks
_________________
Non fa male! Non fa male!
Back to top
View user's profile Send private message
mds32h
n00b
n00b


Joined: 13 Jul 2005
Posts: 18
Location: Italy

PostPosted: Fri Nov 18, 2005 9:20 pm    Post subject: Reply with quote

pyxel wrote:
i can play it in xine, but i have not video, (i thinks that is because i havent codecs for this)...
i burn it with k3b, creane new dvd datab project i copy audio_ts and video_ts and burn it.
when finish i put it into my home dvd player and: DATA WRONG :(
i try to play in playstation2 but no succes.
please help me if you can :)


pyxel, it seems to be a problem of structure of the DVD Video. DVDs use an UDF structure: did you check the option 'Generate UDF structure' in k3b? You can find it in the 'Filesystem' tab of the window that opens when you click on 'Burn'. If you select it the DVD should work also on your home DVD player (at least I hope: I tried it some time ago).

Another way to generate a video DVD compatible structure is to create an iso image of your dvd directory with

Code:
mkisofs -dvd-video -o dvd.iso dvd/


After creating the iso you just have to burn it with k3b (select 'Tools/Burn DVD image' from the menu bar).
Back to top
View user's profile Send private message
ixogn
n00b
n00b


Joined: 22 Jun 2004
Posts: 2

PostPosted: Sat Nov 19, 2005 1:52 am    Post subject: Reply with quote

hi, guys

im trying to add subtitles to a dvd mpg i've made, but it never works.

whatever fontsize, font, charactset i use, i always get:

Code:

spumux -s0 subtitle.xml <test.mpg >test0.mpg
DVDAuthor::spumux, version 0.6.11.
Build options: gnugetopt iconv
Send bugs to <dvdauthor-users@lists.sourceforge.net>

INFO: Locale=zh_CN.UTF-8
INFO: Converting filenames to UTF-8
INFO: Detected subtitle file format: subviewer
INFO: Opened iconv descriptor. *UTF-8* *ISO8859-1*
INFO: Read 23 subtitles
INFO: Found EOF in .sub file.
WARN:  Read 0, expected 4
INFO: 23 subtitles added, 0 subtitles skipped, stream: 32, offset: 0.18

Statistics:
- Processed 23 subtitles.
- The longest display line had -1 characters.
- The maximum number of displayed lines was 0.
- The normal display height of the font Vera.ttf was 0.
- The bottom display height of the font Vera.ttf was 0.
- The biggest subtitle box had 990 bytes.


i've also tried with veranda.ttf tahoma.ttf, but no result. my subtilte nowhere to be seen.

i've edit subtitle.xml like this:
Code:

<subpictures >
          <stream>
             <textsub filename="test.srt" characterset="ISO8859-1"
                fontsize="18.0" font="Vera.ttf" horizontal-alignment="left"
                vertical-alignment="bottom" left-margin="60" right-margin="60"
                top-margin="20" bottom-margin="30" subtitle-fps="23.976"
                movie-fps="29.97" movie-width="720" movie-height="478"
             />
          </stream>
</subpictures>


and i have Vera.ttf in ~/.spumux directory.

can anyone give me some clue how to make it works ?

TIA

PS: i've looked through the whole thread, it seems im the only one ever had this problem. why the spumux msg says subtitles added, but longest line/display hight is 0 ??
Back to top
View user's profile Send private message
SpewDemon
n00b
n00b


Joined: 26 Nov 2005
Posts: 1

PostPosted: Sat Nov 26, 2005 11:04 pm    Post subject: Reply with quote

Here is a script i use to convert AVI's into VOB's.
This script works great at keeping everything in sync.
It re-formats the size of the clip to 720x480 with black borders so theres no clipping of the original avi.
It will convet the frame rate to 29.97 fps with out any sync problems.
It processes audio very fast (amd 2000 cpu) up to 500fps.

problem::mrgreen:
It processes the video at 10fps or slower.
That means it can take up to 4 hours just to process a 55 minute clip.

Is there anyway to improve this script so that it will process video at a faster frame rate? Even getting the video to process at 15fps would be enough .

Feel free to spread this script around the net because it does convert AVI 2 DVD very well as it is, it is just a bit slow.


#####
# avi2dvdConverter.sh
#####
Code:

#!/bin/bash
usage () {
   echo " ";
   echo " usage: $(basename $0) <avifile> ";
   echo " ";   
   echo " ";
   echo " ";
   echo " Converts videos to mpeg2 ntsc format for DVDs.";
   echo " with black borders";
   echo " <video format  = aspect=16:9 resolution=720x480>";
        echo " <audio format  = ac3>";
   echo " ";
   echo " ";
   echo " ";
   echo " This script was created by merging parts the following three different scripts together.";
   echo " ";
   echo " avi2Xvcd.sh from Andreas Wilm <wilm at biophys.uni-duesseldorf.de>";
   echo " and";
   echo " dvd-encode.sh from Scott Dylewski  <scott at dylewski.com>";
   echo " and";
   echo " mpg2dvd.sh <author unknown>";
   echo " ";
   echo " adding my own changes from Spewdemon <spewdemon at gmail.com>";
   echo " ";
   echo " ";
}

if [ -z $1 ]
then
   usage
    exit
fi

olddir=$(pwd)
dir=$(dirname $1)
avitail=$(basename $1)
base=$(basename $1 .avi)
ROOT=`basename $1 .avi`
DVDXML=${ROOT}.xml

#un comment this one is for testing
#range="-c 2000-4800"

aut () {
   echo "[avi2DVD] Doing 44Khz-48Khz translation...";
}

echo "base = $base"
cd $dir
echo "creating DVD from $avitail"

#get audio format 
audiotype=`tcprobe -i "$avitail" | grep 'audio track: -a' | awk -F'-n ' '{print $2}' | awk '{print $1}'`

#these are here use with setting the black borders
# this will re-encode the video to 720 width and add top and bottom black borders.
#aspect ratios 4:3 = 1.33:1, 720:480 = 1.50:1, 16:9 = 1.85:1
vwidth=`tcprobe -i "$avitail" | grep 'width' | awk -F'width=' '{print $2}' | awk -F',' '{print $1}'`
vheight=`tcprobe -i "$avitail" | grep 'height' | awk -F'height=' '{print $2}' | awk -F',' '{print $1}'`
top=$(((480-$vheight)/2))
left=$(((720-$vwidth)/2))
bottom=$(((480-$vheight)/2))
right=$(((720-$vwidth)/2))

echo " "
echo " Orignal video format $vwidth x $vheight"
echo " Adding black borders top=$top left=$left bottom=$bottom right=$right"
echo " New video format with black borders $(($left+$right+$vwidth)) x $(($top+$bottom+$vheight)) "   
aspect=$(echo "scale=10; $vwidth/$vheight" | bc)
echo $aspect

nheight=`bc << E4
(720 / $aspect)
E4
`
echo " $top"
echo $nheight
ntop=$(((480-$nheight)/2))
echo " $ntop"


echo " "
   
# extract audio:
   echo '####### extracting audio:'
   echo " "
   echo "## Encoding audio to 48KHz stereo audio for dvd"
   if [ "$audiotype" == '0x55' ] ; then
      echo "[avi2DVD] Extracting mp3 audio"
      nice transcode -i "$avitail" -m "${base}1.wav" -x null,mp3 -y null,wav $range
      aut
      sox "${base}1.wav" -c 2 -r 48000 ${base}.wav
   elif [ "$audiotype" == '0x1' ] ; then
      echo "[avi2DVD] Extracting PCM audio"
      nice transcode -i "$avitail" -m "${base}1.wav" -x null,raw -y null,wav $range
      aut
      sox "${base}1.wav" -c 2 -r 48000 ${base}.wav
   elif [ "$audiotype" == '0x50' ] ; then
      echo "[avi2DVD] Extracting audio with mplayer"
      nice transcode -i "$avitail" -m "${base}1.wav" -x null,mplayer -y null,wav $range
      aut
      sox "${base}1.wav" -c 2 -r 48000 ${base}.wav
   else
      echo "[avi2DVD] Extracting audio with mplayer"
      nice transcode -i "$avitail" -m "${base}1.wav" -x null,mplayer -y null,wav $range
      aut
      sox "${base}1.wav" -c 2 -r 48000 ${base}.wav
   fi
rm ${base}1.wav

# extract video:
echo "[avi2DVD] Extracting and converting video to DVD format with transcode"
nice transcode -i "$avitail" \
    -x mplayer,null \
    -w 8000 \
    -J modfps \
    -Z 720x480 \
    --export_asr 3 \
    --export_fps 29.97,4 \
    -y mpeg2enc,null \
    -F 8,"-f 8 -R 0 -n n -a 3 -q 6 -c -4 2 -2 1 -M 1 " \
    -o ${base} \
    $range

# Convert audio to ac3 format
ffmpeg -i "${base}.wav" -y -vn -ab 192 -acodec ac3 -ar 48000 -ac 6 ${base}.ac3
rm ${base}.wav

#create vob
nice mplex -V -M -f 8 ${base}.ac3 ${base}.m2v -o ${base}.vob
rm ${base}.ac3
rm ${base}.m2v

# creating xml file used with dvdauthor
cat > ${DVDXML} << EO
<dvdauthor dest="${ROOT}.dvd">
   <vmgm />
   <titleset>
       <titles>
           <video format="ntsc" aspect="16:9" resolution="720x480"/>
           <audio format="ac3"/>
           <pgc>
EO

echo "                <vob file='${base}.vob' />" >> ${DVDXML}
cat >> ${DVDXML} << E1
           </pgc>
       </titles>
   </titleset>
</dvdauthor>
E1
# end creating xml file used with dvdauthor

# Create DVD
if xmllint ${DVDXML} > /dev/null ; then
echo " the dvd creation has been disabled - please edit this script to renable"
       #dvdauthor -x ${DVDXML}
       
       #this one will create an iso
       #mkisofs -dvd-video -o "${ROOT}.iso" ${ROOT}.dvd/
       
       #This one writes the DVD so no need to create an iso
       #growisofs -speed=1 -Z /dev/hdd -dvd-video ${ROOT}.dvd/
       
       #delete dvd temp directory in one shot
       #rm -r ${ROOT}.dvd
fi


cd $olddir

#move completed files out of processing directory
mv ${base}.vob vobs/
mv ${base}.xml vobs/
mv ${base}.avi avis/


# uncomment to shut down when done
echo $'\a'
#init 0

exit


Any Help is greatly appreciated. :wink:
SpewDemon :twisted:
Back to top
View user's profile Send private message
pdr
l33t
l33t


Joined: 20 Mar 2004
Posts: 609

PostPosted: Mon Nov 28, 2005 6:45 pm    Post subject: Reply with quote

I was never able to get the listed ffmpeg call to create a silent sound file (for creating the menu).

Now I'm writing a script to generate a DVD menu where one option is to use silence for the audio; after a lot of searching I ended up with the below. Requires sox though...

Code:
OUTPUT_AUDIO_RATE="48000"   # currently hard-coded audio rate of 48KHz (NTSC dvd)
OUTPUT_AUDIO_BITRATE="224"  # currently hard-coded audio bitrate of 224Kbits/sec (NTSC dvd)
TMP_AUDIO="temp_audio.ac3"   # hard-coded name of temp file containing menu audio adjusted to ac3
...
BGDURATION="5"   # input parm - number of seconds the menu lasts
...
# Use bc to calculate how many samples we want, which is the audio rate (samples/second) times the desired duration (seconds)
SAMPLES=$(echo "scale=0; $OUTPUT_AUDIO_RATE * $BGDURATION" | bc)

# Use sox to read /dev/zero and treat it as silent pcm and convert it to wav; use ffmpeg to convert that to our desired ac3 format.
sox -t raw -sw -c 2 -r $OUTPUT_AUDIO_RATE /dev/zero -t wav - trim 0 "${SAMPLES}s" | ffmpeg -i - -ab $OUTPUT_AUDIO_BITRATE -ar $OUTPUT_AUDIO_RATE -ac 2 "$TMP_AUDIO"


sox doesn't directly support ac3 or mp2, so has to be converted - I'm still using ffmpeg for that.

This uses sox to read from /dev/zero and treat it as though it was a RAW input (un-headered pcm) of signed 16-bit values; since the input is zero, this makes it silent. Since its all zeros the input frequency might as well be the same as the output, saving sox from doing any kind of frequency-domain conversion, so I use $OUTPUT_AUDIO_RATE (48000) for both. Finally I tell sox to output a wav format and to only do it for [$OUTPUT_AUDIO_RATE * $BGDURATION = 48000 * 5 = 242000] samples - which makes it last for exactly the duration I want. So basically sox is generating a silent .wav that is the actual audio rate and duration I require.

The output from sox is piped into ffmpeg to convert it from .wav to ac3 using my desired (224Kb) bitrate and stored into my temp file.
Back to top
View user's profile Send private message
MadEgg
l33t
l33t


Joined: 06 Jun 2002
Posts: 678
Location: Netherlands

PostPosted: Tue Nov 29, 2005 11:38 am    Post subject: Reply with quote

I just found this guide and it works quite nicely for me, except for 2 things, both related to subtitles.

I've got a AVI movie in 23.976 FPS(so not 29.76 FPS), which I converted to 25 FPS using the guide, since my TV uses PAL. So far so good. I also got an .srt file for the original movie. The guide says to set subtitle-fps to the framerate of the original file, so I set it to 23.976 but then the subtitles aren't synced. I then tried 29.76 because that's also NTSC but still no good. Then I set it to 25 FPS and now the subtitles are correctly synced. So I didn't have to adjust anything. Not really a problem, just a comment.

The second one is a problem. The font is hideously ugly, it looks like some white stains with black letters carved into them. I tried using Vera.ttf and arial.ttf, and while the shape of the letters does change it doesn't improve a single bit. Any way to fix that? I haven't tried how it looks on my TV screen since I don't want to waste a DVD for these ugly fonts, but it might be better on there. Any help would be appreciated tho.
_________________
Pentium 4 Prescott 3,2 GHz
Asus P4P800 SE, i865PE chipset
1024 MB PC3200 RAM
AOpen Aeolus GeForce 6800 Ultra 256 MB DDR2
Creative Audigy2 ZS
gentoo-sources-2.6.20-r7
nVidia-drivers version 9755
Back to top
View user's profile Send private message
Muso
Veteran
Veteran


Joined: 22 Oct 2002
Posts: 1002
Location: The Holy city of Honolulu

PostPosted: Thu Dec 01, 2005 2:03 am    Post subject: Reply with quote

Ty for all the hard work Shiznix .... worked like a charm once I realized how much space is required for it (kept having errors w/dvdauthor step until I cleaned out tons of old files) :)
_________________
"You can lead a horticulture but you can't make her think" ~ Dorothy Parker
"It's not a big truck. It's a series of tubes." ~ Senator Ted Stevens describing the Internet
Back to top
View user's profile Send private message
garo
Bodhisattva
Bodhisattva


Joined: 15 Jul 2002
Posts: 860
Location: Edegem,BELGIUM

PostPosted: Sat Dec 10, 2005 1:47 pm    Post subject: Reply with quote

gkmac wrote:
Draeven wrote:
When I put the DVD I created in my standalone DVD player or in my system, and mount it, the label for the disk is always CDROM. Is there a way to change it?

Specify the -V parameter to growisofs followed by the desired name (which I think is limited to capital letters, numbers and underscores). So to burn a DVD with the label MY_MOVIE, do...
Code:
growisofs -Z /dev/dvd -dvd-video -V MY_MOVIE DVD/

Can you put this in the guide ? It could be usefull...
_________________
My favorite links this month:
- Surf Random
- Web-based SSH
- Stop Spam
Back to top
View user's profile Send private message
Kazaza
Tux's lil' helper
Tux's lil' helper


Joined: 28 Mar 2004
Posts: 100
Location: Sweden

PostPosted: Tue Dec 13, 2005 10:56 am    Post subject: Reply with quote

Hi.
Must say that without this guide I would`nt ever even have considered to try to make my own dvdmenus. But I have a problem, my menus and video is heavily cropped when played in my dvd-player, not as long as it is beeing watched in my computer. The cropping is around 30px on all ends, so the picture is not showing as it should at all... I have tried with gimp to show how the picture should be showed and how much the picture is cropped.
Picture as it should be shown
Picture as it is shown
I have been trying a lot of things to get this to work and have waisted quite a lot of dvd:s now to be able to see it on my dvd-player for my tv. But I need someone to help me out here.
This is my spumux.xml
Code:
<subpictures>
  <stream>
    <spu start="00:00:00.0" end="00:00:00.0" highlight="menu2_highlight_bl.png" select="menu2_select_bl.png" autooutline="infer" force="yes" autoorder="rows"/>
  </stream>
</subpictures>

and my dvdauthor.xml
Code:
<dvdauthor dest="SKKS">
  <vmgm>
    <menus>
      <pgc>
        <post>jump titleset 1 menu;</post>
      </pgc>
    </menus>
  </vmgm>
  <titleset>
    <menus>
      <video format="pal" aspect="4:3" widescreen="nopanscan"/>
      <pgc>
        <button> jump title 1; </button>
        <button> jump title 2; </button>
        <vob file="menu_final.mpg"/>
        <post> jump cell 1; </post>
      </pgc>
    </menus>
    <titles>
      <video format="pal" aspect="4:3" widescreen="nopanscan"/>
      <pgc>
        <vob file="/mnt/hd8/work2/video1.mpg" chapters="0:00,10:00,20:00,30:00,40:00,50:00,1:00:00"/>
        <post>call menu;</post>
      </pgc>
      <pgc>
        <vob file="/mnt/hd8/work2/video2.mpg" chapters="0:00,10:00,20:00,30:00,40:00,50:00,1:00:00"/>
        <post>call menu;</post>
      </pgc>
    </titles>
  </titleset>
</dvdauthor>

The nopanscan part is one thing I have tried, but it does no difference whether I have it in or not. As I said, the dvd plays just fine in my computer and the same goes for the mpg:s that is used for the dvd... (without being cropped).
BTW, to use a dvd-rw is not an option as my dvd-player only errors out when I tried that... :( so good suggestions is welcome so that I dont have to waist another 30 dvd:s
Back to top
View user's profile Send private message
ninjabadger
Apprentice
Apprentice


Joined: 23 Apr 2003
Posts: 270
Location: Scotland

PostPosted: Tue Dec 13, 2005 11:49 pm    Post subject: Reply with quote

Code:
transcode -i file1.avi -y ffmpeg -b 160 --export_prof dvd-pal --export_asr 2 -o filenumber1 -D0 -N 0x2000 -s2 -m file1.ac3 -J modfps=clonetype=3 --export_fps 25


I am running this in an attempt to get slightly smaller files (4 350 meg avis per disk instead of 3). It doesnt seem to be working though. Am I specifying the bitrate corectly?

Also I tried some of the motheds to keep borders mentioned here but i end up with a small picture in the middle of the screen, what is the correct way to write these files so that they are 4:3 aspect ration with borders added as required. That way they will work on my 4:3 TV and my Widescreen TV can zoon to fit anyway.
_________________
Is Microsoft Stronger?

No, no, no. Quicker, easier, more seductive.
Back to top
View user's profile Send private message
taipan67
l33t
l33t


Joined: 04 Dec 2004
Posts: 866
Location: England (i'm told...)

PostPosted: Mon Dec 19, 2005 7:55 am    Post subject: Reply with quote

Apologies for not scrutinising the entire thread for previous instances of this problem... :oops:

When trying to create menu's, i keep getting the "ERR: Cannot pick button masks" error from 'spumux'. I'm aware, thanks to a google-hit on an earlier post in the thread (page 15), that my highlight & select png's can't contain more than 4 colours including the transparent one, but i don't seem to be able to get lower than 7.

Admittedly, i'm using 'krita' for this, because the prospect of emerging the 'gimp' on an exclusively KDE system doesn't exactly make me as giddy as a schoolgirl...

...So i guess the question is:- Can the desired png's be generated with 'krita' (or any other QT-friendly app), or is the 'gimp' my only solution?
_________________
"Anyone who goes to see a psychiatrist should have their head examined!"
Back to top
View user's profile Send private message
ANGEL XX
n00b
n00b


Joined: 18 Dec 2005
Posts: 2

PostPosted: Mon Dec 19, 2005 12:06 pm    Post subject: Reply with quote

thanxxxxxxx alot

ill try it now
Back to top
View user's profile Send private message
tocha
n00b
n00b


Joined: 27 Dec 2005
Posts: 1

PostPosted: Tue Dec 27, 2005 1:39 am    Post subject: AV out of sync in large files Reply with quote

Hello to all!
I would like to tanks for this great tutorial. I had authoring some dvds before and it went very well.

But now i am trying to create a dvd for a live show i got from the net. at the beginning there is no problem, but as the time go, the result mplexed file get slowly out of sync. To explain better, at the mid of show, audio is about one second after the video. At the end of file i got about 2 seconds.
If i could speed up the audio track by a little I think it will work well, but sox cant speed up by this little factor (its about 100.038%)

Midentify tell me that the mplexed file is 5266 seconds long, and the ac3 file is 5268. If i use mplayer to dump the audio from the original file, i got a 5265 seconds mp3.

The original file is a mpg with mp3 audio in pal format. As i am triyng to make a dvd in ntsc format it uses the modfps plugin. Now I wonder if the modfps is causing this error.

Can someone tell me if i am doing something wrong? Any hint would be great.

Tank you guys
Back to top
View user's profile Send private message
bigbob73
Guru
Guru


Joined: 31 Dec 2004
Posts: 332
Location: Under the Lone Star

PostPosted: Tue Dec 27, 2005 6:05 pm    Post subject: Reply with quote

OK. I have took a file (call it matrix.avi) and used transcode to encode ...

transcode -i matrix.avi -y ffmpeg --export_prof dvd-ntsc --export_asr 2 -o matrix -D0 -b224 -N 0x2000 -s2 -m matrix.ac3 -J modfps=clonetype=3 --export_fps 29.97

all's well so far. it produced matrix.m2v and matrix.ac3. Then I used the command "mplayer -vo dummy -identify original.avi 2> /dev/null | grep "5.1 (" to see if i could extract 5.1 surround (there was no output from the command). So then I used the guide from http://mightylegends.zapto.org/dvd/dvdauthor_howto_surround.html to create 5.1 surround sound. using "ffmpeg -i matrix.ac3 matrix.wav" I get the following error...

ffmpeg version CVS, build 3342336, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-shared-pp --enable-shared --disable-static --disable-mmx --disable-altivec --disable-debug --enable-mp3lame --disable-a52 --disable-a52bin --enable-audio-oss --disable-v4l --disable-dv1394 --disable-dc1394 --disable-pthreads --disable-xvid --enable-libogg --enable-vorbis --disable-theora --disable-dts --disable-network --enable-zlib --enable-ffplay --disable-faad --disable-faac --disable-faadbin --enable-gpl --enable-pp --disable-opts --build=i686-pc-linux-gnu
built on Dec 22 2005 03:13:28, gcc: 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)
Input #0, ac3, from 'matrix.ac3':
Duration: N/A, bitrate: N/A
Stream #0.0: Audio: 0x0000
Output #0, wav, to 'matrix.wav':
Stream #0.0: Audio: pcm_s16le
Stream mapping:
Stream #0.0 -> #0.0
Unsupported codec (id=86020) for input stream #0.0

Question is, should this command be run on the original avi maybe?

Bigbob
_________________
A computers attention span is only as long as it's electrical cord (Murphy)
Back to top
View user's profile Send private message
alexlm78
Veteran
Veteran


Joined: 08 Dec 2003
Posts: 1265
Location: Guatemala,Guatemala

PostPosted: Tue Dec 27, 2005 6:13 pm    Post subject: Re: You ROCK!!! Reply with quote

viperlin wrote:
BonezTheGoon wrote:
That has got to be the very best first post I have ever seen on these forums!!!! I love it! I was just about to embark on the journey of trying to learn all this, I cannot thank you enough for gathering it all into one place and documenting it so well!

Great guide!!!!!

Regards,
BonezTheGoon


i agree, AMAZING guide and welcome to the gentoo forums :lol:


Yeah, me too.
_________________
"This is a different kind of world, you need a different kind of software"

Linux User# 315201
100% Chapin hecho en Guatemala
Back to top
View user's profile Send private message
sirdilznik
l33t
l33t


Joined: 28 Apr 2005
Posts: 731

PostPosted: Thu Dec 29, 2005 7:14 am    Post subject: Reply with quote

I love the any2vob script and I use it all the time. There is just one thing missing from the script for my taste. The normalize function. It would be great if the script normalized the audio before re-combining it with the video so that if I put multiple vobs on one dvd they will all be at the same volume. I may try to add the normalize function into the script myself at some point, but my scripting skills are quite meager at this point (I'm working on it though :D ). Otherwise the script is awesome. Thanks for the great work!!
Back to top
View user's profile Send private message
Beetle B.
Guru
Guru


Joined: 01 Mar 2003
Posts: 517

PostPosted: Thu Dec 29, 2005 7:04 pm    Post subject: Reply with quote

I couldn't get subtitles to work (using the any2vob script):

Code:

 Creating subtitle track TheTrack.srt

 Running: spumux -s0 tmp_any2vob/subtitle.xml < tmp_any2vob/TheTrack.VOB > tmp_any2vob/TheTrack_final.VOB

DVDAuthor::spumux, version 0.6.11.
Build options: gnugetopt magick iconv freetype fribidi
Send bugs to <dvdauthor-users@lists.sourceforge.net>

INFO: Locale=C
INFO: Converting filenames to ANSI_X3.4-1968
INFO: Detected subtitle file format: subviewer
INFO: Opened iconv descriptor. *UTF-8* *ISO8859-1*
INFO: Read 669 subtitles
INFO: Unicode font: 255 glyphs.
INFO: Found EOF in .sub file.
WARN:  Read 0, expected 4
INFO: 669 subtitles added, 0 subtitles skipped, stream: 32, offset: 0.18

Statistics:
- Processed 669 subtitles.
- The longest display line had 21 characters.
- The maximum number of displayed lines was 6.
- The normal display height of the font Vera.ttf was 28.
- The bottom display height of the font Vera.ttf was 35.
- The biggest subtitle box had 3194 bytes.


 Creating subtitle track TheTrack.srt

 Running: spumux -s1 tmp_any2vob/subtitle.xml < tmp_any2vob/TheTrack.VOB > tmp_any2vob/TheTrack_final.VOB

DVDAuthor::spumux, version 0.6.11.
Build options: gnugetopt magick iconv freetype fribidi
Send bugs to <dvdauthor-users@lists.sourceforge.net>

INFO: Locale=C
INFO: Converting filenames to ANSI_X3.4-1968
INFO: Unicode font: 255 glyphs.
ERR: Couldn't load file TheTrack.srt .


And BTW, what's a good font size for subtitles on a regular TV screen?

Update: OK - I decided not to use the script and did it by hand. Everything seemed to work fine, except the subtitles don't appear. Spumux found a bunch of them and reported success. But when I play the resulting file through mplayer or whetever player, the subtitles simply don't show.
_________________
Beetle B.

Please update the table of equivalents.
A Firefox guide.


Last edited by Beetle B. on Fri Dec 30, 2005 11:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
snowsquirrel
n00b
n00b


Joined: 02 Jul 2002
Posts: 41
Location: Lunenburg, NS, Canada

PostPosted: Fri Dec 30, 2005 6:19 am    Post subject: Reply with quote

I created an m2v file from a jpeg, which appears to be valid. I created a set of PNG files, menu.png, menu_hl.png, and menu_sel.png. My spumux xml file looks like this:

<subpictures>
<stream>
<spu
force="yes"
start="00:00:00.00"
image="menu.png"
highlight="menu_hl.png"
select="menu_sel.png"
autooutline="infer"
outlinewidth="6"
autoorder="rows">
</spu>
</stream>
</subpictures>

http://www.snowsquirrel.ca/downloads/spumux/menu.png
http://www.snowsquirrel.ca/downloads/spumux/menu_hl.png
http://www.snowsquirrel.ca/downloads/spumux/menu_sel.png

but spumux keeps dying like this:
[code]DVDAuthor::spumux, version 0.6.11.
Build options: gnugetopt magick iconv freetype
Send bugs to <dvdauthor-users@lists.sourceforge.net>

INFO: Locale=en_CA.UTF-8
INFO: Converting filenames to UTF-8
INFO: Picture menu.png had 2 colors
INFO: Picture menu_hl.png had 2 colors
INFO: Picture menu_sel.png had 2 colors
INFO: Autodetect 0 = 19x335-84x361
INFO: Autodetect 1 = 112x334-177x356
INFO: Autodetect 2 = 17x371-84x392
INFO: Autodetect 3 = 112x368-174x391
INFO: Autodetect 4 = 16x402-83x425
INFO: Autodetect 5 = 112x399-173x426
INFO: Autodetect 6 = 17x434-79x458
INFO: Autodetect 7 = 112x435-175x458
INFO: Pickbuttongroups, success with 1 groups, useimg=0
spumux: subgen-image.c:726: imgfix: Assertion `useimg' failed.
[/code]

My buttons are detected correctly, and it appears that I have the correct colors. Can anyone shed any insight on this cryptic error message? thanks.

~S
Back to top
View user's profile Send private message
bigbob73
Guru
Guru


Joined: 31 Dec 2004
Posts: 332
Location: Under the Lone Star

PostPosted: Mon Jan 02, 2006 7:13 pm    Post subject: Reply with quote

I keep getting the same error when using any2vob. Something about and unrecognized format.

Use Ctrl+C to abort

File(s) to process: sw.avi

<<<< NEW ENCODING of sw.avi started at Mon Jan 2 13:48:08 CST 2006 >>>>

File sw.avi is of type: AVI

Final estimated filesize: 3.97 GB

Frames/sec: 25.000
Resolution: 640x272
Aspect: 2.35294117647059:1


Running: ffmpeg -y -i sw.avi -map 0:1 -ar 48000 -ab 384 -ac 2 tmp_any2vob/sw.ac3 -map 0:0, -f mpeg2video -s 640x272 -padtop 38 -padbottom 38 -hq -b 5000 -r pal - 2> /dev/null | ffmpeg -y -i - -hq -b 5000 -bufsize 224 -maxrate 7000 -s 720x576 -aspect 16:9 -r pal -f mpeg2video tmp_any2vob/sw.m2v

ffmpeg version CVS, build 3342336, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-shared-pp --enable-shared --disable-static --disable-mmx --disable-altivec --disable-debug --enable-mp3lame --disable-a52 --disable-a52bin --enable-audio-oss --disable-v4l --disable-dv1394 --disable-dc1394 --disable-pthreads --disable-xvid --enable-libogg --enable-vorbis --disable-theora --disable-dts --disable-network --enable-zlib --enable-ffplay --disable-faad --disable-faac --disable-faadbin --enable-gpl --enable-pp --disable-opts --build=i686-pc-linux-gnu
built on Dec 22 2005 03:13:28, gcc: 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)
pipe:: Unknown format

Error: Video encoding failed for tmp_any2vob/sw.m2v, file not successfully encoded!

any ideas?
_________________
A computers attention span is only as long as it's electrical cord (Murphy)
Back to top
View user's profile Send private message
Linux-Spielkind
Apprentice
Apprentice


Joined: 09 Jan 2005
Posts: 167

PostPosted: Tue Jan 03, 2006 10:49 pm    Post subject: Reply with quote

Hello everyone!
i have some problems putting my video and audio-streams togetgher with mplex.
i'm doing a
Code:
# mplex -f 8 -o test.mpeg test.m2v lily_final.ac3

the result ist that i endup with a lot of warnings and errors exiting after a few secs
here are some of those warnings:
Code:

INFO: [mplex] Frame width     : 720
   INFO: [mplex] Frame height    : 576
   INFO: [mplex] Aspect ratio    : 4:3 display
   INFO: [mplex] Picture rate    : 25.000 frames/sec
   INFO: [mplex] Bit rate        : 9800000 bits/sec
   INFO: [mplex] Vbv buffer size : 229376 bytes
   INFO: [mplex] CSPF            : 0
   INFO: [mplex] Scanning for header info: AC3 Audio stream 00 (lily_final.ac3)
   INFO: [mplex] AC3 frame size = 1536

   INFO: [mplex] AC3 AUDIO STREAM:
   INFO: [mplex] Bit rate       :    49152 bytes/sec (384 kbit/sec)
   INFO: [mplex] Frequency      :     48000 Hz
   INFO: [mplex] SYSTEMS/PROGRAM stream:
   INFO: [mplex] rough-guess multiplexed stream data rate    : 10403400
   INFO: [mplex] target data-rate specified               : 10080000
++ WARN: [mplex] Target data rate lower than computed requirement!
++ WARN: [mplex] N.b. a 20% or so discrepancy in variable bit-rate
++ WARN: [mplex] streams is common and harmless provided no time-outs will occur
   INFO: [mplex] Run-in Sectors = 89 Video delay = 13019 Audio delay = 16619
   INFO: [mplex] New sequence commences...
   INFO: [mplex] Video e0: buf= 237568 frame=000000 sector=00000000
   INFO: [mplex] Audio bd: buf=  16384 frame=000000 sector=00000000
++ WARN: [mplex] Stream bd: data will arrive too late sent(SCR)=736694 required(DTS)=736619
++ WARN: [mplex] Video e0: buf= 188218 frame=000202 sector=00001900
++ WARN: [mplex] Audio bd: buf=  13315 frame=000251 sector=00000192
**ERROR: [mplex] Too many frame drops -exiting

_________________
AK-47 = P4 2.0 GHz 768 MB DDR/333 RAM 60 GB SAMSUNG SV6003H Nvidia Geforce4/MMX400
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3 ... 23, 24, 25 ... 29, 30, 31  Next
Page 24 of 31

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum