Recherche avancée

Médias (0)

Mot : - Tags -/content

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

Autres articles (82)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (8512)

  • Read a Bytes image from Amazon Kinesis output in python

    14 février 2020, par Varun_Rathinam

    I used imageio.get_reader(BytesIO(a),  'ffmpeg') to load a bytes image and save it as normal image.

    But the below error throws when I read the image using imageio.get_reader(BytesIO(a),  'ffmpeg')

    Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File "/home/tango/anaconda3/lib/python3.6/site-packages/imageio/core/functions.py", line 186, in get_reader
       return format.get_reader(request)
     File "/home/tango/anaconda3/lib/python3.6/site-packages/imageio/core/format.py", line 164, in get_reader
       return self.Reader(self, request)
     File "/home/tango/anaconda3/lib/python3.6/site-packages/imageio/core/format.py", line 214, in __init__
       self._open(**self.request.kwargs.copy())
     File "/home/tango/anaconda3/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 323, in _open
       self._initialize()
     File "/home/tango/anaconda3/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 466, in _initialize
       self._meta.update(self._read_gen.__next__())
     File "/home/tango/anaconda3/lib/python3.6/site-packages/imageio_ffmpeg/_io.py", line 150, in read_frames
       raise IOError(fmt.format(err2))
    OSError: Could not load meta information
    === stderr ===

    ffmpeg version 4.2 Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 7.3.0 (crosstool-NG 1.23.0.449-a04d0)
     configuration: --prefix=/home/tango/anaconda3 --cc=/home/conda/feedstock_root/build_artifacts/ffmpeg_1566210161358/_build_env/bin/x86_64-conda_cos6-linux-gnu-cc --disable-doc --disable-openssl --enable-avresample --enable-gnutls --enable-gpl --enable-hardcoded-tables --enable-libfreetype --enable-libopenh264 --enable-libx264 --enable-pic --enable-pthreads --enable-shared --enable-static --enable-version3 --enable-zlib --enable-libmp3lame
     libavutil      56. 31.100 / 56. 31.100
     libavcodec     58. 54.100 / 58. 54.100
     libavformat    58. 29.100 / 58. 29.100
     libavdevice    58.  8.100 / 58.  8.100
     libavfilter     7. 57.100 /  7. 57.100
     libavresample   4.  0.  0 /  4.  0.  0
     libswscale      5.  5.100 /  5.  5.100
     libswresample   3.  5.100 /  3.  5.100
     libpostproc    55.  5.100 / 55.  5.100
    [matroska,webm @ 0x5619b9da3cc0] File ended prematurely
    [matroska,webm @ 0x5619b9da3cc0] Could not find codec parameters for stream 0 (Video: h264, none, 1280x720): unspecified pixel format
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, matroska,webm, from '/tmp/imageio_zm6hhpgr':
     Metadata:
       title           : Kinesis Video SDK
       encoder         : Kinesis Video SDK 1.0.0
       AWS_KINESISVIDEO_FRAGMENT_NUMBER: 91343852333183888465720004820715065721442989478
       AWS_KINESISVIDEO_SERVER_TIMESTAMP: 1580791384.096
       AWS_KINESISVIDEO_PRODUCER_TIMESTAMP: 1580791377.843
     Duration: N/A, bitrate: N/A
       Stream #0:0(eng): Video: h264, none, 1280x720, SAR 1:1 DAR 16:9, 1k tbr, 1k tbn, 2k tbc (default)
       Metadata:
         title           : kinesis_video
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> rawvideo (native))
    Press [q] to stop, [?] for help
    Cannot determine format of input stream 0:0 after EOF
    Error marking filters as finished
    Conversion failed!
    </module></stdin>

    The above approach to read a MKV bytes file was done based on this thread

    Or is there is any approach to parse and read the MKV bytes file.

  • How to create movie screenshot by ffmpeg in an amazon S3 path

    5 décembre 2019, par user2004082

    I tried to create using ffmpeg a video screenshot from a remote video url in heroku console. Below is how I generated a movie instance and can see also an empty ready to be written file at S3. But the last line movie.screenshot is not working and generates this error :

    FFMPEG::Error: Failed encoding.Errors: no output file created

    Here is the code

    s3 = Aws::S3::Resource.new(region: 'us-west-1')
    bucket = s3.bucket("ruby-sample-kb-#{SecureRandom.uuid}")
    bucket.create
    object = bucket.object('ex-vid-test-kb.jpg')
    object.put(acl: "public-read-write")
    path = object.public_url
    movie = FFMPEG::Movie.new("https://www.googleapis.com/download/storage/v1/b/seppoav/o/3606137_51447286560__56BAF29C-05CB-4223-BAE6-655DF2236321.MOV?generation=1492780072394755&amp;alt=media")
    movie.screenshot(path, :seek_time => 2)

    I also tried the following line just if it should be written via put. What am I missing here ?

    object.put(acl: "public-read", body: movie.screenshot(path, :seek_time => 2))
  • SIGSEGV from ffmpeg on Amazon Lambda

    1er août 2024, par Serge

    Trying out Amazon Lambda / nodejs 8. My goal is to launch ffmpeg, generate a short clip and upload it to S3 bucket.

    &#xA;&#xA;

    I created the function following the image resize tutorial. Edited the code to get output from simple linux commands like ls or cat /proc/cpuinfo - all works.

    &#xA;&#xA;

    Now, added the ffmpeg binary for i686 - ffmpeg static build by JohnVan Sickle (thanks !). Changed the code to launch simple ffmpeg command that is supposed to create sa 2-seconds small video clip.

    &#xA;&#xA;

    That fails, according to logs, with the signal SIGSEGV returned to the "close" event handler of child_process.spawn()

    &#xA;&#xA;

    As far as I understand, this could be caused by the ffmpeg binary incompatibility with the static build. Or by some mistake in my code.

    &#xA;&#xA;

    Several npm modules rely on the static builds from johnvansickle.com/ffmpeg and there are no such issues filed on their github. Maybe there's some other mistake I made ?

    &#xA;&#xA;

    Should I compile ffmpeg myself under Amazon Linux AMI amzn-ami-hvm-2017.03.1.20170812-x86_64-gp2 which is under the hood of AWS Lambda ?

    &#xA;&#xA;


    &#xA;&#xA;

    upd. Launched EC2 t2.micro instance from the same AMI, downloaded the same ffmpeg static build, and it works just fine from the command line. Now I doubt that it is a compilation issue.

    &#xA;&#xA;

    Also tried copying ffmpeg executable to /tmp/ffmpeg and chmod 755 just to make sure.&#xA;Running simple ffmpeg --help command via child_process.execSync() returns "Error : Command failed : /tmp/ffmpeg —help"

    &#xA;&#xA;


    &#xA;&#xA;
    const join = require(&#x27;path&#x27;).join;&#xA;const tmpdir = require(&#x27;os&#x27;).tmpdir;&#xA;const process = require(&#x27;process&#x27;);&#xA;const fs = require(&#x27;fs&#x27;);&#xA;const spawn = require(&#x27;child_process&#x27;).spawn;&#xA;const exec = require(&#x27;child_process&#x27;).exec;&#xA;&#xA;const async = require(&#x27;async&#x27;);&#xA;const AWS = require(&#x27;aws-sdk&#x27;);&#xA;const util = require(&#x27;util&#x27;);&#xA;&#xA;process.env[&#x27;PATH&#x27;] = process.env[&#x27;PATH&#x27;] &#x2B; &#x27;:&#x27; &#x2B; process.env[&#x27;LAMBDA_TASK_ROOT&#x27;];&#xA;&#xA;&#xA;const tempDir = process.env[&#x27;TEMP&#x27;] || tmpdir();&#xA;const filename = join(tempDir, &#x27;test.mp4&#x27;);&#xA;const s3 = new AWS.S3();&#xA;&#xA;&#xA;exports.handler = function(event, context, callback) {&#xA;  var dstBucket = srcBucket &#x2B; "resized";&#xA;  var dstKey  = "render-test.mp4";&#xA;&#xA;  async.waterfall([&#xA;    function transform(next) {&#xA;      var args = [&#xA;        &#x27;-filter_complex&#x27;,&#xA;        &#x27;"testsrc=r=25:s=640x480:d=3"&#x27;,&#xA;        &#x27;-an&#x27;,&#xA;        &#x27;-y&#x27;,&#xA;        &#x27;-hide_banner&#x27;,&#xA;        &#x27;-c:v&#x27;, &#x27;libx264&#x27;,&#xA;        filename,&#xA;      ];&#xA;&#xA;      console.log("Will launch ffmpeg");&#xA;      const childProcess = spawn(&#x27;ffmpeg&#x27;, args);&#xA;&#xA;      childProcess.on(&#x27;close&#x27;, function(e) {&#xA;        console.log(&#x27;ffmpeg close event: &#x27; &#x2B; JSON.stringify(arguments));&#xA;        next();&#xA;      });&#xA;&#xA;      console.log("After launched ffmpeg");&#xA;    },&#xA;&#xA;    function upload(next) {&#xA;      ...&#xA;    }&#xA;  ], function (err) {&#xA;    ...&#xA;  });&#xA;};&#xA;

    &#xA;