
Recherche avancée
Médias (1)
-
1 000 000 (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (83)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 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, parMediaSPIP 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 2013Jolie 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-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
 )