Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (14)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

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

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

Sur d’autres sites (2101)

  • Change FPS in generate preview

    31 août 2017, par Pe Ťo

    Hi, I found very simple and working scipt but I cant change "speed" / duration of preview. It is set to 1 frame per second but I want it more speedier for example 0,6 sec/per frame. It is possible ? Thanx a lot.

    REM ----------------------------------------------
    set folder=C:\My videos
    set vframes=10
    set width=384
    set height=216
       rem w = h*16/9
    set filetypes=*.mp4
    REM ----------------------------------------------
    setlocal EnableDelayedExpansion

    pushd "%folder%"
    if not exist preview md preview
    for /f "usebackq delims=" %%f in (`dir /b %filetypes%`) do (
       if not exist "preview\%%~nf.mp4" (  
           for /f %%i in ('ffprobe -v error -show_entries format^=duration "%%f" -of default^=noprint_wrappers^=1:nokey^=1') do set length=%%i
           set /a length=!length!+0
           set /a fps=!length!/%vframes%
           ffmpeg -threads 2 -i "%%f" -an -qscale:v 1 -vf "fps=1/!fps!, scale=iw*min(%width%/iw\,%height%/ih):ih*min(%width%/iw\,%height%/ih):flags=lanczos, pad=%width%:%height%:(%width%-iw*min(%width%/iw\,%height%/ih))/2:(%height%-ih*min(%width%/iw\,%height%/ih))/2, unsharp=5:5:0.5:5:5:0.5" -vframes %vframes% -f image2pipe -vcodec ppm - ^
           | ffmpeg -y -threads 2 -framerate 1 -i pipe:0 -c:v libx264 -profile:v baseline -level 3.0 -tune stillimage -r 30 -pix_fmt yuv420p "preview\%%~nf.mp4"
       )
    cls
    )
  • fate : add test for asetnsamples filter with padding disabled

    7 août 2017, par Tobias Rapp
    fate : add test for asetnsamples filter with padding disabled
    

    Adds another test for asetnsamples filter where padding of the last
    frame is switched off. Renames the existing test to make the difference
    obvious.

    Tested-by : Michael Niedermayer <michael@niedermayer.cc>
    Signed-off-by : Tobias Rapp <t.rapp@noa-archive.com>

    • [DH] tests/fate/filter-audio.mak
    • [DH] tests/ref/fate/filter-asetnsamples
    • [DH] tests/ref/fate/filter-asetnsamples-nopad
    • [DH] tests/ref/fate/filter-asetnsamples-pad
  • Bash - Get time difference from ffmpeg

    2 octobre 2017, par arjuncc

    I am building an an application using ffmpeg. In which I need to subtract start time of two files(there are only two files as input). following is my code.

    #!/bin/bash
    mkvarray=()
    mkvarray_name=()
    for video_name in *.mkv; do
    output=$(ffprobe -v error -show_entries format=start_time -of default=noprint_wrappers=1:nokey=1 "$video_name")
    mkvarray+=($output)
    mkvarray_name+=("$video_name")
    done

    arraylength=${#mkvarray[@]}
    for (( i=0; i&lt;${arraylength}; i++ ));
    do
     echo ${mkvarray_name[$i-1]} "------>  " ${mkvarray[$i-1]}
    done

    max_number=0
    if [[ ${mkvarray[0]} &lt; ${mkvarray[1]} ]]; then
     echo "first-------------"

     max_number = ${mkvarray[0]} - ${mkvarray[1]}
     echo "first " $max_number
    else
      echo "second-------------"
      max_number = ${mkvarray[0]} - ${mkvarray[1]}
      echo "second " $max_number
    fi

    echo $max_number

    OUTPUT

    $ ./ffmpeg_updated.bash RTda01986c816052106c00f417387a83ff.mkv ------>
    2.040000 cc.mkv ------> 2.040000 RT4bafb05e1b36885c75d7d67a16f5e3b2.mkv ------> 4.086000
    first------------- ./ffmpeg_updated.bash : line 24 : max_number : command
    not found first 0 0

    from this I understood that, floating point arithmetic is not possible. So Is there any suggestion to proceed from this. I am pretty much new to bash. Or is there any alternative way to get things done in ffmpeg ?