Click to See Complete Forum and Search --> : AVI to DVD
philtesone
08-30-2005, 02:22 PM
here's the 6 basic steps to convert a .AVI to DVD so you can watch your movies on your home player, not just your computer. . .But first we need to figure out if it's a fullscreen movie or letterbox movie. . .Movies normally come in two sizes: 4:3 (fullscreen) or 16:9 (letterbox) which they call aspect ratio. . .They also come in two formats PAL (Non-US) and NTSC (US). . .The following examples are for NTSC Only!
what you need first:
transcode
mplayer
Mjpegtools
ffmpeg
dvd+rw-tools
Dvdauthor
some hardrive space
in this example I will be using a 16:9 movie.avi for our conversion. . .
1.) Split the .avi file into 2 seperate files, one for video and one for audio:
This is an extra step if you know your .avi file actually has 5.1 surround sound. (Step one only produces a stereo .ac3 file !)
How can you tell? Do this first:
save the file as: dvdauthor.xml
in the same directory as your movie files
(you can also change the chapters to fit the times of your movie)
5.) Create a DVD directory where your movie files are and do this:
dvdauthor -x dvdauthor.xml
this will create two AUDIO_TS and VIDEO_TS directories in your DVD directory. . .
6.) Test it & Burn it:
to test it:
xine dvd:/full/path/to/DVD/VIDEO_TS/
to burn it:
growisofs -Z /dev/dvd -dvd-video DVD/
note: I like to use DVD-RW discs for a test before I use a real disc. . .
If all goes well, the above will produce movie with no menus, just the movie that should play when you put in your disc. . .and if there's more than one .avi then simply do this in your dvdauthor.xml file:
Cool deal!
I never understood why you split the movie, only to rejoin it later...
Take a look here at a couple of mencoder scripts you might find useful to get around that, unless there's a reason that I don't know about...
and if there's more than one .avi then simply do this in your dvdauthor.xml file:
<dvdauthor dest="DVD">
<vmgm />
<titleset>
<titles>
<pgc>
<vob file="dvd_movie_part1.mpg" chapters="0,15:00,30:00,45:00,1:00:00"/>
</pgc>
<pgc>
<vob file="dvd_movie_part2.mpg" chapters="0,15:00,30:00,45:00,1:00:00"/>
</pgc>
</titles>
</titleset>
</dvdauthor>
This will create two seperate titles on the disc, one for each movie file, if that is what you want it's fine. However, if the two files are part of the same movie, you may want them to be joined in the same title, you would then want to use this instead.<dvdauthor dest="DVD">
<vmgm />
<titleset>
<titles>
<pgc>
<vob file="dvd_movie_part1.mpg" chapters="0,15:00,30:00,45:00,1:00:00"/>
<vob file="dvd_movie_part2.mpg" chapters="0,15:00,30:00,45:00,1:00:00"/>
</pgc>
</titles>
</titleset>
</dvdauthor>
philtesone
08-30-2005, 08:38 PM
Yes! Thank-you, that's what I meant to put up there. . .! :)
cybertron
08-31-2005, 09:35 AM
Cool deal!
I never understood why you split the movie, only to rejoin it later...
Take a look here at a couple of mencoder scripts you might find useful to get around that, unless there's a reason that I don't know about...
Oh, I get it...because it's an avi!!!
Actually, as of pre7 MEncoder can take any format MPlayer will play and convert it to a DVD-compliant MPEG2. I've had a few minor problems with artifacting for a few seconds using that method, but it's really easy and faster than any other way I've seen. If my computer ever stops crashing I'll probably see if I can get the minor issues worked out (they might be fixed in MPlayer CVS too, I don't know).
More information is here: http://mplayerhq.hu/DOCS/HTML-single/en/MPlayer.html#menc-feat-vcd-dvd
IIRC, when I used the -af lavcresample option they list there it crashed on me. I don't know if that's a general problem or just me, but it's something to be aware of.
blackbelt_jones
08-31-2005, 10:12 AM
Can't wait to try this! One less reason to boot up the old Windows partition!
philtesone
08-31-2005, 11:30 AM
Yea, the transcoding process is the longest step but after that it goes pretty quick. . .
The reason I've posted this method is:
1.) it's extremely easy
2.) it's consistant and it works! :)
3.) I had much better results then using TMPEGenc in windows, which you have to pay for
4.) the 5.1 is awesome!
I've even added subtitles and chapter menus to some of the movies.
(I use qdvdauthor or dvdstyler for the menus).
Here's how I did the subs:
1.) download the correct subtitle from http://eXTratitles.to
2.) use a program from dvdauthor called Spumux to add the subtitle text into the DVD video. Just make sure you have a .spumux dir in your home dir and put your fav .tff font in it. I used Vera.tff but any True Type font will do. Open your fav text editor and paste this:
when complete you should now have subtitles in your dvd_movie.mpg
I goto http://cdcovers.cc for all my printing and menu needs. . .
Icarus
08-31-2005, 03:58 PM
I have to say thanks philtesone, this is the first method I've tried that actually created a perfectly playing DVD for me. All the others I have tried ended up giving me choppy video playback on DVD players.
I'm going to take what you have here and start a script that can be started and ending up with a DVD for the player, I've got a start on it and kicked it off when I left for work so I'll see if it worked on a generic level when I get home :)
Next trick is getting nice menus which there are plenty of nice GUI apps that can help with that (qdvdauthor, dvdstylist)
Thanks for this! I'll post the script here once I get it 'nice' because right now it's just a kludge :p
philtesone
08-31-2005, 06:48 PM
Thanx! But I can't actually take credit for it, I actually got it from a gentoo forum:
http://forums.gentoo.org/viewtopic.php?t=117709
and just posted the steps I used, which in turn I think they got from here:
http://www.transcoding.org/cgi-bin/transcode?Tutorials/Authoring_PC_Media_To_DVD
. . .and like you said it's the only thing that has actually worked right! :)
There is another guy who has a script out threre called avitovob here:
http://inferno.slug.org/cgi-bin/wiki?AviToVob
which I have tried and it works good, too. But I prefer to use the above method instead. . .
There is also KMediafactory for creating menus as well, which I have not tried. . .YET!
And on one movie I did, which was split into two parts with 5.1 surround sound, turned out to be just over 4.5 gigs, too big for a regular DVD disc so I used DVDShrink to get it back down to size without losing much quality. . .But I had to use an earlier version for it to work, I think it was version 1.2 or something. . .The latest version just errored out on me. . .
blackbelt_jones
09-02-2005, 03:41 PM
I'm trying to work with half-hour TV episodes. This method seems to require a single avi file, and I'm wondering if there's a way that I could paste several smaller files into one continuous avi file.
philtesone
09-02-2005, 04:05 PM
You could do that with Virtual Dub, that would be the easiest. . .The avitovob script also allows you to do more than one video at a time. . .
But with half hour TV episodes I would simply do each one and just add them individually to the DVD and use either dvdstyler or qdvdauthor to make a DVD menu with links to each seperate episode, that way instead of having one large video with chapters you could have 5 or 6 videos with chapters. . .
Icarus
09-02-2005, 05:26 PM
I think that would be the best way to do it, and the final result is much nicer being orginized.
But if you want to join a bunch of AVIs into one file and they are all the same resolution and sample rates, avimerge handles that very well (installed with transcode)
blackbelt_jones
09-02-2005, 08:51 PM
YES! YES! YES! Just authored my first ever DVD in Linux-- and I really don't miss having a menu. What's wrong with just putting it in and having it play? Not a damn thing.
The hard part for me was the home stretch. The file tested just fine, but I had only burned CDs and DVDs with K3b, and that wasn't working. So I tried CD/DVD Creator. Copying the files into the window and hitting the burn button was so simple I was sure it couldn't possibly be working, but it was.
I'm watching the DVD now (Showtime's "Weeds", starring the always talented and always delicious Mary-Louise Parker). There were a few glitches in the playback. Where does that sort of thing usually originate? I'm guessing the problem is in the DVD's themselves.
Thanks for the tip. Like I said before, one less thing I need Windows for! Next, I hope to learn how to make video CD's! :)
BTW, I love the aspect ratio adjustment. As far as I can tell, the Windows software I've been using doesn't have that setting.
I've got three years of avi files around here, and I intend to keep encoding and burning DVDs until I no longer have to return to this page to rememember how to do it.
Icarus
09-02-2005, 10:16 PM
You can adjust the encoding of the file with transcode to make the final file smaller so you can fit more vids on a single disk. Read the man page for more details
# Added "-Z 352,fast" to test compression
# Added "-G .7" lighten with compression
You can adjust the encoding of the file with transcode to make the final file smaller so you can fit more vids on a single disk. Read the man page for more details
# Added "-Z 352,fast" to test compression
# Added "-G .7" lighten with compression
When I made my DVD from a half hour show, it was less than 900 mb. Is there any reason why, if I got it down under 700 mb, I couldn't put it on a CD?
Here is the Transcode Wiki by the by:
http://www.transcoding.org/cgi-bin/transcode
(edit)
Looking back after some sleep, I can see that there's a lot from this thread that I didn't quite comprehend right away, especially the prescription for putting multiple files on 1 DVD which I am trying right now, and the command for burning DVDs at the cli, which I somehow missed the first time, and I am also trying right now. I guess I can't help it if I'm a little slow, but I've got a lot of blank DVDs, so I'm gonna keep practicing this weekend, until I can comprehend every nuance.
philtesone
09-03-2005, 11:07 AM
yup yup!
just make sure your cd'd into the same dir where your DVD was constructed and do:
growisofs -Z /dev/dvd -dvd-video DVD/
and it should burn fine!
that's why I always test it first with:
xine dvd:/full/path/to/DVD/VIDEO_TS/
plus if you have a DVD-RW laying around, it saves discs if there's a prob
retsaw
09-03-2005, 04:20 PM
When I made my DVD from a half hour show, it was less than 900 mb. Is there any reason why, if I got it down under 700 mb, I couldn't put it on a CD?You probably could and you could probably get it to play on a computer, but most/all DVD players would have a problem as they expect DVD video on a DVD, not a CD. However most (possibly all) DVD players play VCDs (Video CDs) and SVCDs (Super Video CDs), these use different resolutions to DVD, so you would have to convert your video files to match the expected format. You'll want to use SVCD over VCD since it is better quality, I'm sure you'll find plenty of information if you do a seach on SVCDs. Personally, I haven't bothered making any VCDs since I got a DVD burner as DVDs are better value for money.
MacTown06
09-24-2005, 07:35 PM
if you use debian add the following to /etc/apt/sources.list
deb ftp://ftp.nerim.net/debian-marillat/ sarge main
change "sarge" according to your distro and keep all of the official sources from the CDs or debian ftp then
A good package for taking an avi and creating a dvd (or vcd or svcd) is "tovid".
Home page
http://tovid.sourceforge.net/
tovid discussion forum:
http://www.createphpbb.com/phpbb/index.php?mforum=tovid
Just be prepared for a conversion to take a looong time. When I tried it took about 6 hours as I recall. I also couldn't seek in the resulting DVD, although since it was the first one I had ever made I might have done something wrong. It is fairly simple though, so it has that advantage.
jailbreaker
10-02-2005, 07:54 PM
Hi I tried what you posted but I'm getting an error
xquizit@fate:~/Anime$ transcode -i [DB]_Naruto_141_[7F11AB2A].avi -y ffmpeg --export_prof dvd-ntsc --export_asr 2 -o movie -D0 -s2 -m movie.ac3 -J modfps=clonetype=3 --export_fps 29.97
transcode v1.0.0 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
libdvdread: Using libdvdcss version 1.2.8 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 [DB]_Naruto_141_[7F11AB2A].avi (ok)
[transcode] V: import format | XviD RIFF data, AVI (V=ffmpeg|A=mp3)
[transcode] V: import frame | 640x480 1.33:1
XXX: zoom=yes pre_clip=no
[transcode] V: zoom | 720x480 1.50: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 | 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/AMD64 accel | sse3 (sse3 sse2 sse mmxext mmx asm C)
tc_memcpy: using sse for memcpy
[transcode] V: video buffer | 10 @ 720x480
[transcode] warning : /usr/lib/transcode/import_ffmpeg.so: undefined symbol: dts_init
Loading video import module failed
Did you enable this module when you ran configure?
[transcode] failed to init import modules
I have everything installed. and i'm using Ubuntu Breezy
[transcode] critical: plug-in initialization failed
philtesone
10-02-2005, 11:01 PM
Actually, I found something even better then the long transcode line I posted here. . .
it's a script somebody wrote that can convert any video file to a vob for a dvd
and you can get it here:
http://mightylegends.*****.org/dvd/any2vob/
It's cool 'cos it let's you encode a whole dir of files to convert to vob, and it does everything in that directory. . .
so for serveral movies in 16:9 format I copy them to a folder somewere and execute:
./any2vob.sh --aspect=16:9 --surround=yes -i /mnt/winxp/movies/*
this is cool because it will also take a stereo track and make it 5.1 surround sound. . .
Vectorman
10-06-2005, 11:05 AM
I will definatly have to look into this script.
BTW. Does any one know of a way to Convert DVD's to AVI's in Linux. Other then converting AVI's to DVD this item is the finial step in my Total Linux Conversion.
Thanks
Joel
je_fro
10-06-2005, 11:16 AM
I guess you didn't look at my link in the 2nd post?
cybertron
10-06-2005, 11:39 AM
Yeah, and if you want a GUI I personally like AcidRip. It uses mencoder so it's basically the same as je_fro's scripts but more newbie friendly.:)
philtesone
10-07-2005, 09:01 PM
yea it is nice, except for the lock ups I'm having with mencoder. . . :confused:
EDIT:
and here's why:*** This build of Glib was compiled with glib 2.8.3, but is currently running with 2.8.1, which is too old. We'll continue, but expect problems!
AcidRip message - No configuration file found, nevermind.
ixogn
11-07-2005, 10:02 PM
cool, guys, cool!
i cant wait to give it a try.
sampaioprimo
11-24-2005, 12:28 AM
i'm having just the same problem as you jailbreaker with ubuntu breezy too. please, did you discover how to solve it?
Hi I tried what you posted but I'm getting an error
xquizit@fate:~/Anime$ transcode -i [DB]_Naruto_141_[7F11AB2A].avi -y ffmpeg --export_prof dvd-ntsc --export_asr 2 -o movie -D0 -s2 -m movie.ac3 -J modfps=clonetype=3 --export_fps 29.97
transcode v1.0.0 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
libdvdread: Using libdvdcss version 1.2.8 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 [DB]_Naruto_141_[7F11AB2A].avi (ok)
[transcode] V: import format | XviD RIFF data, AVI (V=ffmpeg|A=mp3)
[transcode] V: import frame | 640x480 1.33:1
XXX: zoom=yes pre_clip=no
[transcode] V: zoom | 720x480 1.50: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 | 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/AMD64 accel | sse3 (sse3 sse2 sse mmxext mmx asm C)
tc_memcpy: using sse for memcpy
[transcode] V: video buffer | 10 @ 720x480
[transcode] warning : /usr/lib/transcode/import_ffmpeg.so: undefined symbol: dts_init
Loading video import module failed
Did you enable this module when you ran configure?
[transcode] failed to init import modules
I have everything installed. and i'm using Ubuntu Breezy
[transcode] critical: plug-in initialization failed
sampaioprimo
11-24-2005, 12:35 AM
Well, while i'm not abble to use transcode in Ubuntu, i've installed a Debian system in another partition to try to create my first DVD from AVI :)
I've followed the steps on the first commit of this topic but it creates a 5GB dvd_movie.mpg and (at least here in Brazil) we only have 4.7GB DVD-R.
I'm going to sleep now and I left the transcode running with the -Z 352,fast as Icarus told, but I'm afraid that it creates a too small file. My doubt: how can I set the size that transcode will output? Is this possible? In this situation I have a single AVI file with the film The Corporation that I want to see on a DVD Player.
Hope I was wable to say in english what i mean to say :) Thanks, Rodrigo.
je_fro
02-15-2006, 04:12 PM
I've adapted your technique to a dir full of small avi's...
#!/bin/bash
# if [ -z "$1" ]; then
# echo -e "\nYou must enter the name of an avi file.\n";
# Run this script from a directory full of avi's. Watch your diskspace \
# because the end result is an mpg that's about three times the size of the avi.
for i in *.avi
do
FILENAME=$i
transcode -i "$i" -y ffmpeg --export_prof dvd-ntsc --export_asr 3 -o movie.tmp \
-D0 -s2 -m movie.tmp.ac3 -J modfps=clonetype=3 --export_fps 29.97
mplex -f 8 -o "$i".mpg movie.tmp.m2v movie.tmp.ac3
done
for file in *.mpg
do
RMSPACES=`echo $file | sed -e "s/ /_/g"`
mv "$file" "$RMSPACES"
done
for j in *.mpg
do
RMAVI=`echo $j | sed -e "s/.avi//g"`
mv "$j" "$RMAVI"
done
Works great!!! (I don't like spaces so I remove them...)
MacTown06
03-15-2006, 10:20 PM
If you use debian (maybe Ubuntu would work too) you can simply apt-get install vobcopy and then use it to copy dvds.
and it works pretty good. maybe someone can use it, improve it, and post again.
by "improve it" i was hoping someone might do two things,
1. Make it detect (or ask) about 5.1 and then make the change for it.
2. Make it so that if you right click on a video file in gnome and choose "open with..." then choose this script it would work. that is why i used "xterm -e", i was hopeing right click would work, but for some reason it dosn't. any ideas.
cybertron
03-15-2006, 11:12 PM
You probably just need to add a #!/bin/sh as the first line and make the file executable (chmod +x filename). As for the 5.1, I don't know since I don't have any 5.1 sound equipment so I've never worried about it.:)
blackbelt_jones
11-07-2006, 10:59 AM
Cool deal!
I never understood why you split the movie, only to rejoin it later...
Take a look here at a couple of mencoder scripts you might find useful to get around that, unless there's a reason that I don't know about...
Okay, I know that most of you already know how to do this but this post is aimed at the newbie:
I wrote (well, "assembled" is probably a better word) a script that combines almost all of these steps into one. I skipped the surround sound steps. None of the avi files that I was using had it, and my TV can't play them anyway.
so here's the script. Obviously, all I've done is save myself a lot of time by copying the commands to a text editor, and seperating them with semicolons so that they'll run in sequence. It ain't rocket science.
3. An empty directory entitled "DVD"
4. The script itself.
and after the script has finished running, All that's left is to burn the actual DVD. I put the disk in the drive, and run:
growisofs -Z /dev/dvd -dvd-video DVD/
I could certainly have added the final command to the script, thus automating the whole process from beginning to end, but I would have to keep a blank DVD in the drive while the script was running.
Now, I don't understand how this business of splitting and reassembling a file is exclusive to AVIs, but I have discovered that the exact same technique works fine for MPG files. For all I know, mpg files don't require this kind of splitting and reassembling, and there may be a simpler way to do it, but the following script works fine:
To the Newbie, this is a big reason why Linux rocks at the command line. You take a sequence of commands, put them in a text file in order, seperate them with semicolons and spaces, save the file, and that's called a shell script. There are more sophisticated approaches to shell scripting, but frankly, I haven't learned them yet. What little I know is this: any command can be a shell script, and a sequence of individual commands separated by semicolons is called a compound command. That's all I've needed to know to automate scads of processes, saving me hours and hours of repetetive drudgery. Scripts, of course, can be saved, reused, and redited for different circumstances. I keep most of my scripts online in the "notepad" of my yahoo mail account, so I can always find them and access them from any online Linux system I happen to be running.
The name of my script is avi2dvd, and this is how I run it. I run the command
chmod a+x avi2dvd
just once, to make the script executable, and from then on, all I have to do is type the command:
./avi2dvd
From a directory that contains the four items listed above.
crow2icedearth
11-12-2006, 11:34 PM
cool ill have try this soon. can't wait thanks for the post , best part is it all command line which i prefer , unless im booted in x windows
je_fro
11-18-2006, 02:37 AM
here you go blackbelt:
#!/bin/bash
if [ -z "$1" ]; then
echo -e "Enter the name of the mpeg-2 to author and burn.\n";
else
dvdauthor -o $1-TEMP $1 ;
dvdauthor -o $1-TEMP -T ;
growisofs -dvd-compat -Z /dev/dvdburner -dvd-video $1-TEMP ;
sleep 10 ;
rm -rf $1-TEMP ;
eject /dev/dvdburner
fi
blackbelt_jones
11-20-2006, 05:20 PM
here you go blackbelt:
#!/bin/bash
if [ -z "$1" ]; then
echo -e "Enter the name of the mpeg-2 to author and burn.\n";
else
dvdauthor -o $1-TEMP $1 ;
dvdauthor -o $1-TEMP -T ;
growisofs -dvd-compat -Z /dev/dvdburner -dvd-video $1-TEMP ;
sleep 10 ;
rm -rf $1-TEMP ;
eject /dev/dvdburner
fi
Okay, so am i to take it that this is a script for making dvds out of mpgs?
je_fro
11-20-2006, 05:40 PM
yup...here's what I'm currently doing...
dumpstream.sh
#!/bin/bash
if [ -z "$1" ]; then
echo -e "\nEnter arguments as follows: MovieName DeviceName\n";
growdvd.sh
#!/bin/bash
if [ -z "$1" ]; then
echo -e "Enter the name of the mpeg-2 to author and burn.\n";
else
dvdauthor -o $1-TEMP $1 ;
dvdauthor -o $1-TEMP -T ;
growisofs -dvd-compat -Z /dev/dvdburner -dvd-video $1-TEMP ;
sleep 10 ;
rm -rf $1-TEMP ;
eject /dev/dvdburner
fi
so I'll pop in a dvd that I bought and make a legal backup by doing:
dumpstream.sh Movie dvd
(the movie is usually more than 4.3G in size, so I'll run:)
myrequant.sh Movie
growdvd.sh Movie
The device names are unique to my system (like /dev/dvdburner) so you may need to modify using hdc or hdd or whatever...
je_fro
11-20-2006, 05:43 PM
P.S. I make it 3 scripts because there is sometimes trouble at certain steps in the process...you could roll it all into one, but you'll burn coasters every now and then...
crow2icedearth
11-28-2006, 04:00 AM
I have problems iwth my video and audio. they seem to be out of sync.. i am using
transcode , faac and MP4Box. i am outputing transcode into avi and wav then converting wave to mpa. i am encoding it for my ipod in case your wondering. once i get them both in sync i have it working fine.....
crow2icedearth
11-28-2006, 04:16 AM
dvd_reader.c) no support for DVD reading configured - exit.
[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 | XviD RIFF data, AVI (V=ffmpeg|A=mp3)
[transcode] V: AV demux/sync | (2) initial MPEG sequence / enforce frame rate
[transcode] V: import frame | 512x384 1.33:1
[transcode] V: bits/pixel | 0.382
[transcode] V: decoding fps,frc | 23.976,1
[transcode] V: Y'CbCr | YV12/I420
[transcode] A: import format | 0x55 MPEG layer-3 [48000,16,2] 132 kbps
[transcode] A: export format | 0x1 PCM [48000,16,2] 1536 kbps
[transcode] V: encoding fps,frc | 29.970,4
[transcode] A: bytes per frame | 6408 (6406.400000)
[transcode] A: adjustment | -1600@1000
[transcode] V: IA32/AMD64 accel | sse (sse 3dnowext 3dnow mmxext mmx asm C)
tc_memcpy: using sse for memcpy
[transcode] V: video buffer | 10 @ 512x384
[import_mp3.so] v0.1.4 (2003-08-04) (audio) MPEG
[import_ffmpeg.so] v0.1.12 (2004-05-07) (video) ffmpeg: MS MPEG4v1-3/MPEG4/MJPEG
[export_xvid4.so] v0.0.5 (2003-12-05) (video) XviD 1.0.x series (aka API 4.0) | (audio) MPEG/AC3/PCM
[import_mp3.so] MP3->PCM
[import_mp3.so] tcextract -a 0 -i "test.avi" -x mp3 -d 0 | tcdecode -x mp3 -d 0 -z 48000
tc_memcpy: using sse for memcpy
[export_xvid4.so] Reading configuration from '/root/.transcode/xvid4.cfg'
[export_xvid4.so] Reading config section 'features' from '/root/.transcode/xvid4.cfg'
[export_xvid4.so] Reading config section 'quantizer' from '/root/.transcode/xvid4.cfg'
[export_xvid4.so] Reading config section 'cbr' from '/root/.transcode/xvid4.cfg'
[export_xvid4.so] Reading config section 'vbr' from '/root/.transcode/xvid4.cfg'
[encoder.c] Delaying audio (0)
a problem i think i am seeing is my encoder.c is gettind delayed is the reason my video are out of sync. and if so how do i fix this ?
je_fro
11-28-2006, 04:17 AM
if it's slightly out of sync you can pass the -O option to mplex...
(man mplex)
crow2icedearth
11-28-2006, 09:23 AM
yeah it is out of sync.. I cant use mplex . i need to use MP4Box to encode it to mp4 . mplex doesnt suport that file format.
crow2icedearth
11-28-2006, 03:40 PM
ok heres the code i am using to divide audio and video
transcode -i test.avi --export_asr 2 --export_par 2 -F mpeg4 -y xvid,wav -o test.avi -M 2 -N 0x1 --export_fps 29.97 -m test.wav modfps=clonetype=3transcode
i had to rencode it with higher frame rate because it was coded at 24 FPS which my ipod doesnt support. has to be 29.97
i then code the wave file to m4a
faac -w test.wav
this makes test.m4a
now i put them together
MP4Box test.mp4 -add test.avi#video -add test.m4a
i have no clude where my SYNC problem is happening from MP4Box or is it from transcode. I think its from transcode because the audio is getting delayed . any ideas how to get these both in sync. the audio and video arnt way off but are off a few seconds. thanks
crow2icedearth
11-28-2006, 04:39 PM
figure it out. its a process to get it working. if i use ffmpeg first then use transcode i can get it to sync correctly ..... :)
blackbelt_jones
07-01-2007, 10:52 PM
I love this technique, to which I owe some beautiful no-nonsense DVDs. Thought it might be a nice time to give this thread a bump.
blackbelt_jones
12-08-2007, 01:41 AM
For the first time, this isn't working for me. The error message that I'm getting is "Segmentation Fault" Can anybody tell me what that means?
cybertron
12-11-2007, 04:17 PM
Did you recently update any software? It sounds like one of the programs used in the script has a bug or no longer supports an option and is crashing.
justlinux.com
Copyright Internet.com Inc. All Rights Reserved.