Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (56)

  • 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 (...)

  • 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 ) (...)

Sur d’autres sites (6729)

  • ffmpeg compare 2 images Mac

    13 janvier, par Mary

    I am trying to compare two png/jpg images using ffmpeg commands in a Mac terminal from ffmpeg-image-diff location , but I have lots of errors .
I have tried
variant1 :

    


     ffmpeg -i image1.jpg -I image2.jpg -filter_complex "[0:v]format=yuv420p[main];[1:v]format=yuv420p[ref]; [main][ref]psnr=stats_file=psnrs.txt:shortest=1" -f null -


    


    variant2 :

    


    ffmpeg -i image1.png -i image2.png -filter_complex [1:v]negate[inv],[0:v][inv]mix=inputs=2 outdiff.png


    


    , but I'm getting every time

    


    Error opening input file image1.jpg.
Error opening input files: No such file or directory


    


    variant3 :

    


    ffmpeg -i image1jpg -i image2.jpg -filter_complex "[0:v]pad=iw*2:ih[bg]; [bg][1:v:0]overlay=w" output.jpg,


    


    but I have received with no output image created ...

    


    Input #0, png_pipe, from 'image1.jpg':
  Duration: N/A, bitrate: N/A
  Stream #0:0: Video: png, rgba(pc, gbr/bt709/iec61966-2-1), 888x640 [SAR 3779:3779 DAR 111:80], 25 fps, 25 tbr, 25 tbn


    


    I just want to have the differences between the 2 images in the output image.

    


    I have added the 2 images inside the ffmpeg-image-diff folder enter image description here
Can someone please help me ? Is there any other ffmpeg commands for images comparison ?
do I need to install any other libraries from ffmpeg ?, I saw that I have also have this in the terminal

    


    configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/7.1_4 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags='-Wl,-ld_classic' --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-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon
  libavutil      59. 39.100 / 59. 39.100
  libavcodec     61. 19.100 / 61. 19.100
  libavformat    61.  7.100 / 61.  7.100
  libavdevice    61.  3.100 / 61.  3.100
  libavfilter    10.  4.100 / 10.  4.100
  libswscale      8.  3.100 /  8.  3.100
  libswresample   5.  3.100 /  5.  3.100
  libpostproc    58.  3.100 / 58.  3.100


    


    Thanks in advance,
Mary

    


  • How to execute the ffmpeg thumbnail extraction command using sub-process in django ?

    18 janvier 2017, par Nitish Kumar

    The following code we are using to extract the thumbnail images from video

    ffmpeg -i low.mkv -vf thumbnail=10,setpts=N/TB -r 1 -vframes 10 inputframes%03d.png

    This code is working absolutely fine on terminal, but it is giving an error when we are processing the same with subprocess in django.

    Our aim is to generate 10 Thumbnails from any length of the video

    Here is the code

    vaild_fps = "'thumbnail=10,setpts=N/TB -r 1 -vframes 10'"

    subprocess.call([settings.FFMPEG_PATH,
           '-i',
           input_file_path,
           '-vf',
           vaild_fps,
           thumbnail_output_file_path,            
       ]
    )

    Error No such filter : ’thumbnail=10,setpts=N/TB -r 1 -vframes 10’

    Error opening filters !

  • Get the list of I-Frames in a video using Python

    1er mars 2021, par Tina J

    I'm trying to get the list of indexes for all I-frames in a video in Python (and later save a portion of them as JPEG). Right now, I can traverse all frames using FFProbe in terminal, and see which one is I-frame :

    



    ffprobe -select_streams v -show_frames -show_entries frame=pict_type -of csv 18s.mp4


    



    which gives me something like this :

    



    frame,I
frame,B
frame,P
frame,B
frame,P
frame,B


    



    But how can I do that in Python (I'm in Windows) and get a list of all their indexes ?