
Recherche avancée
Autres articles (66)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
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 (7093)
-
FFMPEG / Melt audio crossfade with cutting last 10 seconds (loop)
27 mai 2019, par user2455079Need to create audio loop with same file to create audio loop for needed time.
The problem is that at the end of music track starts silence, so need to remove last 10 seconds from file and make crossfade for 3 seconds.basically i can cut last 10 seconds
ffmpeg -i music.mp3 -t (time-10) -c copy out.mp3
and than run crossfade :ffmpeg -i out.mp3 -i out.mp3 -i out.mp3 -vn
-filter_complex "[0][1]acrossfade=d=3:c1=tri:c2=tri[a01];
[a01][2]acrossfade=d=3:c1=tri:c2=tri"
out.mp3Is there any way to do this using single command ?
-
Discord.py ffprobe/avprobe and ffmpeg/avconv not found error
20 juillet 2021, par Exd CraftIm hosting this discord bot using android device and the bot is used to play music using youtube_dl module, and when i launch the play music command, i got and error where ffprobe/avprobe and ffmpeg/avconv not found. I know how to solve this problem in pc but im still dont know how to fix this on android. For the test here, im using a music from soundcloud since its more faster to download the music.


Here's the error message on the terminal


Logged in as Test Bot#6599\
[soundcloud] user-785177525/yoasobi-yoru-ni-kakeru-x-l-a-b-remix: Downloading info JSON\
[soundcloud] None: Downloading webpage\
[soundcloud] None: Downloading webpage\
[soundcloud] user-785177525/yoasobi-yoru-ni-kakeru-x-l-a-b-remix: Downloading info JSON\
[soundcloud] 895894084: Downloading JSON metadata\
[soundcloud] 895894084: Downloading JSON metadata\
[soundcloud] 895894084: Downloading JSON metadata\
[download] Destination: YOASOBI - Yoru ni Kakeru [x l a b. Remix]-895894084.mp3\
[download] 100% of 3.60MiB in 00:03\
ERROR: ffprobe/avprobe and ffmpeg/avconv not found. Please install one.



Here's the sample code for the play music command




@client.command()
 async def playsc(ctx, url : str, *, message):
 song_there = os.path.isfile("song.mp3")
 try:
 if song_there:
 os.remove("song.mp3")
 except PermissionError:
 em8 = discord.Embed(title = "Music Is Currently Playing", description = 'Please wait for the current playing music to end or use %leave <:_Paimon6:827074349450133524>.\nMusic provided by {ctx.author.mention} <:_Paimon6:827074349450133524>',color = ctx.author.color)
 await ctx.send(embed = em8)
 return

 voiceChannel = discord.utils.get(ctx.guild.voice_channels, name=message)
 await voiceChannel.connect()
 voice = discord.utils.get(client.voice_clients, guild=ctx.guild)
 em6 = discord.Embed(title = "Downloading Soundcloud Music", description = f'{url}\n\nPlease wait for paimon to setup the music you provide.\nMusic provided by {ctx.author.mention} <:_Paimon6:827074349450133524>',color = ctx.author.color)
 await ctx.send(embed = em6, delete_after = 2)
 await ctx.message.delete()

 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.FFmpegPCMAudio("song.mp3"))
 
 em1 = discord.Embed(title = "Now Listening Soundcloud Music", description = f'{url}\n\nPlease use %leave first to change music.\nMusic provided by {ctx.author.mention} <:_Paimon6:827074349450133524>',color = ctx.author.color)
 await ctx.send(embed = em1)







-
What are those bars in audio visualizer exactly ? Need to make visualizer with help of ffmpeg
3 novembre 2019, par SorooshI’m trying to understand what are those bars in audio visualizers exactly.
I tried to decode a mp3 file using ffmpeg like this :
ffmpeg -i music.mp3 -t 1 -f s8 -acodec pcm_s8 -ar 1 out_1sec_sr1.raw
The output of this command is raw data of first second of the music.mp3 in 1hz samplerate.
But the output file contains just 2 bytes !!! one for the left channel and one for the right channel. I’m pretty sure that it is not possible to visualize a second of a music using only two bytes. I guess each bar in below picture is at least one byte.
Am I missing something in ffmpeg command ? Is pcm_s8 codec appropriate for getting such data to visualize audio at all ?I’m using this library in my android project to use ffmpeg :
https://github.com/brarcher/ffmpeg-android-javaI do not have any problem in drawing those bars and reading raw data file from storage using inputStream.