Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

Howto author AVI->DVD with menus using Linux only !

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
763 posts
  • Page 24 of 31
    • Jump to page:
  • Previous
  • 1
  • …
  • 22
  • 23
  • 24
  • 25
  • 26
  • …
  • 31
  • Next
Author
Message
mds32h
n00b
n00b
User avatar
Posts: 18
Joined: Wed Jul 13, 2005 7:39 pm
Location: Italy

  • Quote

Post by mds32h » Sun Nov 06, 2005 3:30 pm

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.
Top
star.dancer
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 93
Joined: Sat Sep 18, 2004 1:47 pm

Re: Howto author AVI->DVD with menus using Linux only !

  • Quote

Post by star.dancer » Sun Nov 06, 2005 8:57 pm

geeojr wrote:
shiznix wrote:
geeojr wrote:

Code: Select all

<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: Select all

<?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.
Top
bludger
Guru
Guru
Posts: 389
Joined: Wed Apr 09, 2003 7:14 am

  • Quote

Post by bludger » Mon Nov 07, 2005 3:38 pm

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.
Top
NassauBlue
n00b
n00b
Posts: 1
Joined: Tue Nov 08, 2005 3:58 am

Widescreen verticle resize

  • Quote

Post by NassauBlue » Tue Nov 08, 2005 4:15 am

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
Top
pyxel
n00b
n00b
User avatar
Posts: 44
Joined: Fri Nov 04, 2005 5:09 pm
Location: Bratislava/brussels
Contact:
Contact pyxel
Website

  • Quote

Post by pyxel » Thu Nov 17, 2005 4:28 pm

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: Select all

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: Select all

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: Select all

<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: Select all

dvdauthor -x zidane.xml
all seen ok, and in video_ts i have:

Code: Select all

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.
Top
mirko_3
l33t
l33t
User avatar
Posts: 605
Joined: Sun Nov 02, 2003 4:14 pm
Location: Birreria

  • Quote

Post by mirko_3 » Fri Nov 18, 2005 8:19 pm

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!
Top
mds32h
n00b
n00b
User avatar
Posts: 18
Joined: Wed Jul 13, 2005 7:39 pm
Location: Italy

  • Quote

Post by mds32h » Fri Nov 18, 2005 9:20 pm

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: Select all

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).
Top
ixogn
n00b
n00b
Posts: 2
Joined: Tue Jun 22, 2004 3:55 am

  • Quote

Post by ixogn » Sat Nov 19, 2005 1:52 am

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: Select all

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: Select all

<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 ??
Top
SpewDemon
n00b
n00b
Posts: 1
Joined: Sat Nov 26, 2005 10:09 pm

  • Quote

Post by SpewDemon » Sat Nov 26, 2005 11:04 pm

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: Select all

#!/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:
Top
pdr
l33t
l33t
User avatar
Posts: 618
Joined: Sat Mar 20, 2004 10:28 pm

  • Quote

Post by pdr » Mon Nov 28, 2005 6:45 pm

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: Select all

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.
Top
MadEgg
l33t
l33t
User avatar
Posts: 678
Joined: Thu Jun 06, 2002 7:46 pm
Location: Netherlands

  • Quote

Post by MadEgg » Tue Nov 29, 2005 11:38 am

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
Top
Muso
Veteran
Veteran
User avatar
Posts: 1052
Joined: Tue Oct 22, 2002 7:45 am
Location: The Holy city of Honolulu
Contact:
Contact Muso
Website

  • Quote

Post by Muso » Thu Dec 01, 2005 2:03 am

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
2021 is the year of the Linux Desktop!
Top
garo
Bodhisattva
Bodhisattva
User avatar
Posts: 860
Joined: Mon Jul 15, 2002 10:20 am
Location: Edegem,BELGIUM

  • Quote

