Recherche avancée

Médias (1)

Mot : - Tags -/remix

Autres articles (34)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

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

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

  • If I pass this code in Windows console it works, but when I emulate windows console in node.js code doesn't work, and returns unclear error

    22 décembre 2016, par Maxim Cherevatov

    I have code :

    cmd.get(
       'trimp3  ant.mp3 ant2.mp3 00:00 00:20',
       function(data){
           console.log('the node-cmd cloned dir contains these files :\n\n',data)
       }
    );

    If pass this code in Windows console it works well !
    But, when i emulate windows console in node.js this code not work, and returns unclear mistake :

    [!!] ERROR:  "ffmpeg" �� ����� ����७��� ��� ���譥�
    ��������, �ᯮ��塞�� �ணࠬ��� ��� �������� 䠩���.

    To emulate the use node-cmd.

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

  • MoviePY error when running in Docker Container using Amazon Elastic Container Service

    27 mai 2023, par Giba

    I'm developing a script that generates a video with the information provided by the user using Moviepy. The application runs in a docker container.

    &#xA;

    In my test environment (locally) the application usually runs generating the videos as expected. However, when I deploy to the Amazon Elastic Container Instance environment, the application renders the following error :

    &#xA;

    /tmp/334.mp31boi_q7b: Invalid data found when processing input&#xA;Here are the file infos returned by ffmpeg: &#xA;ffmpeg version 4.2.2-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2019 the FFmpeg developers&#xA;built with gcc 8 (Debian 8.3.0-6)&#xA;&#xA;libpostproc 55. 5.100 / 55. 5.100&#xA;libswresample 3. 5.100 / 3. 5.100&#xA;libswscale 5. 5.100 / 5. 5.100&#xA;libavfilter 7. 57.100 / 7. 57.100&#xA;libavdevice 58. 8.100 / 58. 8.100&#xA;libavformat 58. 29.100 / 58. 29.100&#xA;libavcodec 58. 54.100 / 58. 54.100&#xA;libavutil 56. 31.100 / 56. 31.100&#xA;&#xA;configuration: &#xA;--enable-gpl &#xA;--enable-version3 &#xA;--enable-static &#xA;--disable-debug &#xA;--disable-ffplay &#xA;--disable-indev=sndio &#xA;--disable-outdev=sndio &#xA;--cc=gcc &#xA;--enable-fontconfig &#xA;--enable-frei0r &#xA;--enable-gnutls &#xA;--enable-gmp &#xA;--enable-libgme &#xA;--enable-gray &#xA;--enable-libaom &#xA;--enable-libfribidi &#xA;--enable-libass &#xA;--enable-libvmaf &#xA;--enable-libfreetype &#xA;--enable-libmp3lame &#xA;--enable-libopencore-amrnb &#xA;--enable-libopencore-amrwb &#xA;--enable-libopenjpeg &#xA;--enable-librubberband &#xA;--enable-libsoxr &#xA;--enable-libspeex &#xA;--enable-libsrt &#xA;--enable-libvorbis &#xA;--enable-libopus &#xA;--enable-libtheora &#xA;--enable-libvidstab &#xA;--enable-libvo-amrwbenc &#xA;--enable-libvpx &#xA;--enable-libwebp &#xA;--enable-libx264 &#xA;--enable-libx265 &#xA;--enable-libxml2 &#xA;--enable-libdav1d &#xA;--enable-libxvid &#xA;--enable-libzvbi &#xA;--enable-libzimg&#xA;&#xA;OSError: MoviePy error: failed to read the duration of file /tmp/334.mp31boi_q7b.&#xA;

    &#xA;

    To retrieve files sent by the user, I use tempfile.NamedTemporaryFile and manipulate them in memory. I make some slices in the audio to synchronize with images (as if they were slides) and to concatenate them I use the following :

    &#xA;

    audio_concat = concatenate_audioclips(audio_clips)&#xA;

    &#xA;

    and at the end, I generate the video as follows :

    &#xA;

    with tempfile.NamedTemporaryFile(prefix=video_path, suffix=&#x27;&#x27;, delete=False) as data:&#xA;    video.write_videofile(data.name, fps=24, codec="libx264", ffmpeg_params=[&#x27;-f&#x27;, &#x27;mp4&#x27;], threads=multiprocessing.cpu_count())&#xA;

    &#xA;

    As said, everything works fine in the container locally, but the same does not happen in ECS.

    &#xA;

    Does anyone have any idea what I might be doing wrong ?

    &#xA;

    My Dockerfile

    &#xA;

    FROM ubuntu:latest&#xA;ENV DEBIAN_FRONTEND noninteractive&#xA;&#xA;WORKDIR /video_composer&#xA;&#xA;COPY requirements.txt /video_composer/requirements.txt&#xA;&#xA;RUN apt-get update &amp;&amp; apt-get install -y software-properties-common gcc &amp;&amp; \&#xA;    add-apt-repository -y ppa:deadsnakes/ppa&#xA;&#xA;RUN apt-get update &amp;&amp; apt-get install -y python3.11 python3-distutils python3-pip python3-apt&#xA;RUN apt-get -y update&#xA;RUN apt-get install -y ffmpeg&#xA;&#xA;RUN pip install -r /video_composer/requirements.txt&#xA;&#xA;RUN python3 -m certifi&#xA;&#xA;COPY . /video_composer/&#xA;&#xA;EXPOSE 8003&#xA;&#xA;CMD ["uvicorn", "video_composer:app", "--proxy-headers", "--host", "0.0.0.0", "--port", "8003"]&#xA;

    &#xA;

    Some solutions consulted and no success

    &#xA;

    Moviepy unable to read duration of file

    &#xA;

    https://github.com/Zulko/moviepy/issues/116

    &#xA;

    When trying to execute the mentioned solutions I continued to have the same error in the ECS but without errors locally.

    &#xA;