Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (75)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

Sur d’autres sites (10319)

  • FFMPEG image + music = video

    24 septembre 2017, par Nikita Slastikhin

    Just trying todo video for youtube from image (1080p .png) + music (320Kb mp3).

        ffmpeg -loop 1 -i image.png -i music.mp3 -c:a copy -c:v libx264 -crf 0 -preset veryslow -shortest output.mp4
    

    But converting is to slowly.
    Any ideas, how it make optimize ?

    E:_TEST>ffmpeg -loop 1 -i image0.png -i music0.mp3 -c:a aac -c:v libx264 -crf 0 -preset veryfast -shortest video0.mp4
       ffmpeg version N-87306-g6743351 Copyright (c) 2000-2017 the FFmpeg developers
       built with gcc 7.2.0 (GCC)
       configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib
       libavutil            55. 75.100 / 55. 75.100
       libavcodec         57.106.101 / 57.106.101
       libavformat        57. 82.100 / 57. 82.100
       libavdevice        57.    8.101 / 57.    8.101
       libavfilter         6.105.100 /    6.105.100
       libswscale            4.    7.103 /    4.    7.103
       libswresample     2.    8.100 /    2.    8.100
       libpostproc        54.    6.100 / 54.    6.100
       Input #0, png_pipe, from 'image0.png':
       Duration: N/A, bitrate: N/A
           Stream #0:0: Video: png, rgb24(pc), 1920x1080, 25 fps, 25 tbr, 25 tbn, 25 tbc
       Input #1, mp3, from 'music0.mp3':
       Metadata:
           encoder                 : Lavf57.56.101
       Duration: 01:00:33.06, start: 0.025057, bitrate: 128 kb/s
           Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
           Metadata:
               encoder                 : Lavc57.64
       Stream mapping:
       Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
       Stream #1:0 -> #0:1 (mp3 (native) -> aac (native))
       Press [q] to stop, [?] for help
       [libx264 @ 0000000002d3f320] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX XOP FMA3 BMI1
       [libx264 @ 0000000002d3f320] profile High 4:4:4 Predictive, level 4.0, 4:4:4 8-bit
       [libx264 @ 0000000002d3f320] 264 - core 152 r2851 ba24899 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - <a href="http://www.videolan.org/x264.html" rel="nofollow noreferrer">http://www.videolan.org/x264.html</a> - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=2 psy=0 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=0 chroma_qp_offset=0 threads=12 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=0
       Output #0, mp4, to 'video0.mp4':
       Metadata:
           encoder                 : Lavf57.82.100
           Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv444p(progressive), 1920x1080, q=-1--1, 25 fps, 12800 tbn, 25 tbc
           Metadata:
               encoder                 : Lavc57.106.101 libx264
           Side data:
               cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
           Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s
           Metadata:
               encoder                 : Lavc57.106.101 aac
       frame=    107 fps= 40 q=-1.0 Lsize=         778kB time=00:00:04.24 bitrate=1503.5kbits/s speed=1.57x
  • Discord.py Music Bot problem with FFmpeg on heroku

    16 mai 2020, par Phantom_7331

    I'm coding my first music bot for discord and successfully tested it on the localhost. After that, I moved it on Heroku and installed FFmpeg buildpack for it. But for some reason, it doesn't work.&#xA;Here is proof that I installed FFmpeg buildpack on Heroku : Screen

    &#xA;&#xA;

    Here is my code (that works well on localhost) :

    &#xA;&#xA;

    youtube_dl.utils.bug_reports_message = lambda: &#x27;&#x27;&#xA;&#xA;ytdl_format_options = {&#xA;&#x27;format&#x27;: &#x27;bestaudio/best&#x27;,&#xA;&#x27;outtmpl&#x27;: &#x27;%(extractor)s-%(id)s-%(title)s.%(ext)s&#x27;,&#xA;&#x27;restrictfilenames&#x27;: True,&#xA;&#x27;noplaylist&#x27;: True,&#xA;&#x27;nocheckcertificate&#x27;: True,&#xA;&#x27;ignoreerrors&#x27;: False,&#xA;&#x27;logtostderr&#x27;: False,&#xA;&#x27;quiet&#x27;: True,&#xA;&#x27;no_warnings&#x27;: True,&#xA;&#x27;default_search&#x27;: &#x27;auto&#x27;,&#xA;&#x27;source_address&#x27;: &#x27;0.0.0.0&#x27;&#xA;}&#xA;&#xA;ffmpeg_options = {&#xA;    &#x27;options&#x27;: &#x27;-vn&#x27;&#xA;}&#xA;&#xA;ytdl = youtube_dl.YoutubeDL(ytdl_format_options)&#xA;&#xA;class YTDLSource(discord.PCMVolumeTransformer):&#xA;def __init__(self, source, *, data, volume=0.5):&#xA;    super().__init__(source, volume)&#xA;&#xA;    self.data = data&#xA;&#xA;    self.title = data.get(&#x27;title&#x27;)&#xA;    self.url = data.get(&#x27;url&#x27;)&#xA;&#xA;@classmethod&#xA;async def from_url(cls, url, *, loop=None, stream=False):&#xA;    loop = loop or asyncio.get_event_loop()&#xA;    data = await loop.run_in_executor(None, lambda: ytdl.extract_info(url, download=not stream))&#xA;&#xA;    if &#x27;entries&#x27; in data:&#xA;        data = data[&#x27;entries&#x27;][0]&#xA;&#xA;    filename = data[&#x27;url&#x27;] if stream else ytdl.prepare_filename(data)&#xA;    return cls(discord.FFmpegPCMAudio(filename, **ffmpeg_options), data=data)&#xA;&#xA;@client.command()&#xA;async def join(ctx):&#xA;channel = ctx.message.author.voice.channel&#xA;if ctx.voice_client is not None:&#xA;    return await ctx.voice_client.move_to(channel)&#xA;await channel.connect()&#xA;&#xA;@client.command()&#xA;async def play(ctx, *, URL):&#xA;    async with ctx.typing():&#xA;        player = await YTDLSource.from_url(url)&#xA;        ctx.voice_client.play(player, after=lambda e: print(&#x27;Player error: %s&#x27; % e) if e else None)&#xA;    await ctx.send(&#x27;Now playing: {}&#x27;.format(player.title))&#xA;

    &#xA;

  • Manifest error pops up when trying to download certain videos for discord.py music bot

    30 novembre 2020, par bork

    I'm trying to make a discord music bot. I'm using youtube-dl to retrieve the info and ffmpeg to play the audio out. My bot has no problems downloading videos and everything is working fine. But when I tried downloading certain videos, this error popped up :

    &#xA;

    [dash @ 0x7fe45a801200] Manifest too large: 65055&#xA;https://manifest.googlevideo.com/api/manifest/dash/expire/1606336104/ei/CGq-X4G6Htauz7sPrZuCsA8/ip/14.192.212.39/id/64a943d43b8f53eb/source/youtube/requiressl/yes/playback_host/r5---sn-h5mpn-30ae.googlevideo.com/mh/Go/mm/31%2C29/mn/sn-h5mpn-30ae%2Csn-30a7rn7l/ms/au%2Crdu/mv/m/mvi/5/pl/24/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/533750/vprv/1/mt/1606314038/fvip/5/keepalive/yes/beids/23927369/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Chfr%2Cas%2Cvprv%2Citag/sig/AOq0QJ8wRQIhAOn6Br0QsuXc-3unfhYdzXVXcydzVWioIQlKvv2U4i3OAiB6ApoiqFoPvE3YKYGPbRiId_bHQYO8zsawGGPMidYGAA%3D%3D/lsparams/playback_host%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps/lsig/AG3C_xAwRQIhANmxfRNBI4wSJo6trsKkq8GinQ-ADMxgHRmelBwM-GEAAiAafey9YRrZz1h1S6PzV3u0S6IsZUKscGrrGP9Pofv2uQ%3D%3D: Invalid data found when processing input&#xA;

    &#xA;

    After trying to download other videos, which have no problem at all, I found out that the videos showing these errors have an extra step that downloads MPD manifest. I would try to download videos that are way larger and it would work, but it's just these certain videos, with the duration of about 7-10 minutes, that would have these errors. I'm really lost.

    &#xA;

    This is my code for playing the videos in the voice channels :

    &#xA;

    voice = get(client.voice_clients, guild = ctx.guild)&#xA;with YoutubeDL(ydl_opts) as ydl:&#xA;                info = ydl.extract_info(url[playlist], download = False)&#xA;&#xA;URL = info[&#x27;formats&#x27;][0][&#x27;url&#x27;]&#xA;voice.play(FFmpegPCMAudio(URL, **FFMPEG_OPTIONS))&#xA;

    &#xA;