View previous topic :: View next topic |
Author |
Message |
mikepb78 Apprentice
Joined: 27 Feb 2003 Posts: 171 Location: London
|
Posted: Sun Apr 06, 2003 12:56 pm Post subject: To encode and fix the audio sync in the Detective animatrix |
|
|
ok well you need to have faad installed and mplayer with all the garnishes.
Faad : http://faac.sourceforge.net/files/faad2-1.1.tar.gz
There seems to be no package in portage for it yet.
You can now play the movie like so :
mplayer -delay -11 detect.mov
But to get away from the mov format and have the audio synced do this :
Do a 2-pass encode to get better quality :
mencoder -fps 23.976 -oac mp3lame -lameopts br=160 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=2000:vpass=1 -o detect_640_dl.avi detect_640_dl.mov
mencoder -fps 23.976 -oac mp3lame -lameopts br=160 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=2000:vpass=2 -o detect_640_dl.avi detect_640_dl.mov
Strip out the mp3. Unfortunatley mencoder do not do ogg :
mplayer -dumpaudio -dumpfile stream.mp3 detect_640_dl.avi
Resync the audio :
ogmmerge -o detect_640_dl.ogm -A detect_640_dl.avi -s 10600 stream.mp3
The -s option is in milliseconds. You can play around with that to get it more accurate.
And then you have a nice ogm of the movie |
|
Back to top |
|
|
mikepb78 Apprentice
Joined: 27 Feb 2003 Posts: 171 Location: London
|
Posted: Sun Apr 06, 2003 12:57 pm Post subject: oops |
|
|
you can get faad like so :
emerge libfaad2 |
|
Back to top |
|
|
sven Apprentice
Joined: 19 Apr 2002 Posts: 274
|
Posted: Thu Apr 10, 2003 4:23 pm Post subject: |
|
|
There is no libfaad2 ebuild
Any idea how to play the latest Animatrix - A Detective Story with mplayer 0.90 final? It can't play the audio track... |
|
Back to top |
|
|
gabor Apprentice
Joined: 12 Dec 2002 Posts: 156 Location: Slovakia
|
Posted: Thu Apr 10, 2003 5:01 pm Post subject: |
|
|
you need faad....
from http://faac.sourceforge.net download
the faad oct26th source:
http://faac.sourceforge.net/files/faad_src_26102001.zip
(i had no luck with the faad2 source)
unzip , read the README, make , make install.
now:
mplayer -aid 2 -dumpaudio animatrix3.mov
mv stream.dump begin.aac
mplayer -aid 1 -dumpaudio animatrix3.mov
mv stream.dump main.aac
cat begin.aac main.aac > complete.aac
faad complete.aac
mplayer -audiofile complete.wav animatrix.mov
that's all.
p.s: maybe aid2 is the main and aid1 is the beginning, i'm not sure. simply create the wav, and if the sound is not correct, then switch them |
|
Back to top |
|
|
ghetto Guru
Joined: 10 Jul 2002 Posts: 369 Location: BC, Canada
|
Posted: Thu Apr 10, 2003 11:53 pm Post subject: |
|
|
gabor wrote: |
p.s: maybe aid2 is the main and aid1 is the beginning, i'm not sure. simply create the wav, and if the sound is not correct, then switch them |
Nope, you seem to have it right on the money gabor, this worked perfectly for me "as is" and I did it for animatrix episode 2 and 3.
Im used mplayer-0.90 and faad2-1.1
Thanks _________________ Blizzard you suck. |
|
Back to top |
|
|
mikepb78 Apprentice
Joined: 27 Feb 2003 Posts: 171 Location: London
|
Posted: Fri Apr 11, 2003 11:23 am Post subject: Proper Howto: |
|
|
Playing animatrix or matrix or other Quicktime movies from you harddrive :
Ok i see a couple of people are struggling to get the Matrix and Animatrix trailers and some other Quictime movies to work. The good news is that it is very easy to get to work.
The Simple Install :
[color=red](UPDATE - faad2 is now in portage !!! )[/code]
1) Install Faad2, there is no ebuild in portage, but for now you can get one from here.:
https://bugs.gentoo.org/show_bug.cgi?id=17342
You need to copy the faad2-11.ebuild to where your local
portage dir which is set in make.conf ie :
Code: | PORTDIR_OVERLAY=/usr/local/portage |
Now you can install the faad2 package.
Code: |
mkdir -p /usr/local/portage/media-libs/faad2
mv faad2-1.1.ebuild /usr/local/portage/media-libs/faad2
cd /usr/local/portage/media-libs/faad2
ebuild faad2-1.1.ebuild digest
emerge -uD faad2-1.1.ebuild
|
2) One you have that installed, install the lastest mplayer (0.90):
emerge sync
emerge mplayer
And now you can play your favourite quicktime movie files.
PS : Xine can also play some of the Quicktime movies because it has a version of faad2 packaged with it. And i am sure that in a couple of days time the faad2 package will be available to gentoo.
Last edited by mikepb78 on Fri Apr 11, 2003 9:58 pm; edited 1 time in total |
|
Back to top |
|
|
duff Guru
Joined: 19 Jun 2002 Posts: 466 Location: Clemson, SC
|
Posted: Fri Apr 11, 2003 1:50 pm Post subject: |
|
|
Awsome, thanks mikepb78. |
|
Back to top |
|
|
Narada Guru
Joined: 12 Dec 2002 Posts: 300 Location: London, UK
|
Posted: Fri Apr 11, 2003 3:26 pm Post subject: |
|
|
gabor wrote: | mplayer -aid 2 -dumpaudio animatrix3.mov
mv stream.dump begin.aac
mplayer -aid 1 -dumpaudio animatrix3.mov
mv stream.dump main.aac
cat begin.aac main.aac > complete.aac
faad complete.aac
mplayer -audiofile complete.wav animatrix.mov |
Hello Gabor. Many thanks for this walkthrough. This was the only method that was able to provide smooth sound and playback for me. I have documented the entire process on link (1) below acknowledging the source of the information. Link (1) also provides a faad2 ebuild which one can place in portage overlay and emerged as normal although it will be masked by default. Regrettably, no one is taking responsibility for resolving that bug so it may be a while before anything is done about it. Download the full theatrical trailer for The Matrix Reloaded (Quicktime, 1000pxby540px, 100MB) if you have not done so already from link (2).
(1) https://bugs.gentoo.org/show_bug.cgi?id=17342
(2) http://progressive1.stream.aol.com/wb/gl/wbonline/progressive/thematrix/us/med/trailer_final_1000_dl.zip _________________ http://dhruba.name/ |
|
Back to top |
|
|
sandcrawler Tux's lil' helper
Joined: 24 Mar 2003 Posts: 149 Location: SaintLouis, MO
|
Posted: Fri Apr 11, 2003 3:43 pm Post subject: Thanks!! |
|
|
Just wanted to give a big THANKS out to everyone who has played with this and got it going! Ebuild for faad2 works great and I'm just waiting for mplayer to finish it's work. Hopefully this sharp looking trailer will be much better with the sound
Thanks!!
19kilo |
|
Back to top |
|
|
mikepb78 Apprentice
Joined: 27 Feb 2003 Posts: 171 Location: London
|
|
Back to top |
|
|
ghetto Guru
Joined: 10 Jul 2002 Posts: 369 Location: BC, Canada
|
Posted: Fri Apr 11, 2003 8:11 pm Post subject: |
|
|
mikepb78 I know its a little cumbersom but for some reason the quality of the movie is WAAAY better when I do it gabor's way by decoding the audio tracks first.
Anyone else experience this? _________________ Blizzard you suck. |
|
Back to top |
|
|
mikepb78 Apprentice
Joined: 27 Feb 2003 Posts: 171 Location: London
|
Posted: Fri Apr 11, 2003 10:00 pm Post subject: Using FAAD |
|
|
Well yes for AAC mpeg audio using faad to convert to mpeg makes a lot of sence. But not all Quicktime movies have ACC Mpeg audio. |
|
Back to top |
|
|
|