Recherche avancée

Médias (0)

Mot : - Tags -/protocoles

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (73)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Publier sur MédiaSpip

    13 juin 2013

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

Sur d’autres sites (5213)

  • ffmpeg use amix and adelay to play ad over song

    28 juin 2020, par snowkiterdude

    I 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 Modak

    I 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 ho

    I'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