
Recherche avancée
Autres articles (83)
-
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation" -
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)
Sur d’autres sites (13386)
-
Show duration for large asf files as written in the file header.
21 juin 2014, par Carl Eugen Hoyos -
How to use fig.show=animate in knitr without administrator privileges
23 mai 2013, par Stéphane LaurentI use Windows without administrator privileges hence I cannot set a path in the Windows PATH variable.
The
ffmpeg.exe
file is in my"U:/ProgramFiles/ImageMagick-6.8.5-5/"
folder.I have found how to use the
saveVideo()
function of theanimate
package :ani.options(ffmpeg = shQuote('U:/ProgramFiles/ImageMagick-6.8.5-5/ffmpeg.exe'))
saveVideo({
par(mar = rep(3, 4))
for (i in seq(pi/2, -4/3 * pi, length = 12)) {
plot(0, 0, pch = 20, ann = FALSE, axes = FALSE)
arrows(0, 0, cos(i), sin(i))
axis(1, 0, "VI"); axis(2, 0, "IX")
axis(3, 0, "XII"); axis(4, 0, "III"); box()
}
},
video.name="mavideo.mp4",
outdir="U:/Data/Rtests/Animation")But I haven't find how to knit a Rmd file with the option
fig.show=animate
in a chunk, for instance :```{r clock, fig.width=7, fig.height=6, fig.show='animate'}
par(mar = rep(3, 4))
for (i in seq(pi/2, -4/3 * pi, length = 12)) {
plot(0, 0, pch = 20, ann = FALSE, axes = FALSE)
arrows(0, 0, cos(i), sin(i))
axis(1, 0, "VI"); axis(2, 0, "IX")
axis(3, 0, "XII"); axis(4, 0, "III"); box()
}
```I have tried to modifiy the
hook_ffmpeg_html()
function by only changing theffmpeg.cmd
variable :```{r}
hook_ffmpeg_html2 <- function (x, options)
{
........
ffmpeg.cmd = paste("-y", "-r", 1/options$interval,
"-i", fig.fname, mov.fname)
ffmpeg.cmd <- paste('"U:/ProgramFiles/ImageMagick-6.8.5-5/ffmpeg"', ffmpeg.cmd)
......
}
opts_knit$set(animation.fun = hook_ffmpeg_html2)
```But this chunk does not work, below is the error message :
label: unnamed-chunk-1
Warning in block_exec(params) :
failed to tidy R code in chunk
reason: Error in base::parse(text = text, srcfile = NULL) :
21:14: unexpected symbol
20: options$out.height), if ("controls" %in% mov.opts)
21: "controls=\\"controls -
exec() with SuPHP and SafeMode Off (php.ini local) show wrong path and fail execution
29 juillet 2013, par abkrimTry this
<?php
if (exec('/usr/bin/ffmpeg -i 47.mp4 -acodec aac -ab 128kb -vcodec mpeg4 -b 1220kb -mbd 1 -s 320x180 final_video.mov"'))
{ echo "Success"; }
else { echo "No good"; }
?>But on shell see—>
sh: /usr/local/php/bin/ffmpeg: No such file or directory
Server it's Apache+SuPHP with a local php.ini file for disable SafeMode
I don't understand why show sh : /usr/local/php/bin/ffmpeg : No such file or directory instead real path put on php script.