Recherche avancée

Médias (0)

Mot : - Tags -/xml-rpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (98)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (11152)

  • FFMpeg command output shows 'green pixelated' video

    18 janvier 2021, par DonX

    I am trying to take a single image and add audio resulting in a video playing the entire song with that single image ; much like you see for YouTube videos for songs. The command I am using is from this link : https://askubuntu.com/questions/868283/image-audio-mp4-how-to-make-video-smaller

    


    This is the command :

    


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


    


    It works as intended for having the video file be a small size, and the song plays as well, but depending on the image I used, some of the images appear 'Green' when playing the video.

    


    However though, this command works for any image used :

    


    ffmpeg -loop 1 -framerate 1 -i image.jpg -i music.mp3 -c copy -shortest output.mp4


    


    But the result is a very big file whereas I would like it to be smaller. Any help would be greatly appreciated ! Thank you !

    


    FFMpeg version : 4.3.1

    


  • Issues with MediaSourceExtension

    4 janvier 2023, par engine32

    I want to livestream audio only using MSE. I would like to send data/files via websockets, therefore no HLS nor DASH.

    


    But until I implement websockets, I thought to give it a try by statically loading the song in an array.

    


    Here is my code so far :

    


    <audio controls="controls"></audio>&#xA;..&#xA;<code class="echappe-js">&lt;script&gt;&amp;#xA;  const ms = new MediaSource();&amp;#xA;  var ae = document.getElementById(&quot;ap&quot;);&amp;#xA;  ae.src = URL.createObjectURL(ms);&amp;#xA;  ms.addEventListener(&amp;#x27;sourceopen&amp;#x27;, msOpen);&amp;#xA;  &amp;#xA;function msOpen(e) {&amp;#xA;  URL.revokeObjectURL(ae.src);&amp;#xA;  var mse = e.target;&amp;#xA;  const sourceBuffer = mse.addSourceBuffer(&amp;#x27;audio/mp4&amp;#x27;);&amp;#xA;  var u8A0 = new Uint8Array([0x00, 0x00, 0x00, 0x1C, 0x66, ...]);&amp;#xA;  sourceBuffer.appendBuffer(u8A0.buffer);&amp;#xA;  &amp;#xA;  sourceBuffer.addEventListener(&amp;#x27;updateend&amp;#x27;, function() {&amp;#xA;    if (!sourceBuffer.updating &amp;amp;&amp;amp; mse.readyState === &amp;#x27;open&amp;#x27;) {&amp;#xA;      mse.endOfStream();&amp;#xA;      console.log(&amp;#x27;Audio is ready to play!&amp;#x27;);&amp;#xA;    }&amp;#xA;  });&amp;#xA;}  &amp;#xA;&lt;/script&gt;&#xA;&#xA;

    &#xA;

    The result is that there are no errors in the debug window and the audio element correctly shows the duration of the song, about two min and half. However, once I click Play, the duration shows 0 (zero) and the song is not played. If I try to pause and play again, the debug window says :

    &#xA;

    *"Uncaught (in promise) DOMException : The fetching process for the media resource was aborted by the user agent at the user's request".&#xA;*&#xA;This is the ffmpeg command I used to prepare the file :

    &#xA;

    ffmpeg -i m.wav -c:a aac -b:a 32k -f mp4 output.mp4

    &#xA;

    Any help would be well appreciated.&#xA;Thank you.

    &#xA;

  • Error opening input files : Invalid data found when processing input

    27 mars 2024, par Master's Time

    I am creating disnake music bot. The error is :

    &#xA;

    [in#0 @ 00000233f8d71500] Error opening input: Invalid data found when processing input&#xA;Error opening input file https://www.youtube.com/watch?v=duDUqBtxwXk.&#xA;Error opening input files: Invalid data found when processing input&#xA;

    &#xA;

    Here is part of my code :

    &#xA;

    import disnake&#xA;import asyncio&#xA;from yt_dlp import YoutubeDL&#xA;import ffmpeg&#xA;&#xA;&#xA;YTDL_OPTIONS = {&#x27;format&#x27;: &#x27;bestaudio&#x27;, &#x27;noplaylist&#x27;: &#x27;False&#x27;, &#x27;simulate&#x27;:&#x27;True&#x27;, &#x27;key&#x27;:"FFmpegExtractAudio"}&#xA;FFMPEG_OPTIONS = {&#x27;before_options&#x27;: &#x27;-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5&#x27;, &#x27;options&#x27;: &#x27;-vn&#x27;}&#xA;&#xA;&#xA;async def play_music(inter):&#xA;        global YDTL_OPTIONS, FFMPEG_OPTIONS&#xA;    print(tm.now().strftime("%H:%M:%S"),"play_music begin")&#xA;    id = int(inter.guild.id)&#xA;    with YoutubeDL(YTDL_OPTIONS) as ydl:&#xA;        info = ydl.extract_info(url, download=False)&#xA;&#xA;    song = {&#xA;            &#x27;link&#x27;: &#x27;https://www.youtube.com/watch?v=&#x27; &#x2B; url,&#xA;            &#x27;thumbnail&#x27;: &#x27;https://i.ytimg.com/vi/&#x27; &#x2B; url &#x2B; &#x27;/hqdefault.jpg?sqp=-oaymwEcCOADEI4CSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&amp;rs=AOn4CLD5uL4xKN-IUfez6KIW_j5y70mlig&#x27;,&#xA;            &#x27;source&#x27;: info[&#x27;formats&#x27;][0][&#x27;url&#x27;],&#xA;            &#x27;title&#x27;: info[&#x27;title&#x27;]&#xA;        }   self.vc[id].play(disnake.FFmpegPCMAudio(executable=r"C:\\ffmpeg\\ffmpeg\\bin\\ffmpeg.exe",source=song["source"], **FFMPEG_OPTIONS))&#xA;    print(tm.now().strftime("%H:%M:%S"),"play_music end")&#xA;

    &#xA;

    I tried to write source = song[&#x27;source&#x27;] instead of source = song[&#x27;link&#x27;], but it didn't seem helpful.

    &#xA;