
Recherche avancée
Autres articles (31)
-
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 (...) -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...)
Sur d’autres sites (3045)
-
My heroku music bot works fine if i launch it through my pc yet when i run it through heroku it doesn't work
6 mars 2020, par Flii TVI have ffmpeg, youtube-dl installed, i have every requirement installed, it downloads the song renames it but then nothing happens !
@client.command()
async def play(ctx, *url: str):
song_there = os.path.isfile("song.mp3")
try:
if song_there:
os.remove("song.mp3")
print("Removed old song file")
except PermissionError:
print("Trying to delete song file, but it's being played")
await ctx.send("ERROR: Music playing")
return
await ctx.send("Getting everything ready now")
voice = get(client.voice_clients, guild=ctx.guild)
ydl_opts = {
'format': 'bestaudio/best',
'quiet': True,
'outtmpl':"./song.mp3",
'postprocessors': [{
'key': 'FFmpegExtractAudio',
'preferredcodec': 'mp3',
'preferredquality': '192',
}],
}
song_search = " ".join(url)
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
print("Downloading audio now\n")
ydl.download([f"ytsearch1:{song_search}"])
for file in os.listdir("./"):
if file.endswith(".mp3"):
name = file
print(f"Renamed File: {file}\n")
os.rename(file, "song.mp3")
voice.play(discord.FFmpegPCMAudio("song.mp3"), after=lambda e: print(f"{name} has finished playing"))
voice.source = discord.PCMVolumeTransformer(voice.source)
voice.source.volume = 0.10
nname = name.rsplit("-", 2)
await ctx.send(f"Currently playing: {nname}")
print("playing\n") -
FFMPEG Streaming USB Webcam Video with Music Playlist
3 février 2020, par 556duckvaderHello I am setting up streaming box that will be using a USB webcam as my video source and I am wanting to add in background audio to the live streams. I am wanting to do this by specifying a playlist and have it play through the audio files and then loop back once the playlist is finished. I have the ffmpeg command that allows me to stream the USB webcam and I can get one audio file to play but I can’t get seem to figure out how to get the playlist to work. Any help would be great. Below is what I have that is working.
ffmpeg -f v4l2 -s 1280x720 -i /dev/video0 -i /home/pi/twitchMusic/ES_Arrows-MarVei.mp3 -c:a copy -c:v libx264 -r 24 -rtbufsize 1500k -preset ultrafast -crf 23 -force_key_frames 'expr:gte(t,n_forced*2)' -minrate 2200k -maxrate 2200k -pix_fmt yuv420p -b:v 2500k -bufsize 2200k -f flv rtmp://live.twitch.tv/app/TWITCH_KEY
-
How to modify music pitch in audio of video file and still sound natural
9 janvier 2020, par Keith BennettI have some karaoke .mp4 video files (legally obtained) for Thai songs, and want to convert the pitch downward to fit my singing range. I’ve gotten most of the way there thanks to https://superuser.com/questions/292833/how-to-change-audio-frequency/1076762#1076762
using a command line like this :ffmpeg -i in.mp4 -af 'asetrate=35280.0,atempo=1.25' out.mp4
...but the instruments and human singing voices don’t sound natural at the modified pitch.
Is there a better way to change the pitch ? I know some commercial products can do this.
By the way, I wrote a Ruby script to simplify this ffmpeg call ; it’s at https://gist.github.com/keithrbennett/9ba7043792bfb2fcc92d615076a8413f. It enables you to specify a single factor, and modifies both pitch and tempo accordingly.