--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Thank you !@Yihui, as you see, it would be nice to generate several video formats with only one call to saveVideo().
--
Thank you Winston !Here is the version with avconv : http://glimmer.rstudio.com/ stla/testVideoavconv/ (with the webm format => Chrome only)
The code of server.R :# server R
library(animation)shinyServer(function(input, output) {output$video <- renderUI({n <- input$nvideoname <- "gaussian.webm"outdir <- "~/ShinyApps/testVideoavconv/ www"saveVideo({for (i in 1:n) {curve(dnorm(x), from = -4, to = 4)set.seed(666)simulation <- rnorm(i)points(x = simulation, y = rep(0, i), col = "red", pch = 19)}}, video.name = videoname, outdir = outdir, ffmpeg="avconv")tags$video(src=videoname, width="640", height="480", type='video/webm; codecs="vp8.0, vorbis"', controls="controls")})})
Le jeudi 30 mai 2013 21:13:09 UTC+2, Winston Chang a écrit :
I've installed ffmpeg.It looks ffmpeg was forked into two projects, ffmpeg and libav. The latter is used on Debian/Ubuntu, and when you run 'ffmpeg' on Ubuntu, it gives the following:
ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04. 1, Copyright (c) 2000-2013 the Libav developers
built on Apr 2 2013 17:02:36 with gcc 4.6.3*** THIS PROGRAM IS DEPRECATED ***This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
So ffmpeg will work, but it suggests that you use avconv instead. I believe they both point to the same binary, so it should work either way for now.-WinstonOn Thu, May 30, 2013 at 2:06 PM, Stéphane Laurent <lauren...@yahoo.fr> wrote:
Thank you !@Yihui, as you see, it would be nice to generate several video formats with only one call to saveVideo().--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups. com.
For more options, visit https://groups.google.com/ groups/opt_out.
o the animation option `outdir` in ani.options() was removed because it was confusing to many users that the output is in a temporary directory by default; now all files are written relative to the current working directory (#31)
http://cran.r-project.org/web/packages/animation/NEWS