Recherche avancée

Médias (1)

Mot : - Tags -/portrait

Autres articles (64)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • 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" (...)

Sur d’autres sites (10719)

  • Play ogg file using ffplay / ffmpeg on .NET

    12 juillet 2021, par Rchrd

    I'm trying to play an Ogg file in VB.NET using ffplay.exe but I don't know exactly how.
This is my code :

    


    Private Sub ButtonIR_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonIR.Click
    If IsNotNothing(TextBoxSource.text) Then
        TextBoxDETALLES.Clear()
        Try
            Dim CONVERSOR As New Process

            CONVERSOR.StartInfo.FileName = "C:\ffplay.exe"
            CONVERSOR.StartInfo.Arguments = TextBoxSource.Text 
            CONVERSOR.StartInfo.UseShellExecute = False 
            CONVERSOR.StartInfo.RedirectStandardOutput = True 
            CONVERSOR.StartInfo.RedirectStandardError = True 
            CONVERSOR.StartInfo.CreateNoWindow = True 

            CONVERSOR.Start() 

            While Not CONVERSOR.StandardError.EndOfStream
                TextBoxDETALLES.AppendText(CONVERSOR.StandardError.ReadLine & vbCrLf) 

                Application.DoEvents()
            End While

            MsgBox("HECHO") 
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
    Else
        MsgBox("Error")
    End If
End Sub


    


    I'm not trying to convert it, I'm trying to play it.

    


  • Discord.py music bot doesn't play next song in queue

    10 mai 2019, par Lewis H

    This is my code for the bot I’m trying to create, it plays the music fine.

    ytdl_options = {
       'format': 'bestaudio/best',
       'restrictfilenames': True,
       'noplaylist': True,
       'nocheckcertificate': True,
       'quiet':True,
       'ignoreerrors': False,
       'logtostderr': False,
       'no_warnings': True,
       'default_search': 'auto',
       'source_address': '0.0.0.0' # using ipv4 since ipv6 addresses causes issues sometimes
       }


           # ffmpeg options
    ffmpeg_options= {
       'options': '-vn'
       }



    @bot.command()
    async def play(ctx, url:str = None):
       queue = {}

       channel = ctx.author.voice.channel    
       if ctx.voice_client is not None:  
           await ctx.voice_client.move_to(channel)
       elif ctx.author.voice and ctx.author.voice.channel:      
           await channel.connect()

       if not url:
           await ctx.send("Try adding a URL. e.g. !play https://youtube.com/watch?v=XXXXXXXXX")

       if ctx.voice_client is not None:
           vc = ctx.voice_client #vc = voice client, retrieving it
           ytdl = youtube_dl.YoutubeDL(ytdl_options)


           loop = asyncio.get_event_loop()
           data = await loop.run_in_executor(None, lambda: ytdl.extract_info(url))

           if 'entries' in data:
               data = data['entries'][0]
           svr_id = ctx.guild.id
           if svr_id in queue:
               queue[svr_id].append(data)

           else:
               queue[svr_id] = [data]
           await ctx.send(data.get('title') + " added to queue")

           source = ytdl.prepare_filename(queue[svr_id][0])
           def pop_queue():
               if queue[svr_id] != []:
                   queue[svr_id].pop(0)
                   data = queue[svr_id][0]
               else:
                   vc.stop()

           if not vc.is_playing():
               vc.play(discord.FFmpegPCMAudio(source, **ffmpeg_options), after=lambda: pop_queue())

    The next song downloads and queues it fine, but once the first song finishes, it doesn’t play the next one. I can’t figure out how to make it play after the first song has commenced. I have the after= set to remove the top item of the queue, but how do I get it to play again ? Thanks

  • How to play random part of mp4 file with vlc or something else ?

    13 septembre 2011, par pprzemek

    I have random part (99,9% somewhere in the middle) of the mp4 file. Problem is that it's not in any container or anything just a binary piece of the file in random offset and send to me... it will keep growing but it'll take a while and I need to play content right away.

    I can get all necessary metadata information for that file from other source before I even start receiving those binary data, but :

    1. How to do this ? I mean what headers do I need and how to get them ?
      and
    2. How to later tell vlc (or maybe some other player) that this moov atom (or some other data) that it should use for this part of the file and start playing it ?