<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 566: Option to generate animation as video file (mpeg or mp4)</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/566/" rel="alternate"/><link href="https://sourceforge.net/p/gnuplot/feature-requests/566/feed.atom" rel="self"/><id>https://sourceforge.net/p/gnuplot/feature-requests/566/</id><updated>2023-11-18T21:07:17.390000Z</updated><subtitle>Recent changes to 566: Option to generate animation as video file (mpeg or mp4)</subtitle><entry><title>#566 Option to generate animation as video file (mpeg or mp4)</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/566/?limit=25#8346" rel="alternate"/><published>2023-11-18T21:07:17.390000Z</published><updated>2023-11-18T21:07:17.390000Z</updated><author><name>Ethan Merritt</name><uri>https://sourceforge.net/u/sfeam/</uri></author><id>https://sourceforge.net16a9aa07d6734aee91205e44dbfe63edfb0e8159</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;My apologies for providing misleading information.   I had thought that the webp terminal was introduced sometime during the development of gnuplot version 5.4.    But I was mistaken; it exists only in gnuplot 6, which has been the development version for some years.   The first official release of version 6.0 is expected by the end of 2023.&lt;/p&gt;
&lt;p&gt;If you decide to try again at building from source, please use the release candidate for gnuplot 6 &lt;br/&gt;
&lt;a href="https://sourceforge.net/projects/gnuplot/files/gnuplot/testing/gnuplot-6.0.rc3.tar.gz"&gt;https://sourceforge.net/projects/gnuplot/files/gnuplot/testing/gnuplot-6.0.rc3.tar.gz&lt;/a&gt;&lt;br/&gt;
The INSTALL file has a section with hints for building on Ubuntu.  I append the relevant section below.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;Ubuntu&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;
&lt;span class="o"&gt;------&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;These&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;instructions&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;were&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;tested&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;on&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Ubuntu&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;22.04&lt;/span&gt;

&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;Install&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;build&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;tools&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;libraries&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="ow"&gt;and&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;documentation&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;tools&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;TeX&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;for&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;building&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;gnuplot&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;binary&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;5.4&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;sudo&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;apt&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;build&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;dep&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;gnuplot&lt;/span&gt;

&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;Install&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;additonal&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;tools&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="ow"&gt;and&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;libraries&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;for&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;development&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;version&lt;/span&gt;

&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;sudo&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;apt&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;install&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;gfortran&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;libcerf&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;dev&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;libwebp&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;dev&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;adwaita&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;icon&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;theme&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;full&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;\
&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="n"&gt;unzip&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;texlive&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;science&lt;/span&gt;

&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="c1"&gt;# openspecfun provides the Amos routines (except for cexint)&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;git&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;clone&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;https&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="n"&gt;github&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;JuliaMath&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;openspecfun&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;git&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;cd&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;openspecfun&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;make&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;sudo&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;make&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;install&lt;/span&gt;

&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;Debian&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;packages&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;required&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;configure&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;with&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Qt5&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;qtbase5&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;dev&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;qtbase5&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;dev&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;tools&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;qttools5&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;dev&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;tools&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;libqt5svg5&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;dev&lt;/span&gt;

&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;Add&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;the&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;below&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;~/.&lt;/span&gt;&lt;span class="n"&gt;profile&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="k"&gt;export&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;LD_LIBRARY_PATH&lt;/span&gt;&lt;span class="o"&gt;=$&lt;/span&gt;&lt;span class="n"&gt;LD_LIBRARY_PATH&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;usr&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;local&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;lib&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</summary></entry><entry><title>#566 Option to generate animation as video file (mpeg or mp4)</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/566/?limit=25#e0dd" rel="alternate"/><published>2023-11-17T05:55:08.483000Z</published><updated>2023-11-17T05:55:08.483000Z</updated><author><name>Ethan Merritt</name><uri>https://sourceforge.net/u/sfeam/</uri></author><id>https://sourceforge.neta080b8bef86b801e257d6b7df532f9bc8b65f090</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;strong&gt;&lt;span&gt;&lt;span&gt;[1]&lt;/span&gt;&lt;/span&gt; My version doesn't accept that option&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;You'll have to take that up with Ubuntu, or ask for help on an Ubuntu forum.  Or you could build from source.  Current version is 5.4, released July 2020.   Release of version 6 is imminent, release candidate 6.0.rc3 is available for testing.  There are some contributed guidelines for building under Ubuntu in the INSTALL file of the version 6 source distribution package.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;&lt;span&gt;[2]&lt;/span&gt;&lt;/span&gt; Solution Fulfills Needs&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Good to hear.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;&lt;span&gt;[3]&lt;/span&gt;&lt;/span&gt; GIF option&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Yeah. Animated gifs were OK when it was mostly cartoon kitty icons waving a paw but they are not really suited for larger use.  Also the library used to create them does lower-quality graphics than the newer terminals can produce.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;&lt;span&gt;[4]&lt;/span&gt;&lt;/span&gt; Selective scope redirect ?&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Is there a way to limit which portions of the file are "redirected" to a&lt;br/&gt;
webp file?  Namely, can I set up such a WEBP creation only for each&lt;br/&gt;
segment of the file (one each for the 6 resonance frequency simulation&lt;br/&gt;
modes)?  The file you provided lumped all 7 groupings into one video&lt;br/&gt;
file.  I will look at the documentation to see what I need to do, but if&lt;br/&gt;
you have any examples that specifically show how to close a first&lt;br/&gt;
redirect file and open a second/third/etc. target file would be very&lt;br/&gt;
much appreciated.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I didn't really look at your script in detail.  I just ran it as-is after editing to read files from the current directory rather than /tmp.    Here's a quick go at a script that creates a separate file for each mode.  I may not understand the file naming system correctly but it does produce reasonable looking output.  FWIW the run time was about 2 seconds total for the two 50-frame animations.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;set term web size 400,400 animate

