
Recherche avancée
Médias (91)
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
-
USGS Real-time Earthquakes
8 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (87)
-
MediaSPIP Player : problèmes potentiels
22 février 2011, parLe 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, parThe 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, parLorsque 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-bwhisper.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 433MEAI 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):
 File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/imageio_ffmpeg/_io.py", line 615, in write_frames
 p.stdin.write(bb)
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "/Users/Raine/Documents/FileEnconderInVideo/main.py", line 7, in <module>
 video.append_data(imread(f'image{str(i)}.png'))
 File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/imageio/core/format.py", line 590, in append_data
 return self._append_data(im, total_meta)
 File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/imageio/plugins/ffmpeg.py", line 600, in _append_data
 self._write_gen.send(im)
 File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/imageio_ffmpeg/_io.py", line 622, in write_frames
 raise IOError(msg)
OSError: [Errno 32] Broken pipe

FFMPEG COMMAND:
/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

FFMPEG STDERR OUTPUT:

</module>


What is wrong ?


Thank you !


-
How to put the output of ffmpeg into a pipe in Python ? [duplicate]
16 février 2023, par Eric PalmerI'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.


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


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



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


cat: '>>': No such file or directory



Here is my python code.


command = [
 'docker',
 'run',
 '-v',
 f'{cwd}:{cwd}',
 '-w',
 f'{cwd}',
 'jrottenberg/ffmpeg',
 '-re',
 '-i', f'{video_path}',
 '-f', 'mpegts',
 '-c:v', 'copy',
 '-c:a', 'aac',
 '-vbsf', 'h264_mp4toannexb',
 'pipe:1.ts',
]

pa = subprocess.Popen(
 command,
 stdout = subprocess.PIPE,
 stderr = error_file
)

command = [
 'cat',
 '>>',
 f'{pipe_name}'
]

with pa.stdout:
 pb = subprocess.Popen(
 command,
 stdin = pa.stdout,
 stdout = error_file,
 stderr = error_file
 )