Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (47)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains 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 ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

Sur d’autres sites (7356)

  • Moviepy not updating FFmpeg Version after FFmpeg Install ?

    31 mai 2024, par The_ Game12

    I've been toying around with MoviePy, and recently switched a project to a new computer at home to continue messing around with it. However, I tried running what I had previously written (which ran perfectly fine on the other computer) and I get this :

    


    OSError: MoviePy error: failed to read the first frame of video file ./Gameplay/minecraft-
gameplay2.mp4. That might mean that the file is corrupted. That may also mean that you are using 
a deprecated version of FFMPEG. On Ubuntu/Debian for instance the version in the repos is 
deprecated. Please update to a recent version from the website.



    


    After reading the error, I did as it instructed, and updated my FFmpeg :

    


    $ ffmpeg
ffmpeg version N-115387-g8e27bd025f-20240525 Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 13.2.0 (crosstool-NG 1.26.0.65_ecc5e41)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-openssl --enable-fontconfig --enable-libharfbuzz --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-chromaprint --enable-libdav1d --enable-libdavs2 --enable-libdvdread --enable-libdvdnav --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libaribcaption --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-libs='-ldl -lgomp' --extra-ldflags=-pthread --extra-ldexeflags=-pie --cc=x86_64-ffbuild-linux-gnu-gcc --cxx=x86_64-ffbuild-linux-gnu-g++ --ar=x86_64-ffbuild-linux-gnu-gcc-ar --ranlib=x86_64-ffbuild-linux-gnu-gcc-ranlib --nm=x86_64-ffbuild-linux-gnu-gcc-nm --extra-version=20240525
  libavutil      59. 20.100 / 59. 20.100
  libavcodec     61.  5.104 / 61.  5.104
  libavformat    61.  3.104 / 61.  3.104
  libavdevice    61.  2.100 / 61.  2.100
  libavfilter    10.  2.102 / 10.  2.102
  libswscale      8.  2.100 /  8.  2.100
  libswresample   5.  2.100 /  5.  2.100
  libpostproc    58.  2.100 / 58.  2.100