&lt;span class="gh"&gt;#&lt;/span&gt;
# Mode 1
&lt;span class="gh"&gt;#&lt;/span&gt;
set output 'mode1.webp'
meshfile = "Icosahedron__1v_iter5_Results-msh"
do for [i=1:50] {
   j = (i &amp;gt; 25) ? 50-i : i
   polyfile = sprintf("Icosahedron__1v_iter5-m-01.%03d", j)
   splot meshfile u 2:3:4 w l lw 1 lt 5, polyfile u 1:2:3 w l lw 1 lt 3
}
unset output

&lt;span class="gh"&gt;#&lt;/span&gt;
# Mode 2
&lt;span class="gh"&gt;#&lt;/span&gt;
set output 'mode2.webp'
meshfile = "Icosahedron__1v_iter5_Results-msh"
do for [i=1:50] {
   j = (i &amp;gt; 25) ? 50-i : i
   polyfile = sprintf("Icosahedron__1v_iter5-m-02.%03d", j)
   splot meshfile u 2:3:4 w l lw 1 lt 5, polyfile u 1:2:3 w l lw 1 lt 3
}
unset output
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</summary></entry><entry><title>#566 Option to generate animation as video file (mpeg or mp4)</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/566/?limit=25#63be" rel="alternate"/><published>2023-11-17T01:58:39.218000Z</published><updated>2023-11-17T01:58:39.218000Z</updated><author><name>Ethan Merritt</name><uri>https://sourceforge.net/u/sfeam/</uri></author><id>https://sourceforge.net570c5b8d51078f729efe4919921862f5db11524a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Current gnuplot supports creating animation as a webp file, although it uses the rather limited API provided in WebPAnimEncoder rather than the full API used by the standalone webpmux encoding utility.   &lt;/p&gt;
&lt;p&gt;I attach the result of running your test script with 2 lines added at the top&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;set term webp size 400,400 animate
set output 'icosahedron.webp'

# FRAME3DD ANALYSIS RESULTS  http://frame3dd.sf.net/ VERSION 20140514+ 
# Proof-of-concept problem:  Icosahedron frame - static and dynamic analysis (in  kip) 
# Thu Nov 16 14:35:13 2023
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Does that meet your needs?   If not, what modifications to the existing driver capabilities would you like to see?   &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Option to generate animation as video file (mpeg or mp4)</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/566/" rel="alternate"/><published>2023-11-16T23:58:55.182000Z</published><updated>2023-11-16T23:58:55.182000Z</updated><author><name>Eric Marceau</name><uri>https://sourceforge.net/u/ericmarceau/</uri></author><id>https://sourceforge.net50959a343de60b7c3260b5588fb2bda62d195715</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Is it possible to expand Gnuplot's relevance by adding a built-in function to generate a mpeg or mp4 format file as an alternate to displaying the animation in a window?  &lt;/p&gt;
&lt;p&gt;Such an option would permit the results of Gnuplot to be shared away from the environment/point of creation and present those results to a wider audience (in their more receptive mode/environment) when trying to communicate results from various research/analyses (i.e. Frame3DD animations of multiple structural analysis dynamic modal simulations).&lt;/p&gt;
&lt;p&gt;The attached plot instruction file (Icosahedron__1v_iter5_Results.plt) gives you an idea of the "script" file that calls upon a large number of data files (other files in the tar file) to create dynamic simulations of structure vibrational modes.    &lt;/p&gt;
&lt;p&gt;Thank you,&lt;br/&gt;
Eric Marceau, 68, retired&lt;br/&gt;
member of Google Geodesic Help Group&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>