Recherche avancée

Médias (91)

Autres articles (65)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains 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 ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

Sur d’autres sites (6533)

  • lavf/dashenc : pass standards compliance value to the internal context

    27 avril 2018, par Jan Ekström
    lavf/dashenc : pass standards compliance value to the internal context
    

    Enables one to test possibly nonstandard formats such as Opus or
    FLAC in ISOBMFF, among other things.

    This becomes much more useful if output segment format becomes an
    option, or if the WebM segment feature gets removed.

    • [DH] libavformat/dashenc.c
  • Invalid data found when processing input when using Streaming Discord Bot (python)

    4 mai 2022, par DimKewl

    After refactoring and working on all possible solutions I could find on google
I always get the following error :

    


    Invalid data found when processing input

    


    My code snippet :

    


     FFMPEG_OPTIONS = {
    "before_options": "-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5",
    "options": "-vn -sn -dn"
}
@commands.command()
async def radio(self,ctx,url):
    await self.joinLogic(ctx)
    await self.playStreamOpus(ctx,url)

async def joinLogic(self, ctx):
    if ctx.author.voice is None:
        await ctx.send("Please join a voice channel!")
    else:
        voice_channel = ctx.author.voice.channel
        if ctx.voice_client is None:
            await voice_channel.connect()

async def playStreamOpus(self, ctx, url):
    source = await discord.FFmpegOpusAudio.from_probe(url, **self.FFMPEG_OPTIONS)
    ctx.voice_client.play(source)


    


    What have I already tried :

    


      

    • Re-install all dependencies on pip.
    • 


    • A variety of streaming links that were working in the past for the same code.
    • 


    • Tried the PCM instead of Opus.
    • 


    • Different streaming URLs.
    • 


    • More options in FFMPEG_Options to explicit that I need only audio.
    • 


    • Made sure that my bot is joined in my channel and can reach other places in my code.
    • 


    


    Streaming (sample) links I tried (worked before) :

    


    


    Full FFmpeg options from Debugger console :
['ffmpeg', '-reconnect', '1', '-reconnect_streamed', '1', '-reconnect_delay_max', '5', '-i', 'http://www.e-radio.gr/Radio-Polis-994-Larisa-i54/live', '-map_metadata', '-1', '-f', 'opus', '-c:a', 'libopus', '-ar', '48000', '-ac', '2', '-b:a', 'Nonek', '-loglevel', 'warning', '-vn', 'pipe:1']

    


    Youtube links work just fine in a similar method in the class.

    


    async def playYouTube(self,ctx,url): 
   await self.joinLogic(ctx) 
   YDL_OPTIONS = { "format": "bestaudio" }
   voiceClient = ctx.voice_client 

   with youtube_dl.YoutubeDL(YDL_OPTIONS) as youTube: 
       info = youTube.extract_info(url, download=False) 
       formattedUrl = info['formats'][0]['url'] 
       source = await discord.FFmpegOpusAudio.from_probe(formattedUrl, **self.FFMPEG_OPTIONS)
       voiceClient.play(source) 


    


    So most likely the problem lies with the URLs, which still boggles me cause they were working before ?

    


    Any insights will be highly appreciated !

    


  • Executing FFmpeg recording using in-line SDP

    3 décembre 2020, par Sarvesh Patil

    I'm trying to record audio on a webrtc server in NodeJS using FFmpeg.

    


    I am able to record the audio if I explicitly create an input.sdp file and use it with the "-i" flag of FFmpeg.

    


    My question is : How to create a string in the code to dynamically change port numbers for recording different streams at the same time ?

    


    I tried doing this :

    


        const sdpInfo = `data:application/sdp;charset=UTF-8,v=0\no=- 0 0 IN IP4 ${ipAddr}\ns=-\nc=IN IP4 ${ipAddr}\nt=0 0\nm=audio ${port} RTP/AVPF 111\na=rtcp:${port+1}\na=rtpmap:111 opus/48000/2\na=fmtp:111 minptime=10;useinbandfec=1`


    


    However, if I give it as input with "-i" flag, I get the following error :

    


    


    data:application/sdp ;charset=UTF-8,v=0 : Invalid data found when processing input

    


    


    Can someone please help ?