Recherche avancée

Médias (1)

Mot : - Tags -/wave

Autres articles (95)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (10738)

  • Nginx - RTMP module - VLC wont start

    15 janvier, par Diana Sari

    Why my vlc only show background colour ?&#xA;did i miss something important ?

    &#xA;

    Im running Nginx with RTMP module on&#xA;Linux DESKTOP-RJHVE83 5.15.167.4-microsoft-standard-WSL2 #1 SMP x86_64 GNU/Linux&#xA;Kali release : 2024.4 (kali-rolling) WSL on Windows 10 Pro

    &#xA;

    Screenshot of my VLC

    &#xA;

    /etc/nginx/nginx.conf&#xA;i add this from the default :

    &#xA;

    rtmp {&#xA;    server {&#xA;        listen 1935;&#xA;        chunk_size 4096;&#xA;  allow publish 127.0.0.1;&#xA;  deny publish all;&#xA;&#xA;        application live {&#xA;            live on;&#xA;            record off;&#xA;        push rtmp://127.0.0.1/live/stream;&#xA;        }&#xA;    }&#xA;}&#xA;

    &#xA;

    Stream my mp4 file using ffmpeg :

    &#xA;

    &#xA;

    Kali$> ffmpeg -re -i file.mp4 -c:v libx264 -c:a aac -flvflags no_duration_filesize -f flv rtmp ://localhost:1935/live/

    &#xA;

    &#xA;

    VLC on the same machine on WIndows 10 Pro&#xA;Open Network Protocol : rtmp ://192.168.1.1:1935/live/

    &#xA;

    The Vlc Show only Background colour (attach)

    &#xA;

    -Access.log&#xA;172.27.96.1 [14/Jan/2025:14:28:02 +0700] PLAY "live" "" "" - 556 1612142 "" "LNX 9,0,124,2" (25s)&#xA;127.0.0.1 [14/Jan/2025:14:28:34 +0700] PUBLISH "live" "" "" - 4573293 529 "" "FMLE/3.0 (compatible ; Lavf61.7." (1m 3s)&#xA;172.27.96.1 [14/Jan/2025:14:29:47 +0700] PLAY "live" "" "" - 365 1578527 "" "LNX 9,0,124,2" (1m 43s)

    &#xA;

    -Error.log&#xA;Blank

    &#xA;

    i tried this on :&#xA;Ubuntu Focal 20.04.6 (WSL)&#xA;Ubuntu Noble24.04.1 LTS (WSL)&#xA;id read 2 tutorials&#xA;https://www.hostinger.com/tutorials/how-to-set-up-a-streaming-server&#xA;https://www.digitalocean.com/community/tutorials/how-to-set-up-a-video-streaming-server-using-nginx-rtmp-on-ubuntu-20-04

    &#xA;

  • Multiple trims to a video using ffmpeg generating video with shorter duration than expected [closed]

    9 septembre 2024, par Gerardo

    I have an application that given a video it trims multiple parts of that video using ffmpeg. Each part is cropped, scaled and then concatenated to generate a single video.

    &#xA;

    To share an example, I have a video of 1 minute and 44 seconds of duration and 60 fps. My goal is to trim 3 parts of the video :

    &#xA;

      &#xA;
    • First one between seconds 0 to 44.666
    • &#xA;

    • Second one between seconds 44.666 to 74.349
    • &#xA;

    • Third one between seconds 74.349 to 103.985
    • &#xA;

    &#xA;

    The ffmpeg command I use to achieve that is the following one :

    &#xA;

    ffmpeg -y -hide_banner -i bg_720_1280.png -i error.mp4 -filter_complex "&#xA;[1:v]trim=0.0:44.666,setpts=PTS-STARTPTS,crop=405.0:720.0:437.5:0.0,scale=-2:1280.0[crop_1_0_v];&#xA;[1:a]atrim=0.0:44.666,volume=1.0,asetpts=PTS-STARTPTS[crop_1_0_a];&#xA;[0:v][crop_1_0_v]overlay=enable=&#x27;between(t,0,44.666)&#x27;:x=0.0:y=0.0[crop_1_0_v];&#xA;[1:v]trim=44.666:74.349,setpts=PTS-STARTPTS,crop=405.0:720.0:437.5:0.0,scale=-2:1280.0[crop_2_0_v];&#xA;[1:a]atrim=44.666:74.349,volume=1.0,asetpts=PTS-STARTPTS[crop_2_0_a];&#xA;[0:v][crop_2_0_v]overlay=enable=&#x27;between(t,0,29.683)&#x27;:x=0.0:y=0.0[crop_2_0_v];&#xA;[1:v]trim=74.349:103.985,setpts=PTS-STARTPTS,crop=405.0:720.0:437.5:0.0,scale=-2:1280.0[crop_3_0_v];&#xA;[1:a]atrim=74.349:103.985,volume=1.0,asetpts=PTS-STARTPTS[crop_3_0_a];&#xA;[0:v][crop_3_0_v]overlay=enable=&#x27;between(t,0,29.636)&#x27;:x=0.0:y=0.0[crop_3_0_v];&#xA;[crop_1_0_a][crop_2_0_a][crop_3_0_a]concat=n=3:v=0:a=1[a];&#xA;[crop_1_0_v][crop_2_0_v][crop_3_0_v]concat=n=3:v=1:a=0[outv];&#xA;[a]amix=1:duration=longest[outa]" -map "[outv]" -map "[outa]" -vcodec libx264 -acodec aac -sws_flags lanczos -pix_fmt yuv420p -crf 17 -preset superfast -r 60 test.mp4&#xA;

    &#xA;

    Running this command it generates a video of 11 seconds of duration and I'm unable to understand it. What is wrong with the command ? Also I'm open to recommendations of the ffmpeg command in case you find another way more efficient or performant.

    &#xA;

    I'm using the following FFMPEG version :

    &#xA;

    ffmpeg version 7.0.2 Copyright (c) 2000-2024 the FFmpeg developers&#xA;  built with Apple clang version 15.0.0 (clang-1500.3.9.4)&#xA;  configuration: --prefix=/usr/local/Cellar/ffmpeg/7.0.2 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags=&#x27;-Wl,-ld_classic&#x27; --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox&#xA;  libavutil      59.  8.100 / 59.  8.100&#xA;  libavcodec     61.  3.100 / 61.  3.100&#xA;  libavformat    61.  1.100 / 61.  1.100&#xA;  libavdevice    61.  1.100 / 61.  1.100&#xA;  libavfilter    10.  1.100 / 10.  1.100&#xA;  libswscale      8.  1.100 /  8.  1.100&#xA;  libswresample   5.  1.100 /  5.  1.100&#xA;  libpostproc    58.  1.100 / 58.  1.100&#xA;

    &#xA;

    But I got the same issue with static ffmpeg builds

    &#xA;

    The file bg_720_1280.png is just a transparent image of resolution 720x1280. I think I could achieve the same by using nullsrc filter with that resolution instead of using this background image.

    &#xA;

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