Recherche avancée

Médias (91)

Autres articles (57)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (7832)

  • Recursively list video duration for all files in a directory

    20 août 2014, par alidrongo

    I want to list all the filenames and durations for each video in a folder. Currently I can only target files individually :

    ffmpeg -i intro_vid001.mp4 2>&1 | grep Duration

    Could someone suggest how I can print this out in the terminal or to a text file for every video file within a folder ?

    I have tried with a shell script but am very new to shell scripts.

    if [ -z $1 ];then echo Give target directory; exit 0;fi

    find "$1" -depth -name ‘*’ | while read file ; do
    directory=$(dirname "$file")
    oldfilename=$(basename "$file")


    echo oldfilename
    #ffmpeg -i $directory/$oldfilename” -ab 320k “$directory/$newfilename.mp3″ null
    ffmpeg -i "$directory/$oldfilename" 2>&1 | grep Duration | echo
    #rm “$directory/$oldfilename”

    done
  • Video is too short in Avconv (ffmpeg) — but only when run as a crontab

    2 septembre 2016, par Dr. Paul Ruth

    I’m working on a PHP script that creates half-hour videos, combining a 30-minute MP3 with a still-frame background image, and then putting it on YouTube through the Google API. It works great except when I run it from a crontab, and I can’t figure out why.

    It uses a shell command to run the following.

    avconv -loop 1 -framerate 2 -i background.png -loglevel verbose -i audio.mp3 -c:v libx264 -preset medium -tune stillimage -vf scale=\"trunc(oh*a/2)*2:720\" -crf 18 -c:a copy -shortest -y -pix_fmt yuv420p output.mkv

    When I run it from my shell, it produces a video just as long as the 30 minute MP3. But if I run it from any kind of crontab, the result is just a fraction of the full length as it will stop at about 3 or 4 minutes.

    Typical output below for a failed result. What baffles me is that it’s not that the script is aborted, and it doesn’t seem to time out. Rather than stop, it keeps going and will upload the short, unfinished version to YouTube.

    I thought it might be a shell environment problem, missing some part of the $PATH or variables. But even when I import all the env and path settings, it does not seem to work.

    Is there some way to make sure the avconf (or ffmpeg) command continues all the way through and does not stop too early ?

    Typical output dump below from one of the times it fails : https://gist.github.com/anonymous/ecaa77037926821dba19e9db5ccb3a10

    (I used avconv because my host service claimed ffmpeg was deprecated and that I should use avconv instead. Could a library like PHP-FFMPEG be better for this ?)

  • FFMPEG header errors

    5 novembre 2016, par David Childers

    I am using a bash shell script that transcodes a file using FFmpeg for Youtube live streaming. This bash shell script continuously loops and feeds Youtube live stream server with FFmpeg transcoded video files.

    This is the script :


    ffmpeg -re -i file.avi -pix_fmt yuv420p -r 30 -vb 1250k -c:v libx264 -c:a libmp3lame -ab 192k -vf scale=1280:720 -g 5 -f flv "rtmp ://a.rtmp.youtube.com/live2/youtube_live_id"


    I get the following error as the bash shell script runs.


    [flv @ 0x54db7c0] Failed to update header with correct duration.
    [flv @ 0x54db7c0] Failed to update header with correct filesize.

    Past duration 0.666664 too large


    The Youtube live stream suffers from packets being dropped which causes the broadcast to sporadically buffer.

    I have researched this problem and found out the following information.


    This problem is caused by FFMpeg reading the first video file, but the FFmpeg software is not expecting a second header when streaming additional video files as it already had it at the start on the first file.


    It was suggested that I should convert all the video files into the TS format to alleviate the header problem, but that does not eliminate it.

    Is there a method that I can force FFmpeg to "release" the header information from the first video and accept the header information from each additional file. Could this be possibly achieved using Global_header ?

    Another possibility is how the video’s are originally rendered. Is there anything of importance I should check for ?