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 ... 25, 26, 27 ... 29, 30, 31  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
budman8
n00b
n00b


Joined: 04 Feb 2006
Posts: 3
Location: Halifax

PostPosted: Sat Feb 04, 2006 4:57 pm    Post subject: Optimizing and button highlights Reply with quote

Hi,

Excellent tutorial! I walked thru it fine. A reference note to 4 color limit on the button select/highlight would help. :)
I had one mess up forgetting to change the aspect ratio. Will fix that next time.

I did notice, the button highlights were aligned correctly in Xine, but were off by what looks to be a 1/2" on the TV.
Do I need to add padding or an offset? or would this be due the aspect ratio was incorrect for the background.

The main question I have is about the optimizing the encoding.
I tried the both suggestions for NTSC in the tutorial.
After encoding, I try to run it in Xine, I hear audio fine - however no video and I get the dropped frames popup.
After trying and checking the Xine configs, I was going thru many of the posts on here.
I saw some mentioned mplayer, so I thought I would give it a shot - it worked flawlessly.
There are a lot of tweaks in Xine, I am wondering if I need to adjust anything to see the video.


When shrinking the video, is it better to always use the preclip?
I tried it without, it looks fine in mplayer, but some shots the heads are stretched, so I will try it again with the preclip.
I find it hard to tell what it will look like on TV from the preview on the computer.

I notice playing DVDs on the PS/2 (haven't bothered to get a DVD player yet, mainly waiting for the blue DVD to come out, like in PS3 - didn't want to waste my money on green and red, because the blue will offer 4 layer, then I will make an investment - used to work in the media industry) that sound for the music is often higher than the voices - so we are constantly battling with the volume, turn the volume up to 35 when its an intimate moment, then drop it down to 14 when music or a sound effects kick in. I guess there is no way to control it on the PS/2, I looked at the browser, but don't see anything other than stereo sound. It definitely sounds like the DVD's have sound encoded for multi channel systems, must be a way to override it.

Thanks again for a great tutorial.
Rich
Back to top
View user's profile Send private message
Jenden
n00b
n00b


Joined: 14 Nov 2004
Posts: 59

PostPosted: Sat Feb 04, 2006 6:42 pm    Post subject: Reply with quote

Looks like I'm having a similar problem to a couple other people here with subtitles.
I've been trying to put together a DVD with a bunch of short video clips and a subtitle for each that acts as kind of a label. However, I can't get the subtitles to work right. I'm using spumux to try to merge the subtitles into the MPG files, and here's the output I get:
INFO: Locale=en_US.UTF-8
INFO: Converting filenames to UTF-8
INFO: Detected subtitle file format: subviewer
INFO: Opened iconv descriptor. *UTF-8* *ISO8859-1*
INFO: Read 1 subtitles
INFO: Unicode font: 1185 glyphs.
INFO: Found EOF in .sub file.
INFO: Subtitle inserted at: 0.333356 sd=60
WARN: Read 0, expected 4
INFO: 1 subtitles added, 0 subtitles skipped, stream: 32, offset: 0.23

Statistics:
- Processed 1 subtitles.
- The longest display line had 9 characters.
- The maximum number of displayed lines was 1.
- The normal display height of the font arial.ttf was 32.
- The bottom display height of the font arial.ttf was 46.
- The biggest subtitle box had 488 bytes.

It looks like everything goes ok, but when I go to play back the video to make sure it worked I don't see any subtitle streams (I've tried both mplayer as well as gxine, and both are saying no subtitle streams). I'm making the subtitles from .srt text subtitle files, and I know those files work correctly. Here's the xml file I'm using for spumux:
<subpictures>
<stream>
<textsub filename="beck.srt" horizontal-alignment="center" subtitle-fps="29.97" movie-fps="29.97" movie-width="352" movie-height="240"/>
</stream>
</subpictures>

Any suggestions?
Back to top
View user's profile Send private message
DAharon
Apprentice
Apprentice


Joined: 17 Jun 2004
Posts: 155

PostPosted: Sun Feb 05, 2006 3:04 am    Post subject: Reply with quote

I have the same problem as above regarding subtitles. I've never gotten it to work right.
Back to top
View user's profile Send private message
budman8
n00b
n00b


Joined: 04 Feb 2006
Posts: 3
Location: Halifax

