
Recherche avancée
Autres articles (102)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 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 (...) -
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...) -
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 (...)
Sur d’autres sites (11664)
-
Uncomplete path recognition (FFmpeg) [duplicate]
23 septembre 2022, par Francesco BattistiThe script should download an entire playlist (only one song for this test) from YT and convert all the downloaded MP4 to MP3 :


from distutils import extension
from pytube import Playlist
import os

link = input("Enter YouTube Playlist URL: ")

yt_playlist = Playlist(link)

for video in yt_playlist.videos:
 downloaded_file = video.streams.filter(only_audio=True).first().download(r"C:\Users\Francesco\Desktop\Music\JC's\+++NEW+++")
 file, extension = os.path.splitext(downloaded_file)
 # Convert video into .mp3 file
 os.system('ffmpeg -i {file}{ext} {file}.mp3'.format(file=file, ext=extension))



Now, when I put the playlist's url in input, the script downloads the song but it can't convert it because :


C:\Users\Francesco\Desktop\Music\JC's\+++NEW+++\Ariete: No such file or directory



but the right path is :


C:\Users\Francesco\Desktop\Music\JC's\+++NEW+++\Ariete - LULTIMA NOTTE Testo Lyrics



so it stops when is there a space in directory name...


-
FFMPEG unable to find a suitable option format for 'reconnect' error
14 août 2021, par Fayeze Salihimport discord
from discord.ext import commands
from discord.ext.commands.core import command
import youtube_dl

class Music(commands.Cog):
 def __init__(self, client):
 self.client = client
 
 @commands.command()
 async def play(self, ctx, url):
 ctx.voice_client.stop()
 FFMPEG_OPTIONS = {'before_options': 'reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5', 'options': '-vn'}
 YDL_OPTIONS = {'format': 'bestaudio'}
 vc = ctx.voice_client

 with youtube_dl.YoutubeDL(YDL_OPTIONS) as ydl:
 info = ydl.extract_info(url, download=False)
 url2 = info['formats'][0]['url']
 source = await discord.FFmpegOpusAudio.from_probe(url2, **FFMPEG_OPTIONS)
 vc.play(source)

def setup(client):
 client.add_cog(music(client))



This code for my music bot returns the error,




[NULL @ 0000018dc5d76e40] Unable to find a suitable output format for 'reconnect'
reconnect : Invalid argument.




Why ? I have tried making sure that I am using hyphens but that hasn't fixed the issue.


-
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.