Post by garo » Sat Dec 10, 2005 1:47 pm

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: Select all

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
Top
Kazaza
Tux's lil' helper
Tux's lil' helper
Posts: 100
Joined: Sun Mar 28, 2004 3:22 am
Location: Sweden
Contact:
Contact Kazaza
Website

  • Quote

Post by Kazaza » Tue Dec 13, 2005 10:56 am

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: Select all

<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: Select all

<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
Top
ninjabadger
Apprentice
Apprentice
User avatar
Posts: 270
Joined: Wed Apr 23, 2003 11:24 pm
Location: Scotland

  • Quote

Post by ninjabadger » Tue Dec 13, 2005 11:49 pm

Code: Select all

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.
Top
taipan67
l33t
l33t
User avatar
Posts: 866
Joined: Sat Dec 04, 2004 10:04 am
Location: England (i'm told...)

  • Quote

Post by taipan67 » Mon Dec 19, 2005 7:55 am

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!"
Top
ANGEL XX
n00b
n00b
User avatar
Posts: 2
Joined: Sun Dec 18, 2005 12:18 pm

  • Quote

Post by ANGEL XX » Mon Dec 19, 2005 12:06 pm

thanxxxxxxx alot

ill try it now
Top
tocha
n00b
n00b
Posts: 1
Joined: Tue Dec 27, 2005 1:19 am

AV out of sync in large files

  • Quote

Post by tocha » Tue Dec 27, 2005 1:39 am

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
Top
bigbob73
Guru
Guru
User avatar
Posts: 332
Joined: Fri Dec 31, 2004 6:51 pm
Location: Under the Lone Star

  • Quote

Post by bigbob73 » Tue Dec 27, 2005 6:05 pm

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/dvda ... round.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)
Top
alexlm78
Veteran
Veteran
User avatar
Posts: 1265
Joined: Mon Dec 08, 2003 7:05 pm
Location: Guatemala,Guatemala
Contact:
Contact alexlm78
Website

Re: You ROCK!!!

  • Quote

Post by alexlm78 » Tue Dec 27, 2005 6:13 pm

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
Top
sirdilznik
l33t
l33t
User avatar
Posts: 731
Joined: Thu Apr 28, 2005 10:13 am

  • Quote

Post by sirdilznik » Thu Dec 29, 2005 7:14 am

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!!
Top
Beetle B.
Guru
Guru
Posts: 530
Joined: Sat Mar 01, 2003 7:09 am
Contact:
Contact Beetle B.
Website

  • Quote

Post by Beetle B. » Thu Dec 29, 2005 7:04 pm

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

Code: Select all

 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.
Last edited by Beetle B. on Fri Dec 30, 2005 11:19 pm, edited 1 time in total.
Beetle B.

Please update the table of equivalents.
A Firefox guide.
Top
snowsquirrel
n00b
n00b
User avatar
Posts: 41
Joined: Tue Jul 02, 2002 5:30 am
Location: Lunenburg, NS, Canada
Contact:
Contact snowsquirrel
Website

  • Quote

Post by snowsquirrel » Fri Dec 30, 2005 6:19 am

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/sp ... nu_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
Top
bigbob73
Guru
Guru
User avatar
Posts: 332
Joined: Fri Dec 31, 2004 6:51 pm
Location: Under the Lone Star

  • Quote

Post by bigbob73 » Mon Jan 02, 2006 7:13 pm

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)
Top
Linux-Spielkind
Apprentice
Apprentice
User avatar
Posts: 167
Joined: Sun Jan 09, 2005 5:21 pm

  • Quote

Post by Linux-Spielkind » Tue Jan 03, 2006 10:49 pm

Hello everyone!
i have some problems putting my video and audio-streams togetgher with mplex.
i'm doing a

Code: Select all

# 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: Select all

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
Top
Post Reply

763 posts
  • Page 24 of 31
    • Jump to page:
  • Previous
  • 1
  • …
  • 22
  • 23
  • 24
  • 25
  • 26
  • …
  • 31
  • Next

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy