Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can anyone play the animatrix movie?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
TheJabberwokk
Apprentice
Apprentice


Joined: 13 Aug 2002
Posts: 196
Location: Gloucester

PostPosted: Thu Feb 06, 2003 4:47 am    Post subject: Can anyone play the animatrix movie? Reply with quote

Has anyone been successful in playing the anime Matrix movie with mplayer?
Back to top
View user's profile Send private message
drakonite
l33t
l33t


Joined: 02 Nov 2002
Posts: 768
Location: Lincoln, NE

PostPosted: Thu Feb 06, 2003 5:43 am    Post subject: Reply with quote

Is there a link to download it instead of having it play in the browser?
_________________
Shoot Pixels Not People

My GPG/PGP Public key
Back to top
View user's profile Send private message
TheJabberwokk
Apprentice
Apprentice


Joined: 13 Aug 2002
Posts: 196
Location: Gloucester

PostPosted: Thu Feb 06, 2003 6:44 am    Post subject: link Reply with quote

[url]http://progressive.stream.aol.com/wb/gl/wbonline/ progressive/thematrix/us/med/animatrixlgfinal_dl.mov[/url]
Back to top
View user's profile Send private message
drakonite
l33t
l33t


Joined: 02 Nov 2002
Posts: 768
Location: Lincoln, NE

PostPosted: Thu Feb 06, 2003 7:17 am    Post subject: Reply with quote

After doing some checking the file seems to be encoded using the Sorenson 3 codec... This format isn't support in linux, however IIRC there is effort to add support for it but AFAIK (and as far as it seems...) it still does not work for all files.

It complains about JFIF which I beleive is part of JPEG or something like that... I'm going to try emerging a few jpeg packages and see if it is just that they are needed...
_________________
Shoot Pixels Not People

My GPG/PGP Public key
Back to top
View user's profile Send private message
oisch
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jul 2002
Posts: 130

PostPosted: Thu Feb 06, 2003 7:56 am    Post subject: Reply with quote

take a look at the comments to animatrix on slashdot.
someone mentions a patch for the mplayer sources.
Haven't yet tried it, but it seems to work.
Back to top
View user's profile Send private message
TRauMa
n00b
n00b


Joined: 26 Nov 2002
Posts: 43
Location: Germany

PostPosted: Thu Feb 06, 2003 10:36 am    Post subject: Reply with quote

If it was Sorenson 3 it would be no problem, but it is in Moving jpeg format. Look at the codecs page of mplayer, it's not in there yet. Could someone post a link to the mentioned patch?
Back to top
View user's profile Send private message
oisch
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jul 2002
Posts: 130

PostPosted: Thu Feb 06, 2003 1:24 pm    Post subject: Reply with quote

here it comes:
http://mplayerhq.hu/pipermail/mplayer-users/2003-February/029187.html
Back to top
View user's profile Send private message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Thu Feb 06, 2003 7:42 pm    Post subject: Reply with quote

The patch:
Code:
diff -u -r1.93 demux_mov.c
--- demux_mov.c 27 Jan 2003 22:29:47 -0000      1.93
+++ demux_mov.c 5 Feb 2003 17:58:15 -0000
@@ -597,7 +597,10 @@
                    unsigned int fourcc=stream_read_dword_le(demuxer->stream);
                    if(len<8) break; // error
                    mp_msg(MSGT_DEMUX,MSGL_V,"MOV: %*s desc #%d: %.4s  (%d bytes)\n",level,"",i,&fourcc,len-16);
-                   if(!i){
+                   if(fourcc!=trak->fourcc && i)
+                       mp_msg(MSGT_DEMUX,MSGL_WARN,MSGTR_MOVvariableFourCC);
+//                 if(!i)
+                   {
                        trak->fourcc=fourcc;
                        // read type specific (audio/video/time/text etc) header
                        // NOTE: trak type is not yet known at this point :(((
@@ -605,8 +608,6 @@
                        trak->stdata=malloc(trak->stdata_len);
                        stream_read(demuxer->stream,trak->stdata,trak->stdata_len);
                    }
-                   if(fourcc!=trak->fourcc && i)
-                       mp_msg(MSGT_DEMUX,MSGL_WARN,MSGTR_MOVvariableFourCC);
                    if(!stream_seek(demuxer->stream,pos+len)) break;
                }
                break;


