
Recherche avancée
Médias (91)
-
999,999
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Demon seed (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
The four of us are dying (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Corona radiata (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Lights in the sky (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (90)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (8792)
-
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.