Recherche avancée

Médias (91)

Autres articles (75)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par 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, par

    Cette 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, par

    Unlike 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 Enrra

    I 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):&#xA;  File "Graph_V1-8.py", line 406, in <module>&#xA;    FFwriter = animation.FFMpegWriter()&#xA;AttributeError: &#x27;FuncAnimation&#x27; object has no attribute &#x27;FFMpegWriter&#x27;&#xA;</module>

    &#xA;

    and I also tried to do the following :&#xA;animation.save(f&#x27;{save_path}/heat_map.mp4&#x27;, writer=&#x27;ffmpeg&#x27;, fps=10, codec=&#x27;libx264&#x27;)

    &#xA;

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

    &#xA;

    When I write :

    &#xA;

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

    &#xA;

    Thank you in advance for your help

    &#xA;

  • 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 Freitas

    I'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.

    &#xA;

    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.

    &#xA;

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

    &#xA;

    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.

    &#xA;


    &#xA;

    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.

    &#xA;

    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.

    &#xA;

    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 use ffprobe to write a script for ffmpeg ?

    &#xA;

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

    &#xA;

  • How should I make ffmpeg "-ignore_unknown" work ?

    10 janvier 2024, par living being

    I'm batch-converting some videos and I want ffmpeg to just drop any unknown stream instead of failing and leaving the video untouched.

    &#xA;

    My code :

    &#xA;

    find ./ -type f -iname &#x27;*.mp4&#x27; -exec bash -c &#x27;var="{}" &amp;&amp; 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 &amp;&amp; rm -v "$var" &amp;&amp; mv -- "$var.mp4" "$var"&#x27; \;&#xA;

    &#xA;

    streams :

    &#xA;

    Stream #0:0[0x1](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 105 kb/s (default)&#xA;Metadata:&#xA;  creation_time   : 2012-02-07T06:23:20.000000Z&#xA;  handler_name    : Apple Sound Media Handler&#xA;  vendor_id       : [0][0][0][0]&#xA;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)&#xA;Metadata:&#xA;  creation_time   : 2012-02-07T06:23:20.000000Z&#xA;  handler_name    : Apple Video Media Handler&#xA;  vendor_id       : [0][0][0][0]&#xA;  Stream #0:2[0x3](eng): Data: none (rtp  / 0x20707472), 511 kb/s&#xA;Metadata:&#xA;  creation_time   : 2012-02-07T06:23:20.000000Z&#xA;  handler_name    : hint media handler&#xA;Stream #0:3[0x4](eng): Data: none (rtp  / 0x20707472), 109 kb/s&#xA;Metadata:&#xA;  creation_time   : 2012-02-07T06:23:20.000000Z&#xA;  handler_name    : hint media handler&#xA;Stream mapping:&#xA;Stream #0:0 -> #0:0 (aac (native) -> opus (libopus))&#xA;Stream #0:1 -> #0:1 (h264 (native) -> hevc (libx265))&#xA;Stream #0:2 -> #0:2 (copy)&#xA;Stream #0:3 -> #0:3 (copy)&#xA;

    &#xA;

    In the end I get this :

    &#xA;

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

    &#xA;

    enter image description here

    &#xA;

    OS : Ubuntu 23.10

    &#xA;

    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.

    &#xA;