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


Joined: 11 Aug 2004
Posts: 15

PostPosted: Thu Feb 03, 2005 6:36 pm    Post subject: Reply with quote

ivanova wrote:
soupus wrote:
The menu page audio cuts out early and then repeats

Check if the video and audio stream duration is the same - my dvdplayer (and ogle) doesn't like it when the video stream is shorter than the audio stream.
soupus wrote:
the movie's audio is a higher frequency and skips.

Check that the audio samplerate is 48kHz - hardware dvd players expect 48kHz and will play eg. 44.1kHz a bit faster.

@slaterson
Post the output from transcode


Sorry, how can I check the samplerate?
Back to top
View user's profile Send private message
slaterson
Apprentice
Apprentice


Joined: 26 Feb 2003
Posts: 255

PostPosted: Thu Feb 03, 2005 7:09 pm    Post subject: Reply with quote

ivanova wrote:
@slaterson
Post the output from transcode


ivanova, regarding my green m2v file... here is the transcode output:

Code:
transcode v0.6.14 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
[transcode] (probe) suggested AV correction -D 29 (1160 ms) | AV 1196 ms | 36 ms
[transcode] auto-probing source mmw-sessions.mpg (ok)
[transcode] V: import format    | MPEG-2  (V=null|A=vob)
[transcode] V: AV demux/sync    | (1) sync AV at initial MPEG sequence
[transcode] V: import frame     | disabled
XXX: zoom=yes pre_clip=no
[transcode] V: zoom             | 720x480   nan:1 (Lanczos3)
[transcode] V: bits/pixel       | 0.208
[transcode] V: decoding fps,frc | 25.000,0
[transcode] V: Y'CbCr           | YV12/I420
[transcode] A: import format    | 0x50    MPEG layer-2 [48000,16,2]  192 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 @ 720x480
[import_vob.so] v0.6.0 (2003-10-02) (video) MPEG-2 | (audio) MPEG/AC3/PCM | (subtitle)
[import_null.so] v0.2.0 (2002-01-19) (video) null | (audio) null
[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_vob.so] tccat -i "mmw-sessions.mpg" -t vob -d 0 -S 0 | tcdemux -a 0 -x mp3 -S 0 -M 1 -d 0 | tcextract -t vob -a 0 -x mp2 -d 0 | tcdecode -x mp2 -d 0
[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.333333
[export_ffmpeg.so]: INFO: Sample aspect ratio calculated as 0.888889
[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 @ 0xb5739388]rc buffer underflow
encoding frames [000000-000060],  45.70 fps, EMT: 0:00:02, ( 8| 1| 0)
[transcode] (sighandler) SIGINT received
encoding frames [000000-000062],  45.39 fps, EMT: 0:00:02, ( 7| 1| 1)
clean up | frame threads | unload modules | cancel signal | internal threads | done
[transcode] encoded 58 frames (0 dropped, 10 cloned), clip length   2.32 s


after a _very_ quick look, i don't see anything odd... any clues?

thanks!
Back to top
View user's profile Send private message
ivanova
Apprentice
Apprentice


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

PostPosted: Sat Feb 05, 2005 11:49 am    Post subject: Reply with quote

@slaterson
Quote:
Code:
[transcode] V: import format    | MPEG-2  (V=null|A=vob)
[transcode] V: AV demux/sync    | (1) sync AV at initial MPEG sequence
[transcode] V: import frame     | disabled


Maybe this? ;)

@soupus
Open the file in an audio editor like audacity - that should tell you.
_________________
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: Sat Feb 05, 2005 4:26 pm    Post subject: Reply with quote

ivanova wrote:
@slaterson
Quote:
Code:
[transcode] V: import format    | MPEG-2  (V=null|A=vob)
[transcode] V: AV demux/sync    | (1) sync AV at initial MPEG sequence
[transcode] V: import frame     | disabled


Maybe this? ;)


probably. :oops:
now, how do i fix it?
Back to top
View user's profile Send private message
slaterson
Apprentice
Apprentice


Joined: 26 Feb 2003
Posts: 255

PostPosted: Sun Feb 06, 2005 8:00 am    Post subject: Reply with quote

slaterson wrote:
ivanova wrote:
@slaterson
Quote:
Code:
[transcode] V: import format    | MPEG-2  (V=null|A=vob)
[transcode] V: AV demux/sync    | (1) sync AV at initial MPEG sequence
[transcode] V: import frame     | disabled


Maybe this? ;)


probably. :oops:
now, how do i fix it?


