Recherche avancée

Médias (91)

Autres articles (63)

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

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

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

Sur d’autres sites (8978)

  • FFmpeg concatenation, no Audio in Final Output

    12 septembre 2016, par user4889724

    I have the following command working in ffmpeg, which adds 1 second of a black frame to the beginning of the video. However, I lose the audio from the original video in the output video. How can I adjust the command to make sure the original audio stays with the final output, or better yet, there is 1 second of "blank" audio at the beginning so it matches the new output video.

    ffmpeg -i originalvideo -f lavfi -i color=c=black:s=1920x1080:r=25:sar=1/1 -filter_complex "[0:v] setpts=PTS-STARTPTS [main]; [1:v] trim=end=1,setpts=PTS-STARTPTS [pre]; [pre][main] concat=n=2:v=1:a=0 [out]" -map "[out]" finaloutputvideo.mp4
  • With ffmpeg print onto clipped video hh:mm:ss time *from original* and hh:mm:ss total duration from original

    25 mai 2023, par Kes

    I am using arch linux and bash and ffmpeg, all are up to date and the latest versions.

    


    I am clipping a video that is 30 seconds long and wish to clip from 5 secs to 10 seconds to a new file, from the original.

    


    In the bottom right hand corner of the clip I wish to show timestamps from the original video as follows

    


      

    • in the 5th second "00:00:05/ 00:00:30"
    • 


    • in the 6th second "00:00:06/ 00:00:30"
      
etc
    • 


    • in the 10th second "00:00:10/ 00:00:30"
    • 


    


    This is an apparentley simple question(?) but the syntax of the command is not at all obvious and I am hoping an expert may shed some light on this.

    


    All I have so far for the drawtext part, which does not do what I want as it only counts the elapsed time from t=0 of the new clip, whereas I want it to show the timestamp and total duration of the original clip

    


    drawtext I started with

    


    "drawtext=text='%{pts\:gmtime\:0\:%M\\\\\:%S}':fontsize=24:fontcolor=black:x=(w-text_w-10):y=(h-text_h-10)"


    


    ffmpeg line with drawtext I have started with

    


    ffmpeg -ss 00:00:05 -i  "$in_file" -filter_complex "drawtext=fontfile=font.ttf:text='sample text':x=10:y=10:fontsize=12:fontcolor=white:box=1:boxcolor=black@0.5:boxborderw=5,drawtext=text='%{duration\:hms}':fontsize=12:fontcolor=black:x=(w-text_w-10):y=(h-text_h-10)" -t 5 -c:a copy -c:v libx264 out_file.mp4


    


  • How to convert date format of text in m3u8 file ? [closed]

    30 décembre 2020, par Rekabet Kurumu

    I have a Flussonic media server. I'm transcoding RTMP into HLS and must edit the M3U8 file.

    


    Problem :
How to change the date part of a name in segments of an .m3u8 file ?

    


    If stream name is "sample" output will be foo.com/stream.m3u8 this is perfect. but inside m3u8 file outout looking like this

    


    #EXTM3U
#EXT-X-TARGETDURATION:5
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:20633
#EXT-X-PROGRAM-DATE-TIME:2020-12-30T11:15:07Z
#EXTINF:5.000,
2020/12/30/11/15/07-05000.ts?token=ADM1-1609326905-99fddfc3eb912171a5b85e553588a563704f5fb9
#EXTINF:5.000,
2020/12/30/11/15/12-05000.ts?token=ADM1-1609326905-99fddfc3eb912171a5b85e553588a563704f5fb9
#EXTINF:5.000,
2020/12/30/11/15/17-05000.ts?token=ADM1-1609326905-99fddfc3eb912171a5b85e553588a563704f5fb9


    


    output lookin 2020/12/30/11/15/ like this. i want this part will be microtime or time.

    


    For example :

    


    1609326905-05000.ts?token=99fddfc3eb912171a5b85e553588a563704f5fb9
1609327050-05000.ts?token=99fddfc3eb912171a5b85e553588a563704f5fb9
1609329450-05000.ts?token=99fddfc3eb912171a5b85e553588a563704f5fb9


    


    is it possible ?