
Recherche avancée
Médias (91)
-
Chuck D with Fine Arts Militia - No Meaning No
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Paul Westerberg - Looking Up in Heaven
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Le Tigre - Fake French
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Thievery Corporation - DC 3000
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Dan the Automator - Relaxation Spa Treatment
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Gilberto Gil - Oslodum
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (102)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
L’agrémenter visuellement
10 avril 2011MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté. -
Possibilité de déploiement en ferme
12 avril 2011, parMediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)
Sur d’autres sites (8056)
-
Can't save a file in moviepy python
23 juillet 2023, par user9102437I have seen a few questions about this here, but none of them solved the issue for me, so maybe my case is different in some way.


I am trying to achieve a simple result : read a file and write it. Here is the code :


import os
os.environ['FFMPEG_BINARY'] = '/usr/bin/ffmpeg'

from moviepy.editor import VideoFileClip
name = 'test.mp4'

clip = VideoFileClip('./vids/'+name)

clip.write_videofile('./vids/'+name, codec='libx264', fps=30)



This code comes up with an error :


---> 88 '-r', '%.02f' % fps,
 89 '-an', '-i', '-'
 90 ]
 91 if audiofile is not None:
 92 cmd.extend([
 93 '-i', audiofile,
 94 '-acodec', 'copy'
 95 ])

TypeError: must be real number, not NoneType



You may notice that I have set the environment variable for
ffmpeg
(I have also changed that inconfigure_defaults.py
). This is because it was suggested in other questions. Also based on them I have run the following commands before running the code :

sudo apt -y update
sudo apt -y install ffmpeg
pip install decorator
pip install moviepy --upgrade
pip install ffmpeg --upgrade



I am using a
Debian GNU/Linux 10 (buster)
machine, and the versions ofmoviepy
andffmpeg
are1.0.3
and4.1.10-0+deb10u1
respectively.

Nothing seems to be helping to solve this. What am I missing here ?


-
Can't figure out how to get ffmpeg to save to an odd file extension
30 septembre 2015, par dinkiI’m working on a network encoder for SageTV. I get request from the SageTV with certain filenames. I’m trying to capture video from my capture card and write out to a file called
’D :\Media\tvrecordings\RokuNetworkEncoderonlocalhost4510TVTuner-
0.mpgbuf’Here’s the command I’m using :
C :\Users\User>C :/Users/User/Desktop/ffmpeg-20150928-git-235381e-win64-static/bin/ffmpeg.exe
-f dshow -crossbar_video_input_pin_number 2 -i video="ATI AVStream Analog Capture"
D :\Media\tvrecordings\RokuNetworkEncoderonlocalhost4510TVTuner-0.mpgbufWhen I run that command, I get this error :
[NULL @ 00000000087f9160] Unable to find a suitable output format for 'D:\Media\
tvrecordings\RokuNetworkEncoderonlocalhost4510TVTuner-0.mpgbuf'
D:\Media\tvrecordings\RokuNetworkEncoderonlocalhost4510TVTuner-0.mpgbuf: Invalid
argumentBut if I change .mpgbuf to .mpg it works fine . I am forced to use that filename though. Is there an easy way to do this ?
-
How to save frames to the video using their timestamps (variable frame rate, vfr, PyAV)
9 juillet 2019, par Vladyslav MoisieienkovShorty, I would like to write frames to the video according to their timestamps. FFmpeg example could be found here - How do I render a video from a list of time-stamped images ? , and I need something like that in Python. Probably PyAV library should be used as it provides bindings for FFmpeg. Maybe, it also possible by using OpenCV.