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 ... 18, 19, 20 ... 29, 30, 31  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
shiznix
Guru
Guru


Joined: 29 Jun 2003
Posts: 367
Location: Adelaide, Australia

PostPosted: Mon Apr 11, 2005 12:56 pm    Post subject: Reply with quote

discostu wrote:
Question: I already have the vob files for a dvd I want to create. I'm not copying a whole dvd, just 4 of the titles from it. I have generated a menu using this tutorial as a basis. Can dvdauthor accept vob files as input? because when I run dvdauthor i get:
Code:
WARN: Skipping sector, waiting for first VOBU...
WARN: Skipping sector, waiting for first VOBU...
WARN: Skipping sector, waiting for first VOBU...
WARN: Skipping sector, waiting for first VOBU...
WARN: Skipping sector, waiting for first VOBU...
STAT: VOBU 0 at 0MB, 4 PGCS
Segmentation fault


DVDauthor can accept vob files as input, but in this case the vob files must already be decrypted & copied to your hard-drive by a program that preserves VOBU/NAV packets within the vob.

How did you copy these vob files ?

A DVD compliant VOB file is made up of many VOBU (Video Object Unit) packets.
Contained within these, at the start of every packet is what's called a NAV packet, which is basically used for navigiation & seeking in the program.
DVDauthor needs these VOBU & NAV packets to be present to be able to process & author the DVD.

If you copied these VOBs from a DVD, then I would either look to see if there is some option you are missing that preserves these NAV/VOBU packets or look at an alternative copying program.
One such program is transcode & can copy VOBs while preserving VOBUs like so:
Code:
tccat -i /dev/dvd -T 2,-1 -P
The above example will copy title two from the DVD.

Another is vobcopy:
Code:
vobcopy -n2

If re-copying the VOBs from the original DVD is not an option, then you can use mplex to re-insert the needed NAV/VOBU packets.
To do this you will need to de-mux each VOB, then mux the audio/video back together with mplex:
Code:
transcode -i input_file.vob -y raw,raw -N 0x2000 -A -P1 -o video_tmp.m2v -m audio_tmp.ac3
Use 'tcextract' to extract any extra audio tracks by incrementing '-a0' for each:
Code:
tcextract -d2 -i input_file.vob -a1 -x ac3 | tcextract -d2 -x ac3 -t raw > audio_tmp2.ac3
Finally mux back together:
Code:
mplex -f8 -o output_final.vob video_tmp.m2v audio_tmp.ac3 audio_tmp2.ac3
Back to top
View user's profile Send private message
padhead
n00b
n00b


Joined: 12 Apr 2005
Posts: 10

PostPosted: Tue Apr 12, 2005 5:26 pm    Post subject: Reply with quote

I have a question that I didn't find in the forum:
how can I split the vob files that are on the dvd to vob files with a specific length? I want to have a command-line tool with input parameters the dvd path and how big the vob files should be and that then copies the files to my harddisk. Is there something like this or do i have to develop it myself?
Back to top
View user's profile Send private message
awrobinson
n00b
n00b


Joined: 13 Apr 2005
Posts: 1
Location: New Orleans

PostPosted: Thu Apr 14, 2005 3:16 pm    Post subject: Reply with quote

paladin151 wrote:
slaterson wrote:
kilativv wrote:
Using any of the described above methods for NTSC i get half of the screen green on my Toshiba DVD player. The sound works, no errors during encoding.
Did anyone got any similar problems?
Thanks


i get this exact problem on some video files. on others, i get a _full_ green screen. so far, no explanation for it.


I am having the same problem. I encoded to 352x240 29.97 fps and created the vob files with dvdauthor. The vob's play correctly with mplayer but when I burn the dvd I get the screen problem on my Toshiba dvd player.
On this link someone is having the same problem with a Philips dvd player.
http://www.dealdatabase.com/forum/archive/index.php/t-30859
Here someone is also having the problem.
http://itdp.fh-biergarten.de/transcode-users/2004-03/msg00041.html

Another thing. I found out that transcode wouldn't convert from ac3 44100 samplerate to ac3 48000 samplerate even with -E 48000,16,2 when the source and destination were .mpg's. Mplex stated it was still 44100. This caused my vob's to play fast. I fixed this with "mencoder -i file.mpg -ovc copy -oac mp3lame -o file.avi" then transcoding the resulting avi's.



This may be a similar problem or it may be different. I'm recording basketball games from TV and trying to save them on DVDs with a little editing. All the DVDs I have created with dvdauthor on Linux play on every computer I've tried. However, on my Toshiba standalone player, I get audio but no video. I have one DVD that I created using Nero software on windows. It plays just fine on the Toshiba DVD player. Being a complete newbie at this, I decided the difference must be that the Nero-created DVD had a menu while the dvdauthor ones did not. So I spent a week figuring out how to make menus with spumux and dvdauthor. When I had one that worked well with xine, I burned it to a DVD-RW and popped it in the Toshiba player. The menu displayed and worked correctly. When I selected a title, the player played the audio but not the video. Argh!

So now my newbie deduction skills make me think the issue is the mpeg file for the title. I use avidemux2 to edit the video and output a dvdauthor-friendly format mpg file. My string of vague questions run thusly: Do these symptoms suggest a way to correct the problem? Is there information on the mpg file that I could provide that might indicate the problem? How would I obtain that information? Is there a better forum to ask these questions? Is there a more appropriate question to ask? What is the meaning of life, the universe and everything? (OK, we all know the answer to the last question is 42.)

Thanks!
Back to top
View user's profile Send private message
icantthinkofaname
n00b
n00b


Joined: 22 Apr 2004
Posts: 63
Location: Portland Oregon

PostPosted: Thu Apr 14, 2005 7:33 pm    Post subject: Reply with quote

I'm having problems getting both movies to play off a DVD.

Code:

<dvdauthor dest="DVD">
  <vmgm />
   <titleset>
     <titles>
       <pgc>
         <vob file="matrix_dvd.mpg" chapters="0,0:30,1:00,1:30,2:30,3:00,3:30,4:00"/>
       </pgc>
       <pgc>
         <vob file="outtakes_dvd.mpg" chapters="0,0:30,1:00,1:30,2:30,3:00,3:30,4:00,4:30,5:00"/>
       </pgc>
     </titles>
   </titleset>
 </dvdauthor>


That should make the DVD play "matrix_dvd.mpg" then go onto "outtakes_dvd.mpg" right? When I put that in dvdauthor.xml and run dvdauthor, it puts both movies in the vob file together, but the DVD player stops after the first clip. If I just do 'mplayer whatever.vob' both files are there.
Back to top
View user's profile Send private message
hulmeman
Apprentice
Apprentice


Joined: 02 Jul 2002
Posts: 184
Location: Duchy of Lancaster, England.

PostPosted: Fri Apr 15, 2005 6:12 pm    Post subject: Reply with quote

I'm having trouble using dvdauthor, I'm getting this error message, and I'm not sure what it refers to. Can anyone help?
Thnx Baz

ERR: Cannot call to a specific menu PGC, only an entry
ERR: in VTS pgc 19, <post>


