Recherche avancée

Médias (91)

Autres articles (87)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

Sur d’autres sites (11714)

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