Recherche avancée

Médias (10)

Mot : - Tags -/wav

Autres articles (58)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (14049)

  • PyDub : ffmpeg header missing

    7 février 2024, par Ray Siplao

    I made a simple Python program that add short pauses at the start of mp3 files

    


    import os

from pydub import AudioSegment

AUDIO_DIR = 'C:\\Users\\Ray\\Downloads\\sentence-audio'
OUT_DIR = 'C:\\Users\\Ray\\Downloads\\out-audio'

pause = AudioSegment.silent(duration=400)

for fname in os.listdir(AUDIO_DIR):
    print(f'Processing {fname}')
    newf = os.path.join(OUT_DIR, os.path.basename(fname))
    if os.path.isfile(newf):
        print(f'{fname} exists')
        continue
    audio = AudioSegment.from_mp3(os.path.join(AUDIO_DIR, fname))
    new = pause + audio
    new.export(newf, format='mp3')
    print(f'{fname} lengthened')


    


    While running this program, I received the below error message for a particular mp3 file

    


    Traceback (most recent call last):&#xA;  File "C:\Users\Ray\Downloads\lengthen.py", line 16, in <module>&#xA;    audio = AudioSegment.from_mp3(os.path.join(AUDIO_DIR, fname))&#xA;  File "C:\Python39\lib\site-packages\pydub\audio_segment.py", line 796, in from_mp3&#xA;    return cls.from_file(file, &#x27;mp3&#x27;, parameters=parameters)&#xA;  File "C:\Python39\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: 1&#xA;&#xA;Output from ffmpeg/avlib:&#xA;&#xA;ffmpeg version git-2020-04-03-52523b6 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 9.3.1 (GCC) 20200328&#xA;  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf&#xA;  libavutil      56. 42.102 / 56. 42.102&#xA;  libavcodec     58. 77.101 / 58. 77.101&#xA;  libavformat    58. 42.100 / 58. 42.100&#xA;  libavdevice    58.  9.103 / 58.  9.103&#xA;  libavfilter     7. 77.101 /  7. 77.101&#xA;  libswscale      5.  6.101 /  5.  6.101&#xA;  libswresample   3.  6.100 /  3.  6.100&#xA;  libpostproc    55.  6.100 / 55.  6.100&#xA;[mp3float @ 0000016489995380] Header missing&#xA;    Last message repeated 71 times&#xA;[mp3 @ 000001648998b500] decoding for stream 0 failed&#xA;[mp3 @ 000001648998b500] Could not find codec parameters for stream 0 (Audio: mp3 (mp3float), 0 channels, fltp): unspecified frame size&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; and &#x27;probesize&#x27; options&#xA;Input #0, mp3, from &#x27;C:\Users\Ray\Downloads\sentence-audio\354.mp3&#x27;:&#xA;  Duration: N/A, start: 0.000000, bitrate: N/A&#xA;    Stream #0:0: Audio: mp3, 0 channels, fltp&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (mp3 (mp3float) -> pcm_s16le (native))&#xA;Press [q] to stop, [?] for help&#xA;[mp3float @ 0000016489995800] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 0000016489995800] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 0000016489995800] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 0000016489995800] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 0000016489995800] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 0000016489995800] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 0000016489995800] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 0000016489995800] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 0000016489995800] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 0000016489995800] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 0000016489995800] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 0000016489995800] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 0000016489995800] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 0000016489995800] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 0000016489995800] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 0000016489995800] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 0000016489995800] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;...&#xA;</module>

    &#xA;

    I thought at first that the mp3 file is corrupt, thus it is unplayable. But, when I played the file in a media player, it was fine.

    &#xA;

    I don't know how to resolve this issue. Is there any workarounds ?

    &#xA;

  • How do I install ffmpeg on one EC2 Amazon Linux instance that can stream a mp4 ? [closed]

    12 septembre 2020, par starpebble

    Good day. How can I install ffmpeg on an EC2 amazon linux machine that can stream a mp4 ?

    &#xA;

    The goal : an ffmpeg install on EC2 Amazon Linux that can stream one mp4 to one rtmps endpoint. Then, create an integration test suite with it.

    &#xA;

    Is it just me or is ffmpeg a little crippled on EC2 Amazon Linux ?

    &#xA;

    Example :

    &#xA;

    ffmpeg -re -i input.mp4 -c:v libx264 -b:v 6000K -maxrate 6000K -pix_fmt yuv420p -s 1920x1080 -profile:v main -preset veryfast -g 120 -x264opts "nal-hrd=cbr:no-scenecut” -acodec aac -ab 160k -ar 44100 -f flv rtmps:///app/&#xA;

    &#xA;

    Linux OS :

    &#xA;

    Linux version 4.14.193-113.317.amzn1.x86_64 (mockbuild@koji-pdx-corp-builder-60005) (gcc version 7.2.1 20170915 (Red Hat 7.2.1-2) (GCC)) #1 SMP Thu Sep 3 19:08:08 UTC 2020&#xA;

    &#xA;

    The stackoverflow answer to similar questions fail to install a ffmpeg that can stream.

    &#xA;

    An installation script such as Install FFMPEG Library on EC2 Server fail this year.

    &#xA;

    The static downloads referenced on John Van Sickle-FFmpeg Static Builds fail to stream to IVS. I tried the i686 release, my first guess for an x86_64 instance.

    &#xA;

    The git source tree compiled binary fails to stream. Example : The tip of the tree isn't what I expected because the binary fails to recognize switches like -preset.

    &#xA;

    I'd love to be able to explain streaming to anyone. Thanks.

    &#xA;

  • ffmpeg capturing image from rtmp stream

    14 juin 2020, par Lewis Day

    I am passing this command via ssh ;

    &#xA;&#xA;

        $rtmp_address = &#x27;rtmp://198.251.69.110/live/&#x27;;&#xA;    $stream_link = "" . $rtmp_address . "" . $stream_key . "";&#xA;echo $ssh->exec(&#x27;ffmpeg -i "&#x27; . $stream_link . &#x27; live=1" -f image2 -vcodec png -vframes 1 -s 180x145 -compression_level 100 /var/www/vhosts/flamingocams.net/httpdocs/images/&#x27; . $username . &#x27;.png -y&#x27;);&#xA;

    &#xA;&#xA;

    however getting this response ;

    &#xA;&#xA;

    &#xA;

    ffmpeg version N-53084-gd29aaf12f4-static&#xA; https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2020 the FFmpeg&#xA; developers built with gcc 8 (Debian 8.3.0-6) configuration :&#xA; —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 libavutil 56. 50.100 / 56. 50.100 libavcodec 58. 90.100 / 58. 90.100 libavformat 58. 44.100 / 58. 44.100 libavdevice 58. 9.103 / 58. 9.103 libavfilter 7. 84.100 / 7. 84.100 libswscale 5. 6.101 / 5. 6.101 libswresample 3. 6.100 / 3. 6.100 libpostproc 55. 6.100 / 55. 6.100 [rtmp @ 0x730fe40] Detected librtmp style URL parameters, these aren't supported by the&#xA; libavformat internal RTMP handler currently enabled. See the&#xA; documentation for the correct way to pass parameters.

    &#xA;

    &#xA;&#xA;

    could anyone help with what is going wrong.

    &#xA;