Recherche avancée

Médias (1)

Mot : - Tags -/wave

Autres articles (83)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (14468)

  • How do I pipe files into whisper.cpp ?

    9 juillet 2023, par d-b

    whisper.cpp only supports wav-files. I have files in other formats I want to transcribe. It would be nice if I could make the conversion and transcription in one step/using a one-liner.

    


    I have tried these two, and some variant, but they failed :

    


    whisper.cpp -m ~/usr/whisper.cpp/models/ggml-large.bin < ffmpeg -i sample.amr -f wav

ffmpeg -i sample.amr -f wav pipe:1  | whisper.cpp -m ~/usr/whisper.cpp/models/ggml-large.bin


    


    From the whisper.cpp help page :

    


    usage: whisper.cpp [options] file0.wav file1.wav ...

  -f FNAME,  --file FNAME        [       ] input WAV file path


    


    (The help page doesn't mention stdin, pipes etc)

    


  • Copy Video codec results in BrokenPipeError : [Errno 32] Broken pipe Python ImageIO

    3 mars 2023, par 433MEA

    I am trying to use ImageIO to create a video from a sequence of 3 PNG's. I need the frames of the video to be exactly the same as the 3 PNG's, so I am using the copy video codec. If I use codecs that are compressed (like H.264), the code works perfectly fine, but the frames in the video are different.

    


    I am using ImageIO version 2.26.0 and have FFMpeg version 5.1.2 installed, though the code seems to be using version 4.2.2.

    


    Here is my code :

    


    from imageio import get_writer, imread
 
video = get_writer('encoded.mp4',fps=60,codec='copy')

for i in range(3):

    video.append_data(imread(f'image{str(i)}.png'))

video.close()


    


    But an error occurs :

    


    Traceback (most recent call last):&#xA;  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/imageio_ffmpeg/_io.py", line 615, in write_frames&#xA;    p.stdin.write(bb)&#xA;BrokenPipeError: [Errno 32] Broken pipe&#xA;&#xA;During handling of the above exception, another exception occurred:&#xA;&#xA;Traceback (most recent call last):&#xA;  File "/Users/Raine/Documents/FileEnconderInVideo/main.py", line 7, in <module>&#xA;    video.append_data(imread(f&#x27;image{str(i)}.png&#x27;))&#xA;  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/imageio/core/format.py", line 590, in append_data&#xA;    return self._append_data(im, total_meta)&#xA;  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/imageio/plugins/ffmpeg.py", line 600, in _append_data&#xA;    self._write_gen.send(im)&#xA;  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/imageio_ffmpeg/_io.py", line 622, in write_frames&#xA;    raise IOError(msg)&#xA;OSError: [Errno 32] Broken pipe&#xA;&#xA;FFMPEG COMMAND:&#xA;/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/imageio_ffmpeg/binaries/ffmpeg-osx64-v4.2.2 -y -f rawvideo -vcodec rawvideo -s 3840x2160 -pix_fmt rgb24 -r 60.00 -i - -an -vcodec bmp -pix_fmt yuv420p -v warning /Users/Raine/Documents/FileEnconderInVideo/video.mp4&#xA;&#xA;FFMPEG STDERR OUTPUT:&#xA;&#xA;</module>

    &#xA;

    What is wrong ?

    &#xA;

    Thank you !

    &#xA;

  • How to put the output of ffmpeg into a pipe in Python ? [duplicate]

    16 février 2023, par Eric Palmer

    I'm trying to use python to feed the results of ffmpeg into a pipeline, and then I can use this pipeline for subsequent operations (such as rtmp streaming). I've written the correct command, but I don't know how to accomplish this with Python.

    &#xA;

    I wrote the following code in the Shell, it can run correctly.

    &#xA;

    ffmpeg -re -i &#x27;2023-02-16_21:02:50.mp4&#x27; -f mpegts -c:v copy -c:a aac -vbsf h264_mp4toannexb pipe:1.ts | cat >> push&#xA;

    &#xA;

    When I'm trying to do the above in Python, I'm getting an error.

    &#xA;

    cat: &#x27;>>&#x27;: No such file or directory&#xA;

    &#xA;

    Here is my python code.

    &#xA;

    command = [&#xA;    &#x27;docker&#x27;,&#xA;    &#x27;run&#x27;,&#xA;    &#x27;-v&#x27;,&#xA;    f&#x27;{cwd}:{cwd}&#x27;,&#xA;    &#x27;-w&#x27;,&#xA;    f&#x27;{cwd}&#x27;,&#xA;    &#x27;jrottenberg/ffmpeg&#x27;,&#xA;    &#x27;-re&#x27;,&#xA;    &#x27;-i&#x27;, f&#x27;{video_path}&#x27;,&#xA;    &#x27;-f&#x27;, &#x27;mpegts&#x27;,&#xA;    &#x27;-c:v&#x27;, &#x27;copy&#x27;,&#xA;    &#x27;-c:a&#x27;, &#x27;aac&#x27;,&#xA;    &#x27;-vbsf&#x27;, &#x27;h264_mp4toannexb&#x27;,&#xA;    &#x27;pipe:1.ts&#x27;,&#xA;]&#xA;&#xA;pa = subprocess.Popen(&#xA;    command,&#xA;    stdout = subprocess.PIPE,&#xA;    stderr = error_file&#xA;)&#xA;&#xA;command = [&#xA;    &#x27;cat&#x27;,&#xA;    &#x27;>>&#x27;,&#xA;    f&#x27;{pipe_name}&#x27;&#xA;]&#xA;&#xA;with pa.stdout:&#xA;    pb = subprocess.Popen(&#xA;        command,&#xA;        stdin = pa.stdout,&#xA;        stdout = error_file,&#xA;        stderr = error_file&#xA;    )&#xA;

    &#xA;