My dvd.xml:

<?xml version="1.0" encoding="utf-8"?>
<dvdauthor>
<vmgm>
<menus>
<pgc>
<post>jump titleset 1 menu;</post>
</pgc>
</menus>
</vmgm>
<titleset>
<menus>
<pgc>
<button name="1">jump title 32;</button>
<button name="2">jump title 1;</button>
<button name="3">jump title 59;</button>
<button name="4">jump menu 2;</button>
<button name="5">jump title 21;</button>
<button name="6">jump title 1;jump title 21;jump title 32;jump title 59;jump title 62;</button>
<vob file="/home/baz1/dvd/menu1-0.mpg" pause="inf"/>
<post>jump menu 1;</post>
</pgc>
<pgc>
<button name="1">jump title 62;</button>
<button name="2">jump title 63;</button>
<button name="3">jump title 64;</button>
<button name="4">jump menu 1;</button>
<button name="5">jump title 62;jump title 63;jump title 64;</button>
<vob file="/home/baz1/dvd/menu1-1.mpg" pause="inf"/>
<post>jump menu 2;</post>
</pgc>
</menus>
<titles>
<pgc>
<vob file="/vobs/1.VOB"/>
<post>jump title 2;</post>
</pgc>
<pgc>
<vob file="/vobs/2.VOB"/>
<post>jump title 3;</post>
</pgc>
<pgc>
<vob file="/vobs/3.VOB"/>
<post>jump title 4;</post>
</pgc>
<pgc>
<vob file="/vobs/4.VOB"/>
<post>jump title 5;</post>
</pgc>
<pgc>
<vob file="/vobs/5.VOB"/>
<post>jump title 6;</post>
</pgc>
<pgc>
<vob file="/vobs/6.VOB"/>
<post>jump title 7;</post>
</pgc>
<pgc>
<vob file="/vobs/7.VOB"/>
<post>jump title 8;</post>
</pgc>
<pgc>
<vob file="/vobs/8.VOB"/>
<post>jump title 9;</post>
</pgc>
<pgc>
<vob file="/vobs/9.VOB"/>
<post>jump title 10;</post>
</pgc>
<pgc>
<vob file="/vobs/10.VOB"/>
<post>jump title 11;</post>
</pgc>
<pgc>
<vob file="/vobs/11.VOB"/>
<post>jump title 12;</post>
</pgc>
<pgc>
<vob file="/vobs/12.VOB"/>
<post>jump title 13;</post>
</pgc>
<pgc>
<vob file="/vobs/13.VOB"/>
<post>jump title 14;</post>
</pgc>
<pgc>
<vob file="/vobs/14.VOB"/>
<post>jump title 15;</post>
</pgc>
<pgc>
<vob file="/vobs/15.VOB"/>
<post>jump title 16;</post>
</pgc>
<pgc>
<vob file="/vobs/16.VOB"/>
<post>jump title 17;</post>
</pgc>
<pgc>
<vob file="/vobs/17.VOB"/>
<post>jump title 18;</post>
</pgc>
<pgc>
<vob file="/vobs/18.VOB"/>
<post>jump title 19;</post>
</pgc>
<pgc>
<vob file="/vobs/19.VOB"/>
<post>jump title 20;</post>
</pgc>
<pgc>
<vob file="/vobs/20.VOB"/>
<post>call menu 1;</post>
</pgc>
<pgc>
<vob file="/vobs/21.VOB"/>
<post>jump title 22;</post>
</pgc>
<pgc>
<vob file="/vobs/22.VOB"/>
<post>jump title 23;</post>
</pgc>
<pgc>
<vob file="/vobs/23.VOB"/>
<post>jump title 24;</post>
</pgc>
<pgc>
<vob file="/vobs/24.VOB"/>
<post>jump title 25;</post>
</pgc>
<pgc>
<vob file="/vobs/25.VOB"/>
<post>jump title 26;</post>
</pgc>
<pgc>
<vob file="/vobs/26.VOB"/>
<post>jump title 27;</post>
</pgc>
<pgc>
<vob file="/vobs/27.VOB"/>
<post>jump title 28;</post>
</pgc>
<pgc>
<vob file="/vobs/28.VOB"/>
<post>jump title 29;</post>
</pgc>
<pgc>
<vob file="/vobs/29.VOB"/>
<post>jump title 30;</post>
</pgc>
<pgc>
<vob file="/vobs/30.VOB"/>
<post>jump title 31;</post>
</pgc>
<pgc>
<vob file="/vobs/31.VOB"/>
<post>call menu 1;</post>
</pgc>
<pgc>
<vob file="/vobs/32.VOB"/>
<post>jump title 33;</post>
</pgc>
<pgc>
<vob file="/vobs/33.VOB"/>
<post>jump title 34;</post>
</pgc>
<pgc>
<vob file="/vobs/34.VOB"/>
<post>jump title 35;</post>
</pgc>
<pgc>
<vob file="/vobs/35.VOB"/>
<post>jump title 36;</post>
</pgc>
<pgc>
<vob file="/vobs/36.VOB"/>
<post>jump title 37;</post>
</pgc>
<pgc>
<vob file="/vobs/37.VOB"/>
<post>jump title 38;</post>
</pgc>
<pgc>
<vob file="/vobs/38.VOB"/>
<post>jump title 39;</post>
</pgc>
<pgc>
<vob file="/vobs/39.VOB"/>
<post>jump title 40;</post>
</pgc>
<pgc>
<vob file="/vobs/40.VOB"/>
<post>jump title 41;</post>
</pgc>
<pgc>
<vob file="/vobs/41.VOB"/>
<post>jump title 42;</post>
</pgc>
<pgc>
<vob file="/vobs/42.VOB"/>
<post>jump title 43;</post>
</pgc>
<pgc>
<vob file="/vobs/43.VOB"/>
<post>jump title 44;</post>
</pgc>
<pgc>
<vob file="/vobs/44.VOB"/>
<post>jump title 45;</post>
</pgc>
<pgc>
<vob file="/vobs/45.VOB"/>
<post>jump title 46;</post>
</pgc>
<pgc>
<vob file="/vobs/46.VOB"/>
<post>jump title 47;</post>
</pgc>
<pgc>
<vob file="/vobs/47.VOB"/>
<post>jump title 48;</post>
</pgc>
<pgc>
<vob file="/vobs/48.VOB"/>
<post>jump title 49;</post>
</pgc>
<pgc>
<vob file="/vobs/49.VOB"/>
<post>jump title 50;</post>
</pgc>
<pgc>
<vob file="/vobs/50.VOB"/>
<post>jump title 51;</post>
</pgc>
<pgc>
<vob file="/vobs/51.VOB"/>
<post>jump title 52;</post>
</pgc>
<pgc>
<vob file="/vobs/52.VOB"/>
<post>jump title 53;</post>
</pgc>
<pgc>
<vob file="/vobs/53.VOB"/>
<post>jump title 54;</post>
</pgc>
<pgc>
<vob file="/vobs/54.VOB"/>
<post>jump title 55;</post>
</pgc>
<pgc>
<vob file="/vobs/55.VOB"/>
<post>jump title 56;</post>
</pgc>
<pgc>
<vob file="/vobs/56.VOB"/>
<post>jump title 57;</post>
</pgc>
<pgc>
<vob file="/vobs/57.VOB"/>
<post>jump title 58;</post>
</pgc>
<pgc>
<vob file="/vobs/58.VOB"/>
<post>call menu 1;</post>
</pgc>
<pgc>
<vob file="/vobs/59.VOB"/>
<post>jump title 60;</post>
</pgc>
<pgc>
<vob file="/vobs/60.VOB"/>
<post>jump title 61;</post>
</pgc>
<pgc>
<vob file="/vobs/61.VOB"/>
<post>call menu 1;</post>
</pgc>
<pgc>
<vob file="/vobs/62.VOB"/>
<post>call menu 2;</post>
</pgc>
<pgc>
<vob file="/vobs/63.VOB"/>
<post>call menu 2;</post>
</pgc>
<pgc>
<vob file="/vobs/64.VOB"/>
<post>call menu 2;</post>
</pgc>
</titles>
</titleset>
</dvdauthor>
Back to top
View user's profile Send private message
Xamindar
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1155
Location: California

