Recherche avancée

Médias (0)

Mot : - Tags -/optimisation

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

Autres articles (8)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

  • Sélection de projets utilisant MediaSPIP

    29 avril 2011, par

    Les exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
    Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
    Ferme MediaSPIP @ Infini
    L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (1775)

  • FFMPEG.wasm Cannot Add Album Cover To MP3 File

    5 juillet 2022, par Shaan Khan

    for a project I'm working on I'm trying to split a video into multiple audio clips whilst adding metadata for each individual track. Whilst doing this, whilst I've added most of the metadata including title & artist, I'm unable to add an album cover via FFMPEG.wasm. Whilst my command works fine with regular FFMPEG.wasm, I'm unable to get it to work via the webassembly version.

    


    I'm aware that my album cover is correctly being assigned via FS.readfile and that my command in theory should work, but I'm unable to figure out why it isn't working. Is this a FFMPEG.wasm limitation and if so, is there any workaround for this ?

    


      

    • Normal FFMPEG Command
    • 


    


    ffmpeg -i "song.mp3" -i albumCover.jpg -map 0:0 -map 1:0 -y -codec:a libmp3lame -ac 2 -ar 48000 -ab 320k -ss 00:00:00 -t 00:00:20 -id3v2_version 3  -metadata title="SongOne" -metadata album_artist="Artist Name" -metadata album="Youtube Name" -metadata track="1" "output.mp3"


    


      

    • FFMPEG WASM Implementation
    • 


    


      let commandArray = [
      "-i",
      "song.mp3",
      "-i",
      "albumCover.jpg",
      "-map",
      "0:0",
      "-map",
      "1:0",
      "-y",
      "-codec:a",
      "libmp3lame",
      "-ac",
      "2",
      "-ar",
      "48000",
      "-ab",
      "320k",
      "-ss",
      startTime.toString(),
    ];

    if (duration != "-1") {
      commandArray.push("-t", duration.toString());
    }

    commandArray.push(
      "-id3v2_version",
      "3",
      "-metadata",
      `title="${title}"`,
      "-metadata",
      `album_artist="${artist}`,
      "-metadata",
      `album="${albumInfo.name}"`,
      "-metadata",
      `track="1"`,
      `${timestamp.songName} - ${timestamp.artistName}.mp3`
    );


    


  • My discord bot did work on local, but didn't work on heroku

    26 juillet 2022, par PeeP

    I depoly my discord bot on Heroku.
My bot sings normally when running on local,
If I run it on Heroku, the song will not play.
Full code is here

    


    @commands.command(name ="play")
    async def play_music(self, ctx, *keywords):
        if ctx.voice_client is None: 
            if ctx.author.voice:
                await ctx.author.voice.channel.connect()
            else:
                embed = discord.Embed(title = 'erro', description = "use after enter the channel 🤔", color = discord.Color.red())
                await ctx.send(embed=embed)
                raise commands.CommandError("Author not connected to a voice channel.")
        elif ctx.voice_client.is_playing():
            ctx.voice_client.stop()
        
        keyword = ' '.join(keywords)
        url = getUrl(keyword)
        await ctx.send(url)
        embed = discord.Embed(title = 'play', description = 'getting ready to play the song! 😎' , color = discord.Color.red())
        await ctx.send(embed=embed)


    


    It works up to the top code, but it doesn't seem to work on the bottom code.

    


            data = self.DL.extract_info(url, download = False)
        link = data['url']
        title = data['title']

        ffmpeg_options = {
            'options': '-vn',
            "before_options": "-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5"
        }
        player = discord.FFmpegPCMAudio(link, **ffmpeg_options, executable = "./ffmpeg/bin/ffmpeg.exe")
        ctx.voice_client.play(player)
        
        embed = discord.Embed(title = 'play', description = f'{title} start play! 🐥' , color = discord.Color.blue())
        await ctx.send(embed=embed)


    


    My heroku Buildpacks

    


    heroku/python
https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git
https://github.com/xrisk/heroku-opus
https://github.com/heroku/heroku-buildpack-apt.git
https://github.com/heroku/heroku-buildpack-apt
https://github.com/kitcast/buildpack-ffmpeg.git
https://github.com/codeinteger6/heroku-buildpack-libopus.git
https://github.com/heroku/heroku-buildpack-apt.git


    


    requirements.txt

    


    discord.py
discord.py[voice]
asyncio
openpyxl
youtube_dl
requests
ffmpeg
PyNaCl
wheel
websockets==6.0
gtts
PyGithub
pyssml
gspread
oauth2client
PyOpenSSL
boto3


    


    Aptfile

    


    git
libopus0
libopus-dev
libssl-dev
libffi-dev
libsodium-dev


    


    I really wanna know my problems.
Thank you.

    


  • FFmpeg Matching decibel level between two audio tracks when mixing ?

    9 août 2022, par JohnWick

    I have a collection of mp3 files for various frequencies (i.e. 528hz). I also have a collection of mp3's of ambient background music. So here is the scenario :

    


    I am mixing the tone frequency mp3's with the music mp3's. This works great using the amix filter, no problem. However, some of the ambient music is quiet, which makes the tones sound overpowering. Conversely, some of the ambient music is also fairly loud, making the tones inaudible.

    


    It seems to me, the solution would be to adjust the volume of the tone to match the decibel level of the associated music track. How can this be done programmatically ? Perhaps parsing the output of a ffprobe call, but at that point I wouldn't quite be sure how to proceed towards my goal. I figured reaching out on Super User might save me a ton of pain, by turning to more experienced ffmpeg users. Maybe my approach is also flawed, and would be happy if someone can suggest a better method to achieve what I am looking for.

    


    Here is my python code so far.

    


    import ffmpeg
import os

tones = os.listdir('tones')
songs = os.listdir('music')

for tone in tones:
    for song in songs:
        tone_in = ffmpeg.input(f'tones/{tone}', stream_loop=-1)
        music_in = ffmpeg.input(f'music/{song}')
        mixed = ffmpeg.filter([tone_in, music_in], 'amix', inputs=2, duration='shortest')
        out = ffmpeg.output(mixed, f'output/{tone} {song}.mp3')
        out.run()