Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Feb 2003 12:10:51 -0200
From:      Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
To:        freebsd-multimedia@FreeBSD.org
Cc:        "Thomas E. Zander" <riggs@hadiko.de>
Subject:   fix mplayer problems with animatrix?
Message-ID:  <20030208141113.30030.qmail@exxodus.fedaykin.here>

next in thread | raw e-mail | index | archive | help

--1yeeQ81UyVL57Vl7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

	If you downloaded animatrix mov video this week,
you might have noticed that latest mplayer cannot handle the
video. You will hear the audio track but get no image at all.

	The animatrix video can be found at the official
animatrix website

http://www.theanimatrix.com/

	Or, you can use one of the quicklinks

- small - 320x136
http://progressive1.stream.aol.com/wb/gl/wbonline/progressive/thematrix/us/med/Episode1s_dl.zip
- medium - 480x204
http://progressive1.stream.aol.com/wb/gl/wbonline/progressive/thematrix/us/med/Episode1m_dl.zip
- large - 480x204
http://progressive1.stream.aol.com/wb/gl/wbonline/progressive/thematrix/us/med/Episode1s_dl.zip

	One of mplayer developers proposed a little patch
that gets the video for animatrix working.

	DO NOT PROCEED if you're not familiar with port patching. :)
This is not for the faint of heart. mplayer developers are working
on a definitive solution so you might want to wait for a future
port update.

	HOWEVER, if you are familiar with port patching
and you want this patch RIGHT NOW... please continue.

	Check the original post with the patch at

http://www.MPlayerHQ.hu/pipermail/mplayer-users/2003-February/029187.html

for more information. This patch fixes the video problem but the
audio of animatrix is still out of sync.

	Furthermore, I noticed that other mov video files
still work after the patch. :) Nonetheless, it seems that I cannot
forward the video anymore, i.e., it doesn't work anymore if I use
the '->' arrow keys to advance any mov video. Can anyone else
reproduce this?

	Anyway, here is how you test this patch. This patch can be
found attached.

	1) save attachment patch-libmpdemux::demux_mov.c somewhere

	2) move patch-libmpdemux::demux_mov.c to mplayer/files/ so
	that it will be used as a ports patch (do not forget to
	remove it later)

mplayer/files/patch-libmpdemux::demux_mov.c

	3) recompile and reinstall mplayer

	4) try animatrix. it now works but the audio is out of
	sync... :( deverlopers are working on it

	Regards, 

ps: I do not want to start a flame war or a huge email thread, so
do not reply if you are just wishing to reply to this 'ps:'.  If
you any of you have the chance, check the japanese anime called
'Armitage III'. You will notice a lot of similarities to this 1st
episode of animatrix. Once again, this is just an opinion.  Do not
reply if you want to reply to just this 'ps:' :)

-- 
Mario S F Ferreira - DF - Brazil - "I guess this is a signature."
Computer Science Undergraduate | FreeBSD Committer | CS Developer
flames to beloved devnull@someotherworldbeloworabove.org
feature, n: a documented bug | bug, n: an undocumented feature

--1yeeQ81UyVL57Vl7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="patch-libmpdemux::demux_mov.c"

--- libmpdemux/demux_mov.c.orig	Sat Feb  8 11:31:57 2003
+++ libmpdemux/demux_mov.c	Sat Feb  8 11:32:29 2003
@@ -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;

--1yeeQ81UyVL57Vl7--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030208141113.30030.qmail>