Recherche avancée

Médias (1)

Mot : - Tags -/wave

Autres articles (111)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

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

  • lavc/vvc : Check slice structure

    10 janvier, par Frank Plowman
    lavc/vvc : Check slice structure
    

    The criteria for slice structure validity is similar to that of
    subpicture structure validity that we saw not too long ago [1].
    The relationship between tiles and slices must satisfy the following
    properties :

    * Exhaustivity. All tiles in a picture must belong to a slice. The
    tiles cover the picture, so this implies the slices must cover the
    picture.
    * Mutual exclusivity. No tile may belong to more than one slice, i.e.
    slices may not overlap.

    In most cases these properties are guaranteed by the syntax. There is
    one noticable exception however : when pps_tile_idx_delta_present_flag is
    equal to one, each slice is associated with a syntax element
    pps_tile_idx_delta_val[i] which "specifies the difference between the
    tile index of the tile containing the first CTU in the ( i + 1 )-th
    rectangular slice and the tile index of the tile containing the first
    CTU in the i-th rectangular slice" [2]. When these syntax elements are
    present, the i-th slice can begin anywhere and the usual guarantees
    provided by the syntax are lost.

    The patch detects slice structures which violate either of the two
    properties above, and are therefore invalid, while building the
    slice map. Should the slice map be determined to be invalid, an
    AVERROR_INVALIDDATA is returned. This prevents issues including
    segmentation faults when trying to decode, invalid bitstreams.

    [1] : https://ffmpeg.org//pipermail/ffmpeg-devel/2024-October/334470.html
    [2] : H.266 (V3) Section 7.4.3.5, Picture parameter set RBSP semantics

    Signed-off-by : Frank Plowman <post@frankplowman.com>

    • [DH] libavcodec/vvc/ps.c
  • The problem with pydub.AudioSegment.from_file (ffmpeg)

    7 septembre 2024, par akkoolda

    I'm trying to make a normal voice recording discord. When I try to convert an Audio Data object, an error occurs. I've already tried everything I can, I can't solve the problem.

    &#xA;

    Here is the code, the error occurs in the seg variable :

    &#xA;

    async def once_done(sink: discord.sinks.MP3Sink, channel: discord.TextChannel, *args):&#xA;        words_list = []&#xA;        audio_segs: list[pydub.AudioSegment] = []&#xA;        longest = pydub.AudioSegment.empty()&#xA;        files: list[discord.File] = []&#xA;&#xA;        for user_id, audio in sink.audio_data.items():&#xA;            try:&#xA;                payload: FileSource = {&#xA;                    "buffer": audio.file.read(),&#xA;                    "mimetype": "audio/mp3"  # Указываем тип аудиофайла&#xA;            }&#xA;&#xA;                #audio.on_format("mp3")&#xA;                seg = pydub.AudioSegment.from_file(audio.file, format="mp3")&#xA;

    &#xA;

    The error itself

    &#xA;

    Exception in thread Thread-3 (recv_audio):&#xA;    Traceback (most recent call last):&#xA;      File "c:\Users\olimp\OneDrive\Рабочий стол\Work on Python\management-followups-bot\main.py", line 66, in once_done&#xA;        seg = pydub.AudioSegment.from_file(audio.file, format="mp3")&#xA;              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&#xA;      File "C:\Users\olimp\AppData\Local\Programs\Python\Python311\Lib\site-packages\pydub\audio_segment.py", line 773, in from_file&#xA;        raise CouldntDecodeError(&#xA;    pydub.exceptions.CouldntDecodeError: Decoding failed. ffmpeg returned error code: 3199971767&#xA;    &#xA;    Output from ffmpeg/avlib:&#xA;    &#xA;    ffmpeg version 2024-09-02-git-3f9ca51015-full_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers&#xA;      built with gcc 13.2.0 (Rev5, Built by MSYS2 project)&#xA;      configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 &#xA;    --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libopenjpeg --enable-libquirc --enable-libuavs3d --enable-libxevd --enable-libzvbi --enable-libqrencode --enable-librav1e --enable-libsvtav1 --enable-libvvenc --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxeve --enable-libxvid --enable-libaom --enable-libjxl --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libcodec2 --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint&#xA;      libavutil      59. 35.100 / 59. 35.100&#xA;      libavcodec     61. 11.100 / 61. 11.100&#xA;      libavformat    61.  5.101 / 61.  5.101&#xA;      libavdevice    61.  2.100 / 61.  2.100&#xA;      libavfilter    10.  2.102 / 10.  2.102&#xA;      libswscale      8.  2.100 /  8.  2.100&#xA;      libswresample   5.  2.100 /  5.  2.100&#xA;      libpostproc    58.  2.100 / 58.  2.100&#xA;    [cache @ 000001b25c1c6e00] Inner protocol failed to seekback end : -40&#xA;        Last message repeated 1 times&#xA;    [mp3 @ 000001b25c1c6840] Failed to find two consecutive MPEG audio frames.&#xA;    [cache @ 000001b25c1c6e00] Statistics, cache hits:0 cache misses:0&#xA;    [in#0 @ 000001b25c1ac740] Error opening input: Invalid data found when processing input&#xA;    Error opening input file cache:pipe:0.&#xA;    Error opening input files: Invalid data found when processing input&#xA;    &#xA;    &#xA;    During handling of the above exception, another exception occurred:&#xA;    &#xA;    Traceback (most recent call last):&#xA;      File "C:\Users\olimp\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038, in _bootstrap_inner&#xA;        self.run()&#xA;      File "C:\Users\olimp\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975, in run&#xA;        self._target(*self._args, **self._kwargs)&#xA;      File "C:\Users\olimp\AppData\Local\Programs\Python\Python311\Lib\site-packages\discord\voice_client.py", line 868, in recv_audio&#xA;        result = callback.result()&#xA;                 ^^^^^^^^^^^^^^^^^&#xA;      File "C:\Users\olimp\AppData\Local\Programs\Python\Python311\Lib\concurrent\futures\_base.py", line 456, in result&#xA;        return self.__get_result()&#xA;               ^^^^^^^^^^^^^^^^^^^&#xA;      File "C:\Users\olimp\AppData\Local\Programs\Python\Python311\Lib\concurrent\futures\_base.py", line 401, in __get_result&#xA;        raise self._exception&#xA;      File "c:\Users\olimp\OneDrive\Рабочий стол\Work on Python\management-followups-bot\main.py", line 95, in once_done&#xA;        await channel.send(f"Ошибка при работе с Deepgram API: {str(e)}")&#xA;      File "C:\Users\olimp\AppData\Local\Programs\Python\Python311\Lib\site-packages\discord\abc.py", line 1666, in send&#xA;        data = await state.http.send_message(&#xA;               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&#xA;      File "C:\Users\olimp\AppData\Local\Programs\Python\Python311\Lib\site-packages\discord\http.py", line 374, in request&#xA;        raise HTTPException(response, data)&#xA;    discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body&#xA;    In content: Must be 2000 or fewer in length.&#xA;&#xA;Solving the error, how else can you normally record user audio&#xA;

    &#xA;

    How can I fix this, or maybe there are some other options ?

    &#xA;

  • ffmpeg remote url not working in lambda function

    9 septembre 2024, par Komal

    I have created lambda function to trim video.

    &#xA;

    I run this command :

    &#xA;

    /opt/bin/ffmpeg -protocol_whitelist file,http,https,tcp,tls -i &#x27;https://source-bucket.s3.amazonaws.com/1.mp4&#x27; -ss 5 -t 10 -loglevel 48 -y -avoid_negative_ts 1 -acodec copy /tmp/output.mp4&#xA;

    &#xA;

    It gives following output :

    &#xA;

    "ffmpeg version 7.0.2-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2024 the FFmpeg developers\n  built with gcc 8 (Debian 8.3.0-6)\n  configuration: --enable-gpl --enable-version3&#xA;--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\n  libavutil      59.  8.100 / 59.  8.100\n  libavcodec     61.  3.100 / 61.  3.100\n  libavformat    61.  1.100 / 61.  1.100\n  libavdevice    61.  1.100 /&#xA;61.  1.100\n  libavfilter    10.  1.100 / 10.  1.100\n  libswscale      8.  1.100 /  8.  1.100\n  libswresample   5.  1.100 /  5.  1.100\n  libpostproc    58.  1.100 / 58.  1.100\nSplitting the commandline.\nReading option &#x27;-protocol_whitelist&#x27; ... matched as AVOption &#x27;protocol_whitelist&#x27; with argument &#x27;file,http,https,tcp,tls&#x27;.\nReading option &#x27;-i&#x27; ... matched as input url with argument &#x27;https://source-bucket.s3.amazonaws.com/1.mp4&#x27;.\nReading option &#x27;-ss&#x27; ... matched as option &#x27;ss&#x27; (start transcoding at specified time) with argument &#x27;50&#x27;.\nReading option &#x27;-t&#x27; ... matched as option &#x27;t&#x27; (stop transcoding after specified duration) with argument &#x27;100&#x27;.\nReading option &#x27;-loglevel&#x27; ... matched as option &#x27;loglevel&#x27; (set logging level) with argument &#x27;48&#x27;.\nReading option &#x27;-y&#x27; ... matched as option &#x27;y&#x27; (overwrite output files) with argument &#x27;1&#x27;.\nReading option &#x27;-avoid_negative_ts&#x27; ... matched as AVOption &#x27;avoid_negative_ts&#x27; with argument &#x27;1&#x27;.\nReading option &#x27;-acodec&#x27; ... matched as option &#x27;acodec&#x27; (alias for -c:a (select encoder/decoder for audio streams)) with argument &#x27;copy&#x27;.\nReading option &#x27;/tmp/output.mp4&#x27; ... matched as output url.\nFinished splitting the commandline.\nParsing a group of options: global .\nApplying option loglevel (set logging level) with argument 48.\nApplying option y (overwrite output files) with argument&#xA;1.\nSuccessfully parsed a group of options.\nParsing a group of options: input url https://source-bucket.s3.amazonaws.com/1.mp4.\nSuccessfully parsed a group of options.\nOpening an input file: https://source-bucket.s3.amazonaws.com/1.mp4.\n[AVFormatContext @ 0x70ea0c0] Opening &#x27;https://source-bucket.s3.amazonaws.com/1.mp4&#x27; for reading\n"&#xA;

    &#xA;

    So, its not going beyond this : 'Opening 'https://source-bucket.s3.amazonaws.com/1.mp4' ; for reading\n'

    &#xA;

    And after this, it immediately gets out. Need suggestions, where its going wrong. Same command working fine on local computer.

    &#xA;

    I tried cloudfront and signed url as well, as mentioned in this post : How to read remote video on Amazon S3 using ffmpeg. But it doesnt work with url. Only working when downloaded into tmp folder.

    &#xA;

    Following is the final log, which you can see is no timeout. It actually finish function execution within 2-3 seconds. I have timeout set for 15 mins to the function which is maximum :&#xA;enter image description here

    &#xA;

    REPORT RequestId: 4acd7b38-017c-4dce-bb65-8f6fd3cf37e0  Duration: 1297.93 ms    Billed Duration: 1298 ms    Memory Size: 1024 MB    Max Memory Used: 103 MB Init Duration: 328.76 ms    &#xA;

    &#xA;