Recherche avancée

Médias (91)

Autres articles (43)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

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

Sur d’autres sites (10860)

  • How can I get consistent start times and durations when cutting a video using ffmpeg ?

    21 juillet 2017, par danvk

    I’m trying to slice up a 20 minute video into several 1 minute chunks following this approach, but getting remarkably strange results.

    I first tried writing a loop with -ss after -i.

    for m in $(seq 0 20); ffmpeg -i video.mov -ss $((60 * $m)) -t 60 -vcodec copy video.$m.1min.mov

    I get a mess of different “start” times and video durations :

    $ for f in *.1min.mov; do echo $f $(ffprobe $f 2>&1 | grep Duration); done
    video.0.1min.mov Duration: 00:01:00.01, start: 0.000000, bitrate: 3014 kb/s
    video.1.1min.mov Duration: 00:01:00.00, start: 0.012000, bitrate: 3002 kb/s
    video.2.1min.mov Duration: 00:01:00.00, start: 0.012000, bitrate: 3002 kb/s
    video.3.1min.mov Duration: 00:01:00.00, start: 0.011000, bitrate: 3002 kb/s
    video.4.1min.mov Duration: 00:01:00.00, start: 0.010000, bitrate: 3001 kb/s
    video.5.1min.mov Duration: 00:01:00.00, start: 0.010000, bitrate: 3002 kb/s
    video.6.1min.mov Duration: 00:01:00.00, start: 0.009000, bitrate: 3003 kb/s
    video.7.1min.mov Duration: 00:01:00.00, start: 0.009000, bitrate: 3006 kb/s
    video.8.1min.mov Duration: 00:01:00.00, start: 0.008000, bitrate: 2999 kb/s
    video.9.1min.mov Duration: 00:01:00.00, start: 0.007000, bitrate: 3003 kb/s
    video.10.1min.mov Duration: 00:01:00.00, start: 0.007000, bitrate: 3002 kb/s
    video.11.1min.mov Duration: 00:01:00.00, start: 0.006000, bitrate: 3002 kb/s
    video.12.1min.mov Duration: 00:01:00.00, start: 0.006000, bitrate: 3005 kb/s
    video.13.1min.mov Duration: 00:00:50.57, start: 9.438000, bitrate: 3004 kb/s
    video.14.1min.mov Duration: 00:00:50.57, start: 9.438000, bitrate: 3003 kb/s
    video.15.1min.mov Duration: 00:00:50.57, start: 9.437000, bitrate: 3004 kb/s
    video.16.1min.mov Duration: 00:00:50.57, start: 9.436000, bitrate: 2998 kb/s
    video.17.1min.mov Duration: 00:00:50.57, start: 9.436000, bitrate: 3004 kb/s
    video.18.1min.mov Duration: 00:00:50.57, start: 9.435000, bitrate: 3005 kb/s
    video.19.1min.mov Duration: 00:00:50.57, start: 9.435000, bitrate: 3004 kb/s
    video.20.1min.mov Duration: 00:00:50.57, start: 9.434000, bitrate: 3001 kb/s

    If I instead move the -ss before the -i :

    for m in $(seq 0 20); ffmpeg -ss $((60 * $m)) -i video.mov -vcodec copy -t 60 video.$m.1min.mov

    then I get nice start times but variable lengths :

    $ for f in *.1min.mov; do echo $f $(ffprobe $f 2>&1 | grep Duration); done
    video.0.1min.mov Duration: 00:01:00.01, start: 0.000000, bitrate: 3014 kb/s
    video.1.1min.mov Duration: 00:01:10.00, start: 0.000000, bitrate: 3003 kb/s
    video.2.1min.mov Duration: 00:01:10.00, start: 0.000000, bitrate: 3002 kb/s
    video.3.1min.mov Duration: 00:01:10.00, start: 0.000000, bitrate: 3002 kb/s
    video.4.1min.mov Duration: 00:01:10.00, start: 0.000000, bitrate: 3001 kb/s
    video.5.1min.mov Duration: 00:01:10.00, start: 0.000000, bitrate: 3001 kb/s
    video.6.1min.mov Duration: 00:01:10.00, start: 0.000000, bitrate: 3002 kb/s
    video.7.1min.mov Duration: 00:01:10.00, start: 0.000000, bitrate: 3005 kb/s
    video.8.1min.mov Duration: 00:01:10.00, start: 0.000000, bitrate: 3002 kb/s
    video.9.1min.mov Duration: 00:01:10.00, start: 0.000000, bitrate: 3002 kb/s
    video.10.1min.mov Duration: 00:01:10.00, start: 0.000000, bitrate: 3007 kb/s
    video.11.1min.mov Duration: 00:01:10.00, start: 0.000000, bitrate: 3002 kb/s
    video.12.1min.mov Duration: 00:01:10.00, start: 0.000000, bitrate: 3004 kb/s
    video.13.1min.mov Duration: 00:01:00.57, start: 0.000000, bitrate: 3003 kb/s
    video.14.1min.mov Duration: 00:01:00.57, start: 0.000000, bitrate: 3003 kb/s
    video.15.1min.mov Duration: 00:01:00.57, start: 0.000000, bitrate: 3005 kb/s
    video.16.1min.mov Duration: 00:01:00.57, start: 0.000000, bitrate: 3001 kb/s
    video.17.1min.mov Duration: 00:01:00.57, start: 0.000000, bitrate: 3004 kb/s
    video.18.1min.mov Duration: 00:01:00.57, start: 0.000000, bitrate: 3002 kb/s
    video.19.1min.mov Duration: 00:01:00.57, start: 0.000000, bitrate: 3006 kb/s
    video.20.1min.mov Duration: 00:01:00.57, start: 0.000000, bitrate: 3001 kb/s

    What’s going on here ? How can I get videos with even durations and sensible start times ? Is something strange with my input video ? (I’m unable to share it, sorry !)

  • h264 : make sure the current picture is not made a long ref multiple times

    8 mai 2015, par Anton Khirnov
    h264 : make sure the current picture is not made a long ref multiple times
    

    Fixes possible invalid reads, once one of those refs is freed, but the
    others remain.
    CC : libav-stable@libav.org

    • [DBH] libavcodec/h264_refs.c
  • Looping video for x times with ffmpeg [duplicate]

    18 mars 2017, par senty

    This question already has an answer here :

    I am trying to loop a video input for x times with ffmpeg. I tried the solution that I found on this answer, but it is throwing a syntax error for me

    ffmpeg -f concat -i <(for i in {1..4}; do printf "file '%s'\n" input.mp4; done) -c copy output.mp4

    PHP Parse error : syntax error, unexpected ’’\n" input.mp4 ; done) -c copy ’ (T_CONSTANT_ENCAPSED_STRING), expecting ’,’ or ’)’ in /home/vagrant/Code/index.php


    I also tried this approach, but this time I am getting another error

    ffmpeg -i input.mp4 -c copy input.mkv
    ffmpeg -stream_loop 4 -i input.mkv -c copy looped.mp4

    Unrecognized option ’stream_loop’.

    Error splitting the argument list : Option not found


    Am I missing out something or is it related with the versions ? I use ffmpeg v2.8.11. I also use php and shell_exec('') for each line.