PostPosted: Sun Feb 05, 2006 8:31 pm    Post subject: Reply with quote

Jenden wrote:

It looks like everything goes ok, but when I go to play back the video to make sure it worked I don't see any subtitle streams (I've tried both mplayer as well as gxine, and both are saying no subtitle streams). I'm making the subtitles from .srt text subtitle files, and I know those files work correctly. Here's the xml file I'm using for spumux:
<subpictures>
<stream>
<textsub filename="beck.srt" horizontal-alignment="center" subtitle-fps="29.97" movie-fps="29.97" movie-width="352" movie-height="240"/>
</stream>
</subpictures>

Any suggestions?


I saw in the howto where it mentioned about the subtitle-fps must be in the fps in which the subtitle file was created.
I had the fps as 25 and the movie-fps 29.97, and had the height and width as the smaller size,
which caused it put the text in the middle of the screen.
I changed it to the original size 720x480 and it worked correctly.

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


Also, mplayer does not like subtitles very much - there is no option to enable it and the settings keep reverting no matter what you set.
seems like a bug.

Since xine is not cooperating with smaller resolutions, mplayer works fine, but only from cmdline:
mplayer -sid 0 movie.temp.mpg -fs

Just need to figure out how to make them look better. :)
I tried a larger size, looks ok, but the white outline is too bold.


Rich
Back to top
View user's profile Send private message
qwijibow
n00b
n00b


Joined: 27 Dec 2004
Posts: 58

PostPosted: Tue Feb 07, 2006 2:45 pm    Post subject: Reply with quote

aaaghghgh panick.....

using any2dvd

Code:

any2dvd --surround=no --burn=yes --iso=./work/eye.iso --burn=yes --animate=yes --workdir=./work/ -i src/eye.avi


dureing the cration, i got a few of the following errors
"FreeType library is not available `./work//VTSM/tmp_thumbs2.png'

then at the very end, the last stage

Quote:
Menu #4 created
Finished Titleset #1

Authoring DVD File Structure...

DVDAuthor::dvdauthor, 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: dvdauthor creating VTS
STAT: Picking VTS 01

STAT: Processing ./work//VTSM/vtsm1_1.mpg...

STAT: Processing ./work//VTSM/vtsm1_2.mpg...

STAT: Processing ./work//VTSM/vtsm1_3.mpg...

STAT: Processing ./work//VTSM/vtsm1_4.mpg...
STAT: VOBU 0 at 0MB, 4 PGCS
/usr/local/bin/any2dvd: line 7397: 15366 Segmentation fault dvdauthor -x "$XMLFILE"

Creating DVD ISO file named ./work/eye.iso

mkisofs: No such file or directory. Unable to open disc image file

Error: DVD ISO was not successfully created


Burning DVD...

