
Recherche avancée
Autres articles (84)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
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 ;
-
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 (13816)
-
create max quality Frame with FFMPEG from ProRes Clip
5 août 2021, par Josef ZugarovI want to extract a frame from a ProRes Clip, recorded with a Blackmagic URSA Mini Pro 4.6K Gen 2 camera with ffmpeg.
I noticed the following : When I import the ProRes Clip into Davinci I can recover some highlights, which are out of the displayed range by lowering the gain paramater.
As you can see in the waveform the thrid peak has information in all channels.


After I extracted the frame with ffmpeg, I couldn't recover the highlights anymore.
Waveform : Values are clipped till the fifth peak.


I used the following command :

ffmpeg -ss 00:00:01 -i 0volt.mov -vf zscale=t=input,zscale=c=input -frames:v 1 TIFFs\0volt.tiff -v verbose


Here is the output of the ffmpeg command line : https://pastebin.com/a36ML3tL


Do you have any hint, how the original quality and dynanmic range by extracting a TIFF-Frame with ffmpeg can be retained ?


Thank you !


-
avcodec/qsvenc : clip global_quality for ICQ modes.
11 juillet 2021, par Gyan Doshiavcodec/qsvenc : clip global_quality for ICQ modes.
Allowed range is 1 to 51.
-
Getting "TypeError : must be real number, not NoneType" whenever trying to run write_videofile to a clip in moviepy
9 novembre 2024, par SatoExample code :


from moviepy.editor import *
clip = VideoFileClip('video.mp4')
clip.write_videofile('video2.mp4', fps=30)



After showing the following messages, showing that the video is being built and written,


Moviepy - Building video video2.mp4.
Moviepy - Writing video video2.mp4



The following error message occurs :


Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "C:\Users\User\Anaconda3\lib\site-packages\decorator.py", line 232, in fun
 return caller(func, *(extras + args), **kw)
 File "C:\Users\User\Anaconda3\lib\site-packages\moviepy\decorators.py", line 54, in requires_duration
 return f(clip, *a, **k)
 File "C:\Users\User\Anaconda3\lib\site-packages\decorator.py", line 232, in fun
 return caller(func, *(extras + args), **kw)
 File "C:\Users\User\Anaconda3\lib\site-packages\moviepy\decorators.py", line 135, in use_clip_fps_by_default
 return f(clip, *new_a, **new_kw)
 File "C:\Users\User\Anaconda3\lib\site-packages\decorator.py", line 232, in fun
 return caller(func, *(extras + args), **kw)
 File "C:\Users\User\Anaconda3\lib\site-packages\moviepy\decorators.py", line 22, in convert_masks_to_RGB
 return f(clip, *a, **k)
 File "C:\Users\User\Anaconda3\lib\site-packages\moviepy\video\VideoClip.py", line 300, in write_videofile
 ffmpeg_write_video(self, filename, fps, codec,
 File "C:\Users\User\Anaconda3\lib\site-packages\moviepy\video\io\ffmpeg_writer.py", line 213, in ffmpeg_write_video
 with FFMPEG_VideoWriter(filename, clip.size, fps, codec = codec,
 File "C:\Users\User\Anaconda3\lib\site-packages\moviepy\video\io\ffmpeg_writer.py", line 88, in __init__
 '-r', '%.02f' % fps,
TypeError: must be real number, not NoneType
</module></stdin>


This occurs whenever I try to perform
write_videofile
to any kinds of clip in moviepy. It is strange since the exact same code worked for me yesterday, but suddenly not anymore today. Are there any suggestions what the cause is and how to resolve this ?