Recherche avancée

Médias (0)

Mot : - Tags -/upload

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (45)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (6251)

  • 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
  • ffmpeg split videos from times in csv file

    10 juin 2018, par martins

    I’m using Python 3.6. I am trying to split videos into subclips of specified time. I have a folder with 250 ".mp4" files and a separate csv with the times at which I want each video to be subclipped. For instance, a first .mp4 file would be "firstvideo.mp4" up to "twohundredfiftyvideo.mp4". Separately, I have a csv file with each video file name in column A and the timing at which each video needs to be split (column B to I). All videos need to be split into 4 subclips. The .csv looks like :

           col A          col B      col C       colD      colE    .. colI
    row1 firstvideo.mp4  00:00:10 - 00:00:20 - 00:01:15 - 00:02:04 .. 00:07:15
    row2 secondvideo.mp4 00:00:15 - 00:00:34 - 00:01:05 - 00:01:55 .. 00:08:23

    "firstvideo.mp4" needs a first split from second 10 to 20, a second split from 1m15s - 2m04s and so on (colI is the time at which the fourth subclip should stop). The process should iterate for each of the 250 rows of the csv file corresponding to the 250 mp4 files in a folder.

    So far, the only thing I know is to use ffmpeg to split videos into 4 subclips and generate 4 different output files but do not know how to read from the csv line by line... This is the code I have so far.

    ffmpeg -i firstvideo.mp4 -vcodec copy -acodec copy -ss 00:00:10 -t 00:00:20
    firstvideo_1.mp4 -vcodec copy -acodec copy -ss 00:01:15 -t 00:02:04 firstvideo_2.mp4 -vcodec copy -acodec copy -ss 00:03:48 -t 00:04:23
    firstvideo_3.mp4 -vcodec copy -acodec copy -ss 00:05:30 -t 00:07:15 firstvideo_4.mp4

    I name each output file with a _1,_2,_3 or _4 appended to the original video file name. Ideally, I would generate 4 subclips per video (i.e. 250 videos x 4subclip/video = 1,000 mp4 files) and then concatenate each video 4 subclips into one file (i.e. 250 additional files). In fact, I don’t care about the 4 subclips, I’d delete them after they generated my concatenated file.

    Thanks for your time anyways,