Recherche avancée

Médias (1)

Mot : - Tags -/epub

Autres articles (93)

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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

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

  • How to schedule ffmpeg audio streams of varying lengths with titles and metadata ?

    10 septembre 2021, par underdoot

    I have a Shoutcast stream that I want to archive 24/7 with ffmpeg. Shows on this stream vary in length between 1-3 hours, but have a regular weekly schedule.

    


    How do I download these shows, and give the files appropriate titles according to the show playing (determined by day of week and hour of day) ? I want the title of files to be along the lines of "2021.09.21 - 0300-0400 — Radio Show Name" and automatically add to a set folder. I also want to run the program only once, and have it running in the background constantly.

    


  • How to load data to be used for whisper

    26 juin 2023, par P.Bjur

    My eventual goal is to take an audio stream from twilio and give it to whisper. This is not going great so I am trying to convert the audio into the format that whisper expects and then save that to a file so that I can give it a listen and make sure everything has gone well. When I take the data from twilio and try to save it using the function below, I get the error below. Is there something obvious that I am doing wrong ?

    


        .run()
    ^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/ffmpeg/_run.py", line 313, in run
    process = run_async(
              ^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/ffmpeg/_run.py", line 284, in run_async
    return subprocess.Popen(
           ^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.11/3.11.4/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/opt/homebrew/Cellar/python@3.11/3.11.4/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 1883, in _execute_child
    self.pid = _fork_exec(
               ^^^^^^^^^^^
ValueError: embedded null byte


    


    def add_audio(audio_data: bytes):
    global buffer
    audio, err = ffmpeg \
        .input("pipe:", format='mulaw', acodec='pcm_mulaw', ar= 8000, ac=1) \
        .output("-", format="s16le", acodec="pcm_s16le", ar=16000, ac=1) \
        .run(cmd="ffmpeg", capture_stdout=True, capture_stderr=True, input=audio_data)


    # convert audio to numpy array
    audio = np.frombuffer(audio, np.int16).flatten().astype(np.float32) / 32768.0

    # add audio to buffer
    buffer = np.concatenate((buffer, audio))

    ffmpeg \
        .input(buffer, format='f32le', acodec='pcm_f32le', ac=1, ar=16000) \
        .output('test.wav') \
        .run() 


    


  • Please HELP Me with the followinf FFMpeg Code

    4 février 2016, par OMi

    I am using the following code to add plain text to videos. It works fine on localhost with EasyPHP server but I am not able to get the output on server (ffmpeg hosting). In addition, video conversion, video to audio everything is working fine. Please help me out. I need asap. Please give me your precious time.

    @exec('ffmpeg -y -i '.$source_file.' -vf drawtext="fontfile=font_omiA.ttf: \ text='.$watermark_text.': fontcolor=white@0.5: fontsize=20: \ x=(w-text_w)-3: y=(h-text_h-line_h)+10" '.$output_filename.'');

    Thank you, please help me :)