Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (56)

  • De près ou de loin...

    29 avril 2011, par

    Ils ne le savent pas forcément mais sont indispensables
    MediaSPIP est un logiciel open-source, il se base sur d’autres logiciels, et d’autres logiciels lui sont également nécessaires pour fonctionner ... Les personnes ici listées ne savent pas forcément qu’elles ont un rôle important dans le développement, elles ont apporté leur connaissances dans le cadre de la création d’une partie de ces éléments nécessaires ou ont écrit des articles permettant de comprendre certaines choses... il semble indispensable (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (4949)

  • What are the encoding techniques to be used while creating 3gp videos on iPhone

    23 avril 2013, par Mahesh

    Some converted 3gp video using ffmpeg library, played on iphone and some not played and that all video played on android,blackberry and J2ME without issues.

    1. please suggest to what type of encoding to be used while creating 3gp videos which is play in iphone without issues.
  • How to merge a video vertically by taking specific time slots from two different videos with a single ffmpeg command ?

    29 mars 2019, par Krishna CCK

    I have three ffmpeg commands. Two of those commands will trim the input videos and the third will merge into a single video.

    I want to run them as a single command instead of three, which consumes a lot of time because I’m taking output of the 1st and 2nd videos individually.

    Instead, I want to take specific parts from the videos which I need and merge them as a single video.

    The commands which I use for singie videos trim :-

    ffmpeg -y -i video1.mp4 -ss 4 -t 10000 -qscale:v 8 -strict -2 video1out.mp4

    ffmpeg -y -i video2.mp4 -ss 4 -t 10000 -qscale:v 8 -strict -2 video2out.mp4

    ffmpeg -i video1out.mp4 -i video2out.mp4 -filter_complex vstack -strict -2 merge.mp4
  • yt_dlp gives a strange message : "Seek to desired resync point failed. Seeking to earliest point available instead." and "File ended prematurely"

    16 septembre 2023, par nikita goncharov

    I have a discord bot (discord.py) in python and it can play music. Lastly it had trouble in playing the music, giving some random warnings but it mostly worked. But now it gives me this message :

    


    [matroska,webm @ 000001570fe92d40] Seek to desired resync point failed. Seeking to earliest point available instead.


    


    [matroska,webm @ 000001570fe92d40] File ended prematurely


    


    and also this one

    


    Warning: program compiled against libxml 211 using older 209


    


    As I saw this is a very common warning but I still have no Idea how to fix it.

    


    I will leave the code of the bot down bellow :

    


    Ytdlp setup (I have renamed the librarie to be youtube_dl)

    


    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': True,
    'quiet': True,
    'no_warnings': False,
    'default_search': 'auto',
    'source_address': '0.0.0.0',  # bind to ipv4 since ipv6 addresses cause issues sometimes
}

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')
        self.duration = data.get('duration')
        img = ""
        imgs = ['']
        for image in data.get("thumbnails"):
            img = image["url"]
            imgs.append(image["url"])
        self.image = img
        self.thumbnails = imgs


    


    The play command :

    


    # if message.author.voice_client is not None:
try:
    print(1)
    sessionChannel = message.author.voice.channel
except:
    embedAns = discord.Embed(color=discord.Color.from_rgb(255, 201, 115))
    # embedImg.set_image(url=player.image)
    # embedImg.type = "image"
    embedAns.add_field(name="Player", value=f'To play audio you must join a voice channel!',
                       inline=True)
    embedAns.add_field(name="", value=f'*{message.author.name}*', inline=False)
    # embedImg.image.width = "800"
    await message.channel.send(embed=embedAns)
try:
    print(2)
    await message.author.voice.channel.connect(reconnect=False)
    print(2)
except:
    pass
"""embedAns = discord.Embed(color=discord.Color.from_rgb(102, 196, 250))
# embedImg.set_image(url=player.image)
# embedImg.type = "image"
embedAns.add_field(name="Player", value=f'Succesfuly joined voice channel to play music in {sessionChannel}! Loading in youtube song... Please wait...', inline=True)
embedAns.add_field(name="", value=f'*{message.author.name}*', inline=False)
# embedImg.image.width = "800"
await message.channel.send(embed=embedAns)"""
try:
    print(3)
    load = await message.channel.send(
        f'Succesfuly joined voice channel to play music in {sessionChannel}')
    print(4)
    url = matched.group(1)
    player = await YTDLSource.from_url(url, loop=client.loop, stream=True)
    # Embed = await YTDLSource.from_url(url, loop=client.loop, stream=False)
    sessionChannel.guild.voice_client.play(player, after=lambda e: print(
        f'Player error: {e}') if e else None)
    await load.delete()
    sec = player.duration % 60
    temp = player.duration // 60
    min = temp % 60
    hour = temp // 60
    if hour == 0:
        timeStr = f"{min:02d}:{sec:02d}"
    else:
        timeStr = f"{hour}:{min:02d}:{sec:02d}"
    # await message.reply()
    embedImg = discord.Embed(color=discord.Color.from_rgb(102, 196, 250))
    # embedImg.set_image(url=player.image)
    # embedImg.type = "image"
    embedImg.set_thumbnail(url=player.image)
    embedImg.add_field(name="Player", value=f'Now playing: **{player.title}** \n `{timeStr}`',
                       inline=True)
    embedImg.add_field(name="", value=f'Requested by: {message.author.name}', inline=False)
    # embedImg.image.width = "800"
    await message.channel.send(embed=embedImg)
except Exception as ex:
    embedAns = discord.Embed(color=discord.Color.from_rgb(255, 119, 115))
    # embedImg.set_image(url=player.image)
    # embedImg.type = "image"
    # embedImg.set_thumbnail(url=player.image)
    embedAns.add_field(name="Player Error",
                       value=f'Couldent play audio on {sessionChannel} \n`{ex}`', inline=True)
    embedAns.add_field(name="", value=f'Requested by: {message.author.name}', inline=False)