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 ... 14, 15, 16 ... 29, 30, 31  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
slaterson
Apprentice
Apprentice


Joined: 26 Feb 2003
Posts: 255

PostPosted: Thu Jan 20, 2005 3:38 pm    Post subject: Reply with quote

Code:
transcode -i /mnt/local/music/video1.avi -y ffmpeg -F mpeg2 --export_asr 2 --encode_fields b -o video1 -D0 -E 48000,16,2 -b 224 -N 0x2000 -s2 -m video1.ac3 -J modfps --export_fps 29.97 -w3000 --export_prof dvd-ntsc -q1
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 /mnt/local/music/Long Way Round/Long Way Round - Episode 02 [digitaldistractions].avi (ok)
[transcode] V: import format    | XviD RIFF data, AVI (V=ffmpeg|A=mp3)
[transcode] V: import frame     | 480x272  1.76:1
XXX: zoom=yes pre_clip=yes
[transcode] V: pre clip frame   | 480x362 (-46,0,-44,0)
[transcode] V: zoom             | 720x576  1.66:1 (Lanczos3)
[transcode] V: bits/pixel       | 0.289
[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]  128 kbps
[transcode] A: export format    | 0x2000  AC3          [48000,16,2]  224 kbps
[transcode] V: encoding fps,frc | 29.970,4
[transcode] A: bytes per frame  | 6408 (6406.400000)
[transcode] A: adjustment       | -1600@1000
[transcode] A: rescale stream   | 2.000
[transcode] V: IA32 accel mode  | sse2 (sse2 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-pre1b4718: 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 29.9700fps
[export_ffmpeg.so] v0.3.13 (2004-08-03) (video) FFmpeg0.4.9-pre1b4718 | (audio) MPEG/AC3/PCM
[import_mp3.so] MP3->PCM
[import_mp3.so] tcextract -a 0 -i "/mnt/local/music/video1.avi" -x mp3 -d 1 | tcdecode -x mp3 -d 1 -z 16000
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, ntsc video type for video
[export_ffmpeg.so]: INFO: Set frame rate to 29.97
[export_ffmpeg.so]: INFO: Set GOP size to 18
[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.333333
[export_ffmpeg.so]: INFO: Sample aspect ratio calculated as 1.066667
[export_ffmpeg.so]: INFO: Selected dvd profile for audio
[export_ffmpeg.so]: INFO: Resampling filter inactive
(decode_mp3.c) channels=2, samplerate=48000 Hz, bitrate=128 kbps, (1152)
[mpeg2video @ 0xb53bb388]rc buffer underflow
encoding frames [000000-000048],  18.43 fps, EMT: 0:00:01, ( 8| 1| 0)
[transcode] (sighandler) SIGINT received

clean up | frame threads | unload modules | cancel signal | internal threads | done
[transcode] encoded 44 frames (0 dropped, 7 cloned), clip length   1.76 s


here is what i am getting...
Back to top
View user's profile Send private message
kupopo
n00b
n00b


Joined: 09 Jul 2004
Posts: 31
Location: Ithaca, NY

PostPosted: Thu Jan 20, 2005 6:31 pm    Post subject: Reply with quote

Slate,

Your input aspect ratio is 1.76:1 = 16:9. I am very confused about all of this, so maybe I'm way off, in which case ignore me, but it seems like you want to be using
Code:
--export_asr 3

However, my understanding was that it shouldn't matter and that the aspect ratio and the screen format could be scaled independently, so maybe I don't know what I'm talking about.

(edit) Maybe the --export_asr is overriding the --export_prof dvd-ntsc argument?

-steve
Back to top
View user's profile Send private message
slaterson
Apprentice
Apprentice


Joined: 26 Feb 2003
Posts: 255

PostPosted: Thu Jan 20, 2005 8:36 pm    Post subject: Reply with quote

kupopo wrote:
Slate,

Your input aspect ratio is 1.76:1 = 16:9. I am very confused about all of this, so maybe I'm way off, in which case ignore me, but it seems like you want to be using
Code:
--export_asr 3

However, my understanding was that it shouldn't matter and that the aspect ratio and the screen format could be scaled independently, so maybe I don't know what I'm talking about.

(edit) Maybe the --export_asr is overriding the --export_prof dvd-ntsc argument?

-steve


tried this line:

Code:
transcode -i /mnt/local/music/video1.avi -y ffmpeg --export_prof dvd-ntsc --export_asr 3 -o lwr1-asr3 -D0 -s2 -m video1-asr3.ac3 -J modfps --export_fps 29.97


this results in the following output:
Code:
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 /mnt/local/music/video1.avi (ok)
[transcode] V: import format    | XviD RIFF data, AVI (V=ffmpeg|A=mp3)
[transcode] V: import frame     | 480x272  1.76:1
XXX: zoom=yes pre_clip=no
[transcode] V: zoom             | 720x576  1.25: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]  128 kbps
[transcode] A: export format    | 0x55    MPEG layer-3 [48000,16,2]  128 kbps
[transcode] V: encoding fps,frc | 29.970,4
[transcode] A: bytes per frame  | 6408 (6406.400000)
[transcode] A: adjustment       | -1600@1000
[transcode] A: rescale stream   | 2.000
[transcode] V: IA32 accel mode  | sse2 (sse2 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-pre1b4718: 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 29.9700fps
[export_ffmpeg.so] v0.3.13 (2004-08-03) (video) FFmpeg0.4.9-pre1b4718 | (audio) MPEG/AC3/PCM
[import_mp3.so] MP3->PCM
[import_mp3.so] tcextract -a 0 -i "/mnt/local/music/video1.avi" -x mp3 -d 0 | tcdecode -x mp3 -d 0 -z 16000
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, ntsc video type for video
[export_ffmpeg.so]: INFO: Set interlacing to bottom-first
[export_ffmpeg.so]: INFO: Set frame rate to 29.97
[export_ffmpeg.so]: INFO: Set video bitrate to 5000
[export_ffmpeg.so]: INFO: Set GOP size to 18
[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
[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
[mpeg2video @ 0xb53bb388]rc buffer underflow
encoding frames [000000-000023],  11.70 fps, EMT: 0:00:00, ( 8| 1| 0)
[transcode] (sighandler) SIGINT received
encoding frames [000000-000024],  10.76 fps, EMT: 0:00:00, ( 8| 1| 0)
clean up | frame threads | unload modules | cancel signal | internal threads | done
[transcode] encoded 20 frames (0 dropped, 3 cloned), clip length   0.80 s


which you can see is still 720x576. i'm a bit confused as to why, but ivanova solution of cropping the video seems to work.
Back to top
View user's profile Send private message
ivanova
Apprentice
Apprentice


Joined: 12 Apr 2004
Posts: 158
Location: South Africa

PostPosted: Thu Jan 20, 2005 8:47 pm    Post subject: Reply with quote

I get the same as you - the output is resized to 720x576 even when using --export_prof dvd-ntsc . This only happens when the input clip is 25 fps, so I guess this causes transcode to default to PAL. You will have to specify all the options manualy without relying on the profiles. Check the transcode mailing list - maybe it has been discussed before.

The --export_asr setting only sets a flag in the video. This is used by the player to know if it should resize to 4:3 or 16:9
_________________
Ladies and Gentlemen... we are floating in space.
Back to top
View user's profile Send private message
slaterson
Apprentice
Apprentice


Joined: 26 Feb 2003
Posts: 255

PostPosted: Fri Jan 21, 2005 5:19 am    Post subject: Reply with quote

ivanova,
i made the dvd tonight with the forced resolution of 720x480 and the option -j -40,0,-40,0. this does the trick top to bottom, so i see the full image, however the left and right are slightly cropped. is there any way to make the entire video fit? would -j -40,54,-40,54 work?

in essence, i'm trying to convert a pal video to ntsc, but not having much luck so far.

thanks for the help,
slate
Back to top
View user's profile Send private message
ivanova
Apprentice
Apprentice


Joined: 12 Apr 2004
Posts: 158
Location: South Africa

PostPosted: Fri Jan 21, 2005 7:01 am    Post subject: Reply with quote

Maybe you mean -j -40,-54,-40,-54 ? Positive numbers will crop the image further.
But that won't work either, you want to keep the Display Aspect Ratio close to 1.367 (for non-anamorphic).
(480+0 +0 )/(272+40+40) = 1.363 :)
(480+54+54)/(272+40+40) = 1.670 :(

I assume you are trying to watch the dvd on a tv and because of overscan the sides are chopped off. To add some 54 pixel black bars on the sides:
new height: (480+54+54)/1.367 = 430
So you want to add 430-272/2=79 to top and bottom and 54 to the sides
When you crop and resize it is usualy best to use multiples of 2 and sometimes 4, otherwise strange things can happen. So we will add 80 pixels to the top and bottom.

-Z 720x480 --export_asr 2 -j -80,-54,-80,-54
_________________
Ladies and Gentlemen... we are floating in space.
Back to top
View user's profile Send private message
soupus
n00b
n00b


Joined: 11 Aug 2004
Posts: 15

PostPosted: Fri Jan 21, 2005 5:07 pm    Post subject: Reply with quote

Hey, guys, when I run spumux I'm getting this error:

Err: Cannot pick button masks

Is anyone else having this problem/know a solution?

Thanks in advance,
Lucas
Back to top
View user's profile Send private message
slaterson
Apprentice
Apprentice


Joined: 26 Feb 2003
Posts: 255

PostPosted: Fri Jan 21, 2005 5:53 pm    Post subject: Reply with quote

soupus wrote:
Hey, guys, when I run spumux I'm getting this error:

Err: Cannot pick button masks

Is anyone else having this problem/know a solution?

Thanks in advance,
Lucas


how many colors were identified?

i tried making a menu with a fuzzy button highlight. the button highlight had a lot of colors due to the fade to the menu background color. spumux identied 58 colors and wouldn't make the menu.
Back to top
View user's profile Send private message
kupopo
n00b
n00b


Joined: 09 Jul 2004
Posts: 31
Location: Ithaca, NY

PostPosted: Fri Jan 21, 2005 11:31 pm    Post subject: Reply with quote

Lucas,

I had a similar problem for a while. Are you making sure that the .PNG files are transparent everywhere outside the buttons?

-steve
Back to top
View user's profile Send private message
soupus
n00b
n00b


Joined: 11 Aug 2004
Posts: 15

PostPosted: Fri Jan 21, 2005 11:35 pm    Post subject: Reply with quote

slaterson wrote:
soupus wrote:
Hey, guys, when I run spumux I'm getting this error:

Err: Cannot pick button masks

Is anyone else having this problem/know a solution?

Thanks in advance,
Lucas


how many colors were identified?

i tried making a menu with a fuzzy button highlight. the button highlight had a lot of colors due to the fade to the menu background color. spumux identied 58 colors and wouldn't make the menu.


I believe it was fifteen. What colours is spumux identifying exactly? The colours of the background or of the .PNG layers?

kupopo wrote:
Lucas,

I had a similar problem for a while. Are you making sure that the .PNG files are transparent everywhere outside the buttons?

-steve


I thought so. Is there an accurate way to verify this?

Thanks for the speedy replies guys. :D
Back to top
View user's profile Send private message
ivanova
Apprentice
Apprentice


Joined: 12 Apr 2004
Posts: 158
Location: South Africa

PostPosted: Sat Jan 22, 2005 12:29 am    Post subject: Reply with quote

You can have no more than 4 colors in your picture. That is 3 colors and a transparent color. If you don't have transparency in the picture you have to specify in the xml file which color to use as the transparent color. You also have to make sure that the same pixels are used in the different layers (image/highlight/select). An easy way to get compliant images is to use the
dvdauthor-buttons plugin for gimp that you can get here:
http://registry.gimp.org/list?baseVersion=6
Just copy the script to your ~/.gimp-<version>/scripts/ directory and it will show up under the Script-Fu menu.
_________________
Ladies and Gentlemen... we are floating in space.
Back to top
View user's profile Send private message
shiznix
Guru
Guru


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

PostPosted: Sat Jan 22, 2005 11:11 am    Post subject: Reply with quote

Malak wrote:
Hi,

Ive been making good progress, after reinstalling gentoo, changing all my use flags, compiler options, environment variables, moving files around, compiling, recompiling, recompiling, and experimentation.

Progress so far:

1. Got DivX movie file.
2.
Code:
transcode -i movie.avi -y ffmpeg -F mpeg2video --export_prof dvd-pal --export_asr 2 -o out -D0 -s2 -m out.ac3 -J modfps --export_fps 25 -z


Please notice the -F option, this was absolutely required, but has not been mentioned once in this thread so far. Why do I need it when no-one else does? :s

I'd be most interested to see what your transcode version is, 0.6.11 perhaps ?
My thought is that you are trying to use commands listed in the howto which are only available in masked package versions.
For example, transcode versions 0.6.12, 0.6.13, 0.6.14 are masked in portage & need to be unmasked before they can be emerged.
If I recall correctly, the '--export_prof' option is only present in transcode versions >=0.6.12, which is probably why this option is not working for you & also why you have to specify '-F mpeg2video', this is not necessary with '--export_prof'.
I have added a small section at the start of the guide to list what packages are masked & include a small example on howto unmask these packages ready for emerging.

Quote:
I also moved my DivX file away from a fat32 partition, isnt linux support for this filesytem complete? :s How can a standard linux app not use the kernel fat32 modules? It cant have its own filesytem support, right? Why does it not like fat32?

3.
Code:
mplex -f 8 -o output.mpg out.m2v out.ac3


4.
Code:
dvddirgen -o dvd


I had to work around this, because dvdauthor does not accept the -x option, my only guess as to why is that my /etc/make.conf file has -O3.... *recompiles with -O2 and tries again*

More masked package version problems here I believe, using dvdauthor version 0.5.0 below I see.
Dvdauthor's '-x' option specifies an .xml configuration file. XML support made it into dvdauthor around 0.6.8 I think.

Quote:
Code:
bash: dvdauthor -x /dconf2.xml
dvdauthor: invalid option -- x
ERR:  getopt returned bad code 63


.. Nope.. didnt work either..

5.
Code:
dvdauthor -o dvd --file=output.mpg --video=pal+16:9+720x576 --audio=ac3+en


6. Then...

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


So.. I had to remove the -dvd-video option..

Code:
growisofs -Z /dev/cdrom /dvd


And that worked, but, again, when I put the DVD in the DVD player it simply reads it for a moment and ejects it. - Why wont dvdauthor act like it does for everyone else?

..it is version 0.5.0 and has no optional use flags

What is wrong with my system?
Why does no-one else have these problems?

As far as I know, the problem from which all others stem is the fct that dvdauthor is messed up.. somehow.. but it just doesnt make any sense.

Nothing on linux has ever given me so many problems or taken so much time to figure out, I cant take anymore.


Unmask, unmask, unmask :wink:
Back to top
View user's profile Send private message
shiznix
Guru
Guru


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

PostPosted: Sat Jan 22, 2005 11:24 am    Post subject: Reply with quote

slaterson wrote:
kupopo wrote:
Slate,

Your input aspect ratio is 1.76:1 = 16:9. I am very confused about all of this, so maybe I'm way off, in which case ignore me, but it seems like you want to be using
Code:
--export_asr 3

However, my understanding was that it shouldn't matter and that the aspect ratio and the screen format could be scaled independently, so maybe I don't know what I'm talking about.

(edit) Maybe the --export_asr is overriding the --export_prof dvd-ntsc argument?

-steve


tried this line:

Code:
transcode -i /mnt/local/music/video1.avi -y ffmpeg --export_prof dvd-ntsc --export_asr 3 -o lwr1-asr3 -D0 -s2 -m video1-asr3.ac3 -J modfps --export_fps 29.97


this results in the following output:
Code:
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 /mnt/local/music/video1.avi (ok)
[transcode] V: import format    | XviD RIFF data, AVI (V=ffmpeg|A=mp3)
[transcode] V: import frame     | 480x272  1.76:1
XXX: zoom=yes pre_clip=no
[transcode] V: zoom             | 720x576  1.25: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]  128 kbps
[transcode] A: export format    | 0x55    MPEG layer-3 [48000,16,2]  128 kbps
[transcode] V: encoding fps,frc | 29.970,4
[transcode] A: bytes per frame  | 6408 (6406.400000)
[transcode] A: adjustment       | -1600@1000
[transcode] A: rescale stream   | 2.000
[transcode] V: IA32 accel mode  | sse2 (sse2 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-pre1b4718: 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 29.9700fps
[export_ffmpeg.so] v0.3.13 (2004-08-03) (video) FFmpeg0.4.9-pre1b4718 | (audio) MPEG/AC3/PCM
[import_mp3.so] MP3->PCM
[import_mp3.so] tcextract -a 0 -i "/mnt/local/music/video1.avi" -x mp3 -d 0 | tcdecode -x mp3 -d 0 -z 16000
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, ntsc video type for video
[export_ffmpeg.so]: INFO: Set interlacing to bottom-first
[export_ffmpeg.so]: INFO: Set frame rate to 29.97
[export_ffmpeg.so]: INFO: Set video bitrate to 5000
[export_ffmpeg.so]: INFO: Set GOP size to 18
[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
[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
[mpeg2video @ 0xb53bb388]rc buffer underflow
encoding frames [000000-000023],  11.70 fps, EMT: 0:00:00, ( 8| 1| 0)
[transcode] (sighandler) SIGINT received
encoding frames [000000-000024],  10.76 fps, EMT: 0:00:00, ( 8| 1| 0)
clean up | frame threads | unload modules | cancel signal | internal threads | done
[transcode] encoded 20 frames (0 dropped, 3 cloned), clip length   0.80 s


which you can see is still 720x576. i'm a bit confused as to why, but ivanova solution of cropping the video seems to work.

This is a known bug in transcode, see https://bugs.gentoo.org/show_bug.cgi?id=76453
When '--export_prof' decides a zoom or pre_clip is necessary, it defaults to the PAL profile's resolution no matter what profile is selected (eg. NTSC).
The problem lies in transcode's 'educated guess', commenting out the following lines in src/transcode.c fixes this:
Code:
      // Make an educated guess if this is pal or ntsc
/*    if (vob->im_v_height == 288 || vob->im_v_height == 576) impal = 1;
      if ((int)vob->fps == 25 || vob->im_frc == 3) impal = 1;*/

Transcode-devel have been informed, patch also available here:
http://mightylegends.zapto.org/dvd/transcode-0.6.14-profiles_fix.diff


Last edited by shiznix on Sun Jan 23, 2005 11:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
soupus
n00b
n00b


Joined: 11 Aug 2004
Posts: 15

PostPosted: Sat Jan 22, 2005 7:24 pm    Post subject: Reply with quote

ivanova wrote:
You can have no more than 4 colors in your picture. That is 3 colors and a transparent color. If you don't have transparency in the picture you have to specify in the xml file which color to use as the transparent color. You also have to make sure that the same pixels are used in the different layers (image/highlight/select). An easy way to get compliant images is to use the
dvdauthor-buttons plugin for gimp that you can get here:
http://registry.gimp.org/list?baseVersion=6
Just copy the script to your ~/.gimp-<version>/scripts/ directory and it will show up under the Script-Fu menu.


Hm, so the colours it identifies are infact the colours in highlight and select layers and not the background, right? Sorry, I'm just trying to clarify the process for my own devious reasons.

You've been a great help. Thank you.
Back to top
View user's profile Send private message
rapsure
Apprentice
Apprentice


Joined: 29 Apr 2004
Posts: 167
Location: Logan, UT USA

PostPosted: Sat Jan 22, 2005 7:56 pm    Post subject: DVD creation error Reply with quote

When I run:
Code:
dvdauthor -x startrekdvd.xml


I receive this error message:
Code:
DVDAuthor::dvdauthor, version 0.6.10.
Build options: gnugetopt magick iconv freetype
Send bugs to <dvdauthor-users@lists.sourceforge.net>

INFO: Locale=C
INFO: Converting filenames to ANSI_X3.4-1968
dvdauthor: src/dvdauthor.c:908: pgc_set_post: Assertion `!p->posti' failed.
Aborted


Does anyone have a solution to this?[/code]
_________________
:) Hindi ko naintindihan, pakiulit. Sometimes my code works.
Back to top
View user's profile Send private message
rapsure
Apprentice
Apprentice


Joined: 29 Apr 2004
Posts: 167
Location: Logan, UT USA

PostPosted: Sat Jan 22, 2005 8:02 pm    Post subject: the XML file Reply with quote

I thought that you might want the XML file to see if it was done right.
Code:

<dvdauthor dest="dvd">
   <titleset>
      <menus>
         <pgc>
            <button> jump title 1; </button>
            <button> jump title 2; </button>
            <button> jump title 3; </button>
            <vob file="startrekmenu.mpg"/>
         </pgc>
      </menus>

      <titles>
         <pgc>
            <vob file="startrek120404.mpg" chapters="0,7:00,14:00,21:00,28:00,35:00"/>
               <post> jump title 2;</post>
            <vob file="startrek011405.mpg" chapters="0,7:00,14:00,21:00,28:00,35:00"/>
               <post> jump title 3;</post>
            <vob file="startrek012105.mpg" chapters="0,7:00,14:00,21:00,28:00,35:00"/>
               <post> call menu;</post>
         </pgc>
      </titles>
   </titleset>
</dvdauthor>


The system was updated one week ago using: emerge -uD world, and the kernel is gentoo-dev-sources-2.6.10-r4
_________________
:) Hindi ko naintindihan, pakiulit. Sometimes my code works.
Back to top
View user's profile Send private message
rapsure
Apprentice
Apprentice


Joined: 29 Apr 2004
Posts: 167
Location: Logan, UT USA

PostPosted: Sat Jan 22, 2005 9:08 pm    Post subject: Fixed Reply with quote

I got it to work. So I guess I don't need any help. :D
_________________
:) Hindi ko naintindihan, pakiulit. Sometimes my code works.
Back to top
View user's profile Send private message
LinuxThis
n00b
n00b


Joined: 23 Dec 2004
Posts: 4
Location: Maryland

PostPosted: Sun Jan 23, 2005 12:48 am    Post subject: mplex woes Reply with quote

2 things:

1) I'd suggest that each time you make an update to the first post, put the last date of modification and say a version number of the revision, that we we can easily know if something has changed.

2) alright, this isn't exactly on topic but its related. I've been trying to get this figured out for about 2 weeks now, its driving me nuts!

I've generated some video from cinelerra, a mpeg2 video stream at 29.97fps (its interlaced) and ac3 audio.

tcprobe reports the .m2v file from cinelerra as 29.97 fps

the weird part is:

if I then multiplex it with either 'mplex -f 8' or 'tcmplex' and run tcprobe on the final .mpg file to be burned to DVD, it is reported as 23.97fps (not good)! The original video is interlaced, and the final video is also interlaced, so I don't see why it takes the framerate down...

also, say I export out of cinelerra as any other file formats (like quicktime), the resulting video is 29.97fps (correct). if I take that video and then run transcode on it like in this tutorial, the result .m2v file is also 29.97 fps (correct), but mplex'ing it together like in the tutorial results in the same thing: a file reported as 23.97 fps (not good)!

the video actually plays fine on the computer, but on the dvd player it looks like the frames are blended somehow (motion is consistently jerky). for example, one shot of someone throwing a ball, if paused, shows two balls on the screen at once (like its being duplicated somehow?)

any ideas what might be going wrong? I'd almost guess it was a bug in mplex or tcmplex, but they've worked for other stuff on this box before...

-Dom
Back to top
View user's profile Send private message
ivanova
Apprentice
Apprentice


Joined: 12 Apr 2004
Posts: 158
Location: South Africa

PostPosted: Sun Jan 23, 2005 8:15 am    Post subject: Reply with quote

soupus wrote:
Hm, so the colours it identifies are infact the colours in highlight and select layers and not the background, right? Sorry, I'm just trying to clarify the process for my own devious reasons.


If by background you mean the actual video that is overlayed with the subtitle/highlights then yes. ;)
_________________
Ladies and Gentlemen... we are floating in space.
Back to top
View user's profile Send private message
ZmiyGorinich
Guru
Guru


Joined: 27 Feb 2004
Posts: 369
Location: Zaporizhzhe, Ukraine

PostPosted: Sun Jan 23, 2005 11:59 am    Post subject: Reply with quote

I use avidemux2 for convert avo to mpeg.
This is very cool program
Back to top
View user's profile Send private message
shiznix
Guru
Guru


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

PostPosted: Sun Jan 23, 2005 1:16 pm    Post subject: Re: mplex woes Reply with quote

LinuxThis wrote:
2 things:

1) I'd suggest that each time you make an update to the first post, put the last date of modification and say a version number of the revision, that we we can easily know if something has changed.

This is done automatically by the bulletin board, read the bottom of the post:
'Last edited by shiznix on Sat Jan 22, 2005 5:42 am; edited 68 times in total'

Quote:
2) alright, this isn't exactly on topic but its related. I've been trying to get this figured out for about 2 weeks now, its driving me nuts!

I've generated some video from cinelerra, a mpeg2 video stream at 29.97fps (its interlaced) and ac3 audio.

tcprobe reports the .m2v file from cinelerra as 29.97 fps

the weird part is:

if I then multiplex it with either 'mplex -f 8' or 'tcmplex' and run tcprobe on the final .mpg file to be burned to DVD, it is reported as 23.97fps (not good)! The original video is interlaced, and the final video is also interlaced, so I don't see why it takes the framerate down...

also, say I export out of cinelerra as any other file formats (like quicktime), the resulting video is 29.97fps (correct). if I take that video and then run transcode on it like in this tutorial, the result .m2v file is also 29.97 fps (correct), but mplex'ing it together like in the tutorial results in the same thing: a file reported as 23.97 fps (not good)!

the video actually plays fine on the computer, but on the dvd player it looks like the frames are blended somehow (motion is consistently jerky). for example, one shot of someone throwing a ball, if paused, shows two balls on the screen at once (like its being duplicated somehow?)

any ideas what might be going wrong? I'd almost guess it was a bug in mplex or tcmplex, but they've worked for other stuff on this box before...

-Dom


I would say that the problem lies not with mplex or tcmplex.
To have the same bad result using two very different muxers tends towards problems with the files being muxed

If frames look blended or duplicated, then the NTSC (29.97 FPS) file has probably already been converted from a Film NTSC (23.976 FPS) file, or telecined.

Read here -> /usr/share/doc/transcode/README.Inverse.Telecine.txt
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Sun Jan 23, 2005 7:07 pm    Post subject: Reply with quote

wmartino wrote:
I am trying to do some make some dvd's on my AMD64. I have emerged all of the packages required. When I try to run transcode I get the following error.

Code:
[CUT]


I dont know if it is just an amd issue or what. Any help would be great.


Same here... I opened this bug
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
shiznix
Guru
Guru


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

PostPosted: Mon Jan 24, 2005 12:09 am    Post subject: Reply with quote

lavish wrote:
wmartino wrote:
I am trying to do some make some dvd's on my AMD64. I have emerged all of the packages required. When I try to run transcode I get the following error.

Code:
[CUT]


I dont know if it is just an amd issue or what. Any help would be great.


Same here... I opened this bug


Just a 64-bit issue, use '-y ffmpeg', see here -> https://bugs.gentoo.org/show_bug.cgi?id=7878

Your system specs at the bottom of your post mention that you are also using NPTL threads.

Expect more problems with this, transcode falls asleep & hangs after a short while waiting for a thread process that doesn't exist, when using NPTL.

The workaround for now is to issue an 'export LD_ASSUME_KERNEL=2.2.5' in the same terminal you will be transcoding from, before you start the transcode process.
Back to top
View user's profile Send private message
slaterson
Apprentice
Apprentice


Joined: 26 Feb 2003
Posts: 255

PostPosted: Mon Jan 24, 2005 5:43 am    Post subject: Reply with quote

shiznix wrote:
The problem lies in transcode's 'educated guess', commenting out the following lines in src/transcode.c fixes this:
Code:
      // Make an educated guess if this is pal or ntsc
/*    if (vob->im_v_height == 288 || vob->im_v_height == 576) impal = 1;
      if ((int)vob->fps == 25 || vob->im_frc == 3) impal = 1;*/

Transcode-devel have been informed, patch also available here:
http://mightylegends.zapto.org/dvd/transcode-0.6.14-profiles_fix.diff


shiznix,
this did the trick. now all i need to do is re-encode 7 hours of video to see if my home player performs correctly. :) i'm hoping it will....

thanks,
slate
Back to top
View user's profile Send private message
kupopo
n00b
n00b


Joined: 09 Jul 2004
Posts: 31
Location: Ithaca, NY

PostPosted: Mon Jan 24, 2005 8:55 am    Post subject: Re: Howto author AVI->DVD with menus using Linux only ! Reply with quote

I have a few questions about audio. First, this has been on the main post for a while, but I always get an error from dd when I run this:
shiznix wrote:
For NTSC:
Code:
dd if=/dev/zero bs=4 count=1601.6 | toolame -b 128 -s 48 /dev/stdin menu_audio.ac3

Code:
dd: invalid number `1601.6'

What should the number be? I've just been using 1601, but I don't really know.

Also, were the references to "-J resample" removed from the post? Are they obsolete? I find I still need to use them or else my sound gets out of sync.

-steve
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 ... 14, 15, 16 ... 29, 30, 31  Next
Page 15 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