
Recherche avancée
Médias (91)
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#1 The Wires
11 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (75)
-
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (9430)
-
From Python, piping images to FFMPEG process with audio input, "-shortest" flag causes output file to contain only 1 frame of video and entire audio
7 novembre 2023, par b_yangFrom Python, I run FFMPEG and write images to its stdin via pipe, the FFMPEG process has an audio file as input too. Everything works fine like this :


cmd = ['ffmpeg', '-hide_banner', '-y', '-loglevel', 'error', '-f', 'rawvideo', 
'-pix_fmt', 'bgr24', '-video_size', '720x1280', '-r', '30.0', '-an', '-i', '-',
'-i', 'audio.aac', '-acodec', 'copy', 
'-crf', '14', '-pix_fmt', 'yuv420p', 'output.mp4']
proc = subprocess.Popen(cmd, **popen_params)



Because the audio duration might be longer than the video duration, I added a '-shortest' flag (before '-crf') :


cmd = ['ffmpeg', '-hide_banner', '-y', '-loglevel', 'error', '-f', 'rawvideo', 
'-pix_fmt', 'bgr24', '-video_size', '720x1280', '-r', '30.0', '-an', '-i', '-',
'-i', 'audio.aac', '-acodec', 'copy', 
'-shortest', '-crf', '14', '-pix_fmt', 'yuv420p', 'output.mp4']
proc = subprocess.Popen(cmd, **popen_params)



However, with the '-shortest' flag, the resulting output.mp4 contains the entire audio, but only 1 frame of video data. What is going on here ?


-
I keep having the message "MovieWriter ffmpeg unavailable ; using Pillow instead." I want to save as MP4 an animation
6 décembre 2023, par EnrraI am doing an animation :


animation = FuncAnimation(fig, update, frames=len(time_values), interval=250, repeat=False)

with a simple frame update function, I want it save it as a MP4 format :

animation.save(f'{save_path}/heat_map.mp4', writer='ffmpeg', fps=10)


I get the error message "MovieWriter ffmpeg unavailable ; using Pillow instead."


I tried to do the following :


plt.rcParams['animation.ffmpeg_path'] ='C:\\ProgramData\\Anaconda3\\LIB\\site-packages\\ffmpeg'
FFwriter = animation.FFMpegWriter()
animation.save(f'{save_path}/heat_map.mp4', writer = FFwriter, fps=10)



This gets me an error message :


Traceback (most recent call last):
 File "Graph_V1-8.py", line 406, in <module>
 FFwriter = animation.FFMpegWriter()
AttributeError: 'FuncAnimation' object has no attribute 'FFMpegWriter'
</module>


and I also tried to do the following :

animation.save(f'{save_path}/heat_map.mp4', writer='ffmpeg', fps=10, codec='libx264')


which also get me the error :
"MovieWriter ffmpeg unavailable ; using Pillow instead."


When I write :


pip install ffmpeg
Requirement already satisfied: ffmpeg in c:\programdata\anaconda3\lib\site-packages (1.4)



Thank you in advance for your help


-
How to "mimic" -c copy when using filters with ffmpeg ? Is there a built-in feature or I'll need some scripting ? [closed]
29 décembre 2023, par Fabio FreitasI'm aware that any stream ffmpeg processes is decoded before applying any desired changes and then re-encoded, which means the stream in question can't simply be copied with
-c copy
.

Still, I'm not yet very knowledgeable on dealing with media files. Currently, the single issue I'm addressing is cropping black bars from the sides when 4:3 is encoded as 16:9.


That's fairly simple, and I quickly managed to get it going.


Then I noticed some weird stuff via mediainfo and the explorer's side panel. Stream sizes, bitrates and some other details were different than expected.



That's where
-c copy
comes in. Over the years, every time I tried to solve this, answers would stop at "-c copy
can't be used if the stream will be decoded", which is good enough to stop noobs like me from wasting time.

But since I don't know how to use advanced encoding settings, the
-c copy
I'm looking for is actually how can I re-encode my processed stream using the same (or most similar) settings used before I decoded it.

Is there such an option in
ffmpeg
? Are these settings I'm looking for even obtainable by any means ? And if "no" and "yes", could I useffprobe
to write a script forffmpeg
?

BTW, I'm on Windows 11, but I have Git's SCM tools available.