Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (51)

  • 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 ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (11240)

  • mp4 video doesn't play on mobile, but it plays locally [closed]

    20 août 2023, par Simon

    I built a mp4 video from jpg images using this command :

    


    ffmpeg -framerate 1 -i img%d.jpg -c:v libx264 -pix_fmt yuv420p -r 1 output.mp4


    


    I can open and play video on my computer (in VLC and in a browser), but I can't play it on mobile (Chrome on Android). There's an info about duration, I can press the "play" button, but the video doesn't play at all.

    


    How to fix that ?

    


  • avcodec/movtextenc : Simplify writing to AVBPrint

    15 octobre 2020, par Andreas Rheinhardt
    avcodec/movtextenc : Simplify writing to AVBPrint
    

    The mov_text encoder uses an AVBPrint to assemble the subtitles ;
    yet mov_text subtitles are not pure text ; they also have a binary
    portion that was mostly handled as follows :

    uint32_t size = /* calculation */ ;
    size = AV_RB32(&size) ;
    av_bprint_append_data(bprint, (const char*)&size, 4) ;

    Here AV_RB32() is a no-op on big-endian systems and a LE-BE swap
    on little-endian systems, making the output endian-independent.

    Yet this is ugly and unclean : On LE systems, the variable size from
    the snippet above won't contain the correct value any more. Furthermore,
    using this pattern leads to lots of small writes to the AVBPrint.

    This commit therefore changes this to using a temporary buffer instead :

    uint8_t buf[4] ;
    AV_WB32(buf, /* size calculation */) ;
    av_bprint_append_data(bprint, buf, 4) ;

    This method also allows to use bigger buffers holding more than one
    element, saving calls to av_bprint_append_data() and reducing codesize.

    Reviewed-by : Philip Langdale <philipl@overt.org>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavcodec/movtextenc.c
  • FFMPEG output to multiple rtmp and synchronize them

    26 mai 2020, par voncount

    presume I have a video, and I use filter to crop them let say 1/2 and 1/2 width to 2 rtmp output streams.

    &#xA;&#xA;

    Now 2 clients will subscribe to these stream let say

    &#xA;&#xA;

    vlc1 - stream 1 | vlc2 - stream 2

    &#xA;&#xA;

    how can I synchronize them to play at the same time (I always see 1 client play faster or slower than other)

    &#xA;&#xA;

    Here is the code

    &#xA;&#xA;

    ffmpeg -re -stream_loop -1 -i sample.mp4 \&#xA;  -filter:v "crop=in_w/2:in_h:0:0" -c:a copy -f flv rtmp://localhost/live/1 \&#xA;  -filter:v "crop=in_w/2:in_h:in_w/2:0" -c:a copy -f flv rtmp://localhost/live/2&#xA;

    &#xA;&#xA;

    Gotcha1

    &#xA;&#xA;

    Found out the problem was stream_loop and with each iteration and filter it produces some delay.

    &#xA;&#xA;

    From now, the only solution works for me is

    &#xA;&#xA;

      &#xA;
    1. Playing the original file (with loop) and output to a rtmp stream
    2. &#xA;

    3. Create 2 stream that read the origin stream, do cropping and then output 2 rtmp streams
    4. &#xA;

    &#xA;&#xA;

    ffmpeg -i rtmp://localhost/live/feed -filter:v crop=in_w/2:in_h:0:0 -c:a copy -f flv rtmp://localhost/live/1&#xA;&#xA;ffmpeg -i rtmp://localhost/live/feed -filter:v crop=in_w/2:in_h:in_w/2:0 -c:a copy -f flv rtmp://localhost/live/2&#xA;

    &#xA;