Recherche avancée

Médias (91)

Autres articles (56)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (18719)

  • avformat/matroskadec : factor the prores packet parsing code out

    4 avril 2018, par James Almer
    avformat/matroskadec : factor the prores packet parsing code out
    

    Simplifies code in matroska_parse_frame(). This is in preparation for
    the following patch.

    Reviewed-by : Michael Niedermayer <michael@niedermayer.cc>
    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavformat/matroskadec.c
  • Stretch Subtitles Timing by Factor

    3 août 2022, par Matt McManis

    I'm muxing an mkv video, but the Subtitle .ssa file is out of sync by around 1 second by the end of the video.

    &#xA;&#xA;

    Delaying the subtitles by 1 second in the beginning is not enough, the timing needs to be stretched to fix an exponentially growing delay. Sync starts out fine in the beginning, but a few milliseconds delay multiplies for each minute that passes.

    &#xA;&#xA;

    I fixed them using MKVToolNix with Stretch 0.999.

    &#xA;&#xA;


    &#xA;&#xA;

    How can I stretch Subtitles using FFmpeg ?

    &#xA;&#xA;

    I saw here how to stretch audio by a factor the same way. ffmpeg, stretch audio to x seconds

    &#xA;&#xA;

    I'm using something like this :

    &#xA;&#xA;

    ffmpeg -y &#xA;&#xA;-fflags &#x2B;genpts &#xA;&#xA;-i "video.m4v"  &#xA;-i "audio.ac3" &#xA;-i "subs.ssa" &#xA;&#xA;-c:v copy &#xA;-c:a copy &#xA;-c:s copy &#xA;&#xA;-map 0:v? &#xA;-map 1:a? &#xA;-map 2:s?&#xA;&#xA;"video.mkv"&#xA;

    &#xA;&#xA;

    I used -itsoffset -00:00:01.000 to remove a gap in the beginning, but it does not stretch.

    &#xA;

  • Eliminate slow speed factor in ffmpeg and image-magic commands

    24 octobre 2018, par Junaid Farooq

    The basic idea of these commands is to create a compare, (A compare has defined a jpeg from past and one from the present, combine such as they will slide on each other and show before after images.)

    e.g. https://media.evercam.io/v1/cameras/1lowe-scnoe/compares/lower-jreyh.gif

    All the commands are written below, doing these operations

    • Resize before after image.
    • create a Gif using both images.
    • Add a log to Gif.
    • Create an MP4 file of from GIF.
    • Create a thumbnail from mp4 file.

    the logo is :

    enter image description here

    we are making animation and mp4 files using FFmpeg and ImageMagick commands such as

    ffmpeg -i before_image.jpg -s 1280x720 before_image_resize.jpg

    ffmpeg -i after_image.jpg -s 1280x720 after_image_resize.jpg

    The above commands are first to resize both images which are going to be used in animation.

    This command is being used for creating a gif.

    convert after_image_resize.jpg before_image_resize.jpg -write mpr:stack -delete 0--1 mpr:stack'[1]' \\( mpr:stack'[0]' -set delay 25 -crop 15x0 -reverse \\) mpr:stack'[0]' \\( mpr:stack'[1]' -set delay 27 -crop 15x0 \\) -set delay 2 -loop 0 temp.gif

    This command to add a logo to the animation.

    convert temp.gif -gravity SouthEast -geometry +15+15 null: evercam-logo.png -layers Composite compa-efxfphu.gif

    Then to create an mp4 file as

    ffmpeg -f gif -i compa-efxfphu.gif -pix_fmt yuv420p -c:v h264_nvenc -movflags +faststart -filter:v crop='floor(in_w/2)*2:floor(in_h/2)*2' compa-efxfphu.mp4

    then to create a thumbnail from this mp4.

    ffmpeg -i compa-efxfphu.mp4 -vframes 1 -vf scale=640:-1 -y thumb-compa-efxfphu.jpg

    Is there any possibility to reduce any of these steps ? This all takes a lot of time, I am merely interested in both convert commands, can we make them into one command ?

    Or do you see any chance to reduce these all 4 in one ? any input will be so thankful.