
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (107)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras. -
Possibilité de déploiement en ferme
12 avril 2011, parMediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)
Sur d’autres sites (10845)
-
How to merge multiple videos end-to-end with yt-dlp or ffmpeg [closed]
12 juillet 2024, par PenguWe want to download a bunch of small sections of videos then stitch them all together into one big video. How would we go about this ? Is there a way to bulk-stitch together videos from a particular folder ? We're planning to have thousands of clips, so the more automated it can be, the better.


We are already using yt-dlp and ffmpeg for downloading the sections, so we would prefer if the solution was using those as well.


The closest thing we could find was this https://github.com/yt-dlp/yt-dlp/issues/6595 which, when we try it, runs fine but the resulting clip is the same length as the parts used and doesn't seem to join them together.


-
Error opening input files : Invalid data found when processing input
27 mars 2024, par Master's TimeI am creating disnake music bot. The error is :


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



Here is part of my code :


import disnake
import asyncio
from yt_dlp import YoutubeDL
import ffmpeg


YTDL_OPTIONS = {'format': 'bestaudio', 'noplaylist': 'False', 'simulate':'True', 'key':"FFmpegExtractAudio"}
FFMPEG_OPTIONS = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5', 'options': '-vn'}


async def play_music(inter):
 global YDTL_OPTIONS, FFMPEG_OPTIONS
 print(tm.now().strftime("%H:%M:%S"),"play_music begin")
 id = int(inter.guild.id)
 with YoutubeDL(YTDL_OPTIONS) as ydl:
 info = ydl.extract_info(url, download=False)

 song = {
 'link': 'https://www.youtube.com/watch?v=' + url,
 'thumbnail': 'https://i.ytimg.com/vi/' + url + '/hqdefault.jpg?sqp=-oaymwEcCOADEI4CSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLD5uL4xKN-IUfez6KIW_j5y70mlig',
 'source': info['formats'][0]['url'],
 'title': info['title']
 } self.vc[id].play(disnake.FFmpegPCMAudio(executable=r"C:\\ffmpeg\\ffmpeg\\bin\\ffmpeg.exe",source=song["source"], **FFMPEG_OPTIONS))
 print(tm.now().strftime("%H:%M:%S"),"play_music end")



I tried to write
source = song['source']
instead ofsource = song['link']
, but it didn't seem helpful.

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




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 :


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


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


Any help would be well appreciated.
Thank you.