PostPosted: Sat Apr 16, 2005 8:49 pm    Post subject: Reply with quote

I tried to use the script but it givs me errors. Anyone know what I am doing wrong?

Code:
Running: ffmpeg -i MySassyGirl.ac3 -f wav MySassyGirl.wav

ffmpeg version 0.4.9-pre1, build 4743, 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 --enable-ogg --enable-vorbis --disable-faad --disable-faac --disable-faadbin --disable-altivec --disable-debug --enable-mp3lame --enable-a52 --enable-a52bin --enable-audio-oss --disable-v4l --disable-dv1394 --disable-pthreads --enable-xvid --enable-gpl --enable-pp --disable-optimize
  built on Apr  7 2005 09:52:52, gcc: 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)
MySassyGirl.ac3: I/O error occured
Usually that means that input file is truncated and/or corrupted.

sox: Can't open input file 'MySassyGirl.wav': No such file or directory
sox: Can't open input file 'MySassyGirl.wav': No such file or directory
Creating left rear surround channel
cp: cannot stat `left.wav': No such file or directory

Creating right rear surround channel
cp: cannot stat `right.wav': No such file or directory

Back to top
View user's profile Send private message
shiznix
Guru
Guru


Joined: 29 Jun 2003
Posts: 367
Location: Adelaide, Australia

PostPosted: Sun Apr 17, 2005 1:37 am    Post subject: Reply with quote

awrobinson wrote:
I am having the same problem. I encoded to 352x240 29.97 fps and created the vob files with dvdauthor. The vob's play correctly with mplayer but when I burn the dvd I get the screen problem on my Toshiba dvd player.
On this link someone is having the same problem with a Philips dvd player.
http://www.dealdatabase.com/forum/archive/index.php/t-30859
Here someone is also having the problem.
http://itdp.fh-biergarten.de/transcode-users/2004-03/msg00041.html

Another thing. I found out that transcode wouldn't convert from ac3 44100 samplerate to ac3 48000 samplerate even with -E 48000,16,2 when the source and destination were .mpg's. Mplex stated it was still 44100. This caused my vob's to play fast. I fixed this with "mencoder -i file.mpg -ovc copy -oac mp3lame -o file.avi" then transcoding the resulting avi's.

Hi Awrobinson,
Could you post the transcode line you used + the output of transcode, thanks.

Quote:
This may be a similar problem or it may be different. I'm recording basketball games from TV and trying to save them on DVDs with a little editing. All the DVDs I have created with dvdauthor on Linux play on every computer I've tried. However, on my Toshiba standalone player, I get audio but no video. I have one DVD that I created using Nero software on windows. It plays just fine on the Toshiba DVD player. Being a complete newbie at this, I decided the difference must be that the Nero-created DVD had a menu while the dvdauthor ones did not. So I spent a week figuring out how to make menus with spumux and dvdauthor. When I had one that worked well with xine, I burned it to a DVD-RW and popped it in the Toshiba player. The menu displayed and worked correctly. When I selected a title, the player played the audio but not the video. Argh!

So now my newbie deduction skills make me think the issue is the mpeg file for the title. I use avidemux2 to edit the video and output a dvdauthor-friendly format mpg file. My string of vague questions run thusly: Do these symptoms suggest a way to correct the problem? Is there information on the mpg file that I could provide that might indicate the problem? How would I obtain that information? Is there a better forum to ask these questions? Is there a more appropriate question to ask? What is the meaning of life, the universe and everything? (OK, we all know the answer to the last question is 42.)

Thanks!
Could you post the output of 'tcprobe -i your_movie.VOB' please.

At first glance this would seem to me to be a major problem with this particular brand's firmware in the way it handles peak video bitrates.
Try encoding at a much lower video bitrate, create a file called 'ffmpeg.cfg' like the one below & place it in either your working directory or in ~/.transcode/
Code:
[mpeg2video]
vrc_minrate=0
vrc_maxrate = 7500
vrc_buf_size = 1792
The important line being 'vrc_maxrate = 7500', which will encode to a video bitrate of 7500kbps (the default is to normally encode to 9000kbps).

Hope that helps! 8)
Back to top
View user's profile Send private message
shiznix
Guru
Guru


Joined: 29 Jun 2003
Posts: 367
Location: Adelaide, Australia

PostPosted: Sun Apr 17, 2005 1:46 am    Post subject: Reply with quote

icantthinkofaname wrote:
I'm having problems getting both movies to play off a DVD.

Code:

<dvdauthor dest="DVD">
  <vmgm />
   <titleset>
     <titles>
       <pgc>
         <vob file="matrix_dvd.mpg" chapters="0,0:30,1:00,1:30,2:30,3:00,3:30,4:00"/>
       </pgc>
       <pgc>
         <vob file="outtakes_dvd.mpg" chapters="0,0:30,1:00,1:30,2:30,3:00,3:30,4:00,4:30,5:00"/>
       </pgc>
     </titles>
   </titleset>
 </dvdauthor>


That should make the DVD play "matrix_dvd.mpg" then go onto "outtakes_dvd.mpg" right? When I put that in dvdauthor.xml and run dvdauthor, it puts both movies in the vob file together, but the DVD player stops after the first clip. If I just do 'mplayer whatever.vob' both files are there.

No, you select the next clip by selecting the next Title via your DVD player's own system menu.
To have it behave in the way you describe you would edit the dvdauthor.xml like this:
Code:

<dvdauthor dest="DVD">
  <vmgm />
   <titleset>
     <titles>
       <pgc>
         <vob file="matrix_dvd.mpg" chapters="0,0:30,1:00,1:30,2:30,3:00,3:30,4:00"/>
         <post> jump title 2; </post>
       </pgc>
       <pgc>
         <vob file="outtakes_dvd.mpg" chapters="0,0:30,1:00,1:30,2:30,3:00,3:30,4:00,4:30,5:00"/>
       </pgc>
     </titles>
   </titleset>
 </dvdauthor>
