comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: AVI reader/writer dll available
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: AVI reader/writer dll available [message #29675] Mon, 11 March 2002 14:22 Go to next message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
> I got already a mail by Ronn and your informations are helpful too.
> If the AVI dll is using a standard windows dll
> it is not possible to change this code running on linux.
> But as I remember right there is a GPL licenced AVI Player
> and Source in my linux distribution.
> I will have a look on this if I got stuck I will ask you all again.
>
> regards
> Reimar
>

No, you can not just recompile the dlm c code on linux. But if you get a
hold of the source, it should be trivial to change the calls to the windows
codec (.dll) to ones appropriate for linux.

The AVI player you mentioned may only contain an avi decoder and you'll need
the encoder routines. Take a look at http://avifile.sourceforge.net/ I
didn't read any of the details but it looks like an active project
implementing different codecs on x86 linux. There are probably many others.
Search www.freshmeat.net.

Since AVI is more of a file format than a codec, you'll have to choose what
codec you want to use. This isn't clear cut but I recommend the latest
intel indeo encoder you can get your hands on. Either v4 or v5 will do. As
for visual quality they are about the same but v5 is faster (at least on
win32). Steer clear of Cinepack, MSCV (Microsoft Video 1) and motion JPEG
if at all possible. They produce lower quality video with lower rates of
compression.

Thinking about it, you should really check out the openDivX MPEG4 codec
(http://www.projectmayo.com). It is open source and there are win32 and
linux x86 versions. MPEG4 is an extremely good codec for video and my guess
is that it could be tuned well for sci animations. The only downside is
that widespread distribution of your DivX encoded video depends on the
viewer installing the divX codec (but this is the case with ANY decent
codec). I just looked at the source and there is at least adequate
documentation of the API.

good luck!

-Rick
Re: AVI reader/writer dll available [message #29676 is a reply to message #29675] Mon, 11 March 2002 12:43 Go to previous messageGo to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Rick Towler wrote:
>
>> Dear Ronn,
>>
>> are there any restrictions of the avi dlms for linux?
>> I am interested in this too.
>>
>> regards
>> Reimar
>>
>> --
>> Reimar Bauer
>
> Reimar,
>
> I am not Ronn and I haven't seen the code for this but I vaguely remember
> the original post by Olev. I believe that he calls a standard windows AVI
> .dll to create these files (hence the windows only nature of this .dll). In
> order to port this to Linux you would have to get the API for an AVI codec
> available for Linux and make the changes to the source for the IDL .dll. I
> suspect that it would be trivial once you found the codec.
>
> -Rick

Dear Rick,

I got already a mail by Ronn and your informations are helpful too.
If the AVI dll is using a standard windows dll
it is not possible to change this code running on linux.
But as I remember right there is a GPL licenced AVI Player
and Source in my linux distribution.
I will have a look on this if I got stuck I will ask you all again.

regards
Reimar


--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml
============================================================ =======
Re: AVI reader/writer dll available [message #29678 is a reply to message #29676] Mon, 11 March 2002 10:59 Go to previous messageGo to next message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
> Dear Ronn,
>
> are there any restrictions of the avi dlms for linux?
> I am interested in this too.
>
> regards
> Reimar
>
> --
> Reimar Bauer

Reimar,

I am not Ronn and I haven't seen the code for this but I vaguely remember
the original post by Olev. I believe that he calls a standard windows AVI
.dll to create these files (hence the windows only nature of this .dll). In
order to port this to Linux you would have to get the API for an AVI codec
available for Linux and make the changes to the source for the IDL .dll. I
suspect that it would be trivial once you found the codec.

-Rick
Re: AVI reader/writer dll available [message #29687 is a reply to message #29678] Sun, 10 March 2002 23:45 Go to previous messageGo to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
ronn kling wrote:
>
> Hello All,
>
> I hope everyone had a great weekend.
>
> Back in December Oleg Kornilov posted a call_external routine that read and
> created AVI movies. With his permission we have turned it into a dll for
> IDL on windows for IDL 5.3, 5.4 and 5.5. You can download the zip file with
> the dll, dlm, two test procedures and a help file at.
>
> http://www.kilvarock.com/freesoftware/dlms/avi.htm
>
> Andrew Cool also sent me a nice little routine that accesses news feeds from
> IDL. You can get this at.
>
> http://www.kilvarock.com/freesoftware/misc/misc.htm
>
> I hope everyone finds them useful. As usual, if you have any comments please
> don't hesitate to email me.
>
> -Ronn

Dear Ronn,

are there any restrictions of the avi dlms for linux?
I am interested in this too.

regards
Reimar

--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml
============================================================ =======
Re: AVI reader/writer dll available [message #29779 is a reply to message #29675] Wed, 13 March 2002 22:36 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"Rick Towler" <rtowler@u.washington.edu> wrote in message
news:a6jart$2uko$1@nntp6.u.washington.edu...
>
>> I got already a mail by Ronn and your informations are helpful too.
>> If the AVI dll is using a standard windows dll
>> it is not possible to change this code running on linux.
>> But as I remember right there is a GPL licenced AVI Player
>> and Source in my linux distribution.
>> I will have a look on this if I got stuck I will ask you all again.
>>
>> regards
>> Reimar
>>
>
> No, you can not just recompile the dlm c code on linux. But if you get a
> hold of the source, it should be trivial to change the calls to the
windows
> codec (.dll) to ones appropriate for linux.
>

Upon further investigation, it seems like this isn't as trivial as I first
thought but still should be possible. I was really hoping to find a cross
platform solution but that might be wishing for too much.

Take a look at avifile (http://avifile.sourceforge.net). It should provide
a similar interface as the video for windows AVI* functions which are used
in the win32 version of IDLtoAVI. What is neat about it is that it uses
win32 codecs (so linux users have access to a wide range of codecs) but this
limits it to x86 linux. The documentation is thin but there are a few
examples that aren't bad.

-Rick
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Returning ARRAYs from functions?
Next Topic: IDL Objects Graphics cache and crash

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 05:27:53 PDT 2025

Total time taken to generate the page: 0.39892 seconds