Recherche avancée

Médias (0)

Mot : - Tags -/performance

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (82)

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

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (12132)

  • FFMPEG Error : Padded dimensions smaller then input dimensions

    17 mai 2023, par Hekimen

    I have this ffmpeg command

    


    ffmpeg -i input.mp4 \
-vf "scale=80:45:force_original_aspect_ratio=decrease,pad=80:45:(ow-iw)/2:(oh-ih)/2:color=black,setsar=1,fps=1/5" \
-q:v 2 \
output/screenshot_%05d.jpg


    


    but it returns error :

    


    [Parsed_pad_1 @ 0x7f2014097f00] Padded dimensions cannot be smaller than input dimensions.
[Parsed_pad_1 @ 0x7f2014097f00] Failed to configure input pad on Parsed_pad_1
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
Conversion failed!


    


    I tried command without pad filter and checked all screenshots, they are all generated with resolution 60x45. When i use same command but change scale and pad to 160x90 resolution it works without any error.

    


    I also checked ffmpeg manual for pad filter but i can't find anything helpful what should explain this error (https://ffmpeg.org/ffmpeg-filters.html#pad-1)

    


    How to make this command work ?

    


    I am using this ffmpeg version :

    


    ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 10.3.1 (Alpine 10.3.1_git20211027) 20211027
  configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-libdav1d --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --enable-libsrt --enable-libssh --enable-libvidstab --disable-stripping --disable-static --disable-librtmp --enable-libaom --enable-libopus --enable-libsoxr --enable-libwebp --enable-vaapi --enable-vdpau --enable-vulkan --disable-debug
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100


    


  • ffmpeg - How to resize frame collage (grid of images) to grid of different dimensions, while respecting frame order ?

    12 mars 2023, par JamesK

    I have an input of a "frame collage" (that is, frames extracted from a video, arranged in a certain grid). I want to rearrange the frames from a collage into a different grid shape. I can calculate the input coordinates (or bounds, e.g. x.min -> x.max, y.min -> y.max) and output coordinates for each frame. Basically, I want to resize a grid, while respecting the positioning of each element of the original grid.

    


    As an example, given a frame collage that is 9x2 (9 columns wide, 2 rows tall), with image resolution of 1080x240 (width x height), resize the frame collage to be 6x3 (6 columns wide, 3 columns tall), with an image resolution of 720x480 (width x height), while respecting the order of the frames in the input image (left to right, top to bottom).

    


    I generated the frame mappings (where the original frame was located, and where the new frame should be placed) for each frame, a table of that data is available here : https://pastebin.com/raw/a5UhKhek (posted on pastebin because discord would murder the formatting).

    


    Does anyone have any ideas on how I might be able to pull this off ?

    


    I've investigated the tile and untile filter, as well as looked into the select filter, although the syntax for the lattermost is a touch confusing to me.

    


  • add padding to ffmpeg slideshow images with different dimensions

    3 mars 2023, par Martin

    I have an ffmpeg command which takes 3 audio files and 3 image files, and concats the 3 audio files into a video with length 870.04 seconds, where the images play in a slideshow where each image is shown for 290.015 seconds.

    


    You can copy and paste the command into your web browser search bar to turn it into one line, then run it (filepaths are formatted for win10 command prompt)

    


    ffmpeg 
-r 2 -i "E:\myFolder\10. Deejay Punk-Roc - Knock 'em All The Way Out.aiff"
-r 2 -i "E:\myFolder\11. Deejay Punk-Roc - Spring Break.aiff"
-r 2 -i "E:\myFolder\12. Deejay Punk-Roc - Fat Gold Chain.aiff"
-r 2 -i "E:\myFolder\1_front.jpg"
-r 2 -i "E:\myFolder\2_back.jpg"
-r 2 -i "E:\myFolder\3_cd.jpg"

-filter_complex "[0:a][1:a][2:a]concat=n=3:v=0:a=1[a];[3:v]scale=w=600:h=593,setsar=1,loop=580.03:580.03[v3];[4:v]scale=w=600:h=593,setsar=1,loop=580.03:580.03[v4];[5:v]scale=w=600:h=593,setsar=1,loop=580.03:580.03[v5];[v3][v4][v5]concat=n=3:v=1:a=0,pad=ceil(iw/2)*2:ceil(ih/2)*2[v]"

-map "[v]" -map "[a]" -c:a pcm_s32le -c:v libx264 -bufsize 3M -crf 18 -pix_fmt yuv420p -tune stillimage -t 870.04 

"E:\myFolder\newOutputVid.mkv" 


    


    The most complex part of this command, which is the logic behind how long to show each image, is the filter_complex argument, which I will try to explain below :

    


    -filter_complex "

//concat the three audio files. [0:a] is referring to the 0'th file input which is audio file 'Knock 'em All The Way Out'
[0:a][1:a][2:a]concat=n=3:v=0:a=1[a];

//file input 3, is the first image, 
[3:v]scale=w=600:h=593,setsar=1,loop=580.03:580.03[v3];[4:v]scale=w=600:h=593,setsar=1,loop=580.03:580.03[v4];[5:v]scale=w=600:h=593,setsar=1,loop=580.03:580.03[v5];

//concat the three images in order
//set output resolution
[v3][v4][v5]concat=n=3:v=1:a=0,pad=ceil(iw/2)*2:ceil(ih/2)*2[v]"


    


    With the output video that gets rendered, the first image is shown correctly, because the video resolution 600w x 593h is the same as the image itself
enter image description here

    


    The second image however, was stretched to fit the frame of the video.
enter image description here

    


    How can i edit my filter_complex line for the [4:v], the 4th input file which is the second image 2_back.jpg, so that the image is not stretched ? Maybe like add black background padding to keep the image fully visible with the frame and not cropped/stretched

    


    Download files :
http://www.mediafire.com/folder/e8ja1n8elszk1lu,dxw4vglrz7polyh,ojjx6kcqruksv5r,lah9rano4svj46o,q5jg0083vbj9y1p,d3pt8ydf3ulqm5m/shared