Back to top
View user's profile Send private message
shiznix
Guru
Guru


Joined: 29 Jun 2003
Posts: 367
Location: Adelaide, Australia

PostPosted: Sun Apr 17, 2005 1:48 am    Post subject: Reply with quote

Xamindar wrote:
I tried to use the script but it givs me errors. Anyone know what I am doing wrong?

Code:
Running: ffmpeg -i MySassyGirl.ac3 -f wav MySassyGirl.wav

ffmpeg version 0.4.9-pre1, build 4743, 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 --enable-ogg --enable-vorbis --disable-faad --disable-faac --disable-faadbin --disable-altivec --disable-debug --enable-mp3lame --enable-a52 --enable-a52bin --enable-audio-oss --disable-v4l --disable-dv1394 --disable-pthreads --enable-xvid --enable-gpl --enable-pp --disable-optimize
  built on Apr  7 2005 09:52:52, gcc: 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)
MySassyGirl.ac3: I/O error occured
Usually that means that input file is truncated and/or corrupted.

sox: Can't open input file 'MySassyGirl.wav': No such file or directory
sox: Can't open input file 'MySassyGirl.wav': No such file or directory
Creating left rear surround channel
cp: cannot stat `left.wav': No such file or directory

Creating right rear surround channel
cp: cannot stat `right.wav': No such file or directory



Could you please post the full output of the script that leads up to this error, thanks :wink:
Back to top
View user's profile Send private message
Xamindar
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1155
Location: California

PostPosted: Sun Apr 17, 2005 7:34 am    Post subject: Reply with quote

I re-emerged transcode with dvdread and fame enabled and it is encoding now. I'll check it in the morning and see if it finishes.
Back to top
View user's profile Send private message
shiznix
Guru
Guru


Joined: 29 Jun 2003
Posts: 367
Location: Adelaide, Australia

PostPosted: Mon Apr 18, 2005 8:16 am    Post subject: Reply with quote

hulmeman wrote:
I'm having trouble using dvdauthor, I'm getting this error message, and I'm not sure what it refers to. Can anyone help?
Thnx Baz

ERR: Cannot call to a specific menu PGC, only an entry
ERR: in VTS pgc 19, <post>

It's referring to the <post> line here:
Code:
<vob file="/vobs/20.VOB"/>
 <post>call menu 1;</post>
 </pgc>

It is saying that you cannot 'call' to a specific menu number (number '1' in this case).

This is a menu entry:
Code:
<menus>

This is a specific menu PGC:
Code:
<menus>
   <pgc> ....


With that in mind, the following would work if using 'call':
Code:
<vob file="/<vob file="/vobs/20.VOB"/>
 <post>call menu;</post>
 </pgc>

Using 'call menu' will always move you back to the first menu within the Titleset it's used, which is not what you want in this case as further down in your .xml config you use:
Code:
<post>call menu 2;</post>

Try using 'jump' instead of 'call'.

You are also using...
Code:
<post>jump menu 1;</post>
...to loop your menus.

If you use...
Code:
<post>jump cell 1;</post>
...instead, the loop point will be less noticeable on playback.
Back to top
View user's profile Send private message
elvisthedj
Guru
Guru


Joined: 21 Jun 2004
Posts: 483
Location: Nampa, ID

PostPosted: Fri Apr 22, 2005 7:54 am    Post subject: you da man Reply with quote

Hey shiznix,

Just wanted to say a big thanks for all of this information. :D I might play around with some of the gui's, but I really like to know what exactly is going on (and quite frankly it's much easier for me to tweak shell scripts than source code).

Much appreciation!
_________________
Kris Edwards
kris edwards at g mail dot c0m
PGP
WWW
Back to top
View user's profile Send private message
danorris
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 108

PostPosted: Tue Apr 26, 2005 2:47 am    Post subject: Reply with quote

First of all, my most sincere thanks to shiznix for this great guide. I'm making some DVDs for mother's day and so far, they're looking great! It would have taken me ten times as long to learn this stuff without such a good, helpful guide.

I do have a quick question, though. I created a simple root menu, and it works fine. But when I play the DVD on a standalone player, the menu's edges are cut off on all sides, by (very roughly) 50 pixels or so. Xine displays them perfectly. Is there some quirk of the DVD spec that's causing this on my standalone player? Is there a certain amount of space on the edges of the 720x480 viewport that are supposed to be like "gutters," left blank?

Here are the commands I'm running to generate the menu program (straight out of the guide), together with some info on the source files:

Code:
% jpeg2yuv -n 50 -I p -f 29.97 -j menu-background.jpg | mpeg2enc -n n -f 8 -o menu.m2v

% mplex -f 8 -o menu.vob menu.m2v menu.ac3

% identify -verbose menu-background.jpg
menu-background.jpg JPEG 720x480 DirectClass 54kb 0.030u 0:01
Image: menu-background.jpg
  Format: JPEG (Joint Photographic Experts Group JFIF format)
  Geometry: 720x480
  Class: DirectClass
  Type: TrueColor
  Endianess: Undefined
  Colorspace: RGB
  Depth: 8 bits
  Channel depth:
    Red: 8-bits
    Green: 8-bits
    Blue: 8-bits
  Channel statistics:
    Red:
      Min: 0 (0)
      Max: 255 (1)
      Mean: 129.629 (0.50835)
      Standard deviation: 81.8431 (0.320954)
    Green:
      Min: 0 (0)
      Max: 255 (1)
      Mean: 75.7809 (0.29718)
      Standard deviation: 78.5632 (0.308091)
    Blue:
      Min: 0 (0)
      Max: 255 (1)
      Mean: 35.4989 (0.139211)
      Standard deviation: 61.3636 (0.240642)
  Colors: 74337
  Rendering-intent: Undefined
  Resolution: 81x72
  Units: PixelsPerInch
  Filesize: 54kb
  Interlace: None
  Background Color: white
  Border Color: #DFDFDF
  Matte Color: grey74
  Dispose: Undefined
  Iterations: 0
  Compression: JPEG
  Quality: 80
  Orientation: Undefined
  JPEG-Colorspace: 2
  JPEG-Sampling-factors: 2x2,1x1,1x1
  Signature: 2c28b12e445684c9ae065b425b6d54e779f1612cf53fb64765279c3d513e4909
  Profile-exif: 20 bytes
0x00000000: 78696600 004d4d00 2a000000 08000000 00000000  Exif--MM-*----------
  Tainted: False
  User Time: 0.030u
  Elapsed Time: 0:01
  Version: ImageMagick 6.2.0 04/23/05 Q16 http://www.imagemagick.org

% file menu.ac3
../../menu-audio/menu.ac3: ATSC A/52 aka AC-3 aka Dolby Digital stream, 48 kHz,, complete main (CM) 2 front/0 rear, LFE on,, 224 kbit/s reserved Dolby Surround mode


