Recherche avancée

Médias (0)

Mot : - Tags -/navigation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (44)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

Sur d’autres sites (7152)

  • error when running "imageio.plugins.ffmpeg.download()"

    14 juin 2018, par Maryeveh

    I am trying to run the command imageio.plugins.ffmpeg.download() after installing moviepy and imageio and importing imageio without error.
    I keep getting the following error and cannot figure out the solution :

    Imageio: 'ffmpeg-osx-v3.2.4' was not found on your computer; downloading it now.
    Error while fetching file: <urlopen error="error" certificate="certificate" verify="verify" failed="failed">.
    Error while fetching file: <urlopen error="error" certificate="certificate" verify="verify" failed="failed">.
    Error while fetching file: <urlopen error="error" certificate="certificate" verify="verify" failed="failed">.
    Error while fetching file: <urlopen error="error" certificate="certificate" verify="verify" failed="failed">.

       ---------------------------------------------------------------------------
       IOError                                   Traceback (most recent call last)
        in <module>()
             3 get_ipython().magic(u'matplotlib inline')
             4 import imageio
       ----> 5 imageio.plugins.ffmpeg.download()
             6 import matplotlib
             7 import matplotlib.pyplot as plt

       /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imageio/plugins/ffmpeg.pyc in download(directory, force_download)
           71     get_remote_file(fname=fname,
            72                     directory=directory,
       ---> 73                     force_download=force_download)
           74
           75

       /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imageio/core/fetching.pyc in get_remote_file(fname, directory, force_download, auto)
         125             return filename
          126     else:  # pragma: no cover
      --> 127         _fetch_file(url, filename)
          128         return filename
          129

       /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imageio/core/fetching.pyc in _fetch_file(url, file_name, print_destination)
           181         raise IOError('Unable to download %r. Perhaps there is a no internet '
           182                       'connection? If there is, please report this problem.' %
       --> 183                       os.path.basename(file_name))
           184
           185
    </module></urlopen></urlopen></urlopen></urlopen>

    IOError : Unable to download ’ffmpeg-osx-v3.2.4’. Perhaps there is a
    no internet connection ? If there is, please report this problem.

    I tried all the solutions I could think of or/and found online, including the ones described here ffmpeg installation on macOS for MoviePy fails with SSL error, but nothing helped.
    Does anyone found another solution ?

    Thanks

  • How to fix "Unable to find a suitable output format for '/'" error in ffmpeg running with PHP [on hold]

    4 avril 2019, par C.Pietro

    I want to compress video on the server after the upload.
    I installed correctly ffmpeg and when i run from the command line

    ffmpeg -i input.mp4 -vcodec libx265 -crf 28 -vcodec h264 -acodec aac -strict -2 output.mp4

    it works !

    But if i run the same command from PHP with exec,

    class VideoCompress {
       function compress($path, $name){
           if (`which ffmpeg`) {
               exec("cd \"$path\";ffmpeg -i \"$name\" -vcodec libx265 -crf 28 -vcodec h264 -acodec aac -strict -2 \"bk_$name\" / 2>&amp;1", $o);
               print_r8($o);
           }
       }
    }

    it fails and return this error

    Array
    (
       [0] =&amp;gt; ffmpeg version N-48518-g27c94c57dc-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2019 the FFmpeg developers
       [1] =&amp;gt;   built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
       [2] =&amp;gt;   configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
       [3] =&amp;gt;   libavutil      56. 26.100 / 56. 26.100
       [4] =&amp;gt;   libavcodec     58. 48.100 / 58. 48.100
       [5] =&amp;gt;   libavformat    58. 26.101 / 58. 26.101
       [6] =&amp;gt;   libavdevice    58.  7.100 / 58.  7.100
       [7] =&amp;gt;   libavfilter     7. 48.100 /  7. 48.100
       [8] =&amp;gt;   libswscale      5.  4.100 /  5.  4.100
       [9] =&amp;gt;   libswresample   3.  4.100 /  3.  4.100
       [10] =&amp;gt;   libpostproc    55.  4.100 / 55.  4.100
       [11] =&amp;gt; Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'WebHD_720p.mp4':
       [12] =&amp;gt;   Metadata:
       [13] =&amp;gt;     major_brand     : isom
       [14] =&amp;gt;     minor_version   : 512
       [15] =&amp;gt;     compatible_brands: isomiso2avc1mp41
       [16] =&amp;gt;     encoder         : Lavf57.71.100
       [17] =&amp;gt;   Duration: 00:03:23.22, start: 0.000000, bitrate: 1890 kb/s
       [18] =&amp;gt;     Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 9:10 DAR 8:5], 1754 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
       [19] =&amp;gt;     Metadata:
       [20] =&amp;gt;       handler_name    : VideoHandler
       [21] =&amp;gt;     Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
       [22] =&amp;gt;     Metadata:
       [23] =&amp;gt;       handler_name    : SoundHandler
       [24] =&amp;gt; [NULL @ 0x59fb100] Unable to find a suitable output format for '/'
       [25] =&amp;gt; /: Invalid argument
    )

    Any idea on how can i fix it ?

  • Python FFMPEG Heroku|Remove audio from video with Byte to Byte. No web processes running Error on Heroku

    15 mai 2021, par samoel

    I'm trying to get a .mp4 file from an address and remove the sound from it.I also want the data sent to FFMPEG to be bytes and return the result in byte

    &#xA;

    i tried different command for my code like using -movflags frag_keyframe+empty_moov.&#xA;When I run this code in Heroku and receive the log...

    &#xA;

    Buildpacks on Heroku are :

    &#xA;

    https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git

    &#xA;

    https://github.com/codeinteger6/heroku-buildpack-libopus.git

    &#xA;

    git ://github.com/heroku/heroku-buildpack-python.git

    &#xA;

    def from_bytes_to_byte(input_bytes):&#xA;    command = f"ffmpeg -f mp4 -i /dev/stdin -vcodec copy -an -f mp4 -movflags frag_keyframe&#x2B;empty_moov -"&#xA;    convert_cmd = subprocess.Popen(&#xA;        shlex.split(command),&#xA;        stdin=subprocess.PIPE,&#xA;        stdout=subprocess.PIPE,&#xA;        shell=False&#xA;    )&#xA;    b = b&#x27;&#x27;&#xA;    convert_cmd.stdin.write(input_bytes)&#xA;    convert_cmd.stdin.close()&#xA;    while True:&#xA;        output = convert_cmd.stdout.read()&#xA;        if len(output) > 0:&#xA;            b &#x2B;= output&#xA;        else:&#xA;            error_msg = convert_cmd.poll()&#xA;            if error_msg is not None:&#xA;                break&#xA;    print("----------FINISHED------------")&#xA;    return b&#xA;&#xA;&#xA;result=requests.get("https://file-examples-com.github.io/uploads/2017/04/file_example_MP4_480_1_5MG.mp4") #.MP4 File&#xA;byterecieved=from_bytes_to_byte(result.content)&#xA;

    &#xA;

    heroku logs :

    &#xA;

    ffmpeg version N-57204-gc7c138e411-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2021 the FFmpeg developers&#xA;built with gcc 8 (Debian 8.3.0-6)&#xA;configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg&#xA;libavutil      57.  0.100 / 57.  0.100&#xA;libavcodec     59.  0.100 / 59.  0.100&#xA;libavformat    59.  0.100 / 59.  0.100&#xA;libavdevice    59.  0.100 / 59.  0.100&#xA;libavfilter     8.  0.101 /  8.  0.101&#xA;libswscale      6.  0.100 /  6.  0.100&#xA;libswresample   4.  0.100 /  4.  0.100&#xA;libpostproc    56.  0.100 / 56.  0.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;/dev/stdin&#x27;:&#xA;Metadata:&#xA;major_brand     : mp42&#xA;minor_version   : 0&#xA;compatible_brands: mp42mp41isomavc1&#xA;creation_time   : 2015-08-07T09:13:02.000000Z&#xA;Duration: 00:00:30.53, start: 0.000000, bitrate: N/A&#xA;Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 480x270 [SAR 1:1 DAR 16:9], 301 kb/s, 30 fps, 30 tbr, 30 tbn (default)&#xA;Metadata:&#xA;creation_time   : 2015-08-07T09:13:02.000000Z&#xA;handler_name    : L-SMASH Video Handler&#xA;vendor_id       : [0][0][0][0]&#xA;encoder         : AVC Coding&#xA;Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 112 kb/s (default)&#xA;Metadata:&#xA;creation_time   : 2015-08-07T09:13:02.000000Z&#xA;handler_name    : L-SMASH Audio Handler&#xA;vendor_id       : [0][0][0][0]&#xA;Output #0, mp4, to &#x27;pipe:&#x27;:&#xA;Metadata:&#xA;major_brand     : mp42&#xA;minor_version   : 0&#xA;compatible_brands: mp42mp41isomavc1&#xA;encoder         : Lavf59.0.100&#xA;Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 480x270 [SAR 1:1 DAR 16:9], q=2-31, 301 kb/s, 30 fps, 30 tbr, 15360 tbn (default)&#xA;Metadata:&#xA;creation_time   : 2015-08-07T09:13:02.000000Z&#xA;handler_name    : L-SMASH Video Handler&#xA;vendor_id       : [0][0][0][0]&#xA;encoder         : AVC Coding&#xA;Stream mapping:&#xA;**2021-05-14T21:32:09.639203&#x2B;00:00** app[worker.1]: Stream #0:0 -> #0:0 (copy)&#xA;**2021-05-14T22:12:36.527864&#x2B;00:00** heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=desolate-inlet-50581.herokuapp.com request_id=cc985185-6ba7-4530-95f8-f4512f465039 fwd="5.122.192.170" dyno= connect= service= status=503 bytes= protocol=https&#xA;2021-05-14T22:12:37.303089&#x2B;00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=desolate-inlet-50581.herokuapp.com request_id=f26b18a5-30ac-41e2-9b63-8f945b746b12 fwd="5.122.192.170" dyno= connect= service= status=503 bytes= protocol=https&#xA;2021-05-14T22:13:39.737155&#x2B;00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=desolate-inlet-50581.herokuapp.com request_id=12a28261-d746-4067-ab4b-05d3e2e8c379 fwd="5.122.192.170" dyno= connect= service= status=503 bytes= protocol=https&#xA;2021-05-14T22:13:40.372446&#x2B;00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=desolate-inlet-50581.herokuapp.com request_id=c2e2ebc8-9fb2-4d30-8876-2fede3dfd141 fwd="5.122.192.170" dyno= connect= service= status=503 bytes= protocol=https&#xA;

    &#xA;