Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (65)

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

  • Converted mp4 from gif didn't shows in web browser

    16 décembre 2017, par Stojan Kukrika

    I am trying to convert animated GIFs to MP4 files using ffmpeg. Only this convert GIF to MP4 :

     exec('ffmpeg -i ' . $destinationPath . $filename . ' -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" ' . $destinationPath . $newFilename);

    And I can play it in my pc when download it from server, but it’s didn’t want to pay in browser. Browser returns me this error :
    enter image description here

    After that GIF to MP4 converor I get one image for thumbnail image and that is works fine :

    exec("ffmpeg -i " . $destinationPath . $video . ".mp4 -ss  00:00:01.000 -vframes 1 ".storage_path().$folderNameThumb."/media.png");

    and it’s shows me a valid frame of GIF. Can anybody help me how to fix this problem with video ?

    ffprobe output
    ffprobe version 2.8.13 Copyright (c) 2007-2017 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-16)
    configuration:
     libavutil      54. 31.100 / 54. 31.100
     libavcodec     56. 60.100 / 56. 60.100
     libavformat    56. 40.101 / 56. 40.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 40.101 /  5. 40.101
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.101 /  1.  2.101

    Here is what I get from one MP4 file (run ffprobe filename.mp4) :

    Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    encoder         : Lavf56.40.101
    Duration: 00:00:02.16, start: 0.000000, bitrate: 593 kb/s
    Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 500x312 [SAR 1:1 DAR 125:78], 589 kb/s, 8.33 fps, 8.33 tbr, 12800 tbn, 25 tbc (default)
    Metadata:
    handler_name    : VideoHandler

    Because I use Laravel this is method for return media :

    public function getGifImage(Media $media)
    {
       $path = storage_path() . '/uploads/gif/' . $media->content;
       if (file_exists($path)) {
           return response()->download($path, null, [], null);
       }
    }
  • FFMPEG batch convert mkv with subtitles hardcode - tv shows [duplicate]

    5 décembre 2017, par Valantis

    This question already has an answer here :

    hello i want to convert hardcode mkv files with their subs ( .srt ) for single episode for example i use

    ffmpeg -i video.avi -vf subtitles=subtitle.srt out.avi

    and its ok.. i want to try if is possible to make a bash batch script to do that on a directory with several mkv’s there..

    i tried with that code but the result of the show is the same with all episodes something i must changed to make it work

    #!/bin/bash
    for video in *.mkv
    do
       base=${video%.mkv}
       ffmpeg -i $base.mkv -vf subtitles=$base.el.srt $base-out.mkv
    done

    thanks for any help

  • Generating movie from python without saving individual frames to files

    31 juillet 2022, par Paul

    I would like to create an h264 or divx movie from frames that I generate in a python script in matplotlib. There are about 100k frames in this movie.

    



    In examples on the web [eg. 1], I have only seen the method of saving each frame as a png and then running mencoder or ffmpeg on these files. In my case, saving each frame is impractical. Is there a way to take a plot generated from matplotlib and pipe it directly to ffmpeg, generating no intermediate files ?

    



    Programming with ffmpeg's C-api is too difficult for me [eg. 2]. Also, I need an encoding that has good compression such as x264 as the movie file will otherwise be too large for a subsequent step. So it would be great to stick with mencoder/ffmpeg/x264.

    



    Is there something that can be done with pipes [3] ?

    



    [1] http://matplotlib.sourceforge.net/examples/animation/movie_demo.html

    



    [2] How does one encode a series of images into H264 using the x264 C API ?

    



    [3] http://www.ffmpeg.org/ffmpeg-doc.html#SEC41