New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
renderer = ffmpeg_renderer() not working on windows 10 #201
Comments
I must admit I don't understand the language of your errors - can you translate it? |
Ok, here it is library(ggplot2)
library(gganimate)
p <- ggplot(airquality, aes(Day, Temp)) +
geom_line(size = 2, colour = 'steelblue') +
transition_states(Month, 4, 1) +
shadow_mark(size = 1, colour = 'grey')
animate(p, renderer = ffmpeg_renderer())
#> Warning in file(what, "rb"): cannot open file 'C:
#> \Users\andre\AppData\Local\Temp\Rtmpu6UB5X\file25b066e545aa.mp4': No such
#> file or directory
#> Error in file(what, "rb"): cannot open the connection |
maybe you don't have write permissions to your temp folder? But that would bring up all sorts of issues... |
I've replicated the issue on a fresh clean install of Windows 10
|
Thomas,
What can be done is specify file_glob <- sub('^.*(\\..+$)', 'gganim_plot%4d\\1', basename(frames[1])) Try installing my version:
Happy to PR, if you want to keep the sequence pattern, instead of relying on ffmpeg being compiled with glob support (which is not the case on my windows build) |
@verajosemanuel and @andresrcs - can you confirm that @dmi3kno's fix resolves your issue? |
Since you are suppressing the verbose output of ffmpeg with Btw, |
With @dmi3kno version, I no longer get the error message but, I'm just getting an empty file as output. |
Same here. Empty file. |
My experience is the same, but this is a different type of issue. It is not empty, its just not playing in Rstudio browser. Pop it out into Chrome to view. Nothing is shown with |
Do you see a video if you render it outside of a RMarkdown document? |
No. It does not show in Viewer window either, only in browser (when popped out) or when locating the file on disk and playing in Windows Media Player. Might have something to do with access of Rstudio's chromium to ffmpeg |
@dmi3kno Thank you, your updated version works like a champ for me. I'm running on Win10 1809 Build 18290 and your fix solved the error and renders in Viewer as well. |
Hi @dmi3kno and @thomasp85 - I've been getting the same error message. Tried the new version and still happening (haven't changed anything else). Here's the rundown of my R session:
|
The changes proposed by @dmi3kno has only just been merged - can I get you to update and try again? |
@dmi3kno ffmpeg is not used to display the video - It is a basic base64 encoding embedded in a video tag... don't know why that won't display in windows..? |
Working perfectly now, thanks! |
HI Thomas, what could be issue here? Thanks |
It looks like you either haven’t installed ffmpeg or don’t have it available on your path. In general I would recommend using the |
This issue can be fixed with manually installing "ffmpeg". The instructions are in the following link |
System details
I want to embed an animation into a rmd file but I'm getting this error
Created on 2018-10-22 by the reprex package (v0.2.1)
This is the traceback
On this setup is working fine
The text was updated successfully, but these errors were encountered: