
Recherche avancée
Autres articles (71)
-
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 (...) -
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
Sur d’autres sites (11154)
-
ffmpeg use amix and adelay to play ad over song
28 juin 2020, par snowkiterdudeI have two mp3 files, one long and one short(a song and an ad). I need the ad to play over the song starting 15 seconds into the song. I also need the volume of the song to fade out/in slightly before and after the ad. I have tried using amix with adelay but just can't get it right.



here is something close but broken.



ffmpeg -i song.mp3 -i ad.mp3 -filter_complex "amix=inputs=2:duration=first:dropout_transition=2;adelay=0|15000" output.mp3




How can I get the ad to mix with the song properly ?


-
Upload and Play Any Video in web browser using php CI
14 août 2017, par Roni ModakI have tried to upload any video and convert the video file to mp4 at the time of upload using ffmpeg. The shell command I tried :
$input = base_url().'video_upload/'.$file_name;
$output = video_upload/video_'.$video_data['username'].'_'.$dtd.'_'.$random_number.'.mp4';
$convt = shell_exec('ffmpeg -i '.$input.' '.$output);But i am unable to play those converted video in the web browser.
-
discord.py bot dosen't play music
29 août 2022, par bon hoI'm making music bot with discord.py. but bot doesn't play music. code is alright but music played 0.000000001 seconds and terminated.


my code :


@tree.command(name="play", description="play music")
async def playmusic(interaction:Interaction,url_title:str,playfirst:bool=False):
 await interaction.response.send_message("I'm looking for music!!")
 guild=str(interaction.guild.id)
 try:
 queue[guild]
 except KeyError:
 queue[guild]=[]
 if interaction.user.voice is None:
 await interaction.edit_original_response(content="you must join any voice channel")
 else:
 voice_client: discord.VoiceClient = discord.utils.get(client.voice_clients, guild=interaction.guild)
 if voice_client == None:
 await interaction.user.voice.channel.connect()
 voice_client: discord.VoiceClient = discord.utils.get(client.voice_clients, guild=interaction.guild)
 player = await YTDLSource.from_url(url_title, loop=None)
 if playfirst and len(queue[guild])>1:
 queue[guild].insert(1,player)
 else:
 queue[guild].append(player)
 if not voice_client.is_playing():
 voice_client.play(player,after=nextsong(interaction))
 await interaction.edit_original_response(content=f"{player.title} playing!!")
 else:
 await interaction.edit_original_response(content=f"{player.title} enqueued!")
 await asyncio.sleep(7)
 await interaction.delete_original_response()



nextsong :


def nextsong(interaction:Interaction):
 guild=str(interaction.guild.id)
 print(f"end : {guild}")
 voice_client: discord.VoiceClient = discord.utils.get(client.voice_clients, guild=interaction.guild)
 if len(queue[guild])>0:
 queue[guild].pop(0)
 if not voice_client is None:
 voice_client.stop()
 if not len(queue[guild])==0:
 voice_client: discord.VoiceClient = discord.utils.get(client.voice_clients, guild=interaction.guild)
 voice_client.play(queue[guild][0],after=nextsong(interaction))



output :


end : 1012635532829921291
[INFO ] discord.player: ffmpeg process 12 successfully terminated with return code of -11.



what should I do ?


version :
discord.py 2.0.0 python 3.10.6