Recherche avancée

Médias (0)

Mot : - Tags -/albums

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (68)

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

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (8217)

  • Discord.py Music Bot problem with FFmpeg on heroku

    16 mai 2020, par Phantom_7331

    I'm coding my first music bot for discord and successfully tested it on the localhost. After that, I moved it on Heroku and installed FFmpeg buildpack for it. But for some reason, it doesn't work.
Here is proof that I installed FFmpeg buildpack on Heroku : Screen

    



    Here is my code (that works well on localhost) :

    



    youtube_dl.utils.bug_reports_message = lambda: ''

ytdl_format_options = {
'format': 'bestaudio/best',
'outtmpl': '%(extractor)s-%(id)s-%(title)s.%(ext)s',
'restrictfilenames': True,
'noplaylist': True,
'nocheckcertificate': True,
'ignoreerrors': False,
'logtostderr': False,
'quiet': True,
'no_warnings': True,
'default_search': 'auto',
'source_address': '0.0.0.0'
}

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

ytdl = youtube_dl.YoutubeDL(ytdl_format_options)

class YTDLSource(discord.PCMVolumeTransformer):
def __init__(self, source, *, data, volume=0.5):
    super().__init__(source, volume)

    self.data = data

    self.title = data.get('title')
    self.url = data.get('url')

@classmethod
async def from_url(cls, url, *, loop=None, stream=False):
    loop = loop or asyncio.get_event_loop()
    data = await loop.run_in_executor(None, lambda: ytdl.extract_info(url, download=not stream))

    if 'entries' in data:
        data = data['entries'][0]

    filename = data['url'] if stream else ytdl.prepare_filename(data)
    return cls(discord.FFmpegPCMAudio(filename, **ffmpeg_options), data=data)

@client.command()
async def join(ctx):
channel = ctx.message.author.voice.channel
if ctx.voice_client is not None:
    return await ctx.voice_client.move_to(channel)
await channel.connect()

@client.command()
async def play(ctx, *, URL):
    async with ctx.typing():
        player = await YTDLSource.from_url(url)
        ctx.voice_client.play(player, after=lambda e: print('Player error: %s' % e) if e else None)
    await ctx.send('Now playing: {}'.format(player.title))


    


  • Muting audio when video is not being played in complex filtergraph

    18 février 2020, par Vitalis Hommel

    My goal is to silence audio till when the appropriate video is playing.

    This is what I tried

    ffmpeg -i a.mp4 -itsoffset 00:00:4.061 -i b.mp4 -itsoffset 00:00:8.016 -i c.mp4 -itsoffset 00:00:12.016 -i d.mp4 -filter_complex "[0:a][2:a][3:a]amerge=inputs=3,volume=0[a0];[1:a]adelay=4061[a1];[a0][a1]amerge=inputs=2[audio]..." -map "[audio]" ... -r 60 -vcodec h264 zusammen.mp4

    It starts playing together at the start to be overlayed at 4061. How do I hear the audio in sync with video while what is not being played is muted ?

  • avformat/mpegtsenc : Fix mpegts_write_pes() for private_stream_2 and other types

    25 avril 2021, par zheng qian
    avformat/mpegtsenc : Fix mpegts_write_pes() for private_stream_2 and other types
    

    According to the PES packet definition defined in Table 2-17 of ISO_IEC_13818-1
    specification, some fields like PTS/DTS or pes_extension could only appears if
    the stream_id meets the condition :

    if (stream_id != 0xBC && // program_stream_map
    stream_id != 0xBE && // padding_stream
    stream_id != 0xBF && // private_stream_2
    stream_id != 0xF0 && // ECM
    stream_id != 0xF1 && // EMM
    stream_id != 0xFF && // program_stream_directory
    stream_id != 0xF2 && // DSMCC_stream
    stream_id != 0xF8) // ITU-T Rec. H.222.1 type E stream

    And the following stream_id types don't have fields like PTS/DTS :

    else if ( stream_id == program_stream_map
    || stream_id == private_stream_2
    || stream_id == ECM
    || stream_id == EMM
    || stream_id == program_stream_directory
    || stream_id == DSMCC_stream
    || stream_id == ITU-T Rec. H.222.1 type E stream )
    for (i = 0 ; i < PES_packet_length ; i++)
    PES_packet_data_byte

    Current implementation skipped the check of stream_id causing some kind of
    streams like private_stream_2 to be incorrectly written with actually a
    private_stream_1-like PES header with PTS/DTS field. For example, Japan DTV
    transmits news and alerts through ARIB superimpose that utilizes
    private_stream_2 still could not be remuxed correctly for now.

    This patch set fixes the remuxing for private_stream_2 and
    other stream_id types.

    Signed-off-by : zheng qian <xqq@xqq.im>
    Signed-off-by : Marton Balint <cus@passwd.hu>

    • [DH] libavformat/mpegtsenc.c