Recherche avancée

Médias (91)

Autres articles (71)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (7079)

  • Cannot play amr rtp stream using ffmpeg

    1er juin 2020, par Vikram Dattu

    I want to receive and play amr packets streamed using RTP.

    &#xA;&#xA;

    Packets are sent to my macbook on port 9999

    &#xA;&#xA;

    I can receive packets using simple C program for UDP receiver.&#xA;I use bind to 9999 port and use recvfrom to receive packets.

    &#xA;&#xA;

    However when I use ffmpeg command to do the same, it is not able to receive single packet.

    &#xA;&#xA;

    Command used is : ffplay -protocol_whitelist file,udp,rtp -i test.sdp

    &#xA;&#xA;

    Contents of test.sdp :

    &#xA;&#xA;

    v=0&#xA;o=Andrew 2890844526 2890844526 IN IP4 192.168.1.106&#xA;s= SDP Blog&#xA;c=IN IP4 192.168.1.106&#xA;t=0 0&#xA;m=audio 9999 RTP/AVP 100&#xA;a=rtpmap:100 AMR/8000/1&#xA;a=fmtp:100 octet-align=1&#xA;

    &#xA;&#xA;

    192.168.1.106 is sender's address.

    &#xA;&#xA;

    I have tried changing this address to 127.0.0.1. Doesn't help.

    &#xA;&#xA;

    I am stuck at the point and not cannot find anything helpful.

    &#xA;&#xA;

    By the way,&#xA;sample sine wav generator example to stream on same device (loopback on 127.0.0.1) works.

    &#xA;

  • FFmpeg/MP4 - Force all existing frames to play at fixed frame rate

    16 mai 2020, par MJoseph

    I have an MP4 video file that I suspect is corrupt, in that mediainfo reports a variable frame rate, but I believe the frames present are meant to be played at a fixed frame rate. This discrepancy causes video stuttering. Is there any way to force an MP4 container (by editing header info, or frame timing tables) to simply play back all existing frames at a fixed frame rate (i.e. 24fps). Every tip I've read assumes you want to drop and/or add frames to achieve a new frame rate, while keeping all the old frame timings (i.e. ffmpeg -r or ffmpeg -filter). These methods end up preserving the stutter and altering the size of the file. I would like to throw out the frame timings, but keep all frames, and just play them back at a constant rate. Is this possible ?

    &#xA;

  • My music doesn't play correctly and other problems - Discord.py

    24 mars 2021, par Diacono

    So, I'm triying to let my bot play songs directly from the url (without downloading them like the song.mp3 method) but I'm having a hard time. The bot plays only 1 song and when I try to play another song it doesn't play it.&#xA;I'm also getting 2 errors : video_link is not defined and self is not defined.&#xA;Also when I try to play live music like "lofi hip hop radio - beats to relax/study to" nothing happens.&#xA;Can you help me please ???

    &#xA;

    This is my code

    &#xA;

    import asyncio&#xA;import discord&#xA;from discord.ext import commands, tasks&#xA;import requests&#xA;import json&#xA;from random import choice&#xA;from discord.utils import get&#xA;from discord import FFmpegPCMAudio&#xA;import youtube_dl&#xA;bot = commands.Bot(command_prefix="!")&#xA;&#xA;&#xA;&#xA;ytdl_format_options = {&#xA;    &#x27;format&#x27;: &#x27;bestaudio/best&#x27;,&#xA;    &#x27;outtmpl&#x27;: &#x27;%(extractor)s-%(id)s-%(title)s.%(ext)s&#x27;,&#xA;    &#x27;restrictfilenames&#x27;: True,&#xA;    &#x27;noplaylist&#x27;: True,&#xA;    &#x27;nocheckcertificate&#x27;: True,&#xA;    &#x27;ignoreerrors&#x27;: False,&#xA;    &#x27;logtostderr&#x27;: False,&#xA;    &#x27;quiet&#x27;: True,&#xA;    &#x27;no_warnings&#x27;: True,&#xA;    &#x27;default_search&#x27;: &#x27;auto&#x27;,&#xA;    &#x27;source_address&#x27;: &#x27;0.0.0.0&#x27; # bind to ipv4 since ipv6 addresses cause issues sometimes&#xA;}&#xA;&#xA;ffmpeg_options = {&#xA;    &#x27;options&#x27;: &#x27;-vn&#x27;&#xA;}&#xA;&#xA;ytdl = youtube_dl.YoutubeDL(ytdl_format_options)&#xA;&#xA;class YTDLSource(discord.PCMVolumeTransformer):&#xA;    def __init__(self, source, *, data, volume=0.5):&#xA;        super().__init__(source, volume)&#xA;&#xA;        self.data = data&#xA;&#xA;        self.title = data.get(&#x27;title&#x27;)&#xA;        self.url = data.get(&#x27;url&#x27;)&#xA;&#xA;    @classmethod&#xA;    async def from_url(cls, url, *, loop=None, stream=False):&#xA;        loop = loop or asyncio.get_event_loop()&#xA;        data = await loop.run_in_executor(None, lambda: ytdl.extract_info(url, download= not stream))&#xA;&#xA;        if &#x27;entries&#x27; in data:&#xA;            data = data[&#x27;entries&#x27;][0]&#xA;&#xA;        filename = data[&#x27;url&#x27;] if stream else ytdl.prepare_filename(data)&#xA;        return cls(discord.FFmpegPCMAudio(filename, **ffmpeg_options), data=data)&#xA;&#xA;&#xA;@bot.command()&#xA;async def play(ctx, url):&#xA;    voice = await ctx.author.voice.channel.connect()&#xA;    player = await YTDLSource.from_url(url, loop=client.loop)&#xA;    ctx.voice_client.play(player, after=lambda e: print(&#x27;Player error: %s&#x27; % e) if e else None)&#xA;    ydl_opts = {&#x27;format&#x27;: &#x27;bestaudio&#x27;}&#xA;    FFMPEG_OPTIONS = {&#x27;before_options&#x27;: &#x27;-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5&#x27;, &#x27;options&#x27;: &#x27;-vn&#x27;}&#xA;    with youtube_dl.YoutubeDL(ydl_opts) as ydl:&#xA;         info = ydl.extract_info(video_link, download=False)&#xA;         URL = info[&#x27;formats&#x27;][0][&#x27;url&#x27;]&#xA;    voice = get(self.bot.voice_clients, guild=ctx.guild)&#xA;    voice.play(discord.FFmpegPCMAudio(URL, **FFMPEG_OPTIONS))&#xA;

    &#xA;