Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (65)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (9148)

  • pydub raises FIleNotFoundError when trying to get an mp3 file

    4 juin 2023, par avocado123123

    my code :

    


    from pydub import AudioSegment

AudioSegment.ffmpeg = r"C:\Users\תמרה\AppData\Local\ffmpegio\ffmpeg-downloader\ffmpeg\bin\ffmpeg.exe"

sound = AudioSegment.from_mp3(r"C:\Users\תמרה\PycharmProjects\spotify\The Moon Drops - Nathan Moore.mp3")


    


    the error raised :

    


    "C:\Users\תמרה\PycharmProjects\spotify\file stuff.py" &#xA;C:\Users\תמרה\PycharmProjects\spotify\venv\lib\site-packages\pydub\utils.py:170: RuntimeWarning: Couldn&#x27;t find ffmpeg or avconv - defaulting to ffmpeg, but may not work&#xA;  warn("Couldn&#x27;t find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)&#xA;C:\Users\תמרה\PycharmProjects\spotify\venv\lib\site-packages\pydub\utils.py:198: RuntimeWarning: Couldn&#x27;t find ffprobe or avprobe - defaulting to ffprobe, but may not work&#xA;  warn("Couldn&#x27;t find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)&#xA;Traceback (most recent call last):&#xA;  File "C:\Users\תמרה\PycharmProjects\spotify\file stuff.py", line 5, in <module>&#xA;    sound = AudioSegment.from_mp3(r"C:\Users\תמרה\PycharmProjects\spotify\The Moon Drops - Nathan Moore.mp3")&#xA;  File "C:\Users\תמרה\PycharmProjects\spotify\venv\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:\Users\תמרה\PycharmProjects\spotify\venv\lib\site-packages\pydub\audio_segment.py", line 728, in from_file&#xA;    info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)&#xA;  File "C:\Users\תמרה\PycharmProjects\spotify\venv\lib\site-packages\pydub\utils.py", line 274, in mediainfo_json&#xA;    res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)&#xA;  File "C:\Users\תמרה\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 971, in __init__&#xA;    self._execute_child(args, executable, preexec_fn, close_fds,&#xA;  File "C:\Users\תמרה\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1440, in _execute_child&#xA;    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,&#xA;FileNotFoundError: [WinError 2] The system cannot find the file specified&#xA;&#xA;Process finished with exit code 1&#xA;</module>

    &#xA;

    The mp3 file exists in the path I entered but for some reason, pydub does not find it. How to solve this ?

    &#xA;

  • FFMPEG and MSA1 Codec Issues when Converting WMV to MP4 Video

    30 décembre 2023, par user136819

    I have a WMV video file (around 60 MB size, 01:23:00 length) and I'm running a Windows Server 2016 64-bit machine for testing.
    &#xA;As far as I know, this video file was recorded using Microsoft Live Meeting 2007 back in April 2010 and there is also an associated audio file (which I'm able to play).

    &#xA;

    I tried to play the video file on my machine using VLC player (latest update), however, I always see this weird MSA1 codec error :

    &#xA;

    enter image description here

    &#xA;

    So I tried to resolve this problem by downloading and installing the Combined-Community-Codec-Pack-64bit-2015-10-18, and using its MPC-HC 64-bit player to play the video...&#xA;I still couldn't get it to play ! Here are the logs shown by the MPC player :

    &#xA;

    enter image description here

    &#xA;

    WM ASF Reader::Raw Video 0&#xA;&#xA;Media Type 0:&#xA;--------------------------&#xA;Video: MSA1 1440x900 5fps 164kbps&#xA;&#xA;AM_MEDIA_TYPE: &#xA;majortype: MEDIATYPE_Video {73646976-0000-0010-8000-00AA00389B71}&#xA;subtype: Unknown GUID Name {3141534D-0000-0010-8000-00AA00389B71}&#xA;formattype: FORMAT_VideoInfo {05589F80-C356-11CE-BF01-00AA0055595A}&#xA;bFixedSizeSamples: 0&#xA;bTemporalCompression: 1&#xA;lSampleSize: 0&#xA;cbFormat: 88&#xA;&#xA;VIDEOINFOHEADER:&#xA;rcSource: (0,0)-(1440,900)&#xA;rcTarget: (0,0)-(1440,900)&#xA;dwBitRate: 164794&#xA;dwBitErrorRate: 0&#xA;AvgTimePerFrame: 2000000&#xA;&#xA;BITMAPINFOHEADER:&#xA;biSize: 40&#xA;biWidth: 1440&#xA;biHeight: 900&#xA;biPlanes: 1&#xA;biBitCount: 16&#xA;biCompression: MSA1&#xA;biSizeImage: 66101&#xA;biXPelsPerMeter: 0&#xA;biYPelsPerMeter: 0&#xA;biClrUsed: 0&#xA;biClrImportant: 0&#xA;&#xA;pbFormat:&#xA;0000: 00 00 00 00 00 00 00 00 a0 05 00 00 84 03 00 00 ........&#xA0;...„...&#xA;0010: 00 00 00 00 00 00 00 00 a0 05 00 00 84 03 00 00 ........&#xA0;...„...&#xA;0020: ba 83 02 00 00 00 00 00 80 84 1e 00 00 00 00 00 &#xBA;ƒ......€„......&#xA;0030: 28 00 00 00 a0 05 00 00 84 03 00 00 01 00 10 00 (...&#xA0;...„.......&#xA;0040: 4d 53 41 31 35 02 01 00 00 00 00 00 00 00 00 00 MSA15...........&#xA;0050: 00 00 00 00 00 00 00 00                         ........&#xA;

    &#xA;

    Since that didn't work, I tried installing the Microsoft MPEG-4 V1/2/3 VKI Codec for ASF files and still couldn't get the players to play the video and saw the same errors as above !

    &#xA;

    As a final attempt, I tried to convert this video to MP4 format using FFMPEG (version from 2020). Even this failed. Here are the logs :

    &#xA;

    D:\ffmpeg-20200403-52523b6-win64-static\bin>ffmpeg.exe -i input-video.wmv -c:v copy -c:a aac -q:a 100 output.mp4&#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;[msa1 @ 000002505bb847c0] Image dimensions should be a multiple of 16.&#xA;[asf @ 000002505bb4b600] Failed to open codec in avformat_find_stream_info&#xA;[msa1 @ 000002505bb847c0] Image dimensions should be a multiple of 16.&#xA;Input #0, asf, from &#x27;input-video.wmv&#x27;:&#xA;  Metadata:&#xA;    WMFSDKNeeded    : 0.0.0.0000&#xA;    WMFSDKVersion   : 10.00.00.4072&#xA;    IsVBR           : 0&#xA;  Duration: 01:22:49.28, start: 0.000000, bitrate: 96 kb/s&#xA;    Stream #0:0(ger): Video: msa1 (MSA1 / 0x3141534D), none, 1440x900, 164 kb/s, 5 tbr, 1k tbn, 1k tbc&#xA;[mp4 @ 000002505bb4ce40] Could not find tag for codec msa1 in stream #0, codec not currently supported in container&#xA;Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (copy)&#xA;    Last message repeated 1 times&#xA;&#xA;D:\ffmpeg-20200403-52523b6-win64-static\bin>&#xA;

    &#xA;

    I wish to know, is there any other way I can convert this video to a more modern format so that I can play it on a modern machine and modern video player ?
    &#xA;What other codecs am I missing here ? (if so, where can I get them ?)
    &#xA;FYI, as mentioned earlier at the top, I'm only able to play the associated audio file...

    &#xA;

    I'm fairly new to all this stuff, so any help is appreciated.

    &#xA;

    Thanks in advance ! :)

    &#xA;

  • How can I resolve the FileNotFoundError when attempting to convert an MP3 to WAV using ffmpeg in Python ?

    3 juin 2023, par avocado123123

    I have an MP3 file that I want to convert into a WAV file, but no matter how I try writing the code, it keeps raising FileNotFoundError on the MP3 file and warns me about the installation of FFmpeg.

    &#xA;

    my code :

    &#xA;

    from pydub import AudioSegment&#xA;&#xA;# Specify the path to the FFmpeg executable&#xA;ffmpeg_path = r"C:\Users\תמרה\AppData\Local\ffmpegio\ffmpeg-downloader\ffmpeg\bin\ffmpeg.exe"&#xA;AudioSegment.ffmpeg = ffmpeg_path&#xA;AudioSegment.ffprobe = ffmpeg_path&#xA;&#xA;# Load the MP3 file&#xA;mp3_file = r"C:\Users\תמרה\Tea Time - Ofshane.mp3"&#xA;audio = AudioSegment.from_file(mp3_file, format="mp3")&#xA;&#xA;# Export as WAV&#xA;wav_file = r"C:\Users\תמרה\Tea Time - Ofshane.wav"&#xA;audio.export(wav_file, format="wav")&#xA;

    &#xA;

    when running :

    &#xA;

    C:\Users\תמרה\PycharmProjects\spotify\venv\Scripts\python.exe "C:\Users\תמרה\PycharmProjects\spotify\file stuff.py" C:\ffmpeg-2023-05-29-git-45fa85a777-full_build\bin\ffmpeg.exe &#xA;C:\Users\תמרה\PycharmProjects\spotify\venv\lib\site-packages\pydub\utils.py:170: RuntimeWarning: Couldn&#x27;t find ffmpeg or avconv - defaulting to ffmpeg, but may not work&#xA;  warn("Couldn&#x27;t find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)&#xA;C:\Users\תמרה\PycharmProjects\spotify\venv\lib\site-packages\pydub\utils.py:198: RuntimeWarning: Couldn&#x27;t find ffprobe or avprobe - defaulting to ffprobe, but may not work&#xA;  warn("Couldn&#x27;t find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)&#xA;Traceback (most recent call last):&#xA;  File "C:\Users\תמרה\PycharmProjects\spotify\file stuff.py", line 12, in <module>&#xA;    audio = AudioSegment.from_file(mp3_file, format="mp3")&#xA;  File "C:\Users\תמרה\PycharmProjects\spotify\venv\lib\site-packages\pydub\audio_segment.py", line 728, in from_file&#xA;    info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)&#xA;  File "C:\Users\תמרה\PycharmProjects\spotify\venv\lib\site-packages\pydub\utils.py", line 274, in mediainfo_json&#xA;    res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)&#xA;  File "C:\Users\תמרה\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 971, in __init__&#xA;True&#xA;    self._execute_child(args, executable, preexec_fn, close_fds,&#xA;  File "C:\Users\תמרה\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1440, in _execute_child&#xA;    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,&#xA;FileNotFoundError: [WinError 2] The system cannot find the file specified&#xA;&#xA;Process finished with exit code 1&#xA;&#xA;</module>

    &#xA;

    What should I do to make this work ?

    &#xA;