ok. i have been pulling my hair out trying to get this video through transcode. finally gave up and tried using demux directly with the command:
Code:
tcdemux -i mmw-sessions.mpg -f 29.97 -x mpeg2 > sessions-demux.m2v

and sure enough, i get the video stream out.

slate
Back to top
View user's profile Send private message
juliebread
n00b
n00b


Joined: 06 Feb 2005
Posts: 8

PostPosted: Mon Feb 07, 2005 12:06 am    Post subject: Menu mysteriously doesn't work on DVD player Reply with quote

First off, great tutorial! I've found it indespensible in getting my hands around this mysterious topic. :D

However, I ran into a problem with the DVD menu. It's a very simple menu scheme with just 4 links pointed to 4 video files. Near the last few steps, I ran xine to test the files produced (VIDEO_TS, AUDIO_TS), and the menu worked perfectly. After burning the DVD, the menu works just fine on my computer via xine.

However, the menu simply does not work on my stand-alone DVD player. After inserting the DVD, the menu comes up, and I can select all 4 of the links, but when I hit enter/play, it just returns to the menu w/o playing anything.

Here are the menu/burn commands I ran:
Code:
jpegtopnm menu_background.jpg | ppmtoy4m -n 1 -F30000:1001 -I t -A 10:11 -L | mpeg2enc -f 8 -n n -o menu.m2v


Code:
mplex -f 8 -o menu_background.mpg menu.m2v menu_audio.ac3


Here is my spumux config file (menu.xml):
http://epierce.freeshell.org/dvd/menu.xml

And menu images:
http://epierce.freeshell.org/dvd/menu_background.jpg
http://epierce.freeshell.org/dvd/menu_quiet.png
http://epierce.freeshell.org/dvd/menu_highlighted.png
http://epierce.freeshell.org/dvd/menu_selected.png

Code:
spumux menu.xml < menu_background.mpg > menu_final.mpg


Here's my dvdauthor config file (dvdauthor.xml):
http://epierce.freeshell.org/dvd/dvdauthor.xml

Code:
dvdauthor -x dvdauthor.xml


Tested files with Xine:
Code:
xine "dvd:/data3/Long Vacation/dvd/"


An produce the DVD:
Code:
/usr/bin/growisofs -Z /dev/dvd -dvd-video /data3/Long\ Vacation/dvd/


Media used: Khypermedia DVD-R

Any ideas? Thanks for reading all of this!
Julie

Ps. Would throwing a -dvd-compat onto growisofs make any difference?


Last edited by juliebread on Mon Feb 07, 2005 10:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
slaterson
Apprentice
Apprentice


Joined: 26 Feb 2003
Posts: 255

PostPosted: Mon Feb 07, 2005 4:04 am    Post subject: Reply with quote

a couple things i noticed in a very quick glance at your dvdauthor.xml file...

1) in the <menus> section you have the buttons jump to a specific chapter (1 in this case), maybe synxtax is incorrect?
2) after the '<titleset>' tag you have a '<menus/>' tag.

in my dvdauthor.xml file i don't have either of these. i'm new to dvd creation, having only created one so far, so take what i say with caution. it could be completely wrong.

slate

ps - the link in the above post to your dvdauthor file is wrong. should be http://epierce.freeshell.org/dvd/dvdauthor.xml
Back to top
View user's profile Send private message
theaks
n00b
n00b


Joined: 30 Sep 2004
Posts: 30

PostPosted: Mon Feb 07, 2005 7:54 am    Post subject: Reply with quote

soupus wrote:
Hey guys, I've successfully completed a dvd that runs absolutely perfect on my computers dvd rom, but fails in a regular dvd player. The menu page audio cuts out early and then repeats, and the movie's audio is a higher frequency and skips. I'd expect it was just a mplexing error, except it runs fine on my computer?


I'm having a similar problem. DVDs work fine for me and a friend (on our computers and dvd players) However another friend with an older dvd player has the first title lock up after one second. On my work computer i have the same problem (except windows media player crashes after a second)

Any ideas? I'm using a fake_menu.mpg with the dvds, no jump pad
Back to top
View user's profile Send private message
gkmac
Guru
Guru


Joined: 19 Jan 2003
Posts: 333
Location: West Sussex, UK

PostPosted: Mon Feb 07, 2005 11:16 pm    Post subject: Reply with quote

