Recherche avancée

Médias (1)

Mot : - Tags -/framasoft

Autres articles (55)

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (7811)

  • Using ffmpeg alphamerge to mask two images before calculating similarity index [closed]

    12 août 2024, par user2814357

    I'm working on a script that removes duplicate frames from images stored on disk. I need to ignore certain irrelevant parts of the images.

    


    The following ffmpeg command line should work, but it returns the same SSIM statistics as without mask.

    


    ffmpeg -i 1.webp -i 2.webp -i mask.png -filter_complex \
"[0][2]alphamerge[img1]; \
 [1][2]alphamerge[img2]; \
 [img1]format=yuva420p[masked1]; \
 [img2]format=yuva420p[masked2]; \
 [masked1][masked2]ssim=stats_file=-" -f null -


    


    Example output :

    


    [Parsed_ssim_4 @ 0x7fb76b70ff00] SSIM Y:0.829392 (7.680003) U:0.987882 (19.165656) V:0.993201 (21.675403) All:0.883108 (9.322165)
[out#0/null @ 0x7fb76c604700] video:0KiB audio:0KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: unknown
frame=    1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A speed=0.602x    



    


    Result is the same with ffmpeg -i 1.webp -i 2.webp  -lavfi ssim=stats_file=- -f null -.

    


    [Parsed_ssim_0 @ 0x7f9c0cf06d80] SSIM Y:0.829392 (7.680003) U:0.987882 (19.165656) V:0.993201 (21.675403) All:0.883108 (9.322165)
[out#0/null @ 0x7f9c0da08e80] video:0KiB audio:0KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: unknown


    


    This is weird because the masked output files look as expected if I output them with :

    


    ffmpeg -i 1.webp -i 2.webp -i mask.png -filter_complex \
"[0][2]alphamerge[img1]; \
 [1][2]alphamerge[img2]; \
 [img1]format=yuva420p[masked1]; \
 [img2]format=yuva420p[masked2]" \
-map "[masked1]" masked_1.webp \
-map "[masked2]" masked_2.webp


    


    Does anyone know what the right syntax would be for getting the SSIM values from a single command using a mask ?

    


    Side note : If I use -map "[masked1]" masked_1.jpg it outputs the original picture, not the masked one. Could there be a problem in the ffmpeg pipeline ?

    


    Thank you very much !

    


  • dds : Fix enum declaration

    22 juillet 2015, par Vittorio Giovara
    dds : Fix enum declaration
    

    Drop the global variables with anonymous enum type.

    • [DH] libavcodec/dds.c
  • FFMPEG create 30 fps webcam snapshot [on hold]

    3 octobre 2015, par MM PP

    I am trying to make 30 pictures per second of webcam using FFMPEG.

    I tried :

    ffmpeg -f video4linux2 -s 640x480 -i /dev/video0 -vf fps=30/1 images/$(date +\%Y\%m\%d\%H\%M\%s\%N).jpeg

    bu I am getting this error :

    Could not get frame filename number 2 from pattern ’images/2015100310171443856624641693705.jpeg’ (either set updatefirst or use a pattern like %03d within the filename pattern)

    av_interleaved_write_frame() : Invalid argument

    frame= 2 fps=0.0 q=3.4 Lsize=N/A time=00:00:00.06 bitrate=N/A
    video:73kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB

    muxing overhead : unknown

    Conversion failed !

    What can I do ?