50 Commits

Author SHA1 Message Date
Antoine Levitt
94812cde7a fix mimetype again 2019-11-12 19:31:55 +01:00
Antoine Levitt
3db930cb93 correct mimetype for mov 2019-11-12 19:06:36 +01:00
Antoine Levitt
cb4702f7b8 Embed gifs and videos 2019-11-11 10:49:55 +01:00
Antoine Levitt
25313f6b43 Alternative fix for #2239 2019-11-09 16:49:48 +01:00
Johan Blåbäck
31c4414c32 animation.jl: using randstring() to generate unique tmp names (fix: 2239)
Browser caching prevents animations from being updated if names are not
unique. This solves Issue #2239.
2019-11-06 15:17:51 +01:00
Daniel Schwabeneder
99293ba5e6
Merge pull request #2210 from InfiniteChai/is/fractional_fps
Generalise fps to support fractional arguments
2019-10-11 12:55:07 +02:00
Daniel Schwabeneder
926a023b1d fix html output of video animations 2019-10-11 12:52:38 +02:00
Iain Skett
caca1b2e3c Generalise fps to support fractional arguments (rational or float) as well as integer. 2019-10-08 00:17:21 +01:00
benchislett
2072c54c53 Add handling for animation build with 0 frames 2019-08-14 00:03:19 +09:00
JackDevine
5619feb6c0 Expand paths beginning with ~ on unix systems. 2019-08-06 20:40:09 +12:00
Anshul Singhvi
8c2a66b00c
Use FFMPEG.jl for video encoding (#2099)
* add FFMPEG as a project dependency

* run(`ffmpeg ...`) -> ffmpeg_exe(`...`)

Add FFMPEG.jl to Project.toml too.
2019-07-13 17:58:28 +05:30
Fredrik Ekre
9a445d529d Make sure show return nothing. 2019-05-17 10:41:01 +02:00
SimonDanisch
19fba27951 don't read into a buffer first 2019-03-19 14:23:25 +01:00
SimonDanisch
b78da20d04 add support for gif mime 2019-03-19 12:40:40 +01:00
Michael Krabbe Borregaard
7b3826c2d5
Merge pull request #1448 from OliverEvans96/gif_cache
Remove cache-busting from gif animation. Should be done by the frontend.
2019-01-16 09:30:39 +01:00
Michael Krabbe Borregaard
badf302756 Explicitly specify assignment to global 2018-08-14 09:19:32 +02:00
Michael Krabbe Borregaard
99941dde8f info --> @info 2018-08-14 09:13:27 +02:00
Oliver Evans
1a67ca897c Remove cache-busting from gif animation. Should be done by the frontend. 2018-03-21 12:25:06 -04:00
Yakir Luc Gagnon
bfa2fd2edc
add option to supress saved message
Added option `show_msg::Bool` to `buildanimation` to show/suppress the "Saved animation to..." message.
2018-03-14 12:01:01 +01:00
Graham A Smith
11a856fbb3 Allow animation frame saving frequency to be a variable. 2018-01-31 13:12:32 -06:00
biggsbiggsby
ee0f4e11ea
Update animation.jl
Changed palette for each frame to an option, made the default palette a lossless bmp file for best quality/filesize, but still compatible with FFMPEG 3.4 on Win7 x64
2017-11-17 12:35:36 +01:00
biggsbiggsby
cf58f3cbf2
Update animation.jl
Generates a color palette for each frame (instead of each animation) to improve quality, and avoid palette file format issues in FFMPEG 3.4
2017-11-17 10:30:23 +01:00
biggsbiggsby
acf6e86c0f
gif animation.jl
Change palette from png to gif to avoid png encoding bug in ffmpeg
2017-11-14 09:39:59 +01:00
Andy Nowacki
133052b58c Animations: improve movie compatibility when using ffmpeg
Add the -pix_fmt yuv420p option when using ffmpeg to save
animations with the mov or mp4 commands. This improves
compatibility of the movie files since many players do not
support the ffmpeg defaults.

To do this, add a third positional argument to `buildanimation`
to specify if we want an animated GIF file.  The default
is `true`.

See the following for more information:
- https://trac.ffmpeg.org/wiki/Encode/H.264 ('Compatibility')
- https://apple.stackexchange.com/questions/166553/why-wont-video-from-ffmpeg-show-in-quicktime-imovie-or-quick-preview
2017-10-23 14:16:12 +01:00
Michael Krabbe Borregaard
9c46509f84 Merge pull request #1185 from H-M-H/animation_fix
Use ffmpeg & palette to create gifs, closes #1050
2017-10-18 22:28:56 +02:00
femtocleaner[bot]
ef29b4a5b0 Fix deprecations 2017-10-17 09:59:09 +00:00
HMH
7f7b543e18 Use ffmpeg & palette to create gifs, closes #1050
First let ffmpeg generate a colorpalette so it uses the limited amount
of colors available properly and only then create the actual gif using
the generated palette. This replaces convert completely as it yields far
worse results for long gifs and is considerably slower.
2017-10-16 23:53:00 +02:00
Michael K. Borregaard
db82f22320 add the last docstrings 2017-08-18 09:48:36 +02:00
Huckleberry Febbo
2e7329931c changed warning in imagemagick 2017-05-01 11:14:38 -04:00
Tom Breloff
4ed7144ca4 animation fixes: show for videos, imagemagick init 2016-12-01 10:23:41 -05:00
Tom Breloff
aa929ec24f buildanimation: mov and mp4 2016-11-30 09:50:28 -05:00
Thomas Breloff
af1896dc36 don't export Axis/Plot/etc; closes #552; fix series_annotations; support SeriesAnnotations in gr; fix scale/translate 2016-11-03 22:02:23 -04:00
Thomas Breloff
350ffdee25 Base.cycle to cycle; text_size; animate; MixedMeasures; SeriesAnnotations 2016-11-03 13:29:20 -04:00
Sivaramakrishnan Swaminathan
9c317b8c3f gif() now accepts an argument specifying number of times to loop
Note that GIF playback might have some variability depending on the
player used: https://github.com/ImageMagick/ImageMagick/issues/263
2016-09-13 10:12:44 -04:00
Thomas Breloff
705dbf60fa removed compat; added series update methods 2016-07-20 15:15:40 -04:00
Thomas Breloff
463e1bcb90 require julia 0.5-; writemime to show 2016-07-19 16:51:05 -04:00
Thomas Breloff
91aa1d718a animations: use tmp.gif for ijulia, remove prefix from convert call; closes #346 2016-06-22 11:01:00 -04:00
Thomas Breloff
c38e947dc6 animation default file tempname; raised group warning to 100; check for empty vec in axis; use command_idx for slicing; move deletion of smooth outside loop 2016-06-16 10:03:01 -04:00
Thomas Breloff
b165f233a8 animation fix; gr transparency 2016-06-10 16:17:30 -04:00
Thomas Breloff
52d325b446 Merge remote-tracking branch 'origin/master' into dev 2016-06-05 23:59:06 -04:00
Daniel Høegh
6256549f44 Make animation use ImageMagick.jl if it is installed. 2016-06-05 09:31:44 +02:00
Thomas Breloff
3cc9425219 working on 0.5 changes -- String 2016-05-28 11:00:19 -04:00
Thomas Breloff
0a86ccb142 working on 0.5 changes 2016-05-28 10:42:41 -04:00
Thomas Breloff
b5f08838b3 renaming: AbstractPlot and AbstractBackend 2016-03-10 23:08:04 -05:00
Josef Heinen
51c45456c3 Disable alpha channel when converting PNGs 2016-03-07 16:36:26 +01:00
Thomas Breloff
b8d136588c gif macro and every/when syntax 2016-02-16 18:02:04 -05:00
Thomas Breloff
5db9493d2b added dependency on Requires; added support for plotting tuples/FixedSizeArrays; added animate macro; legend ignores empty labels in gadfly/pyplot 2016-02-08 13:42:23 -05:00
Ritchie Lee
7b71d9a448 Small API change to animations
Animation constructor minor fix
2016-01-02 01:36:36 -08:00
Thomas Breloff
1db36c05a8 animations 2015-10-16 16:36:40 -04:00
Thomas Breloff
2c884ab5ab animations 2015-10-16 12:03:40 -04:00