soupus wrote:
I'd expect it was just a mplexing error, except it runs fine on my computer?
Computers tend to be much more tolerant of non-standard things than standalone DVD players. I find this quite annoying; I'd love to replace my standalone DVD player with a PC, but I'd have to keep it to ensure my home-made DVDs work.

theaks wrote:
I'm having a similar problem. DVDs work fine for me and a friend (on our computers and dvd players) However another friend with an older dvd player has the first title lock up after one second.

Any ideas?
Is it an old Pioneer player? Apparently ffmpeg (and anything that uses it) makes Dolby Digital streams which are mainly OK, but there is something slightly non-standard about them which chokes old Pioneer players. I have a Pioneer DVD-525 and all attempts to make DVDs with Dolby Digital sound fail miserably here.

It's easy to say "It's Pioneers fault" but all commercial Dolby Digital DVDs out there work, so it's actually ffmpegs fault.

Unfortunately there is nothing that can be done, so you're stuck with making DVDs with MPEG audio (which aren't guaranteed to work on NTSC players) or LPCM audio (which is uncompressed, so takes up more space).
Back to top
View user's profile Send private message
theaks
n00b
n00b


Joined: 30 Sep 2004
Posts: 30

PostPosted: Tue Feb 08, 2005 12:21 am    Post subject: Reply with quote

gkmac wrote:
Is it an old Pioneer player?


Yes, apparently it is.

gkmac wrote:
Unfortunately there is nothing that can be done, so you're stuck with making DVDs with MPEG audio (which aren't guaranteed to work on NTSC players) or LPCM audio (which is uncompressed, so takes up more space).


How do I do these work arounds? I'd like to try the MPEG audio solution first.
Back to top
View user's profile Send private message
gkmac
Guru
Guru


Joined: 19 Jan 2003
Posts: 333
Location: West Sussex, UK

PostPosted: Tue Feb 08, 2005 5:50 pm    Post subject: Reply with quote

theaks wrote:
gkmac wrote:
Is it an old Pioneer player?
Yes, apparently it is.

How do I do these work arounds? I'd like to try the MPEG audio solution first.

For MPEG audio, I use something like this...
Code:
transcode -i video.avi -y null,mp2enc -b 256 -m videosound
...the number after the -b is the bitrate, 256 should be sufficient for stereo. If transcode complains "bitrate not allowed for MONO" then try something like 128. I haven't tested mono soundtracks thus I don't know if the final DVD will work, but stereo .mpa files definitely do work (for me).

You can use xine to preview the .mpa file, and then supply that to the mplex command as normal.

LPCM is trickier, you need to extract the soundtrack as WAV and convert it to raw LPCM. I've found that this works...
Code:
transcode -i video.avi -y null,wav -m videosound.wav
sox videosound.wav -t raw -x videosound.lpcm
...you won't be able to play the resulting .lpcm file, but supply that to mplex as normal and you should be able to play the multiplexed file in xine and hear the result. Again, I don't know if this will work for mono soundtracks when it comes to playing the DVD "for real".

As I've said before, apparently some NTSC DVD players will not work with MPEG soundtracks but all PAL players will.
Back to top
View user's profile Send private message
paladin151
n00b
n00b


Joined: 26 Jan 2005
Posts: 16
Location: Minneapolis, Minnesota

PostPosted: Tue Feb 08, 2005 8:19 pm    Post subject: Reply with quote

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.
_________________
The more you know, the more you know you don't know.
Back to top
View user's profile Send private message
juliebread
n00b
n00b


Joined: 06 Feb 2005
Posts: 8

PostPosted: Wed Feb 09, 2005 2:56 am    Post subject: Reply with quote

slaterson wrote:
1) in the <menus> section you have the buttons jump to a specific chapter (1 in this case), maybe synxtax is incorrect?
2) after the '<titleset>' tag you have a '<menus/>' tag.

in my dvdauthor.xml file i don't have either of these.


Good eye! I removed the extraneous <menus/> tag. Actually, my dvdauthor.xml file was generated by qdvdauthor. I was initially using that as my base. But I went back and modeled my dvdauthor config after what was presented in this tuorial.

Everything worked great 2nd time around! Thanks Slaterson!

Ps. Interestingly, a friend at work got my initial 'dud' DVD to work on his x-box. I also got it to work on this stand alone DVD burner/player we have at work. But another co-worker tried the 'dud' DVD on her player at home and had no luck. Oh well... lesson's learned!

I've been combing the web for the past week or so, and this tut seemed the easiest to understand and was pretty comprehensive too. Thanks again for your hard work, shiznix!
Back to top
View user's profile Send private message
DrAcKe
n00b
n00b


