Recherche avancée

Médias (91)

Autres articles (109)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (12944)

  • Why does this ffmpeg,exe window keep opening when I run my command ?

    5 avril 2020, par John

    I'm making a discord bot and for this aspect of the bot, I wanted it to play music in the voice channel. Here is my code for it :

    



    @client.command(pass_context=True)
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:

        await ctx.send("`There's already a song playing, request your song after!`")
        return

    await ctx.send("`Getting your song ready...`")

    voice = get(client.voice_clients, guild=ctx.guild)

    ydl_opts = {
        'format': 'bestaudio/best',
        'postprocessors': [{
            'key': 'FFmpegExtractAudio',
            'preferredcodec': 'mp3',
            'preferredquality': '192',
        }],
    }

    with youtube_dl.YoutubeDL(ydl_opts) as ydl:
        try:
            print("Downloading audio now\n")
            ydl.download([url])
        except:
            await ctx.send("`Error, that was not a valid url.`")
            return

    for file in os.listdir("./"):
        if file.endswith(".mp3"):
            name = file
            os.rename(file, "song.mp3")

    voice.play(discord.FFmpegPCMAudio("song.mp3"), after=lambda e: print("Song done!"))
    await ctx.send("`Everything went well. Enjoy!`")
    voice.source = discord.PCMVolumeTransformer(voice.source)
    voice.source.volume = 0.07

    nname = name.rsplit("-", 2)
    await ctx.send(f"`Playing: {nname[0]}`")
    print("playing\n")


    



    I got most of it from online sources to be honest. However, whenever someone plays a song, this pops up throughout the song download process. It can be seen here : https://imgur.com/a/iRr0qwj

    



    I don't mind them coming up, but when they do, they override all of my other tabs and pop up so they're the main screen. I'd like for them to pop up in the background, if I can't remove them fully. Can anyone help ? This would be pretty unpractical for me for when multiple use the function, and I can't use my computer anymore (as of now the bot is ran on my computer) without constantly minimizing that screen.

    



    I'm using windows 10, Python 3.7

    


  • Seekbar Issue for FFMPEG ?

    12 décembre 2014, par Ramesh Karanam

    I implemented FFMPEG library for one of my application in android. It is working fine for most of the songs.

    For few songs when i scroll the song duration...then at that time the current song duration not showing exact duration.

    I unable to find out the issue whether it is w.r.t to particular song or different bit rate songs so on ?....

    Here my code for Seekar progress..

    int ret = av_seek_frame(fmt_ctx, seekStreamIndex, seekTime,flags);

    Please suggest me a better solution.

  • FFMPEG Seekbar issue in android ?

    31 décembre 2014, par challa

    I implemented FFMPEG library for one of my application in android. It is working fine for most of the songs. For few songs when i scroll the song duration...then at that time the current song duration not showing exact duration. I unable to find out the issue whether it is w.r.t to particular song or different bit rate songs so on ?.... Here my code for Seekar progress..

    int ret = av_seek_frame(fmt_ctx, seekStreamIndex, seekTime,flags);  

    Please suggest me a better solution.