Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (108)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (12429)

  • nw.js node WebKit - unable to play audio file

    9 novembre 2018, par Allasso

    I have started working with nw.js, creating a test app to play audio files from. I am working on OS X 10.11.

    The code for the player is :

    <audio controls="controls">
     <source src="path/to/file/song.mp3" type="audio/mp3">
    </source></audio>

    The player and controls appear, but the file will not play. I have tried using a relative path, and an absolute path, trying both
    "/path/to/file/song.mp3"
    and
    "file :///path/to/file/song.mp3"
    schemes.

    I have verified the path is valid in all cases.

    This page :

    http://docs.nwjs.io/en/latest/For%20Developers/Enable%20Proprietary%20Codecs/

    tells me that mp3 should be supported (for v0.22.1+, though I haven’t found a way to tell the version of my mp3, though is was made recently so I assume is the the latest codec.)

    Just to try more stuff, I followed the instructions on these pages :

    http://docs.nwjs.io/en/latest/For%20Developers/Enable%20Proprietary%20Codecs/
    (It appears mp3 gained support since this doc came out.)

    https://github.com/nwjs/nw.js/wiki/Using-MP3-%26-MP4-%28H.264%29-using-the—video—%26—audio—tags.

    I downloaded the ffmpeg libs from here :

    https://github.com/iteufel/nwjs-ffmpeg-prebuilt/releases

    and placed copies here :

    find . -name libffmpeg.dylib
    ./dist/nw.js-examples/osx64/nw.js-examples.app/Contents/Versions/67.0.3396.87/libffmpeg.dylib
    ./node_modules/nw/nwjs/nwjs.app/Contents/Versions/54.0.2840.99/nwjs Framework.framework/libffmpeg.dylib
    ./node_modules/nw-builder/cache/0.31.2-sdk/osx64/nwjs.app/Contents/Versions/67.0.3396.87/libffmpeg.dylib
    cp ~/Downloads/libffmpeg.dylib ./dist/nw.js-examples/osx64/nw.js-examples.app/Contents/Versions/67.0.3396.87/libffmpeg.dylib
    cp ~/Downloads/libffmpeg.dylib "./node_modules/nw/nwjs/nwjs.app/Contents/Versions/54.0.2840.99/nwjs Framework.framework/libffmpeg.dylib"
    cp ~/Downloads/libffmpeg.dylib "./node_modules/nw-builder/cache/0.31.2-sdk/osx64/nwjs.app/Contents/Versions/67.0.3396.87/libffmpeg.dylib"

    Still to no avail running either

    npm run dev

    or

    npm run prod

    and opening the packaged app.

    I can play the file fine with the same code from a web browser.

    I don’t know what else to try, help would be much appreciated, thanks.

  • ffmpeg : Invalid argument, [NULL @ 0x22e2240] Unable to find a suitable output format for 'ffmpeg'

    14 février 2016, par user3788285

    I am trying to convert video from images wit the music in background

    command is working fine in the terminal but while using into php it’s giving error :

    this is the command i am trying :

    /usr/local/bin/ffmpeg ffmpeg -framerate 1/5 -i image%01d.png -i song.mp3 -c:v libx264 -c:a aac -strict experimental -b:a 192k  -r 30 -pix_fmt yuv420p -t 10 output.mp4 2>&amp;1

    array(21) {

     [0]=>
     string(83) "ffmpeg version git-2016-02-13-588e2e3 Copyright (c) 2000-2016 the FFmpeg developers"

     [1]=>
     string(56) "  built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16)"

     [2]=>
     string(369) "  configuration: --enable-shared --extra-libs=-ldl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --disable-ffplay --enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthreads --extra-cflags=-fPIC"

     [3]=>
     string(40) "  libavutil      55. 17.100 / 55. 17.100"

     [4]=>
     string(40) "  libavcodec     57. 24.102 / 57. 24.102"

     [5]=>
     string(40) "  libavformat    57. 25.100 / 57. 25.100"

     [6]=>
     string(40) "  libavdevice    57.  0.101 / 57.  0.101"

     [7]=>
     string(40) "  libavfilter     6. 31.100 /  6. 31.100"

     [8]=>
     string(40) "  libswscale      4.  0.100 /  4.  0.100"

     [9]=>
     string(40) "  libswresample   2.  0.101 /  2.  0.101"

     [10]=>
     string(40) "  libpostproc    54.  0.100 / 54.  0.100"

     [11]=>
     string(39) "Input #0, image2, from 'image%01d.png':"

     [12]=>
     string(54) "  Duration: 00:00:10.00, start: 0.000000, bitrate: N/A"

     [13]=>
     string(101) "    Stream #0:0: Video: png, gray(pc), 1080x494 [SAR 72:72 DAR 540:247], 0.20 tbr, 0.20 tbn, 0.20 tbc"

     [14]=>
     string(48) "[mp3 @ 0x22dfb00] Skipping 0 bytes of junk at 0."

     [15]=>
     string(74) "[mp3 @ 0x22dfb00] Estimating duration from bitrate, this may be inaccurate"

     [16]=>
     string(31) "Input #1, mp3, from 'song.mp3':"

     [17]=>
     string(59) "  Duration: 00:01:45.80, start: 0.000000, bitrate: 127 kb/s"

     [18]=>
     string(61) "    Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s"

     [19]=>
     string(71) "[NULL @ 0x22e2240] Unable to find a suitable output format for 'ffmpeg'"

     [20]=>
     string(24) "ffmpeg: Invalid argument"

    }
    int(1)
  • ffmpeg was not found. How do i fix this ?

    18 novembre 2024, par Ice Cr3aM

    So im trying to make a simple discord music bot, which is halted right now due to this problem. The issue is that everytime i try to play a music through youtube_dl library, it pops up with the prompt : "ffmpeg was not found".

    &#xA;

    This is the main.py

    &#xA;

    &#xA;import discord&#xA;import os&#xA;import asyncio&#xA;import youtube_dl&#xA;import ffmpeg&#xA;&#xA;token = &#x27;NzY5NTUzNDcwNjAwMTE4Mjgz.G3Dzce.XYKNAyLfBPg0ug5XPKssV-9EvsFjBlCMeM43ag&#x27;&#xA;&#xA;client = discord.Client()&#xA;&#xA;block_words = [&#x27;foo&#x27;, &#x27;bar&#x27;, &#x27;baz&#x27;, &#x27;quux&#x27;, &#x27;http://&#x27;, &#x27;https://&#x27;]&#xA;&#xA;voice_clients = {}&#xA;yt_dl_opts = {&#x27;format&#x27;: &#x27;bestaudio/best&#x27;}&#xA;ytdl = youtube_dl.YoutubeDL(yt_dl_opts)&#xA;&#xA;ffmpeg_options = {&#x27;options&#x27;: &#x27;-vn&#x27;}&#xA;&#xA;&#xA;@client.event&#xA;async def on_ready():&#xA;    print(f&#x27;Bot has logged in as {client.user}&#x27;)&#xA;&#xA;@client.event&#xA;async def on_message(msg):&#xA;    if msg.author != client.user:&#xA;        if msg.content.lower().startswith(&#x27;?hi&#x27;):&#xA;            await msg.channel.send(f&#x27;Hi, {msg.author.display_name}&#x27;)&#xA;&#xA;@client.event&#xA;async def on_message(msg):&#xA;    if msg.author != client.user:&#xA;        for text in block_words:&#xA;            if "OTR" not in str(msg.author.roles) and text in str(msg.content.lower()):&#xA;                await msg.delete()&#xA;                return&#xA;        print("Not Deleting...")&#xA;&#xA;@client.event&#xA;async def on_message(msg):&#xA;    if msg.content.startswith(&#x27;?play&#x27;):&#xA;        try:&#xA;            url = msg.content.split()[1]&#xA;&#xA;            voice_client = await msg.author.voice.channel.connect()&#xA;            voice_clients[voice_client.guild.id] = voice_client&#xA;&#xA;            loop = asyncio.get_event_loop()&#xA;            data = await loop.run_in_executor(None, lambda: ytdl.extract_info(url, download=False))&#xA;&#xA;            song = data[&#x27;url&#x27;]&#xA;            player = discord.FFmpegPCMAudio(song, **ffmpeg_options)&#xA;        except Exception as err:&#xA;            print(err)&#xA;client.run(token)&#xA;&#xA;

    &#xA;