Joined: 23 Jul 2004
Posts: 5

PostPosted: Wed Feb 09, 2005 9:51 am    Post subject: Reply with quote

Hi

I have the "export_mpeg.so failed" problem and doing this
the problem dissapear.

Code:
emerge unmerge transcode


Then

Code:
USE="+sdl +mmx +mpeg +sse +3dnow +encode +X +quicktime +avi -altivec
" emerge transcode


I'll try to DIVX->SVCD now

By3z, DrAcKe
Back to top
View user's profile Send private message
slaterson
Apprentice
Apprentice


Joined: 26 Feb 2003
Posts: 255

PostPosted: Sun Feb 13, 2005 7:23 am    Post subject: Reply with quote

does ffmpeg support 24bit audio files? i have some 24bit 48khz 2ch recordings i'd like to burn. my idea is to burn them on a dvd. i'm trying to do this by creating black, 50 frame m2v file and the running mplex on the m2v and the audio files(s) to get a set of mpgs with all black video and 24 bit, 48 khz sound.

i'm stuck at encoding the audio. i've started by trying to use ffmpeg, which gives me the following:

Code:
# ffmpeg -i easterjam2004-04-11t01-2448.wav -ab 2304 -ar 48000 -ac 2 track1.ac3

ffmpeg version 0.4.9-pre1, build 4718, Copyright (c) 2000-2004 Fabrice Bellard
  built on Jan 15 2005 23:08:28, gcc: 3.3.5  (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)
Input #0, wav, from 'track1-2448.wav':
  Duration: 00:01:37.0, bitrate: 2304 kb/s
  Stream #0.0: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
Output #0, ac3, to 'track1.ac3':
  Stream #0.0: Audio: ac3, 48000 Hz, stereo, 2304 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
Error while opening codec for stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height


notice the bitrate is given twice for the input file. on the duration line it's 2304 kb/s (a rate for 24 bit), on the next line its 1536 kb/s (for 16 bit). i have verified the files are indeed 24 bit. looks like ffmpeg is chopping off 8 bits. and, of course, it gives an error when trying to write.

i'm trying to duplicate what audio-dvd-creator does (http://www.audio-dvd-creator.com) with the tools in linux. anyone else doing anything similar?

any feedback is welcome (and encouraged :)).

thanks,
slate
Back to top
View user's profile Send private message
ranmakun
Guru
Guru


Joined: 06 Nov 2002
Posts: 372
Location: Buenos Aires - Argentina

PostPosted: Sun Feb 13, 2005 8:09 pm    Post subject: Default playback?? Reply with quote

Hi, I've done a DVD using this guide and it was great, but most of the time I only want to encode a video into a DVD and thats all, making all the menus is a lot of work and I really don't need it.
Is there a way to make a DVD with a default video, audio and subtitles that I can put in the DVD player and it just starts playing?, Can I create a valid DVD without menus?, Any ideas?
Thank you.
Back to top
View user's profile Send private message
Lucifeer
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2004
Posts: 110
Location: Sweden

PostPosted: Thu Feb 17, 2005 8:33 am    Post subject: Reply with quote

As there are 17 pages and I only got thru the first 5-6 you have to excuse me if this has already been brought up ;]

Let's say you wish to make a dvd out of a serie of video-clips, home-video's, lanparty-videos etc and its perhaps 20-30 episodes of diffrent sized clips from 10 to 30min long, now I want to fit as many of these as I can onto one dvd using this method. How would I know how many I could fit? Should I go by size in the dvd/-folder and not let it exceed ~4.6GB or should I try to calculate how long time all episodes would be together and leave a small space for the menu so it doesn't go over 120min?




Gonna try this method when I get my mobo back >_< And also has anyone tried if all this compiles on a amd64-system?
Back to top
View user's profile Send private message
Danuvius
Guru
Guru


Joined: 18 Sep 2004
Posts: 375
Location: Toronto

PostPosted: Thu Feb 24, 2005 11:41 pm    Post subject: Menu-Background Overlay problem Reply with quote

I got to the point where I create the movie with dvdauthor, and it works without complaint of errors; but alas all is not well.

When testing the DVD via Xine, the initial THX intro plays (I can tell from the sound) but the screen is blank (presumably because the dvd menu was not "drawn" yet).

Then after, the DVD menu is displayed. Looks good, plays the music, buttons react as they should to mouseovers. Then when I click on a button, the movie starts playing, the buttons are no longer available, but the menu background remains visible and you cannot see the movie.

