Recherche avancée

Médias (91)

Autres articles (20)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

Sur d’autres sites (4827)

  • hevc : Replace nal type chek with equivalent IS_IRAP macro

    4 juillet 2014, par Mickaël Raulet
    hevc : Replace nal type chek with equivalent IS_IRAP macro
    

    Signed-off-by : Vittorio Giovara <vittorio.giovara@gmail.com>
    Signed-off-by : Anton Khirnov <anton@khirnov.net>

    • [DBH] libavcodec/hevc.c
  • Script - split video file in equivalent segments

    4 octobre 2014, par Code_Ed_Student

    I am currently using ffmpeg to slice video files. I automated the process through a script called ffmpeg_split.sh. To view the full script click HERE.
    When I ran this script on a few .mp4 files I had, it would return nothing :

    __DURATION_HMS=$(ffmpeg -i "$__FILE" 2>&amp;1 | grep Duration | \
       grep '\d\d:\d\d:\d\d.\d\d' -o)

    NOTE : This is line #54.

    So without this value, the calls that come after it to the function parse_duration_info() are returning the error message.

    According to the comments in the original script, there should be 2 arguments to parse_duration_info().

    # arg1: duration in format 01:23:45.67
    # arg2: offset for group 1 gives hours, 2 gives minutes,
    #       3 gives seconds, 4 gives milliseconds

    Here is the syntax to slice a video with script : ffmpeg_split.sh -s test_vid.mp4 -o video-part%03d.mp4 -c 00:00:08

    Belowe is where I parse the duration :

    function parse_duration_info() {
       if [[ $1 ]] &amp;&amp; [[ $2 -gt 0 ]] &amp;&amp; [[ $2 -lt 5 ]] ; then
           __OFFSET=$2
           __DURATION_PATTERN='\([0-9][0-9]\):\([0-9][0-9]\):\([0-9][0-9]\)\.\([0-9][0-9]\)'
           echo "$1" | sed "s/$__DURATION_PATTERN/\\$__OFFSET/"
       else
           echo "Bad input to parse_duration_info()"
           echo "Givven duration $1"
           echo "Givven offset $2"
           echo "Exiting..."
           exit 1
       fi
    }
  • ffmpeg - creating segments of equivalent duration

    13 octobre 2014, par Code_Ed_Student

    I am testing out segment to split a video into segments of 10 seconds each, but I’m noticing some unusual results. In particular, some of the segments generated have varying lengths from 5 seconds to 11 seconds. I’ve tried playing around with segment_time_delta and force_key_frames to make the segments as close to 10 seconds as possible, but it doesn’t seem to be working out so well. How could I make all segments the same duration ?

    ffmpeg -i input.mp4 -force_key_frames 10,20,30,40,50,60,70,80,90,100,110,120 -c copy -map 0 -segment_time 10 -f segment output%01d.mp4

    Results :

    My_vid.mp4 – total duration - 00:02:08
    Output1.mp4 00:00:07
    Output2.mp4 00:00:07
    Output3.mp4 00:00:08
    Output4.mp4 00:00:08
    Output5.mp4 00:00:09
    Output6.mp4 00:00:09
    Output7.mp4 00:00:10
    Output8.mp4 00:00:10
    Output9.mp4 00:00:10
    Output10.mp4 00:00:11
    Output11.mp4  00:00:11
    Output12.mp4 00:00:11
    Output12.mp4 00:00:13