
Recherche avancée
Médias (91)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Elephants Dream - Cover of the soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
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 (9151)
-
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.


-
How should I make ffmpeg "-ignore_unknown" work ?
10 janvier 2024, par living beingI'm batch-converting some videos and I want ffmpeg to just drop any unknown stream instead of failing and leaving the video untouched.


My code :


find ./ -type f -iname '*.mp4' -exec bash -c 'var="{}" && ffmpeg -i "{}" -map 0 -vcodec libx265 -preset fast -crf 31 -vf "scale=-2:min(1080\,ih)" -acodec libopus -ac 1 -b:a 24K -c:s copy -ignore_unknown "$var.mp4" -y && rm -v "$var" && mv -- "$var.mp4" "$var"' \;



streams :


Stream #0:0[0x1](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 105 kb/s (default)
Metadata:
 creation_time : 2012-02-07T06:23:20.000000Z
 handler_name : Apple Sound Media Handler
 vendor_id : [0][0][0][0]
Stream #0:1[0x2](eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709, progressive), 320x240, 491 kb/s, 30.12 fps, 30.12 tbr, 2500 tbn (default)
Metadata:
 creation_time : 2012-02-07T06:23:20.000000Z
 handler_name : Apple Video Media Handler
 vendor_id : [0][0][0][0]
 Stream #0:2[0x3](eng): Data: none (rtp / 0x20707472), 511 kb/s
Metadata:
 creation_time : 2012-02-07T06:23:20.000000Z
 handler_name : hint media handler
Stream #0:3[0x4](eng): Data: none (rtp / 0x20707472), 109 kb/s
Metadata:
 creation_time : 2012-02-07T06:23:20.000000Z
 handler_name : hint media handler
Stream mapping:
Stream #0:0 -> #0:0 (aac (native) -> opus (libopus))
Stream #0:1 -> #0:1 (h264 (native) -> hevc (libx265))
Stream #0:2 -> #0:2 (copy)
Stream #0:3 -> #0:3 (copy)



In the end I get this :


[mp4 @ 0x55f412caa240] Could not find tag for codec none in stream #2, codec not currently supported in container
[out#0/mp4 @ 0x55f412c97ec0] Could not write header (incorrect codec parameters ?): Invalid argument
[vost#0:1/libx265 @ 0x55f412ec3d00] Error initializing output stream: 
[libopus @ 0x55f412ec3200] 1 frames left in the queue on closing

encoded 0 frames
Conversion failed!





OS : Ubuntu 23.10


I know I can do it by eliminating "-map 0", but I want to include all subtitle streams and other types of known streams if any. I need to use this for terabytes of videos, so I can't totally exclude data streams either, since there are some useful ones.