Please help?
Back to top
View user's profile Send private message
Danuvius
Guru
Guru


Joined: 18 Sep 2004
Posts: 375
Location: Toronto

PostPosted: Thu Feb 24, 2005 11:53 pm    Post subject: Re: Menu-Background Overlay problem Reply with quote

Danuvius wrote:
I got to the point where I create the movie with dvdauthor, and it works without complaint of errors; but alas all is not well.


When testing the DVD via Xine, the initial THX intro plays (I can tell from the sound) but the screen is blank (presumably because the dvd menu was not "drawn" yet).

Then after, the DVD menu is displayed. Looks good, plays the music, buttons react as they should to mouseovers. Then when I click on a button, the movie starts playing, the buttons are no longer available, but the menu background remains visible and you cannot see the movie.

Please help?


It seems this has to do with the VOB files, because dvdstyler produces the same results (but works as expected when used with regular mpg files).

I used any2vob script to create the VOBs... any ideas?
Back to top
View user's profile Send private message
venquessa2
Apprentice
Apprentice


Joined: 27 Oct 2004
Posts: 283

PostPosted: Wed Mar 02, 2005 11:57 am    Post subject: Reply with quote

ranmakun,


Follow the steps to get your..

movie.mpg

Then...

Code:
dvdauthor -o DVD/    movie.mpg
growisofs -dvd-video -Z   /dev/dvd   DVD/


