Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (104)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

Sur d’autres sites (9101)

  • OpenAI Whisper : FileNotFoundError : [WinError 2] The system cannot find the file specified

    16 décembre 2023, par Alex

    I'm not the first to get this error, however, all previous answers relate to ffmpeg not installed. As you can see, I installed ffmpeg so not sure why i still get this error. Moreover, this code works perfectly fine in Google Colab but not in Spyder.

    


    pip install tiktoken

pip install -U openai-whisper

pip install ffmpeg

pip install setuptools-rust

import whisper

model = whisper.load_model("medium")

result = model.transcribe("F:/iim/dahl/01.Projects/20231215_Schlueter/02.Code/01.Data/The Investors Everybody Ignored ft Sallie Krawcheck  Whats Your Problem  Jacob Goldstein.mp3")
print(result["text"])



 Cell In[13], line 1
    result = model.transcribe("F:/iim/dahl/01.Projects/20231215_Schlueter/02.Code/01.Data/The Investors Everybody Ignored ft Sallie Krawcheck  Whats Your Problem  Jacob Goldstein.mp3/")

  File F:\iim\dahl\00.Anaconda\Lib\site-packages\whisper\transcribe.py:122 in transcribe
    mel = log_mel_spectrogram(audio, model.dims.n_mels, padding=N_SAMPLES)

  File F:\iim\dahl\00.Anaconda\Lib\site-packages\whisper\audio.py:140 in log_mel_spectrogram
    audio = load_audio(audio)

  File F:\iim\dahl\00.Anaconda\Lib\site-packages\whisper\audio.py:58 in load_audio
    out = run(cmd, capture_output=True, check=True).stdout

  File F:\iim\dahl\00.Anaconda\Lib\subprocess.py:548 in run
    with Popen(*popenargs, **kwargs) as process:

  File F:\iim\dahl\00.Anaconda\Lib\site-packages\spyder_kernels\customize\spydercustomize.py:109 in __init__
    super(SubprocessPopen, self).__init__(*args, **kwargs)

  File F:\iim\dahl\00.Anaconda\Lib\subprocess.py:1026 in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,

  File F:\iim\dahl\00.Anaconda\Lib\subprocess.py:1538 in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,

FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden



    


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


    


  • Recalculate the position of a larger object to re-align two different sized objects after rotation

    26 août 2022, par CRAIG

    I have 2 images I am placing on top of a 1080X1920 canvas.

    


    One is a rectangle that is 800x400 and it is sitting on the 1080X1920 canvas with top left coordinates of x=140 and y=1200

    


    enter image description here

    


    Then I have another image that is the same size of the canvas 1080X1920, but also has a rectangle on it at the exact same coordinates as the first rectangle. I am overlaying this 1080X1920 image at x=0 and y=0 on the canvas so that the rectangle already in this image lines up perfectly with the rectangle that is already placed on the canvas.

    


    enter image description here

    


    My problem is, I need to apply a rotation to both of these and the black and red rectangles need to match up in positioning AFTER the rotation is applied. Could be any rotation, but let's say it is a 15 degree rotation.

    


    When each element is placed on the canvas and then the 15 degree rotation is applied, the rectangles no longer align because of the difference in image size and the offset in rotation as they both rotate around the center point which looks to be my only option in this case.

    


    enter image description here

    


    So I am hoping to sort out a formula I can use that would rectify the positioning of the 1080X1920 image so that the object already embedded in that image lines up with separately overlaid image.

    


    There are of course other ways to deal with this problem, but right now, they would make things quite a bit more difficult, so I wanted to see if this was possible to calculate first.

    


    I have tried several ways to calculate this, but am not super mathematically proficient, so I am grasping at straws at best.

    


    Oh and because I am not extremely mathematically proficient, any dumbing-down of mathematical terms is appreciated. ;)

    


    Oh and possibly this post answers this question, but I can't wrap my head around whether or not it does, so if someone can let me know if it does, I will try harder to understand and apply it to my particular case.

    


    How to recalculate the coordinates of a point after scaling and rotation ?