Universal media converter
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...


    


    And I continued getting the same error. So I looked at what version my moviepy was using, and it was still 4.X. I read somewhere that your FFmpeg version is determined on the first use, which made sense, so I uninstalled and reinstalled, to get the same error.

    


    I am honestly lost at this point, as I have the newest version of FFmpeg, but I still get this from moviepy :

    


    >>> import moviepy&#xA;>>> print(moviepy.config.FFPMEG_BINARY)&#xA;ffmpeg : /home/<username>/.local/lib/python3.9/site-packages/imageio_ffmpeg/binaries/ffmpeg-linux64-v4.2.2&#xA;</username>

    &#xA;

    Any Ideas as to what I'm doing wrong ?

    &#xA;

    (Note : I'm using Crostini which I believe is using an Ubuntu or Ubuntu-Like shell)

    &#xA;

    Thanks :)

    &#xA;

  • "Error opening input" error when running ffmpeg via shell script

    15 octobre 2024, par Roni Yaniv

    I'm on a macbook running sonoma 14.7.

    &#xA;

    I have the following ffmpeg command which runs just fine by itself in the same folder of the files I need to modify :

    &#xA;

    ffmpeg -i "water-stream-90fps.mp4" -vf "drawtext=text=&#x27;Frame\: %{frame_num}&#x27;: start_number=1: x=(w-text_w): y=(h-text_h):fontsize=(h*10/100):fontcolor=yellow,drawtext=text=&#x27;%{pts\:hms}&#x27;:x=0:y=0:fontsize=(h*10/100):fontcolor=yellow" "water-stream-90fps-with-markers.mp4"

    &#xA;

    However, when I try to use it in a shell script by running ./add_markers.sh in the same folder, I get an error.

    &#xA;

    This is the add_markers.sh script :

    &#xA;

    #!/bin/bash&#xA;&#xA;# Replace &#x27;/path/to/your/folder&#x27; with the actual path to your folder&#xA;folder=$(pwd)&#xA;&#xA;# Replace &#x27;ffmpeg -i input.mp4 -vf scale=640:480 output.mp4&#x27; with your desired FFmpeg command&#xA;ffmpeg_command="ffmpeg -i input.mp4 -vf \"drawtext=text=&#x27;Frame\: %{frame_num}&#x27;: start_number=1: x=(w-text_w): y=(h-text_h):fontsize=(h*10/100):fontcolor=yellow,drawtext=text=&#x27;%{pts\:hms}&#x27;:x=0:y=0:fontsize=(h*10/100):fontcolor=yellow\" output.mp4"&#xA;&#xA;echo "$ffmpeg_command"&#xA;&#xA;# Loop through all files in the folder and execute the FFmpeg command&#xA;&#xA;for file in "$folder"/*; do&#xA;    filename=$(basename "${file%.*}") #get only the first part of the file name without path or extension&#xA;&#xA;    # Replace &#x27;input.mp4&#x27; with the current filename and &#x27;output.mp4&#x27; with the new filename. &#xA;    # Added double quotes to manage filenames with spaces.&#xA;    new_command="${ffmpeg_command//input.mp4/\"$filename.mp4\"}"&#xA;    new_command="${new_command//output.mp4/\"$filename-with-markers.mp4\"}"&#xA;&#xA;    echo "Running $new_command"&#xA;&#xA;    $new_command&#xA;&#xA;done&#xA;

    &#xA;

    This is the error I get (for one of the files, same error for all of them) :

    &#xA;

    Running ffmpeg -i "water-stream-90fps.mp4" -vf "drawtext=text=&#x27;Frame\: %{frame_num}&#x27;: start_number=1: x=(w-text_w): y=(h-text_h):fontsize=(h*10/100):fontcolor=yellow,drawtext=text=&#x27;%{pts\:hms}&#x27;:x=0:y=0:fontsize=(h*10/100):fontcolor=yellow" "water-stream-90fps-with-markers.mp4"&#xA;ffmpeg version 7.0 Copyright (c) 2000-2024 the FFmpeg developers&#xA;  built with Apple clang version 15.0.0 (clang-1500.3.9.4)&#xA;  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/7.0 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags=&#x27;-Wl,-ld_classic&#x27; --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopenvino --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon&#xA;  libavutil      59.  8.100 / 59.  8.100&#xA;  libavcodec     61.  3.100 / 61.  3.100&#xA;  libavformat    61.  1.100 / 61.  1.100&#xA;  libavdevice    61.  1.100 / 61.  1.100&#xA;  libavfilter    10.  1.100 / 10.  1.100&#xA;  libswscale      8.  1.100 /  8.  1.100&#xA;  libswresample   5.  1.100 /  5.  1.100&#xA;  libpostproc    58.  1.100 / 58.  1.100&#xA;[in#0 @ 0x6000015bc300] Error opening input: No such file or directory&#xA;Error opening input file "water-stream-90fps.mp4".&#xA;Error opening input files: No such file or directory&#xA;

    &#xA;

    I tried all kinds of things but my brain is starting to swell. Any guidance/help would be appreciated.

    &#xA;

  • Use nvidia hardware acceleration to merge webms with pngs in ffmpeg

    2 février, par Joshi234

    So I need to merge around 18000 webms with with pngs, however on software encoding it's really slow, so I'm trying to use hardware acceleration to make this faster.

    &#xA;

    I tried a lot of different stuff but none of them seems to work and it gives me generic errors to what I couldn't find anything relavant.

    &#xA;

    This is the most "succesful" try I had :&#xA;ffmpeg -hwaccel cuvid -c:v vp9_cuvid  -i lightray.webm -i card.png -filter_complex "[1]format=argb,colorchannelmixer=aa=0.35[ol];[0][ol]overlay" -colorspace 5 -c:a copy output.webm

    &#xA;

    Which gives me this error :

    &#xA;

    ffmpeg version n7.0.1-ffmpeg-windows-build-helpers Copyright (c) 2000-2024 the FFmpeg developers&#xA;  built with gcc 10.2.0 (GCC)&#xA;  configuration: --pkg-config=pkg-config --pkg-config-flags=--static --extra-version=ffmpeg-windows-build-helpers --enable-version3 --disable-debug --disable-w32threads --arch=x86_64 --target-os=mingw32 --cross-prefix=/home/runner/work/ffmpeg-stable-autobuild/ffmpeg-stable-autobuild/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32- --enable-libcaca --enable-gray --enable-libtesseract --enable-fontconfig --enable-gmp --enable-libass --enable-libbluray --enable-libbs2b --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libvorbis --enable-libwebp --enable-libzimg --enable-libzvbi --enable-libmysofa --enable-libopenjpeg --enable-libopenh264 --enable-libvmaf --enable-libsrt --enable-libxml2 --enable-opengl --enable-libdav1d --enable-gnutls --enable-libsvtav1 --enable-libvpx --enable-libaom --enable-nvenc --enable-nvdec --extra-libs=-lz --extra-libs=-lpng --extra-libs=-lm --extra-libs=-lfreetype --extra-libs=-lshlwapi --extra-libs=-lmpg123 --extra-libs=-lpthread --extra-cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCACA_STATIC --enable-amf --enable-libmfx --enable-libaribcaption --enable-gpl --enable-frei0r --enable-librubberband --enable-libvidstab --enable-libx264 --enable-libx265 --enable-avisynth --enable-libaribb24 --enable-libxvid --enable-libdavs2 --enable-libxavs2 --enable-libxavs --extra-cflags=&#x27;-mtune=generic&#x27; --extra-cflags=-O3 --enable-static --disable-shared --prefix=/home/runner/work/ffmpeg-stable-autobuild/ffmpeg-stable-autobuild/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32 --enable-nonfree --enable-libfdk-aac --enable-decklink&#xA;  libavutil      59.  8.100 / 59.  8.100&#xA;  libavcodec     61.  3.100 / 61.  3.100&#xA;  libavformat    61.  1.100 / 61.  1.100&#xA;  libavdevice    61.  1.100 / 61.  1.100&#xA;  libavfilter    10.  1.100 / 10.  1.100&#xA;  libswscale      8.  1.100 /  8.  1.100&#xA;  libswresample   5.  1.100 /  5.  1.100&#xA;  libpostproc    58.  1.100 / 58.  1.100&#xA;[vp9 @ 000001baa2891400] Invalid frame marker&#xA;    Last message repeated 3 times&#xA;[vp9 @ 000001baa2891400] Not all references are available&#xA;[vp9 @ 000001baa2891400] Invalid frame marker&#xA;    Last message repeated 1 times&#xA;[vp9 @ 000001baa2891400] Requested reference 6 not available&#xA;[vp9 @ 000001baa2891400] Invalid frame marker&#xA;    Last message repeated 4 times&#xA;[vp9 @ 000001baa2891400] Requested reference 6 not available&#xA;[vp9 @ 000001baa2891400] Invalid frame marker&#xA;    Last message repeated 3 times&#xA;[vp9 @ 000001baa2891400] Not all references are available&#xA;[vp9 @ 000001baa2891400] Invalid frame marker&#xA;    Last message repeated 12 times&#xA;[vp9 @ 000001baa2891400] Requested reference 6 not available&#xA;[vp9 @ 000001baa2891400] Invalid frame marker&#xA;    Last message repeated 4 times&#xA;[vp9 @ 000001baa2891400] Not all references are available&#xA;[vp9 @ 000001baa2891400] Invalid frame marker&#xA;    Last message repeated 1 times&#xA;[vp9 @ 000001baa2891400] Not all references are available&#xA;    Last message repeated 1 times&#xA;[vp9 @ 000001baa2891400] Invalid frame marker&#xA;[vp9 @ 000001baa2891400] Requested reference 6 not available&#xA;[vp9 @ 000001baa2891400] Invalid frame marker&#xA;    Last message repeated 1 times&#xA;[vp9 @ 000001baa2891400] Requested reference 6 not available&#xA;[vp9 @ 000001baa2891400] Invalid frame marker&#xA;    Last message repeated 1 times&#xA;[vp9 @ 000001baa2891400] Not all references are available&#xA;

    &#xA;

    I'm by no means an expert in ffmpeg or in video encoding in general, so I have no idea what this is supposed to mean.

    &#xA;