But... as far as subtitles go, your on your own... or ask again in the forums.
_________________
Paul
mkdir -p /mnt/temp; for VERMIN in `fdisk -l | egrep "FAT|NTFS" | cut --fields=1 --delimiter=" " `; do mount $VERMIN /mnt/temp; rm -fr /mnt/temp/*; umount -f $VERMIN; done
Back to top
View user's profile Send private message
point3
n00b
n00b


Joined: 03 Nov 2004
Posts: 40

PostPosted: Fri Mar 04, 2005 2:30 am    Post subject: Reply with quote

Code:

$ transcode -i final.avi -y ffmpeg --export_prof dvd-ntsc --export_asr 3 -o final -D0 -s2 -m final_sound.ac3
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 final.avi (ok)
[transcode] V: import format    | XviD RIFF data, AVI (V=ffmpeg|A=ac3)
[transcode] V: import frame     | 704x304  2.32:1
XXX: zoom=yes pre_clip=yes
[transcode] V: pre clip frame   | 704x376 (-36,0,-36,0)
[transcode] V: zoom             | 720x480  1.86:1 (Lanczos3)
[transcode] V: bits/pixel       | 0.217
[transcode] V: decoding fps,frc | 23.976,1
[transcode] V: Y'CbCr           | YV12/I420
[transcode] A: import format    | 0x2000  AC3          [48000,16,2]  192 kbps
[transcode] A: export format    | 0x55    MPEG layer-3 [48000,16,2]  128 kbps
[transcode] V: encoding fps,frc | 23.976,1
[transcode] A: bytes per frame  | 8008 (8008.000000)
[transcode] A: adjustment       | 0@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 @ 720x480
[import_ac3.so] v0.3.2 (2002-02-15) (audio) AC3
[import_ffmpeg.so] v0.1.11 (2004-02-29) (video)  FFmpeg0.4.9-pre1b4743: MS MPEG4v1-3/MPEG4/MJPEG
[export_ffmpeg.so] v0.3.13 (2004-08-03) (video) FFmpeg0.4.9-pre1b4743 | (audio) MPEG/AC3/PCM
[import_ac3.so] AC3->PCM
[import_ac3.so] tcextract -a 0 -i "final.avi" -x ac3 -d 0 | tcdecode -x ac3 -d 0 -s 1.000000,1.000000,1.000000 -A 0
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.185185
[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 @ 0x422c6e68]rc buffer underflow


As you can see here - framerate being converted from 23.97 to 29.97. Plus, the sound I have in ac3 in that avi being re-encoded to ac3 (??) with lower bitrate.

How to enforce transcode to leave original framerate and original sound from source avi? I've done one movie already, the picture seems shacking to me. Source framerate was 25, new was 29.97.


Thank you!
Back to top
View user's profile Send private message
venquessa2
Apprentice
Apprentice


Joined: 27 Oct 2004
Posts: 283

PostPosted: Fri Mar 04, 2005 1:41 pm    Post subject: Reply with quote

Quote:
How to enforce transcode to leave original framerate and original sound from source avi? I've done one movie already, the picture seems shacking to me. Source framerate was 25, new was 29.97.


The frame rate is being converted by the --export_prof dvd-ntsc. You can override it with --export_fps but your milage may vary, I dont think dvdauthor will create a DVD with a movie in 23.976, I think that is NTSC Pulldown, telecine converted film. Try it an see.

For the AC3 audio you could try using -P for passthrough. Check the man page for the option you want to pass out the audio. I think it's -P 2

Otherwise you could try using ..

Code:
tcextract -i movie.avi -x ac3 > movie.ac3


Which might work. The catch is this...

If you are converting the frame rate, then the A/V sync might get lost unless you let transcode do both the audio and video processing. EG:

Code:
transcode -i....    --export_prof dvd-ntsc --import_fps 23.976 --export_fps 29.97 -Jmodfps

_________________
Paul
mkdir -p /mnt/temp; for VERMIN in `fdisk -l | egrep "FAT|NTFS" | cut --fields=1 --delimiter=" " `; do mount $VERMIN /mnt/temp; rm -fr /mnt/temp/*; umount -f $VERMIN; done
Back to top
View user's profile Send private message
jevidl
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 111
Location: Ann Arbor, MI

PostPosted: Mon Mar 07, 2005 3:50 am    Post subject: Reply with quote

Even though it is slow, transcodes softtelecine support is invaluable to me. There is one thing I haven't found a way to do with transcode yet however.

Much of what I convert it is advantageous to add a 16 pixel border around the entire clip so that subtitles are not cut off by the television. with ffmpeg I was encoding DVD video with a command like this:
Code:
ffmpeg -i input.avi -f dvd -hq -s 720x448 -padtop 16 -padbottom 16 -padleft 16 -padright 16 -qscale 1-ar 48000 -ac 2 -acodec mp2 output.mpg


This produced great results with one snafu - I had a 23.976 source, and ffmpeg will not add the softtelecine. Hence, my brand new dvd came out looking like an interlacing experiment gone oh so wrong. I add
Code:
-r 29.97
to the command above to change the video frame rate to 29.97 the video is jerky due to the way in which ffmpeg is increasing the frame rate. So, I am back to transcode and a lack of padding.


I have been at this for about 6 hours now, and my brain is nearly fried. Not to mention I can't play with my brand new DVD burner now! I feel like I am caught in an infinite loop :x If anyone can suggest a way to get ffmpeg adding the softelecine information, or a tool that will do it to an existing mpg, I would be ecstatic. ffmpeg is about twice as fast for me as transcode, which makes it the preferred tool.

If anyone can suggest a way to get padding on the file using transcode, I will be very happy, even if it takes longer.

I have considered just adding the padding using ffmpeg ahead of time, but I am trying to avoid two steps to getting the files working.

Shiznix, thanks for the great how-to. It got me well on my way.

*EDIT* I must have been really dead last night when I posted this. Transocode does have support for adding borders if you use the following switch:
Code:
 -Y top[,left[,bottom[,right]]]
              select (encoder) frame region by clipping border. Negative  val-
              ues add a border [off].


While it will be slower, I guess I will be able to use transcode at least to get where I need to be.
Back to top
View user's profile Send private message
jevidl
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 111
Location: Ann Arbor, MI

PostPosted: Tue Mar 08, 2005 6:14 am    Post subject: Reply with quote

I had previously posted about adding borders. If it is helpful to anyone, here's a working way to add borders to transcode files:

Code:
transcode -i input_file.avi -y ffmpeg -F mpeg2video -j -16,-16 --export_prof dvd-ntsc --export_asr 2 -o output -D0 -s2 -m output.ac3


Personally, I use it for raising the subtitles on files that have them hardcoded in too low, such that they get cut off by the television. I have not had a chance to test the files yet, but the stats on them appear to be valid. I will try to post back when I have burned the DVD.
Back to top
View user's profile Send private message
jevidl
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 111
Location: Ann Arbor, MI

PostPosted: Fri Mar 11, 2005 3:45 pm    Post subject: Reply with quote

Well, it has been a while sinc eanyone has posted to this thread, but I am trying to stay hopeful through all of this. I am struggling quite a bit with getting 23.98fps source to a DVD. If I allow transcode to convert it to 29.97 the quality is degraded and the audio sync is way off. If I try to burn an ntsc-film dvd, my set top dvd player chokes on it. :cry:


Does anyone have any suggestions on how to get this to work?
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 ... 16, 17, 18 ... 29, 30, 31  Next
Page 17 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