I'm open to the possibility that my DVD player / TV settings are out of whack. I've never noticed any cropping of store-bought DVDs, but I've never really looked for it either. So if you think this is the case, cool, I'll do some fiddling. I just wonder if anyone else has run into the same issue.

In any case, really, thanks again... what an impressive user community!

Cheers!
Back to top
View user's profile Send private message
shiznix
Guru
Guru


Joined: 29 Jun 2003
Posts: 367
Location: Adelaide, Australia

PostPosted: Tue Apr 26, 2005 8:26 am    Post subject: Reply with quote

danorris wrote:
I do have a quick question, though. I created a simple root menu, and it works fine. But when I play the DVD on a standalone player, the menu's edges are cut off on all sides, by (very roughly) 50 pixels or so. Xine displays them perfectly. Is there some quirk of the DVD spec that's causing this on my standalone player? Is there a certain amount of space on the edges of the 720x480 viewport that are supposed to be like "gutters," left blank?

I'm open to the possibility that my DVD player / TV settings are out of whack. I've never noticed any cropping of store-bought DVDs, but I've never really looked for it either. So if you think this is the case, cool, I'll do some fiddling. I just wonder if anyone else has run into the same issue.
Hi Danorris,

I'm fairly sure the phenomena you are experiencing is quite normal for NTSC & is called NTSC overscan, something I personally have not experienced or been able to test as I live in a PAL region.
See here for more detail -> http://www.transcoding.org/cgi-bin/transcode?NTSC

Adjust your Transcode line like so & please report back:
Code:
transcode -i your_movie.avi -y ffmpeg --export_prof dvd-ntsc -j -18,-34,-22,-34 --export_asr 3 -o your_movie -D0 -s2 -m matrix.ac3 -J modfps --export_fps 29.97
The guide should be updated with a short blurb on what it is & the workaround.

For the menus, create as usual with jpeg2yuv piped through mpeg2enc, then run the resulting menu.m2v through transcode like this:
Code:
transcode -i menu.m2v -y ffmpeg,null --export_prof dvd-ntsc -j -18,-34,-22,-34 --export_asr 3 -o menu_output
Thanks :wink:
Back to top
View user's profile Send private message
danorris
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 108

PostPosted: Tue Apr 26, 2005 2:58 pm    Post subject: Reply with quote

Thanks, I'll give that a try when I get home. Earlier, I tried shrinking the menu to 620x380 and adding a 50-pixel gutter. This worked fine, but some of the black border was visible, and the non-black portion of the menu wasn't really centered. So maybe these overscan dimensions are exactly what I need!

And this brings up another question. The guide says to use jpeg2yuv, but the man page for jpeg2yuv contains the following blurb:

Code:
This is not the utility you are looking for.  This program is primarily
a  diagnostic  utility  for  debugging MJPEG recordings, not for making
movies from standard graphics  JPEG  images.   It  does  not  make  any
attempt  to convert the full-range pixel data from standard JPEG's into
the padded-range pixel data used in digital video.  The utility you are
probably  looking  for is ppmtoy4m(1), which is also included in MJPEG-
tools.


And I did get this to work:

Code:
# for NTSC
% convert menu-background.jpg ppm:- \
   | ppmtoy4m -n 50 -F 30000:1001 -A 10:11 -I p -r \
   | mpeg2enc -n n -f 8 -b 5000 -o menu.m2v


Aside from the technical reasons mentioned in the man page, this has an added advantage of allowing you to save the background image in any format, as long as ImageMagick can read it. (To be fair, you could do this with jpeg2yuv too.) The disadvantage, of course, is that it adds ImageMagick to the list of required software. Anyway, I don't personally understand the bit about the "full-range pixel data" in the man page, so I don't know whether it's actually something to worry about or not. But if so, it might be a good update to the guide.

Also, I've been passing -b 5000 to mpeg2enc when making the menu. I've noticed that its default settings leave some compression artifacts that are VERY visible on my Sony Trinitron CRT. 5000 makes it a LOT better, but it might be overkill.

Finally, I also made a little diagram -- just for myself -- that plots out all the different steps involved in the authoring process. It's basically a flowchart, with all the different source files and intermediate files and arrows between them indicating the steps that need to be taken. The arrows are labelled with the name of the program used. For me, just drawing this out was a big help in understanding the "big picture." Anyway, would it be worth scanning this in, or redrawing it in Dia? I'd be happy to do this if you think it would help others. The least I could do for such a good guide!

Thanks!
Back to top
View user's profile Send private message
danorris
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 108

PostPosted: Tue Apr 26, 2005 8:38 pm    Post subject: Reply with quote

Ok, I went ahead and redrew my flowchart in Dia. Here's a "first draft," if you will. I haven't thoroughly checked it for mistakes, and also it does not include subtitles. But it's a start.

382x300 thumbnail
1200x943 full-size

If you think this is helpful, feel free to include it in your guide; although I would ask that you download the images and place them on another site, as this is my personal webserver and it doesn't have much bandwidth at all. I also don't guarantee I'll leave them there forever. ;-)

I'm releasing these as public domain. I'm open to suggestions on changes / additions / improvements, etc.

Cheers!

Edit: I cleaned it up a bit, just some cosmetic enhancements, and changed the URL (the old one still works but is now a symlink). All the files (including the Dia source file) are also available.
Back to top
View user's profile Send private message
shiznix
Guru
Guru


Joined: 29 Jun 2003
Posts: 367
Location: Adelaide, Australia

PostPosted: Wed Apr 27, 2005 5:14 am    Post subject: Reply with quote

danorris wrote:
Thanks, I'll give that a try when I get home. Earlier, I tried shrinking the menu to 620x380 and adding a 50-pixel gutter. This worked fine, but some of the black border was visible, and the non-black portion of the menu wasn't really centered. So maybe these overscan dimensions are exactly what I need!

And this brings up another question. The guide says to use jpeg2yuv, but the man page for jpeg2yuv contains the following blurb:
Code:
This is not the utility you are looking for.  This program is primarily
a  diagnostic  utility  for  debugging MJPEG recordings, not for making
movies from standard graphics  JPEG  images.   It  does  not  make  any
attempt  to convert the full-range pixel data from standard JPEG's into
the padded-range pixel data used in digital video.  The utility you are
probably  looking  for is ppmtoy4m(1), which is also included in MJPEG-
tools.

And I did get this to work:
Code:
# for NTSC
% convert menu-background.jpg ppm:- \
   | ppmtoy4m -n 50 -F 30000:1001 -A 10:11 -I p -r \
   | mpeg2enc -n n -f 8 -b 5000 -o menu.m2v


This looks good, verified to work with PAL also. Imagemagick is a dependency of dvdauthor anyway as spumux uses it to merge the button masks.
Also read the same passage in the manpage & was just as confused.

Quote:
Aside from the technical reasons mentioned in the man page, this has an added advantage of allowing you to save the background image in any format, as long as ImageMagick can read it. (To be fair, you could do this with jpeg2yuv too.) The disadvantage, of course, is that it adds ImageMagick to the list of required software. Anyway, I don't personally understand the bit about the "full-range pixel data" in the man page, so I don't know whether it's actually something to worry about or not. But if so, it might be a good update to the guide.

