Recherche avancée

Médias (91)

Autres articles (46)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

Sur d’autres sites (3500)

  • Is -vfilter not available on Debian 5 ?

    3 octobre 2011, par Kor

    I'm getting problems trying to make my website (done in PHP) work online.
    At a specific time, I need to upload a video and convert it, also scaling its dimensions. I use a call like this one :

    ffmpeg -y -i '/path/to/video.mp4' -f flv -ab 56 -ar 22050 -r 20 -vfilter "scale=704:-1" '/path/to/new/video.flv'

    It works offline on my computer (Ubuntu 10.10), but it doesn't do the same online (Debian Lenny 5.0). The response I get from the server is :

    [Mon Oct 03 15:48:56 2011] [error] [client 81.184.6.124] /servers/path/to/ffmpeg: unrecognized option '-vfilter'

    I have also tried with '-vf', but it just doesn't work at all. So my question is, am I doing it wrong, or is it that Debian unables video filters for some reason ?

    I give you some info about this server :

    Debian 5.0
    PHP: 5.2.6
    FFmpeg r11872+debian_0.svn20080206-18+lenny1
    libavutil   3212800
    libavcodec  3355136
    libavformat 3409664
    libavdevice 3407872

    EDIT : Oh my, I just saw it. No libavfilter installed. I'll tell you what their support tells me in a couple hours.

  • Why does OpenAI Whisper return "None" ?

    29 septembre 2024, par SHDDSFFDSDSAF

    I'm trying to transcribe an MP3 file using OpenAI’s Whisper model, but the transcriptions.create() method consistently returns None. I’ve tried different MP3 files, converted them to WAV, updated the OpenAI library, and added error handling, but I still can’t figure out the issue.

    


    Here’s my code :

    


    from openai import OpenAI

client = OpenAI(
    api_key="MYAPIKEY"
)

audio_file = open("speech.mp3", "rb")
transcript = client.audio.transcriptions.create(
    file=audio_file,
    model="whisper-1",
    response_format="verbose_json",
    timestamp_granularities=["segment"]
)

print(transcript)


    


    I’ve confirmed that :

    


      

    • The API key is valid.
    • 


    • I’m using OpenAI Python library version X.X.X.
    • 


    • I’ve tested both MP3 and WAV formats.
    • 


    • The MP3 file is valid (checked using ffmpeg).
    • 


    


    The response always returns None without any exceptions. Any ideas on what could be going wrong ?

    


  • How to encode three streams in live from a CloudStorage ?

    18 mars 2021, par Damien Bertholet

    I search a lot and doesn't find anyone posted that question. If I'm wrong, I'm sorry and let me know the link please.

    


    Here is what I would like to do. I have an application that can record his screen as well as his computer's microphone and system sound. I save the three pieces in separate files which I then send to my server.

    


    Then I write these files directly in Azure strorage, live. Once the recording is finished, it may not be fully uploaded yet, I would like that we can already listen to what has been uploaded.

    


    So this I would like my server to start three streams to Azure Storage (it's an easy part), put those three streams in ffmpeg and output me an output that I can stream in HTTP response.

    


    The processing will only merge the two audio tracks and re-encode the audio in aac (it may be in opus) but I would not touch the video (which is in h264).

    


    Also, and it seems this is a very important point, the video is in mp4 format.

    


    Does this sound theoretically feasible ? If so, any hint to helping me ?

    


    Thereafter, I will have a process that will transform the three files into a ready-to-use mp4 file so that I don't have to encode every time the file is requested. But I see no stakes for this part there.