
Recherche avancée
Médias (91)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
avec chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
sans chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
config chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (69)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette 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. -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP 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 (...)
Sur d’autres sites (6989)
-
discord music bot downloads all videos on a webpage instead of just one
11 janvier 2021, par IdotEXEWhen I try and run this code with any given youtube URL, it will usually say : "Downloading video 1 of 25", and then obviously times out. Downloading the videos as an mp3 file does work, but obviously, I don't need 25 mp3 files whenever I'm only trying to play one video as audio. Anyone got any ideas as to why this happens ?


@bot.command()
async def play(ctx, url : str):
 song_there = os.path.isfile("song.mp3")
 try:
 if not os.path.exists("song.mp3"):
 os.remove("song.mp3")
 except PermissionError:
 await ctx.send("Wait for the current music to end / use stop command")
 return

 voiceChannel = ctx.message.author.voice.channel

 await voiceChannel.connect()
 voice = discord.utils.get(bot.voice_clients, guild=ctx.guild)


 ydl_opts = {
 'format' : 'bestaudio/best',
 'postprocessors': [{
 'key' : 'FFmpegExtractAudio',
 'preferredcodec' : 'mp3',
 'preferredquality' : '192',
 }]
 }

 with youtube_dl.YoutubeDL(ydl_opts) as ydl:
 ydl.download([url])
 for file in os.listdir('./'):
 if file.endswith(".mp3"):
 os.rename(file, "song.mp3")
 voice.play(discord.FFmpegAudio("song.mp3"))

@bot.command()
async def leave(ctx):
 voice = discord.utils.get(bot.voice_clients, guild= ctx.guild)
 if voice.is_connected():
 await voice.disconnect()
 else:
 await ctx.send("The bot is not connected to a voice channel")

@bot.command()
async def pause(ctx):
 voice = discord.utils.get(bot.voice_clients, guild= ctx.guild)
 if voice.is_playing():
 voice.pause()
 else:
 await ctx.send("Currently no audio is playing")

@bot.command()
async def resume(ctx):
 voice = discord.utils.get(bot.voice_clients, guild= ctx.guild)
 if voice.is_paused():
 voice.resume()
 else:
 await ctx.send("The audio is not currently paused")

@bot.command()
async def stop(ctx):
 voice = discord.utils.get(bot.voice_clients, guild=ctx.guild)
 voice.stop()



-
How to play wma file in iphone ?
3 octobre 2011, par MohasinI want to build a radio app in iPhone for which wma streaming is necessary. So if u have any idea please help me.
thanks in advance -
iPhone video PHP upload. Windows to HTML5 tag
21 août 2012, par zeshinAs those of you with an iPhone know, the iCloud uploads all pictures and videos taken on the iPhone to the cloud and, thereafter, your home PC.
I am uploading videos to my web page through a PHP function, which are then displayed as embedded HTML5 videos with the tag. The problem I am running into is that videos taken on the iPhone in portrait are showing up on both my PC and website in landscape view.
Due to the fact that uploads come from multiple sources, I need a sever-side solution to recognize the orientation of the video and rotate it as needed.
Does anyone know of a way to accomplish this without using additional plugins such as ffmpeg ?