Executing 'mkisofs -V ANY2DVD -dvd-video ./work//DVD/ | builtin_dd of=/dev/dvd obs=32k seek=0'
mkisofs: No such file or directory. Faild to open ./work//DVD//VIDEO_TS/VIDEO_TS.IFO
mkisofs: Can't open VMG info for './work//DVD/'.
mkisofs: Unable to parse DVD-Video structures.
mkisofs: Unable to make a DVD-Video image.
:-( write failed: Input/output error


what caused this error ???

was it because i used a relative work directory " ./work" and i should have used absolute "/tmp/work" ???

the ./work/DVD/VIDEO_TS/ folder is empty.

however, it seems that the menu piccys and mpegs were created successfully, as was the .VOB file.

i would rather not go though the whole any2dvd process again untilli am sure what went wrong.

all porgrams are installed, and all are the correct version as indicated in post #1.

Also... would i be able to continue from where the any2DVD failed via command line ?

any tips on how far back to back-track.

Thanks
Back to top
View user's profile Send private message
Larcen
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 174

PostPosted: Sat Feb 11, 2006 10:37 am    Post subject: Reply with quote

ffmpeg continues to failing with the error: Unknown format. See 'log' below.

Code:

Running: ffmpeg -y -i downloads/dir/file.avi -map 0:1 -ar 48000 -ab 384 -ac 2 "/home/files/dvd/file.ac3" -map 0:0 -f mpeg2video -s 640x352 -padtop 2 -padbottom 2 -b 5000 -r ntsc - 2> /dev/null | ffmpeg -y -i - -b 5000 -bufsize 224 -maxrate 7000 -s 720x480 -aspect 16:9 -r ntsc -f mpeg2video /home/files/dvd/file.m2v

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 --enable-mmx --disable-altivec --disable-debug --enable-mp3lame --disable-a52 --disable-a52bin --enable-audio-oss --disable-v4l --disable-dv1394 --disable-dc1394 --disable-pthreads --enable-xvid --enable-ogg --enable-vorbis --disable-dts --enable-network --enable-zlib --enable-ffplay --disable-faad --disable-faac --disable-faadbin --enable-gpl --enable-pp --disable-opts --build=i686-pc-linux-gnu
  built on Feb 11 2006 05:20:13, 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 /home/files/dvd/file.m2v, file not successfully encoded!


The only thing altered is the actual name of the files.
Back to top
View user's profile Send private message
Donkey_Breath
n00b
n00b


Joined: 21 Dec 2005
Posts: 12

PostPosted: Sat Feb 11, 2006 12:55 pm    Post subject: Reply with quote

Hi, I have an avi which transcode failed on each time I used the command at the start of this howto. I tried piping through mplayer as suggested, and when that didn't work I re-encoded it with mplayer as if it wasn't an avi. The new file plays fine, but transcode fails when I try to convert it to mpeg.

Code:

$ transcode -i test.avi -y ffmpeg --export_prof dvd-pal --export_asr 3 -o test  -b224 -N 0x02000 -s2 -m test.ac3  --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 test.avi (ok)
[transcode] V: import format    | DivX5 RIFF data, AVI (V=ffmpeg|A=avi)
[transcode] V: import frame     | 640x272  2.35:1
XXX: zoom=yes pre_clip=yes
[transcode] V: pre clip frame   | 640x382 (-56,0,-54,0)
[transcode] V: zoom             | 720x576  1.76: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    | 0x1     PCM          [48000,16,2] 1536 kbps
[transcode] A: export format    | 0x2000  AC3          [48000,16,2]  224 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
tc_memcpy: using libc for memcpy
[transcode] V: video buffer     | 10 @ 720x576
[import_avi.so] v0.4.2 (2002-05-24) (video) * | (audio) *
[import_ffmpeg.so] v0.1.11 (2004-02-29) (video)  Lavc51.0.0: MS MPEG4v1-3/MPEG4/MJPEG
[export_ffmpeg.so] v0.3.13 (2004-08-03) (video) Lavc51.0.0 | (audio) MPEG/AC3/PCM
[import_avi.so] format=0x1, rate=48000 Hz, bits=16, channels=2, bitrate=1536
[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 @ 0x2aaaae3968f0]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
Killed


I have encoded other movies with no problems, this is a bit beyond me - there's nothing there that actually looks like an error. It just all of a sudden says "Killed" with no explanation.

I just tried the exact same process with another file and it worked fine... I wonder what's wrong with that file?
Back to top
View user's profile Send private message
Beetle B.
Guru
Guru


Joined: 01 Mar 2003
Posts: 517

PostPosted: Sat Feb 11, 2006 6:23 pm    Post subject: Reply with quote

wrote:
ffmpeg continues to failing with the error: Unknown format. See 'log' below.


What version of ffmpeg are you using?

What version of any2vob?

I had this problem with the latest stable ffmpeg while using any2vob 0.28. I had to downgrade ffmpeg. The latest version did seem to "work" with the latest any2vob 0.30, but then I get a horrible audio-video synch problem. Again, downgrading ffmpeg made it work. I'm sure it's something to do with the command line switches in any2vob. When I use the other program mentioned a page or two ago, it also uses ffmpeg and there's no synch issue (the latest ffmpeg).
_________________
Beetle B.

Please update the table of equivalents.
A Firefox guide.
Back to top
View user's profile Send private message
Larcen
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 174

PostPosted: Sat Feb 11, 2006 8:44 pm    Post subject: Reply with quote

I tried with latest ffmpeg and version ffmpeg-0.4.9_p20050226-r5.ebuild, should I try one even older than that? Using any2dvd/vob version 0.30
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 Feb 13, 2006 6:20 pm    Post subject: Reply with quote

at one time it worked perfectly, but now I get this error...

bob@mauller /media/avi $ transcode -i film.avi -y ffmpeg --export_prof dvd-ntsc --export_asr 3 -o film -D0 -b224 -N 0x2000 -s2 -m film.ac3 -J modfps=clonetype=3 --export_fps 29.97
transcode v1.0.2 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
libdvdread: Using libdvdcss version 1.2.9 for DVD access
libdvdread: Can't open file VIDEO_TS.IFO.
[transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms
[transcode] auto-probing source film.avi (ok)
[transcode] V: import format | MJPG RIFF data, AVI (V=ffmpeg|A=null)
[transcode] V: import frame | 720x540 1.33:1
XXX: zoom=yes pre_clip=yes
[transcode] V: pre clip frame | 720x406 (68,0,66,0)
[transcode] V: zoom | 720x480 1.13:1 (Lanczos3)
[transcode] V: bits/pixel | 3421.875
[transcode] V: decoding fps,frc | 0.002,0
[transcode] V: Y'CbCr | YV12/I420
[transcode] A: import | disabled
[transcode] A: export | disabled
[transcode] V: encoding fps,frc | 29.970,4
[transcode] A: bytes per frame | 0 (0.000000)
[transcode] A: adjustment | 0@1000
[transcode] A: rescale stream | 2.000
[transcode] V: IA32/AMD64 accel | sse2 (sse2 sse mmxext mmx asm C)
tc_memcpy: using sse for memcpy
[transcode] V: video buffer | 10 @ 720x540
[import_null.so] v0.2.0 (2002-01-19) (video) null | (audio) null
[import_ffmpeg.so] v0.1.12 (2004-05-07) (video) ffmpeg: MS MPEG4v1-3/MPEG4/MJPEG
[filter_modfps.so] v0.10 (2003-08-18) plugin to modify framerate
[filter_modfps.so] converting from 0.0015fps to 29.9700fps
[filter_modfps.so] Error, desired output fps can not be greater
[filter_modfps.so] than twice the input fps
[transcode] warning : filter plugin 'modfps' returned error - plugin skipped
[export_null.so] v0.1.2 (2001-08-17) (video) null | (audio) null
[export_ffmpeg.so] v0.3.13 (2004-08-03) (video) FFmpeg0.4.9-pre1b4743 | (audio) MPEG/AC3/PCM
[transcode] input is mjpeg, reducing range from YUVJ420P to YUV420P
[filter.c] Filter "levels=output=16-240:pre=1" with args (levels=output=16-240:pre=1)
[filter.c] Filter "levels=output=16-240:pre=1" not loaded. Loading ...
[filter.c] Loading (levels=output=16-240:pre=1) ..
[filter_levels.so]: v1.0.0 (2004-06-09) Luminosity level scaler #0
[filter_levels.so]: scaling 0-255 gamma 1.000000 to 16-240
[filter_levels.so]: pre-processing filter
[export_ffmpeg.so] Using FFMPEG codec 'mpeg2video' (FourCC 'mpg2', MPEG2 compliant video).
Segmentation fault :x

using ffmpeg-0.4.9_p20050226-r5 and transcode-1.0.2-r2
_________________
A computers attention span is only as long as it's electrical cord (Murphy)
Back to top
View user's profile Send private message
freemymind
n00b
n00b


Joined: 13 Sep 2003
Posts: 9
Location: NC

PostPosted: Tue Feb 14, 2006 7:12 pm    Post subject: Thank you! Reply with quote

Hi,

Excellent tutorial! I walked thru it with no problems thank you!
Back to top
View user's profile Send private message
Beetle B.
Guru
Guru


Joined: 01 Mar 2003
Posts: 517

PostPosted: Tue Feb 14, 2006 8:27 pm    Post subject: Reply with quote

One suggestion to those who had it working but no longer works. If my suggestion above didn't work, did you try a revdep-rebuild?
_________________
Beetle B.

Please update the table of equivalents.
A Firefox guide.
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: Wed Feb 15, 2006 11:05 am    Post subject: Reply with quote

Beetle B. wrote:
One suggestion to those who had it working but no longer works. If my suggestion above didn't work, did you try a revdep-rebuild?


I re-installed all the apps in the tutorial. My problem only appears when setting the aspect ratio to asr 2. This is a new thing, so I don't know if it has to do with transcode, or the avi I'm working with.
_________________
A computers attention span is only as long as it's electrical cord (Murphy)
Back to top
View user's profile Send private message
Tomasu
n00b
n00b


Joined: 01 Jun 2005
Posts: 34

PostPosted: Tue Feb 21, 2006 7:28 am    Post subject: Reply with quote

I've got a slight bug report for the any2dvd component of this tut,

Code:
Creating Titleset 1 Chapter 1
/path/to/any2dvd: line 381: [: 2564.84: integer expression expected


Dies just after muxing the VOB, and (I think) while attempting to create the chapter points.

edit, I also have a question, the step it takes when given a mp4/mov file, does the video or audio get changed or reencoded in any way? I've found that mencoder and transcode support the file format, so no preprocessing really needs done as far as I can see.
Back to top
View user's profile Send private message
mrv
Tux's lil' helper
Tux's lil' helper


Joined: 29 Mar 2004
Posts: 114
Location: Oulu, Finland

PostPosted: Thu Feb 23, 2006 6:37 pm    Post subject: Reply with quote

Hi,

Let's assume I have to video clips encoded into right format; foo.mpg and bar.mpg. Is it possible to contruct dvdauthor.xml (the menu) so that I don't have the menu itself, but I can jump between the titles with my remote control ? If it is possible, can somebody please give me an example?

Thanks !

EDIT: Nevermind; I already found DVD Authoring Wizard (http://kde-apps.org/content/show.php?content=27528) that did the job. Great piece of software!

-mrv-
Back to top
View user's profile Send private message
budman8
n00b
n00b


Joined: 04 Feb 2006
Posts: 3
Location: Halifax

PostPosted: Sat Feb 25, 2006 4:06 pm    Post subject: Reply with quote

budman8 wrote:
Jenden wrote:

It looks like everything goes ok, but when I go to play back the video to make sure it worked I don't see any subtitle streams (I've tried both mplayer as well as gxine, and both are saying no subtitle streams). I'm making the subtitles from .srt text subtitle files, and I know those files work correctly. Here's the xml file I'm using for spumux:
<subpictures>
<stream>
<textsub filename="beck.srt" horizontal-alignment="center" subtitle-fps="29.97" movie-fps="29.97" movie-width="352" movie-height="240"/>
</stream>
</subpictures>

Any suggestions?


I saw in the howto where it mentioned about the subtitle-fps must be in the fps in which the subtitle file was created.
I had the fps as 25 and the movie-fps 29.97, and had the height and width as the smaller size,
which caused it put the text in the middle of the screen.
I changed it to the original size 720x480 and it worked correctly.



Trial and error shows only a few attempts and you should get it correct.
The problem is the srt files do not indicate if they are in PAL or NTSC.
I assumed PAL for the first attempt, when I saw the result with the timing of the subtitles going by at fast forward speed,
I then tried again using 29.97. The second time worked fine.

You don't need to make the dvd to see if the subtitles worked. Use xine or mplayer, and load the temp_file.mpg just created after adding the subtitles. Then do some spot checks, pick a few lines in the srt file and check the running time in the mpg file. To see if everything is accurate. I'm not sure how to turn on the OSD (is that name of it) to view the running time, current position - press O in mplayer, not sure in xine.

Regards,
Rich
Back to top
View user's profile Send private message
niats
n00b
n00b


Joined: 23 Feb 2006
Posts: 4

PostPosted: Tue Feb 28, 2006 12:26 pm    Post subject: GAP Animated DVD Menu Reply with quote

Hoping this can help those curious about making animated DVD menu's in linux. There is a tutorial posted on gimptalk for using gimp and the gimp-gap tool to create them. Also there is a video of an animated dvd menu created with gimp and gimp-gap here.

I know there are CLI programs out there to assist in creating animated dvd menus. The gimp-gap tool seems to add a nice GUI addition to making these.
Back to top
View user's profile Send private message
eleanor
l33t
l33t


Joined: 01 Nov 2004
Posts: 666

PostPosted: Tue Feb 28, 2006 3:51 pm    Post subject: Reply with quote

I would just like to ask you guys something.

Look at this code:
Code:
transcode -i thx.mpg -y ffmpeg --export_prof dvd-ntsc --export_asr 3 -o thx -D0 -b224 -N 0x2000 -s2 -m thx.ac3 -J modfps=clonetype=3 --export_fps 29.97
That's the code that was in HOWTO at the beginning of this threat.

So I'm wondering why the hell is this taking so much time. When I do this command on my computer it takes about 8 hours to complete. Why is that so, I don't think that is normall, so I ask you how much time consuming this really is?
Back to top
View user's profile Send private message
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1382

PostPosted: Wed Mar 01, 2006 1:26 am    Post subject: Reply with quote

Tomasu wrote:
I've got a slight bug report for the any2dvd component of this tut,

Code:
Creating Titleset 1 Chapter 1
/path/to/any2dvd: line 381: [: 2564.84: integer expression expected


Dies just after muxing the VOB, and (I think) while attempting to create the chapter points.

edit, I also have a question, the step it takes when given a mp4/mov file, does the video or audio get changed or reencoded in any way? I've found that mencoder and transcode support the file format, so no preprocessing really needs done as far as I can see.


I got the same error. I was able to fix it with this change on that line number:

Code:

381c381
< if [ "`mplayer -vo dummy -identify "$1" 2>&1 | grep ID_LENGTH | cut -d= -f2`" -gt 0 ]; then   # Check if muxed audio track is longer than video stream, otherwise $prefpic will return zero causing hang
---
> if [ "`mplayer -vo dummy -identify "$1" 2>&1 | grep ID_LENGTH | cut -d= -f2 | awk -F '.' '{ print $1; exit; }'`" -gt 0 ]; then   # Check if muxed audio track is longer than video stream, otherwise $prefpic will return zero causing hang


I have to find time to report the bug. mplayer's --identify is reporting the length with decimal fractions of a second and that extra awk I added trims it off.

I'm getting the same segfault in dvdauthor that qwijibow reported. I noticed that all the mpg files that get created for the menus are zero length files. I'm not sure what's causing that, but I think that's the problem.

Tom
Back to top
View user's profile Send private message
niats
n00b
n00b


Joined: 23 Feb 2006
Posts: 4

PostPosted: Thu Mar 09, 2006 3:24 pm    Post subject: Reply with quote

eleanor wrote:
I would just like to ask you guys something.

Look at this code:
Code:
transcode -i thx.mpg -y ffmpeg --export_prof dvd-ntsc --export_asr 3 -o thx -D0 -b224 -N 0x2000 -s2 -m thx.ac3 -J modfps=clonetype=3 --export_fps 29.97
That's the code that was in HOWTO at the beginning of this threat.

So I'm wondering why the hell is this taking so much time. When I do this command on my computer it takes about 8 hours to complete. Why is that so, I don't think that is normall, so I ask you how much time consuming this really is?


Eleanor, I have had the same experience when transcoding a large video file. I have a 1.8 GHz processor with 512 MB RAM, so I don't think your experience is necessarily unusual, at least not from my perspective.
Back to top
View user's profile Send private message
neiltrodden
n00b
n00b


Joined: 26 Jul 2003
Posts: 10

PostPosted: Sun Mar 12, 2006 2:22 am    Post subject: Reply with quote

If anyone is interested, I have created a kommander script based on this guide to create an dvd-video iso image from an avi file.

It doesn't create a menu at all but is fully automated with progress bars updated in real-time:

http://www.kde-apps.org/content/show.php?content=36351
Back to top
View user's profile Send private message
psutokth
Tux's lil' helper
Tux's lil' helper


Joined: 03 Apr 2005
Posts: 121
Location: Lake Champlain

PostPosted: Thu Mar 16, 2006 9:42 pm    Post subject: Reply with quote

eleanor wrote:

So I'm wondering why the hell is this taking so much time. When I do this command on my computer it takes about 8 hours to complete. Why is that so, I don't think that is normall, so I ask you how much time consuming this really is?

Using the standard NTSC DVD settings and beginning with a 750MB avi that ends up as a 2.6GB DVD, the part of the process in your post takes my Athlon64 3400+ 1GB reiser4 almost 2 hours.

This file size is annoying since it is just too big to fit two on a disc, so I am trying the video bitrate options, but if i try to do that while converting the aspect ratio, such that I am using --pre_clip (after some combinations it seems that is the one that does it.) like this option:
Code:
transcode -i matrix.avi -y ffmpeg -F mpeg2 -Z 352x240 --export_asr 2 --encode_fields b --pre_clip=-106,0,-104,0 -o matrix -D0 -E 48000,16,2 -b 224 -N 0x2000 -s2 -m matrix.ac3 -J modfps --export_fps 25

(which I think should end with 29.97 since it's for NTSC) then I get:
Code:
[export_ffmpeg.so] Using FFMPEG codec 'mpeg2video' (FourCC 'mpg2', MPEG2 compliant video).
Segmentation fault

Today was my first look into DVD authoring so I really haven't any idea what I am doing beyond reading and following the guide. Without messing with the bitrate, it did work perfectly. None of the GUI tools seemed that impressive since they either have more dependencies, require you do the encoding beforehand anyway, or wouldn't even run right for me.
Back to top
View user's profile Send private message
DAharon
Apprentice
Apprentice


Joined: 17 Jun 2004
Posts: 155

PostPosted: Fri Mar 17, 2006 4:25 am    Post subject: Reply with quote

I've been following this thread for quite some time. And I have had my ups and downs with this very useful script.
I would say that my biggest problem when encountering some error is the fact that everything is posted in this single thread. There is no way to search for a specific problem/solution.
I would encourage anyone with a new problem to start a new thread dedicated to that specific problem, so that others might find it in a search without having to go through 26 pages of unorganized posts without any gaurantee that the subject is covered at all.
Back to top
View user's profile Send private message
psutokth
Tux's lil' helper
Tux's lil' helper


Joined: 03 Apr 2005
Posts: 121
Location: Lake Champlain

PostPosted: Fri Mar 17, 2006 6:10 am    Post subject: Reply with quote

Very true DAharon, if only the mighty Gentoo forum search that everyone commands the use of would tell you which of the 26 pages your terms were found on.
Back to top
View user's profile Send private message
jlowe
n00b
n00b


Joined: 31 Jan 2005
Posts: 25
Location: Louisiana

PostPosted: Wed Mar 22, 2006 1:14 am    Post subject: Reply with quote

First, thanks to shiznix for his excellent step by step tutorial. I've been following along nicely, but I've ran into a snag when converting my dvd images to video.

Specifically, I get to this line:
convert malcolm3-1_menu_background.jpg ppm:- | ppmtoy4m -n50 -F30000:1001 -A10:11 -I p -r -S 420mpeg2 | mpeg2enc -n n -f8 -b5000 -a3 -o malcolm3-1_menu_background.m2v

When I run this line, I get this error:
Code:

   INFO: [ppmtoy4m] Command-line Parameters:
   INFO: [ppmtoy4m]              framerate:  30000:1001
   INFO: [ppmtoy4m]     pixel aspect ratio:  10:11
   INFO: [ppmtoy4m]          pixel packing:  RGB
   INFO: [ppmtoy4m]              interlace:  none/progressive
   INFO: [ppmtoy4m]         starting frame:  0
   INFO: [ppmtoy4m]            # of frames:  50, repeat last frame until done
   INFO: [ppmtoy4m]     chroma subsampling:  4:2:0 MPEG-2 (horiz. cositing)
   INFO: [mpeg2enc] SETTING EXTENDED MMX for MOTION!
   INFO: [mpeg2enc] SETTING SSE and MMX for TRANSFORM!
   INFO: [mpeg2enc] SETTING EXTENDED MMX for PREDICTION!
convert: no decode delegate for this image format `malcolm3-1_menu_background.png'.
**ERROR: [ppmtoy4m] Failed to read first frame.
**ERROR: [mpeg2enc] Could not read YUV4MPEG2 header: system error (failed read/write)!


I have imagemagick 6.2.5.5 installed. Not sure why this is giving an error??
Any help would be appreciated.

UPDATE:

Ok. I did not figure out why this does not work, but I did find a way around it. When using qdvdauthor, it uses a different command to convert the images to mpg's:
Code:
jpeg2yuv -n 50 -I p -f 29.97 -j "~/tmp/MitM-3-1/Main Menu VMGM/background.jpg" | mpeg2enc -n n -f 8 -o "~/tmp//MitM-2-1/Main Menu VMGM/menu.m2v"


Perhaps this will help someone else. I'm having another issue, but I will make a different thread about that.
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 ... 25, 26, 27 ... 29, 30, 31  Next
Page 26 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