Also, I've been passing -b 5000 to mpeg2enc when making the menu. I've noticed that its default settings leave some compression artifacts that are VERY visible on my Sony Trinitron CRT. 5000 makes it a LOT better, but it might be overkill.


Excellent, have immediately updated to reflect this. 5000 isn't overkill at all, it ties in beautifully with '-y ffmpeg --export_prof', which also uses 5000kbps as it's default video bitrate.
The difference is noticeable here also.

Quote:
Finally, I also made a little diagram -- just for myself -- that plots out all the different steps involved in the authoring process. It's basically a flowchart, with all the different source files and intermediate files and arrows between them indicating the steps that need to be taken. The arrows are labelled with the name of the program used. For me, just drawing this out was a big help in understanding the "big picture." Anyway, would it be worth scanning this in, or redrawing it in Dia? I'd be happy to do this if you think it would help others. The least I could do for such a good guide!

Ok, I went ahead and redrew my flowchart in Dia. Here's a "first draft," if you will. I haven't thoroughly checked it for mistakes, and also it does not include subtitles. But it's a start.

382x300 thumbnail
1200x943 full-size

If you think this is helpful, feel free to include it in your guide; although I would ask that you download the images and place them on another site, as this is my personal webserver and it doesn't have much bandwidth at all. I also don't guarantee I'll leave them there forever. ;-)

WOW WOW WOW, all I can is WOW!
This is fantastic! Have uploaded the images on another site, will link to them in the guide.
Many thanks :D

PS> Do let me know if re-running your menu.m2v through the transcode line mentioned above fixes the viewable area problem on an NTSC television.
Back to top
View user's profile Send private message
danorris
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 108

PostPosted: Thu Apr 28, 2005 3:45 am    Post subject: Reply with quote

Quote:
PS> Do let me know if re-running your menu.m2v through the transcode line mentioned above fixes the viewable area problem on an NTSC television.

Hmm. No, this didn't quite work. It's better, but there's still some clipping on the left and right edges and a little bit of the gutter visible on the top and bottom (i.e. the top and bottom borders are too large). But the more I experiment with this, the more I suspect it's actually a problem with my TV. I've started to notice that it cuts off (small) pieces of its own setup menus. Given that this TV spent considerable time in a repair shop, I'm gonna write it off as a hardware issue until I can test it on someone else's TV.
Back to top
View user's profile Send private message
lizardloop
Apprentice
Apprentice


Joined: 16 Mar 2003
Posts: 278

PostPosted: Mon May 09, 2005 5:52 pm    Post subject: Reply with quote

I'm trying to do the first step of the avi to DVD process but transcode keeps bombing out on me.
Code:

loop@loops dvd $ transcode -i Witch_Hunter_Robin_-_01_-_Replacement_-_\[R-B\]\(b09d5713\)\[AniDB\].avi -y ffmpeg --export_prof dvd-pal --export_asr 3 -o witch1 -D0 -s2 -m witch1.ac3 -J modfps --export_fps 25
transcode v0.6.14 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
[transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms
[transcode] auto-probing source Witch_Hunter_Robin_-_01_-_Replacement_-_[R-B](b09d5713)[AniDB].avi (ok)
[transcode] V: import format    | DivX;-) RIFF data, AVI (V=ffmpeg|A=mp3)
[transcode] V: import frame     | 640x480  1.33:1 
XXX: zoom=yes pre_clip=yes
[transcode] V: pre clip frame   | 640x360 (60,0,60,0)
[transcode] V: zoom             | 720x576  0.94:1 (Lanczos3)
[transcode] V: bits/pixel       | 0.181
[transcode] V: decoding fps,frc | 23.976,1
[transcode] V: Y'CbCr           | YV12/I420
[transcode] A: import format    | 0x55    MPEG layer-3 [44100,16,2]  111 kbps
[transcode] A: export format    | 0x55    MPEG layer-3 [44100,16,2]  128 kbps
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame  | 7056 (7056.000000)
[transcode] A: adjustment       | 0@1000
[transcode] A: rescale stream   | 2.000
[transcode] V: IA32 accel mode  | sse (sse mmxext mmx asm C)
tc_memcpy: using mmxext for memcpy
[transcode] V: video buffer     | 10 @ 720x576
[import_mp3.so] v0.1.4 (2003-08-04) (audio) MPEG
[import_ffmpeg.so] v0.1.11 (2004-02-29) (video)  FFmpeg0.4.9-pre1b4743: MS MPEG4v1-3/MPEG4/MJPEG
[filter_modfps.so] v0.10 (2003-08-18) plugin to modify framerate
[filter_modfps.so] converting from 23.9760fps to 25.0000fps
[export_ffmpeg.so] v0.3.13 (2004-08-03) (video) FFmpeg0.4.9-pre1b4743 | (audio) MPEG/AC3/PCM
[import_mp3.so] MP3->PCM
[import_mp3.so] tcextract -a 0 -i "Witch_Hunter_Robin_-_01_-_Replacement_-_[R-B](b09d5713)[AniDB].avi" -x mp3 -d 0 | tcdecode -x mp3 -d 0 -z 13973
[export_ffmpeg.so] Using FFMPEG codec 'mpeg2video' (FourCC 'mpg2', MPEG2 compliant video).
[export_ffmpeg.so]: INFO: Selected dvd profile, pal video type for video
[export_ffmpeg.so]: INFO: Set interlacing to top-first
[export_ffmpeg.so]: INFO: Set frame rate to 25
[export_ffmpeg.so]: INFO: Set video bitrate to 5000
[export_ffmpeg.so]: INFO: Set GOP size to 15
[export_ffmpeg.so] Neither './ffmpeg.cfg' nor '~/.transcode/ffmpeg.cfg'
[export_ffmpeg.so] found. Default settings will be used instead.
[export_ffmpeg.so]: INFO: Starting 1 thread(s)
[export_ffmpeg.so]: INFO: Display aspect ratio calculated as 1.777778
[export_ffmpeg.so]: INFO: Sample aspect ratio calculated as 1.422222
[mpeg2video @ 0xb5434b90]removing common factors from framerate
[export_ffmpeg.so]: INFO: Selected dvd profile for audio
[export_ffmpeg.so]: INFO: Resampling filter inactive
[export_ffmpeg.so]: INFO: Set number of audio channels to 2
[export_ffmpeg.so]: INFO: Set number of audio bits to 16
[export_ffmpeg.so]: WARNING: Set audio sample rate to 48000 Hz, input rate is 44100 Hz
[export_ffmpeg.so]: WARNING:    loading resample plugin
[filter.c] Filter "resample" with args (resample)
[filter.c] Filter "resample" not loaded. Loading ...
[filter.c] Loading (resample) ..
[filter_resample.so] v0.1.4 (2003-08-22) audio resampling filter plugin
[filter_resample.so] options=(null)
[export_ffmpeg.so]: INFO: Set audio bit rate to 224 kbps
[export_ffmpeg.so]: INFO: Set audio codec to ac3
tc_memcpy: using mmxext for memcpy
Segmentation fault
loop@loops dvd $

