Recherche avancée

Médias (91)

Autres articles (96)

  • L’utiliser, en parler, le critiquer

    10 avril 2011

    La première attitude à adopter est d’en parler, soit directement avec les personnes impliquées dans son développement, soit autour de vous pour convaincre de nouvelles personnes à l’utiliser.
    Plus la communauté sera nombreuse et plus les évolutions seront rapides ...
    Une liste de discussion est disponible pour tout échange entre utilisateurs.

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (8336)

  • How do I increase the quality of a gif using ffmpeg from a web address [closed]

    1er août 2023, par Alteria

    I'm using command line/powershell on windows 11 along with ffmpeg to download gifs from web addresses. When I do this, though, the quality of the output is greatly decreased, even if the original file was itself a gif. Is there w way to fix this ?

    


    I'm doing this with .gif files, as well as .mp4 and .webm files using web links and addresses.

    


    The command I use is ffmpeg -i https://somewebsite.com/12345.gif "custom name.gif" when downloading gifs. The quality is always slightly decreased, and in some cases very decreased. I would like to keep this from happening. I also use the exact same command when downloading .gif's and .mp4's, with ffmpeg -i https//:somewebsite/123456.webm "custom name.gif" and ffmpeg -i https://somewebstie/123456.mp4 "custom name.gif" respectivly.

    


    What should I use instead of this in order to maintain the quality of the original .gif files and get better quality .gifs from the .webm and .mp4's ?

    


    =============

    


    Some of the other answers I have looked for have not answered what to do with links, and the other example haven't worked either.

    


    The one-liner command ffmpeg -ss 23.0 -t 1.8 -i input.mp4 -filter_complex "[0:v] split [a][b];[a] palettegen [p];[b][p] paletteuse" output_trimmed_enhanced.gif supplied at banner-bear.com did not work, instead throwing an error cmd error message&#xA;*This specific example used a .gif file for the ffmpeg -i <file></file>, but the same error occurs when using .mp4's and .webm ;s

    &#xA;

    I am also aware of the tool "gifski", posed by another user when they were asked a similar question on stack overflow (the question available here FFmpeg : high quality animated GIF ?). I would prefer to not download additional software in order to do what I wanted, so is there a way to circumvent this ?

    &#xA;

    Edit

    &#xA;

    I have found this forum post as one of the answers of this question : How do I convert a video to GIF using ffmpeg, with reasonable quality ?. This was the fourth (4th) answer down. This solution worked ! The command itself looks like this ffmpeg -i input.mp4 -filter_complex &#x27;fps=10,scale=320:-1:flags=lanczos,split [o1] [o2];[o1] palettegen [p]; [o2] fifo [o3];[o3] [p] paletteuse&#x27; out.gif.

    &#xA;

    I, however, have absolutely no idea how this command works. While this does work, I think it's going to be hard to remember this (and other) long commands. I want to be able to remember the commands as much as possible, and also to know what each part of it does. Is there an easier or shorter way of doing this command ? Or if not, what exactly does that command above do ?

    &#xA;

    *I had seen palettegen and paletteuse when searching for the answer to this question, but I had a hard time understanding and following the documentation give on FFmpeg's Filter Documentation FFmpeg Filters Documentation, as well as other stack-overflow questions on these commands. Can someone show me coherent or simplified documentation for the problem I am trying to solve.

    &#xA;

  • FFMPEG not turning a series of .ppm files into a video

    13 avril 2024, par Radiation Sky Playz

    I don't have much of an idea of what i'm doing.&#xA;also i don't use stackoverflow so i still don't know what i'm doing xd

    &#xA;

    I'm trying to do this : ffmpeg -framerate 45 -i screen_200x200_%d.ppm -c:v libx264 -r 30 -pix_fmt yuv420p output52234.mp4 and it's making this appear :

    &#xA;

    jajoo@jajoospc:~/Documents/fff$ ffmpeg -framerate 45 -i screen_200x200_%d.ppm -c:v libx264 -r 30 -pix_fmt yuv420p output52234.mp4&#xA;ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)&#xA;  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared&#xA;  WARNING: library configuration mismatch&#xA;  avcodec     configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libaribb24 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-libsmbclient&#xA;  libavutil      56. 70.100 / 56. 70.100&#xA;  libavcodec     58.134.100 / 58.134.100&#xA;  libavformat    58. 76.100 / 58. 76.100&#xA;  libavdevice    58. 13.100 / 58. 13.100&#xA;  libavfilter     7.110.100 /  7.110.100&#xA;  libswscale      5.  9.100 /  5.  9.100&#xA;  libswresample   3.  9.100 /  3.  9.100&#xA;  libpostproc    55.  9.100 / 55.  9.100&#xA;[image2 @ 0x555d7e314780] decoding for stream 0 failed&#xA;[image2 @ 0x555d7e314780] Could not find codec parameters for stream 0 (Video: ppm, rgb24): unspecified size&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; (0) and &#x27;probesize&#x27; (5000000) options&#xA;Input #0, image2, from &#x27;screen_200x200_%d.ppm&#x27;:&#xA;  Duration: 00:00:04.11, start: 0.000000, bitrate: N/A&#xA;  Stream #0:0: Video: ppm, rgb24, 45 fps, 45 tbr, 45 tbn, 45 tbc&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (ppm (native) -> h264 (libx264))&#xA;Press [q] to stop, [?] for help&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;    Last message repeated 112 times&#xA;[ppm @ 0x555d7e323d40] Invalid maxval: 0&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;    Last message repeated 22 times&#xA;[ppm @ 0x555d7e323d40] Invalid maxval: 0&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;    Last message repeated 14 times&#xA;[ppm @ 0x555d7e323d40] Invalid maxval: 0&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;    Last message repeated 3 times&#xA;[ppm @ 0x555d7e323d40] Invalid maxval: 0&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;    Last message repeated 13 times&#xA;[ppm @ 0x555d7e323d40] Invalid maxval: 0&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;    Last message repeated 3 times&#xA;[ppm @ 0x555d7e323d40] Invalid maxval: 0&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;    Last message repeated 10 times&#xA;[ppm @ 0x555d7e323d40] Invalid maxval: 0&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[buffer @ 0x555d7e317d40] Unable to parse option value "0x0" as image size&#xA;    Last message repeated 1 times&#xA;[buffer @ 0x555d7e317d40] Error setting option video_size to value 0x0.&#xA;[graph 0 input from stream 0:0 @ 0x555d7e3189c0] Error applying options to the filter.&#xA;Error reinitializing filters!&#xA;Error while filtering: Invalid argument&#xA;Finishing stream 0:0 without any data written to it.&#xA;[buffer @ 0x555d7e322800] Unable to parse option value "0x0" as image size&#xA;    Last message repeated 1 times&#xA;[buffer @ 0x555d7e322800] Error setting option video_size to value 0x0.&#xA;[graph 0 input from stream 0:0 @ 0x555d7e3226c0] Error applying options to the filter.&#xA;Error configuring filter graph&#xA;Conversion failed!&#xA;

    &#xA;

    I to make a funny video, but when i try to make it with ffmpeg this happens&#xA;and i have NO idea what it means.

    &#xA;

  • ffmpeg-concat created almost 80GB of raw files to merge 3 videos with 500ms crossfade of total size about 42MB. how to reduce storage requirement ?

    2 février 2023, par Mayank Kumar Chaudhari

    Yes, I was quite shocked when I found out that my videos were not concatenated due to lack of storage. Then I tried to debug and on the bash terminal I found location of temp files that ffmpeg-concat created.

    &#xA;

    Good thing is that it deletes these files automatically once the conversion is done but the amount of disk space it used is shocking. It took almost 70-80GB of storage for creating video of about 42MB and probably this is the reason why it takes about 15-20min to create video of about 3-6min.

    &#xA;

    I tried a lot of other ways like ffmpeg -safe 0 -f concat -i mylist.txt -c copy o.mp4, but it created very bad video — all I could see on video is random colors.

    &#xA;

    Can anyone suggest a better alternative to concat 3 videos, if possible with crossfade transition.

    &#xA;