Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (37)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

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

Sur d’autres sites (5244)

  • It's possible to catch ffmpeg errors with python ?

    4 avril 2019, par Elros Romeo

    Hi I’m trying to make a video converter for django with python, I forked django-ffmpeg module which does almost everything I want, except that doesn’t catch error if conversion failed.

    Basically the module passes to the command line interface the ffmpeg command to make the conversion like this :

    /usr/bin/ffmpeg -hide_banner -nostats -i %(input_file)s -target
    film-dvd %(output_file)

    Module uses this method to pass the ffmpeg command to cli and get the output :

    def _cli(self, cmd, without_output=False):
       print 'cli'
       if os.name == 'posix':
           import commands
           return commands.getoutput(cmd)
       else:
           import subprocess
           if without_output:
               DEVNULL = open(os.devnull, 'wb')
               subprocess.Popen(cmd, stdout=DEVNULL, stderr=DEVNULL)
           else:
               p = subprocess.Popen(cmd, stdout=subprocess.PIPE)
               return p.stdout.read()

    But for example, I you upload an corrupted video file it only returns the ffmpeg message printed on the cli, but nothing is triggered to know that something failed

    This is an ffmpeg sample output when conversion failed :

    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x237d500] Format mov,mp4,m4a,3gp,3g2,mj2
    detected only with low score of 1, misdetection possible !
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x237d500] moov atom not found
    /home/user/PycharmProjects/videotest/media/videos/orig/270f412927f3405aba041265725cdf6b.mp4 :
    Invalid data found when processing input

    I was wondering if there’s any way to make that an exception and how, so I can handle it easy.

    The only option that came to my mind is to search : "Invalid data found when processing input" in the cli output message string but I’m not shure that if this is the best approach. Anyone can help me and guide me with this please.

  • Converting DAV to MP4 and OGG

    27 mars 2015, par mackowiakp

    I want to prepare WEB page containing films from security camera recorders. Each recorder transmit video files in DAV format so each film is converted to MP4 format by script, using such syntax :

    ffmpeg -y -i movie.dav -vcodec libx264 -crf 24 movie.mp4

    So I included in HTMLv5 code such entry :

    <video width="320" height="240">
     <source src="movie.mp4" type="video/mp4">
    </source></video>

    It works correctly with Chrome but not with Firefox. For proper work in FF it is necessary add link to OGG file. So correct HTMLv5 syntax for both browsers should look like this :

    <video width="320" height="240">
     <source src="movie.mp4" type="video/mp4">
     <source src="movie.ogg" type="video/ogg">
    </source></source></video>

    Can anybody help me to pass correct ffmpeg syntax to create OGG file ?

    Output from console after using -movflags +faststart options

    [maciek@piotr MMM]$ ../ffmpeg-2.4.2-64bit-static/ffmpeg -movflags +faststart -y -i   04.24.23-04.24.38\[M\]\[@0\]\[0\].dav -vcodec libx264 -crf 24 10.mp4
    ffmpeg version 2.4.2-   http://johnvansickle.com/ffmpeg/    Copyright (c) 2000-2014 the FFmpeg developers
     built on Oct  9 2014 07:24:56 with gcc 4.8 (Debian 4.8.3-11)
     configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable- libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --disable-ffserver --enable-libass --enable-gnutls --cc=gcc-4.8
     libavutil      54.  7.100 / 54.  7.100
     libavcodec     56.  1.100 / 56.  1.100
     libavformat    56.  4.101 / 56.  4.101
     libavdevice    56.  0.100 / 56.  0.100
     libavfilter     5.  1.100 /  5.  1.100
     libswscale      3.  0.100 /  3.  0.100
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  0.100 / 53.  0.100
    Option movflags not found.
  • Converting DAV to MP4 and OGG

    25 avril, par mackowiakp

    I want to prepare WEB page containing films from security camera recorders. Each recorder transmit video files in DAV format so each film is converted to MP4 format by script, using such syntax :

    &#xA;&#xA;

    ffmpeg -y -i movie.dav -vcodec libx264 -crf 24 movie.mp4&#xA;

    &#xA;&#xA;

    So I included in HTMLv5 code such entry :

    &#xA;&#xA;

     <video width="320" height="240">&#xA;  <source src="movie.mp4" type="video/mp4">&#xA;</source></video> &#xA;

    &#xA;&#xA;

    It works correctly with Chrome but not with Firefox. For proper work in FF it is necessary add link to OGG file. So correct HTMLv5 syntax for both browsers should look like this :

    &#xA;&#xA;

     <video width="320" height="240">&#xA;  <source src="movie.mp4" type="video/mp4">&#xA;  <source src="movie.ogg" type="video/ogg">&#xA;</source></source></video>&#xA;

    &#xA;&#xA;

    Can anybody help me to pass correct ffmpeg syntax to create OGG file ?

    &#xA;&#xA;

    Output from console after using -movflags +faststart options

    &#xA;&#xA;

    [maciek@piotr MMM]$ ../ffmpeg-2.4.2-64bit-static/ffmpeg -movflags &#x2B;faststart -y -i   04.24.23-04.24.38\[M\]\[@0\]\[0\].dav -vcodec libx264 -crf 24 10.mp4&#xA;ffmpeg version 2.4.2-   http://johnvansickle.com/ffmpeg/    Copyright (c) 2000-2014 the FFmpeg developers&#xA;  built on Oct  9 2014 07:24:56 with gcc 4.8 (Debian 4.8.3-11)&#xA;  configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable- libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --disable-ffserver --enable-libass --enable-gnutls --cc=gcc-4.8&#xA;  libavutil      54.  7.100 / 54.  7.100&#xA;  libavcodec     56.  1.100 / 56.  1.100&#xA;  libavformat    56.  4.101 / 56.  4.101&#xA;  libavdevice    56.  0.100 / 56.  0.100&#xA;  libavfilter     5.  1.100 /  5.  1.100&#xA;  libswscale      3.  0.100 /  3.  0.100&#xA;  libswresample   1.  1.100 /  1.  1.100&#xA;  libpostproc    53.  0.100 / 53.  0.100&#xA;Option movflags not found.&#xA;

    &#xA;