Use flags:
Code:

USE="quicktime sse acpi artswrappersuid curl dga flash foreign-package freetds gd hbci innodb mmx moznocompose pic tiff usb wmf xface xvid -arts -cups kde -gnome -directfb -esd sd gtk2 mysql network mmx2 opengl
nvidia nptl nptlonly nas live rtc real divx4linux"
CFLAGS="-march=i686 -msse -mmmx -mfpmath=sse -Os -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"

Computer is an Epia M10000 Nehemiah.
Back to top
View user's profile Send private message
danorris
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 108

PostPosted: Mon May 09, 2005 7:32 pm    Post subject: Reply with quote

What version of transcode? Does the crash happen right away, or after it's been encoding for a while? Have you tried other files, and if so, do they work? Have you run it in gdb to get a stack trace (preferably without -fomit-frame-pointer in your CFLAGS)?
Back to top
View user's profile Send private message
lizardloop
Apprentice
Apprentice


Joined: 16 Mar 2003
Posts: 278

PostPosted: Tue May 10, 2005 5:47 am    Post subject: Reply with quote

transcode is version 0.6.14
Here is what happens when I try to encode another file:
Code:

transcode v0.6.14 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterbergwitch1 -
[transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms
[transcode] auto-probing source Sharky & George - 1.05 - Doctor Jake Eel And Mr Crab.avi (ok)
[transcode] V: import format    | DivX5 RIFF data, AVI (V=ffmpeg|A=mp3)
[transcode] V: import frame     | 352x288  1.22:1 
XXX: zoom=yes pre_clip=yes
[transcode] V: pre clip frame   | 352x202 (42,0,44,0)
[transcode] V: zoom             | 720x576  0.88:1 (Lanczos3)
[transcode] V: bits/pixel       | 0.174
[transcode] V: decoding fps,frc | 25.000,3
[transcode] V: Y'CbCr           | YV12/I420
[transcode] A: import format    | 0x55    MPEG layer-3 [48000,16,2]  112 kbps
[transcode] A: export format    | 0x55    MPEG layer-3 [48000,16,2]  128 kbps
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame  | 7680 (7680.000000)
[transcode] A: adjustment       | 0@1000
[transcode] A: rescale stream   | 2.000
[transcode] V: IA32 accel mode  | sse (sse mmxext mmx asm C)
tc_memcpy: using mmxext for memcpy
[transcode] V: video buffer     | 10 @ 720x576
[import_mp3.so] v0.1.4 (2003-08-04) (audio) MPEG
[import_ffmpeg.so] v0.1.11 (2004-02-29) (video)  FFmpeg0.4.9-pre1b4743: MS MPEG4v1-3/MPEG4/MJPEG
[filter_modfps.so] v0.10 (2003-08-18) plugin to modify framerate
[filter_modfps.so] converting from 25.0000fps to 25.0000fps
[filter_modfps.so] No framerate conversion requested, exiting
[transcode] warning : filter plugin 'modfps' returned error - plugin skipped
[export_ffmpeg.so] v0.3.13 (2004-08-03) (video) FFmpeg0.4.9-pre1b4743 | (audio) MPEG/AC3/PCM
[import_mp3.so] MP3->PCM
[import_mp3.so] tcextract -a 0 -i "Sharky & George - 1.05 - Doctor Jake Eel And Mr Crab.avi" -x mp3 -d 0 | tcdecode -x mp3 -d 0 -z 14000
[export_ffmpeg.so] Using FFMPEG codec 'mpeg2video' (FourCC 'mpg2', MPEG2 compliant video).
[export_ffmpeg.so]: INFO: Selected dvd profile, pal video type for video
[export_ffmpeg.so]: INFO: Set interlacing to top-first
[export_ffmpeg.so]: INFO: Set frame rate to 25
[export_ffmpeg.so]: INFO: Set video bitrate to 5000
[export_ffmpeg.so]: INFO: Set GOP size to 15
[export_ffmpeg.so] Neither './ffmpeg.cfg' nor '~/.transcode/ffmpeg.cfg'
[export_ffmpeg.so] found. Default settings will be used instead.
[export_ffmpeg.so]: INFO: Starting 1 thread(s)
[export_ffmpeg.so]: INFO: Display aspect ratio calculated as 1.777778
[export_ffmpeg.so]: INFO: Sample aspect ratio calculated as 1.422222
[mpeg2video @ 0xb5434b90]removing common factors from framerate
[export_ffmpeg.so]: INFO: Selected dvd profile for audio
[export_ffmpeg.so]: INFO: Resampling filter inactive
[export_ffmpeg.so]: INFO: Set number of audio channels to 2
[export_ffmpeg.so]: INFO: Set number of audio bits to 16
[export_ffmpeg.so]: INFO: No audio resampling necessary, using 48000 Hz
[export_ffmpeg.so]: INFO: Set audio bit rate to 224 kbps
[export_ffmpeg.so]: INFO: Set audio codec to ac3
tc_memcpy: using mmxext for memcpy
[mpeg2video @ 0xb5434b90]rc buffer underflow
encoding frames [000000-000015],   2.85 fps, EMT: 0:00:00, ( 0| 0| 9)
[transcode] (sighandler) SIGINT received

clean up | frame threads | unload modules | cancel signal | internal threads | done
[transcode] clipped 11333 audio samples
[transcode] encoded 16 frames (0 dropped, 0 cloned), clip length   0.64 s


The error with the other file has now changed as well:
Code:

loop@loops dvd $ transcode -i Witch_Hunter_Robin_-_01_-_Replacement_-_\[R-B\]\(b09d5713\)\[AniDB\].avi -y ffmpeg --export_prof dvd-pal --export_asr 3 -o witch1 -D0 -s2 -m witch1.ac3 -J modfps --export_fps 25
transcode v0.6.14 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
[transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms
[transcode] auto-probing source Witch_Hunter_Robin_-_01_-_Replacement_-_[R-B](b09d5713)[AniDB].avi (ok)
[transcode] V: import format    | DivX;-) RIFF data, AVI (V=ffmpeg|A=mp3)
[transcode] V: import frame     | 640x480  1.33:1 
XXX: zoom=yes pre_clip=yes
[transcode] V: pre clip frame   | 640x360 (60,0,60,0)
[transcode] V: zoom             | 720x576  0.94:1 (Lanczos3)
[transcode] V: bits/pixel       | 0.181
[transcode] V: decoding fps,frc | 23.976,1
[transcode] V: Y'CbCr           | YV12/I420
[transcode] A: import format    | 0x55    MPEG layer-3 [44100,16,2]  111 kbps
[transcode] A: export format    | 0x55    MPEG layer-3 [44100,16,2]  128 kbps
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame  | 7056 (7056.000000)
[transcode] A: adjustment       | 0@1000
[transcode] A: rescale stream   | 2.000
[transcode] V: IA32 accel mode  | sse (sse mmxext mmx asm C)
tc_memcpy: using mmxext for memcpy
[transcode] V: video buffer     | 10 @ 720x576
[import_mp3.so] v0.1.4 (2003-08-04) (audio) MPEG
[import_ffmpeg.so] v0.1.11 (2004-02-29) (video)  FFmpeg0.4.9-pre1b4743: MS MPEG4v1-3/MPEG4/MJPEG
[filter_modfps.so] v0.10 (2003-08-18) plugin to modify framerate
[filter_modfps.so] converting from 23.9760fps to 25.0000fps
[export_ffmpeg.so] v0.3.13 (2004-08-03) (video) FFmpeg0.4.9-pre1b4743 | (audio) MPEG/AC3/PCM
[import_mp3.so] MP3->PCM
[import_mp3.so] tcextract -a 0 -i "Witch_Hunter_Robin_-_01_-_Replacement_-_[R-B](b09d5713)[AniDB].avi" -x mp3 -d 0 | tcdecode -x mp3 -d 0 -z 13973
tc_memcpy: using mmxext for memcpy
[export_ffmpeg.so] Using FFMPEG codec 'mpeg2video' (FourCC 'mpg2', MPEG2 compliant video).
[export_ffmpeg.so]: INFO: Selected dvd profile, pal video type for video
[export_ffmpeg.so]: INFO: Set interlacing to top-first
[export_ffmpeg.so]: INFO: Set frame rate to 25
[export_ffmpeg.so]: INFO: Set video bitrate to 5000
[export_ffmpeg.so]: INFO: Set GOP size to 15
[export_ffmpeg.so] Neither './ffmpeg.cfg' nor '~/.transcode/ffmpeg.cfg'
[export_ffmpeg.so] found. Default settings will be used instead.
[export_ffmpeg.so]: INFO: Starting 1 thread(s)
[export_ffmpeg.so]: INFO: Display aspect ratio calculated as 1.777778
[export_ffmpeg.so]: INFO: Sample aspect ratio calculated as 1.422222
[mpeg2video @ 0xb5434b90]removing common factors from framerate
[export_ffmpeg.so]: INFO: Selected dvd profile for audio
[export_ffmpeg.so]: INFO: Resampling filter inactive
[export_ffmpeg.so]: INFO: Set number of audio channels to 2
[export_ffmpeg.so]: INFO: Set number of audio bits to 16
[export_ffmpeg.so]: WARNING: Set audio sample rate to 48000 Hz, input rate is 44100 Hz
[export_ffmpeg.so]: WARNING:    loading resample plugin
[filter.c] Filter "resample" with args (resample)
[filter.c] Filter "resample" not loaded. Loading ...
[filter.c] Loading (resample) ..
[filter_resample.so] v0.1.4 (2003-08-22) audio resampling filter plugin
[filter_resample.so] options=(null)
[export_ffmpeg.so]: INFO: Set audio bit rate to 224 kbps
[export_ffmpeg.so]: INFO: Set audio codec to ac3
[mpeg2video @ 0xb5434b90]rc buffer underflow
Segmentation fault00000-000005],  31.32 fps, EMT: 0:00:00, ( 0| 0| 0)
loop@loops dvd $


