Recherche avancée

Médias (1)

Mot : - Tags -/ogg

Autres articles (69)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP 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 ; (...)

  • Gestion de la ferme

    2 mars 2010, par

    La 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"

Sur d’autres sites (6513)

  • Need help in bash script for ffmpeg encoding [duplicate]

    26 octobre 2022, par naoki

    Tried running the code for encoding the batch videos from a list but from the list it seems to run only the first leave behind the rest.

    


    The list mentioned in rip.txt

    


    Data_science - [1x01] - Introduction.mkv
Data_science - [1x02] - What's Data Science.mkv
Data_science - [1x03] - Packages needed.mkv


    


    The Code :

    


    ***#!/bin/bash

cd /mnt/d1/xsrc/

fn='/mnt/d1/xsrc/rip.txt'
n=1
while read line;
do
ffmpeg -v error -stats -i "$line" -map 0:2 -map_metadata -1 -map_chapters -1 -vn -an -dn -scodec copy -y /mnt/d1/src2/tmp/sub.ass ; ffmpeg -v error -stats -i "$line" -map 0:1 -map_metadata -1 -map_chapters -1 -b:a 96k -ar 48000 -vn -sn -dn -y /mnt/d1/src2/tmp/audio_jpn.m4a ; ffmpeg -v error -stats -i "$line" -strict -1 -map 0:0 -f yuv4mpegpipe -pix_fmt yuv444p12le -s 1280x720 -r 30 - | x265 - --y4m -p slow --bitrate 723 -t animation --output-depth 10 --pass 1 --bframes=8 --psy-rd=1.5 --psy-rdoq=2 --aq-mode=3 --aq-strength=0.8 --deblock=-1,-1 -o /mnt/d1/src2/tmp/video_und.h265 ; ffmpeg -v error -stats -i "$line" -strict -1 -map 0:0 -f yuv4mpegpipe -pix_fmt yuv444p12le -s 1280x720 -r 30 - | x265 - --y4m -p slow --bitrate 723 -t animation --output-depth 10 --pass 2 --bframes=8 --psy-rd=1.5 --psy-rdoq=2 --aq-mode=3 --aq-strength=0.8 --deblock=-1,-1 -o /mnt/d1/src2/tmp/video_und.h265 ; mp4box -add "/mnt/d1/src2/tmp/video_und.h265#video:lang=und" -new "/mnt/d1/src2/tmp/video0000_und.mp4" ; mkvmerge -o /mnt/d1/output/tmp/"$line" --disable-track-statistics-tags --language 0:jpn /mnt/d1/src2/tmp/audio_jpn.m4a --sub-charset 0:UTF-8 --language 0:eng /mnt/d1/src2/tmp/sub.ass /mnt/d1/src2/tmp/video0000_und.mp4 ; rm -rf /mnt/d1/src2/tmp/* ; n=$((n+1))
done < $fn***


    


    Need help in resolving this.

    


  • How to use fig.show=animate in knitr without administrator privileges

    23 mai 2013, par Stéphane Laurent

    I 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 the animate 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 the ffmpeg.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
  • FFmpeg Idet with Timecode/Frame Number ?

    13 avril 2021, par Matt Cohen

    Is it possible to get ffmpeg to tell you which frames it thinks are interlaced/progressive when running the idet filter ?

    


    My use case is that when interlaced frames are detected in a file I need to be able to know which frames ffmpeg thinks are interlaced so I can easily pull them up and check if ffmpeg was correct in its assessment. Sometimes aliasing and thin lines in animation throw it off.