On Tue, Dec 03, 2002 at 13:22:02AM -0200, Zdenek Kabelac wrote:
> On Tue, Dec 03, 2002 at 09:50:27AM -0200, Everton Sanga wrote:
> > Does someone have it, or know where can I get it for use with avifile?
> >
> > It is in my to-do list.
>
> Well I don't know about any such tool - maybe there is something
> based upon mplayer ??
It's funny this should come up - I'm actually attempting to write a
Mozilla plugin using avifile, right now. At this stage I'm just using
the sample libnullplugin that's provided with Mozilla, and shoving the
following code in the "NPP_New" function:
#define FILE "mms://media4.abc.net.au/triplej"
avm::IAviPlayer *player; player = avm:: CreateAviPlayer (FILE,0,0,0); while
(!player->IsOpened()) { sleep(1); }
player->Start();
while (1) {
player->Play();
sleep(1);
}
Now, this code works fine when put in it's own little standalone
program, but when run as a mozilla plugin, I get warnings that it can't
open the codec libraries:
<ASF reader> : Codec Type: Audio
<ASF reader> : Codec Name: Windows Media Audio V2
<ASF reader> : Codec Description: 20 kbps, 22 kHz, stereo
<ASF reader> : header contains "data" (26b)
<ASF network reader> : received valid headers
<ASF reader> : Interleave info: blocksize=1 packetlen=744 chunklen=744
<reader> : Initialized audio stream (chunk tblsz: 2147483647, fmtsz: 28)
[snip]
<LDT keeper> : Installed fs segment: 0x411fb000
<codec keeper> : Found 10 plugins (/usr/lib/avifile0.7,A:33,V:70)
<codec keeper> : WARNING: plugin /usr/lib/avifile0.7/ffmpeg.so could not be opened:
/usr/lib/avifile0.7/ffmpeg.so: undefined symbol:
PluginGetAttrInt__3avmRCQ23avm9CodecInfoPCcPi
<codec keeper> : WARNING: plugin /usr/lib/avifile0.7/win32.so could not be opened:
/usr/lib/avifile0.7/win32.so: undefined symbol: Flush__Q23avm13IAudioDecoder
<codec keeper> : WARNING: plugin /usr/lib/avifile0.7/win32.so could not be opened:
/usr/lib/avifile0.7/win32.so: undefined symbol: Flush__Q23avm13IAudioDecoder
<codec keeper> : WARNING: plugin /usr/lib/avifile0.7/win32.so could not be opened:
/usr/lib/avifile0.7/win32.so: undefined symbol: Flush__Q23avm13IAudioDecoder
<audio reader> : Failed to initialize audio decoder for format 0x161
I thought maybe that it was because avifile uses dlopen on the various
codecs it needs, but when I tried my own sample code that does a dlopen
on libm.so, it works fine.
Is there Anyone out there familiar enough with both avifile and plugins for
mozilla willing to hazard a guess on what I'm doing wrong?
I've compiled the plugin with:
gcc -shared -o aviplugin.so npunix.o npshell.o -laviplay
...which I assume is the correct way to do it.
> Howerver it should be enough to configure browser and use it
> as an external program - as viewing movies inside Netscape window
> is IMHO bad idea.
Yeah, I tend to agree. Unfortunately there's veritable sh*tloads of
webpages out there that seem to expect the user to have some sort of
plugin for various streams.
I've tried Codeweaver's plugin, and although it works really nicely for
quicktime, I don't much like using it for WMA streams - so I figured I'd
write my own.
Cheers,
Paul
--
Paul Dwerryhouse
"Why not just have the arresting officer execute you on the spot? If you turn
out to be innocent, they can cancel the invoice for the bullet." -- sharkey
_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile