Problems with movies generated by matplotlib

Hi all,

I have used the example available via

http://matplotlib.sourceforge.net/faq.html#MOVIE

to generate animation.mpg. I was able to open this file with mplayer.

However if I try to use it for an animated pdf it failed.

\leftline{\pdfstartlink
  attr{/Border [ 0 0 0]}
  user{
    /Subtype /Link
    /A << /Type /Action /S /Launch /F (animation.mpg) >>
  } \includegraphics[width=4.0cm]{borro3.png} \pdfendlink}

The reason is that xanim (which is used when I click on borro3.png)
cannot display animation.mpg.

How can I resolve this problem ? Can I use mencoder to generate a *.mpg
which is compatible with xanim ?

Moreover, I tried movie15. Unfortunately, only Windows and Mac versions
of Adobe Reader provide the necessary plugins.

Nils

Nils Wagner wrote:

Hi all,

I have used the example available via

http://matplotlib.sourceforge.net/faq.html#MOVIE

to generate animation.mpg. I was able to open this file with mplayer.

videos created with these options work with xanim:

-ovc lavc -lavcopts vcodec=mjpeg

Christian

Christian Kristukat wrote:

Nils Wagner wrote:

Hi all,

I have used the example available via

http://matplotlib.sourceforge.net/faq.html#MOVIE

to generate animation.mpg. I was able to open this file with mplayer.
   
videos created with these options work with xanim:

-ovc lavc -lavcopts vcodec=mjpeg

Christian

Christian,

Thank you very much. Now it works fine with xanim.

Just now I have installed mpeg_play
http://bmrc.berkeley.edu/frame/research/mpeg/mpeg_play.html

./mpeg_play animation.mpg
specified dither requires 8 bit display
trying -dither color
Junk at start of stream, searching for start code
This is not an MPEG video stream. (0)
Skipping movie 0, "animation.mpg" - not an MPEG stream
X Error of failed request: BadWindow (invalid Window parameter)
  Major opcode of failed request: 40 (X_TranslateCoords)
  Resource id in failed request: 0x4000002
  Serial number of failed request: 24
  Current serial number in output stream: 24

How can I resolve this issue ? I am new to mpg, avi etc.

Thanks in advance

                                    Nils

···

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Nils Wagner wrote:

Christian Kristukat wrote:

Nils Wagner wrote:

Hi all,

I have used the example available via

http://matplotlib.sourceforge.net/faq.html#MOVIE

to generate animation.mpg. I was able to open this file with mplayer.
  
videos created with these options work with xanim:

-ovc lavc -lavcopts vcodec=mjpeg

Christian

Christian,

Thank you very much. Now it works fine with xanim.

Just now I have installed mpeg_play
http://bmrc.berkeley.edu/frame/research/mpeg/mpeg_play.html

./mpeg_play animation.mpg
specified dither requires 8 bit display
trying -dither color
Junk at start of stream, searching for start code
This is not an MPEG video stream. (0)
Skipping movie 0, "animation.mpg" - not an MPEG stream
X Error of failed request: BadWindow (invalid Window parameter)
  Major opcode of failed request: 40 (X_TranslateCoords)
  Resource id in failed request: 0x4000002
  Serial number of failed request: 24
  Current serial number in output stream: 24

How can I resolve this issue ? I am new to mpg, avi etc.

I'd suggest to try different formats with meencoder (vcodec=xxx). Have a look at
the mencoder manpage and find '-lavcopts'. There you'll find a list of all
supported formats.

Christian