Add this to end of your src_unpack() function in your mplayer ebuild (I'm using mplayer-cvs):
Code:
# Apply demux patch
cd ${S}/libmpdemux; patch < ${FILESDIR}/patch-demux || die "demux patch failed"


Assuming you saved the patch as "patch-demux" in the mplayer files dir. If not change filename references accordingly

EDIT: There was an issue with extra whitespace in the patch before. I have fixed it now and it should be good. Copied and pasted from my own machine.
Back to top
View user's profile Send private message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Thu Feb 06, 2003 8:20 pm    Post subject: Reply with quote

A helpful hint to play the animatrix movie with sound syncing:

Code:
mplayer-cvs -delay -10.25 animatrixlgfinal_dl.mov


the "-delay -10.25" will push the audio back to sync up with the video.
Back to top
View user's profile Send private message
swain
Tux's lil' helper
Tux's lil' helper


Joined: 30 Sep 2002
Posts: 136

PostPosted: Fri Feb 07, 2003 12:10 am    Post subject: Reply with quote

or take a look here

https://bugs.gentoo.org/show_bug.cgi?id=15180

this helps for me...
Back to top
View user's profile Send private message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Fri Feb 07, 2003 12:24 am    Post subject: Reply with quote

It is the same patch with a different path.
Back to top
View user's profile Send private message
swain
Tux's lil' helper
Tux's lil' helper


Joined: 30 Sep 2002
Posts: 136

PostPosted: Fri Feb 07, 2003 7:56 am    Post subject: Reply with quote

shure it is the same patch, but I try your way, and it doesn´t work for me. I´m using 0.90.rc3 and not cvs...

only want to inform about this...
Back to top
View user's profile Send private message
akhkharu99
Apprentice
Apprentice


Joined: 08 Jun 2002
Posts: 162
Location: Gainesville, FL

PostPosted: Sat Feb 08, 2003 6:35 am    Post subject: Reply with quote

thanks to you both for the patch info
i still can't get the audio to sync properly, but i am working on it...
Back to top
View user's profile Send private message
Seoushi
Tux's lil' helper
Tux's lil' helper


Joined: 04 Feb 2003
Posts: 117
Location: Salt Lake City

PostPosted: Mon Feb 10, 2003 5:26 am    Post subject: patch? how? Reply with quote

ignore this message I over looked something.
_________________
-Seoushi
Back to top
View user's profile Send private message
timmfin
Guru
Guru


Joined: 04 Sep 2002
Posts: 336
Location: Maryland, USA

PostPosted: Tue Mar 04, 2003 11:48 pm    Post subject: Reply with quote

Hmm, I just tried to do this with rc4 and it didn't work. I had a few failed hunks. Anyone viewing this with rc4?
Back to top
View user's profile Send private message
swingarm
l33t
l33t


Joined: 08 Jun 2002
Posts: 627
Location: Northern Colorado

PostPosted: Wed Mar 05, 2003 3:07 am    Post subject: Reply with quote

I can view the first Animatrix episode with rc4 but on the second episode I keep getting:
Code:

Cannot find codec for audio format 0x6134706D

I click the "OK" button and it keeps playing although with no sound. I've tried Alsa09, OSS, and aRts. Anybody else getting this?
Back to top
View user's profile Send private message
theCoder
n00b
n00b


Joined: 03 Mar 2003
Posts: 39
Location: Florida, USA

PostPosted: Wed Mar 05, 2003 1:35 pm    Post subject: Reply with quote

Yes, I get the same results, swingarm. The first one plays correctly (as long as I don't try to seek anywhere, then the audio gets completely out of sync), but the second one is without sound. I get the same error as you. (This is with a patched rc4 version)

The mplayer.hu website indicates that 0x6134706D is supposed to be the libfaad2 driver, but it doesn't appear to be loading. I even tried forcing it with the "-ac faad" option, but that didn't work either. I suspect that the codec is refusing to decode the stream because it thinks it doesn't know how, but that's just a guess right now. I don't think it has to do with the audio output (ALSA, OSS, etc), but with the audio decoding. I'll try to look more at it tonight.

Maybe someday we'll have a good video format that everyone can use and we'll laugh about the days when we tried for hours to watch a 5 minute clip :)
Back to top
View user's profile Send private message
gabor
Apprentice
Apprentice


Joined: 12 Dec 2002
Posts: 156
Location: Slovakia

PostPosted: Wed Mar 05, 2003 4:25 pm    Post subject: Reply with quote

the second animatrix movie can be played perfectly with xine from cvs ( i have it from cvs ( not as an ebuild ), but i think the xine-cvs ebuilds should be enough )
Back to top
View user's profile Send private message
Blurpy
Tux's lil' helper
Tux's lil' helper


Joined: 11 Feb 2003
Posts: 111
Location: Norway

PostPosted: Thu Mar 06, 2003 9:57 am    Post subject: Reply with quote

It works with xine lib 1 beta6 as well.
Back to top
View user's profile Send private message
deuce
n00b
n00b


Joined: 11 Dec 2002
Posts: 56

PostPosted: Fri Mar 07, 2003 5:34 pm    Post subject: Reply with quote

I have a question for those who have audio working in the Animatrix clip. What version of libfaad2 are you using? I downloaded and made an ebuild for libfaad2-1.1. Then I re-emerged mplayer-0.90_rc4 so that it would have support for libfaad2. libfaad2 is found during ./configure. However, mplayer gives the following output and no sound is played:
Code:

Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
dec_audio: Allocating 4608 bytes for input buffer
dec_audio: Allocating 12288 + 65536 = 77824 bytes for output buffer
FAAD: Failed to initialize the decoder!
ADecoder init failed :(
ADecoder init failed :(
get_path('codecs.conf') -> '/home/deuce/.mplayer/codecs.conf'
*** Try to upgrade /home/deuce/.mplayer/codecs.conf from etc/codecs.conf
*** If it still does not work, read DOCS/codecs.html!
Cannot find codec for audio format 0x6134706D.


I edited the mplayer source and discovered that the initialization of libfaad2 returns -1, and mplayer interprets this as an error. The initialiation function is faacDecInit2() in /libfaad/decoder.c

If you don't know what version of libfaad2 you installed, try running faad and looking at the top of the output for a version.

Thanks
Back to top
View user's profile Send private message
theCoder
n00b
n00b


Joined: 03 Mar 2003
Posts: 39
Location: Florida, USA

PostPosted: Fri Mar 07, 2003 6:11 pm    Post subject: Reply with quote

Well, I haven't gotten the second clip working in mplayer. I got the first one working by using the rc4 version and applying the patch found above. The video for the second clip works just fine, but I get the same error as you for the sound (I downloaded and installed the faad library separately from http://faac.sf.net/ because there doesn't appear to be any ebuild for it yet). I saw some posts such as this one that in theory makes it work. But even after fixing the patch so it applies correctly (it must have been made against an earlier version of mplayer), sound still doesn't work.

So, my final solution was to do what everyone else was doing -- emerge the latest version of xine-lib (beta6, I believe) and use Totem to watch it :) This actually wasn't the worst thing to happen, since I've discovered that Totem/Xine is actually a pretty decent way to watch videos.
Back to top
View user's profile Send private message
swingarm
l33t
l33t


Joined: 08 Jun 2002
Posts: 627
Location: Northern Colorado

PostPosted: Fri Mar 07, 2003 9:56 pm    Post subject: Reply with quote

Just info for everybody I got the 2nd episode to run by installing xine-lib 1_beta6 and xine-ui 0.9.18.
Back to top
View user's profile Send private message
deuce
n00b
n00b


Joined: 11 Dec 2002
Posts: 56

PostPosted: Wed Mar 12, 2003 4:37 am    Post subject: Reply with quote

http://mplayerhq.hu/pipermail/mplayer-users/2003-February/029187.html
http://www.mplayerhq.hu/pipermail/mplayer-users/2003-March/030902.html

Using these two patches in conjunction with the mplayer-cvs ebuild allowed me to play the Animatrix clip. Additionally you need libfaad2, and I made an ebuild for that. It is available here:
https://bugs.gentoo.org/show_bug.cgi?id=17342

Here is how I got it working:

1. emerge libfaad2
2. ebuild mplayer-cvs-0.91.ebuild unpack
3. patch the mplayer files
4. ebuild mplayer-cvs-0.91.ebuild compile
5. ebuild mplayer-cvs-0.91.ebuild merge
Back to top
View user's profile Send private message
TRauMa
n00b
n00b


Joined: 26 Nov 2002
Posts: 43
Location: Germany

PostPosted: Mon Mar 17, 2003 1:32 am    Post subject: Reply with quote

http://www.mplayerhq.hu/pipermail/mplayer-users/2003-March/030902.html

Using mozilla, I can't find a patch there, only email body with some garbage beneath.

Code:

Hi,

The attached patch is a hack to make the Animatrix2 audio work
correctly, though I don't know enough about the mov format to make a
proper fix.

__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com-------------- next part --------------
z'µìmjÛZržžÜ²Ç+¹¶ÞtÖ¦y¦œ~,]‰÷Óʗš¦™bq«b¢èr×­²ÚÞjd¢Íí¶çÆòµëzÇiÇâÅØŸ}Jåþ˜©z¹šŠ_ڶ֜†g§¶ÏöÓMôß]éÿwÓW]ý¦œ~
,
Back to top
View user's profile Send private message
spendabuck
Apprentice
Apprentice


Joined: 28 Apr 2002
Posts: 256

PostPosted: Wed Mar 19, 2003 4:33 am    Post subject: Reply with quote

the new mplayer-0.90_rc5 release can now play the animatrix movie.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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