Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (69)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (6444)

  • My code accidently deleted my 'song.mp3' file in Discord.py music bot

    2 avril 2021, par Alkaria

    I was coding my discord bot and i was trying to make the bot not try to connect twice. Like, if it's already connected any user sends another ' !play' command, i don't want it to error. But that's not my problem. I or my code accidently deleted my 'song.mp3' file. How do i get it back. I closed the pycharm so i can't do 'CRTL + Z'.

    


    @client.command()

    


    async def play(ctx, url : str) :

    


    song_there = os.path.isfile("song.mp3")
try:
    if song_there:
        os.remove("song.mp3")
except PermissionError:
    await ctx.send("Şimdi Çalan şarkının bitmesini bekleyin. Yada '!stop' komutunu kullanın.")
    return
# connects the voice channel
connected = ctx.author.voice
audio = discord.FFmpegPCMAudio("song.mp3")

voiceChannel = discord.utils.get(ctx.guild.voice_channels, name='music')
if not discord.client.VoiceClient == None:  # None being the default value if the bot isnt in a channel (which is why the is_connected() is returning errors)
    await voiceChannel.connect()
    await ctx.send(f"Joined **{voiceChannel}**")
    discord.client.VoiceClient.play()
else:
    await ctx.send("I'm already connected!")



audio = discord.FFmpegPCMAudio("song.mp3")

# Dowloads the video from the link given

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")


    


  • ffmpeg overlay voice on a song with fade in and fade out

    22 octobre 2016, par Mehmed

    I have a fade in and fade out problem and used below code, but not completely resolve.
    I have a voice as voice.mp3 name with voice_length seconds length and a song that biggest from voice.
    I want mix with song from start_mix_time time.
    When voice start volume should be 0.2 and when voice end, volume return to 1.0.

    For example, if i have a voice by 10 s length and a song, song start playing and at position 3 s, starting to fade out to vol 0.2 and then, at 5 s, voice start over song and after 10 seconds, song fade in to vol 1 and play to end.

    Here is a sample :

    ffmpeg -i song1.mp3 -i voice2.mp3  -filter_complex "[0]asplit[a][b]; \
           [a]atrim=duration=voice_length,volume='1-max(0.25*(t-start_mix_time-2),0)':eval=frame[pre]; \
           [b]atrim=start=start_mix_time,asetpts=PTS-STARTPTS[song]; [song][1]amix=inputs=2:duration=first:dropout_transition=2[post]; \
           [pre][post]concat=n=2:v=0:a=1[mixed]" \
           -map "[mixed]" output.mp3

    @Mulvya

  • ffmpeg stucks after each song

    11 juin 2017, par Halfbax

    When I start to stream to youtube, it works fine. Until the first song is over. After it the stream is in a loop of the last 20 seconds. I dont know why. The next song wont ever streamed.

    The audio stream is lag-free. <- tested

    case $1 in
                   start)
                           # VLC audio stream
                           su vlc -c "screen -dmS $VLC_PID_NAME cvlc --random /home/music/chill/*.mp3 --sout '#transcode{vcodec=none,acodec=mp3,ab=128}:standard{access=http,mux=raw,dst=localhost:8080/live.ogg}'"

                           sleep 2
                           # FFMPEG
                           # Static image + vlc audio stream
                           screen -dmS $FFMPEG_PID_NAME ffmpeg -loop 1 -framerate 2 -i '/home/forest.jpg' -i 'http://localhost:8080/live.ogg' -s "$INRES" -r "$FPS" -f alsa -ac 2 -vcodec libx264 -s "$OUTRES" -g 2 -acodec libmp3lame -b:a 128k -b:v 200k -ar 44100 -threads 0 -preset:v "$QUAL" -f flv "rtmp://a.rtmp.youtube.com/live2/$STREAM_KEY"
                           ;;