Not sure how to run it in gdb and get a stack trace but once I figure out how to do that I will.
Back to top
View user's profile Send private message
danorris
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 108

PostPosted: Tue May 10, 2005 6:25 am    Post subject: Reply with quote

It's the same error, it just got a little farther before crashing (it survived long enough to print out some progress text). Is this the only file you've had trouble with? If so then it seems to me like a potential bug in ffmpeg, or possibly transcode itself. It might just be a broken AVI file that transcode doesn't like. Can you play this file back in mplayer or xine? Any error or warning messages about the file? I did a quick search of both the transcode-users and ffmpeg-users mailing list archives but couldn't find anything. You may be able to narrow the search down a bit. If you have mplayer emerged (highly recommended), try this:

Code:
mplayer -vfm ffmpeg Witch*.avi


If this crashes too, it would suggest an ffmpeg bug. Otherwise, it may be a bug in transcode itself, or something wrong with your build. If you have the opportunity, you could try transcoding it on another system. Faililng that, you might do a more thorough search on the transcode-users / ffmpeg-users mailing list archives. If you don't find anything, consider posting on transcode-users; they'll want to know the version numbers of transcode and ffmpeg, and they'll probably also want you to run transcode with an extra "-v" option and post the results.

Run gdb like this:

Code:
gdb transcode [options...]


Once gdb starts up, it'll give you a "(gdb)" prompt. Type "run". Transcode will then run just like it does normally (although much slower). When it crashes, you'll go back to the "(gdb)" prompt. Type "backtrace". This output is generally very useful to programmers when hunting down errors like this. The topmost function in gdb's stack trace is also usually a very good thing to put into Google, to help you find others with the same problem! Note that -fomit-frame-pointer in your CFLAGS will make the stack trace impossible to recover in general (gdb will give you lots of question marks). To get useful information you may need to rebuild everything without -fomit-frame-pointer. But don't bother with this unless one of the transcode gurus asks you to (it won't help me personally, I'm not a transcode developer).
Back to top
View user's profile Send private message
lizardloop
Apprentice
Apprentice


Joined: 16 Mar 2003
Posts: 278

PostPosted: Tue May 10, 2005 12:15 pm    Post subject: Reply with quote

The video plays fine in mplayer. I will try some other videos and see if it is just this one. If so I'll start mucking about with mailing lists. Thanks for all your help.

Edit:
Seems as though this is the only video file that causes the fault. Will run the backtrace and send the results off to the transcode mailing list.
Back to top
View user's profile Send private message
jflintz
n00b
n00b


Joined: 10 May 2005
Posts: 37

PostPosted: Tue May 10, 2005 9:37 pm    Post subject: Reply with quote

All works great thanks to the HOWTO. Only issue that I have is with converting the ac3 file to wav to create the 5.1

here is the error that I get when trying as root or regular user


ffmpeg -i thx.ac3 -f wav thx.wav
ffmpeg version 0.4.9-pre1, build 4718, Copyright (c) 2000-2004 Fabrice Bellard
built on May 5 2005 22:07:08, gcc: 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice)
thx.ac3: could not find codec parameters


I have read the whole post and search the forums and have not found an answer.


Thanks

jflintz
Back to top
View user's profile Send private message
danorris
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 108

PostPosted: Tue May 10, 2005 11:33 pm    Post subject: Reply with quote

Not sure about the ffmpeg problem, but you might try skipping this step. I could be wrong, but I thought most 5.1 receivers were smart enough to correctly handle 2-channel input. My Onkyo receiver, for example, has two selectable ways of handling this. It can either send the two channels to the left and right fronts, muting the other speakers, or it can upmix it on-the-fly, exactly like this guide suggests doing with sox (it does the delayed rear output and everything). If you can live with your stereo's handling of 2-channel input, then it's a good idea to skip this step because you're taking a quality hit when you re-encode, whereas you could just be passing the original AC3 straight through to the DVD.
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 ... 18, 19, 20 ... 29, 30, 31  Next
Page 19 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