Recherche avancée

Médias (91)

Autres articles (50)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • MediaSPIP Init et Diogène : types de publications de MediaSPIP

    11 novembre 2010, par

    À l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
    Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
    Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...)

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

Sur d’autres sites (5107)

  • How to plot animated time series in R ?

    28 août 2016, par pOrlando

    I am trying use the ’animation’ package in R to plot an animated time series.

    My dataset consists of a time vector and a value vector, each with 1800 rows.

    I keep getting an error message after running the loop which reads :

    Error in jpeg(gname[i]) : unable to start jpeg() device
    In addition: Warning messages:
    1: In jpeg(gname[i]) : unable to open file 'g11:30:00.jpg' for writing
    2: In jpeg(gname[i]) : opening device failed

    Here’s the source code

    timemax<-1800
    setwd("~/Documents/Animation/")
    graphdata<-read.csv("filling_line_data_construction_v2.csv")
    attach(graphdata)
    gname<-paste("g",time, ".jpg", sep="")
    for (i in 1:timemax){
       jpeg(gname[i])
       plot(time[1],value[1],type="l",ylim=c(0,35), xlim=c(0,100),
         ylim = c(0, 35),ylab = "", xlab="time")
       lines(time[1:i],value[1:i])
       dev.off(dev.cur())
    }

    The end goal is to string together these 1800 plots as a stop animation video by calling the ffmpeg shell :

    shell("C:/ffmpeg/bin/ffmpeg.exe -report -i g%d.jpg -b:v 2048k fillin_lineR.mpg",mustWork=FALSE)

    This is code that I’ve been trying to adapt from http://www.animatedgraphs.co.uk/LondonR.html#slide-30, but this example uses a .tif file instead of .jpg, and my computer gives me 1800 error messages when trying to make a video from .tif files...

    Thanks in advance !

  • Write a function to run through a series of commands, zsh

    8 septembre 2016, par Ali Samii

    I am trying to write a function to run through a series of commands, but I have no idea where to start.

    This is the series of commands I want to run.

    find ./ -name '*.mp4' -exec bash -c 'ffmpeg -i "$0" -vcodec libx264 -vf scale=854:480 -cpu-used 5 -threads 8 "${0%%.mp4}-copy.mp4"' {} \;
    touch -r video.mp4 video-copy.mp4
    rm -rf video.mp4
    mv video-copy.mp4 video.mp4
    find ./ -name '*.mp4' -exec bash -c 'qt-faststart "$0" "${0%%.mp4}-fs.mp4"' {} \;
    touch -r video.mp4 video-fs.mp4
    rm -rf video.mp4
    mv video-fs.mp4 video.mp4
    find ./ -name '*.mp4' -exec bash -c 'ffmpeg -i "$0" -vcodec libvpx -acodec libvorbis -vf scale=-1:480 -cpu-used 5 -threads 8 "${0%%.mp4}.webm"' {} \;
    touch -r video.mp4 video.webm
    find ./ -name '*.mp4' -exec bash -c 'ffmpeg -i "$0" -ss 00:00:10 -vframes 1 -r 1 -vf scale=-1:480 -f image2 "${0%%.mp4}.jpg"' {} \;
    touch -r video.mp4 video.jpg
    mv video.jpg thumbnail.jpg

    Can someone help me please.

  • avcodec/h264 : Use ptrdiff_t for (bi)weight functions

    21 septembre 2016, par Michael Niedermayer
    avcodec/h264 : Use ptrdiff_t for (bi)weight functions
    

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/h264dsp.h
    • [DH] libavcodec/h264dsp_template.c
    • [DH] libavcodec/mips/h264dsp_mips.h
    • [DH] libavcodec/mips/h264dsp_mmi.c
    • [DH] libavcodec/x86/h264dsp_init.c