Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (88)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

Sur d’autres sites (10626)

  • ffmpeg combine multiple images - output video incorrect xfade transition time, and total length

    24 janvier 2021, par jsaluja

    I want to merge 5 images with transition at specific times 4.00, 10.0, 16.0, 22.0, with a transition duration of 1 sec, and a 27 sec audio into a 27 sec video clip.

    


    I used the below command, and got output video of 10 min 43 sec

    


    ./ffmpeg \
-i 27.m4a \
-loop 1 -t 4.0 -i image01.jpeg \
-loop 1 -t 6.0 -i image02.jpeg \
-loop 1 -t 6.0 -i image03.jpeg \
-loop 1 -t 6.0 -i image04.jpeg \
-loop 1 -t 5.0 -i image05.jpeg \
-movflags faststart -pix_fmt yuva420p \
-filter_complex " \
[1:v] format=pix_fmts=yuva420p, \
scale=1080:1920:force_original_aspect_ratio=decrease, \
pad=1080:1920:(ow-iw)/2:(oh-ih)/2, \
zoompan=z='if(eq(on,1),1,zoom+0.0004170)':x='iw-iw/zoom':y='0':fps=60:d=60*4.000:s=1080x1920, \
crop=w=1080:h=1920:x='(iw-ow)/2':y='(ih-oh)/2', \
setpts=PTS-STARTPTS+0.000/TB[v0]; \
[2:v] format=pix_fmts=yuva420p, \
scale=1080:1920:force_original_aspect_ratio=decrease, \
pad=1080:1920:(ow-iw)/2:(oh-ih)/2, \
zoompan=z='if(eq(on,1),1,zoom+0.0004170)':x='0':y='ih-ih/zoom':fps=60:d=60*6.000:s=1080x1920, \
crop=w=1080:h=1920:x='(iw-ow)/2':y='(ih-oh)/2', \
setpts=PTS-STARTPTS+4.000/TB[v1]; \
[3:v] format=pix_fmts=yuva420p, \
scale=1080:1920:force_original_aspect_ratio=decrease, \
pad=1080:1920:(ow-iw)/2:(oh-ih)/2, \
zoompan=z='if(eq(on,1),1,zoom+0.0004170)':x='0':y='ih-ih/zoom':fps=60:d=60*6.000:s=1080x1920, \
crop=w=1080:h=1920:x='(iw-ow)/2':y='(ih-oh)/2', \
setpts=PTS-STARTPTS+10.000/TB[v2]; \
[4:v] format=pix_fmts=yuva420p, \
scale=1080:1920:force_original_aspect_ratio=decrease, \
pad=1080:1920:(ow-iw)/2:(oh-ih)/2, \
zoompan=z='if(eq(on,1),1,zoom+0.0004170)':x='iw-iw/zoom':y='0':fps=60:d=60*6.000:s=1080x1920, \
crop=w=1080:h=1920:x='(iw-ow)/2':y='(ih-oh)/2', \
setpts=PTS-STARTPTS+16.000/TB[v3]; \
[5:v] format=pix_fmts=yuva420p, \
scale=1080:1920:force_original_aspect_ratio=decrease, \
pad=1080:1920:(ow-iw)/2:(oh-ih)/2, \
zoompan=z='if(eq(on,1),1,zoom+0.0004170)':x='iw-iw/zoom':y='ih-ih/zoom':fps=60:d=60*5.000:s=1080x1920, \
crop=w=1080:h=1920:x='(iw-ow)/2':y='(ih-oh)/2', \
setpts=PTS-STARTPTS+22.000/TB[v4]; \
[v0][v1]xfade=transition=circlecrop:duration=1.00:offset=3.000[v01];\
[v01][v2]xfade=transition=hrslice:duration=1.00:offset=8.000[v12];\
[v12][v3]xfade=transition=slideleft:duration=1.00:offset=13.000[v23];\
[v23][v4]xfade=transition=vdslice:duration=1.00:offset=18.000[v34]" \
-map "0:a" -map [v34] -y output.mp4


    


    ====

    


    I think I need to tweak the time values are specified at 4 places to get this right

    


    -loop 1 -t TIMESTAMP1

    


    I set this to expected duration of each image i.e, 4, 6, 6, 6, 5

    


    zoompan=z='if(eq(on,1),1,zoom+0.0004170)':x='iw-iw/zoom':y='0':fps=60:d=60* TIMESTAMP2 :s=1080x1920,

    


    I set this to expected duration of each image i.e, 4, 6, 6, 6, 5

    


    setpts = PTS - STARTPTS+ TIMESTAMP3 /TB

    


    I set this to cumulative offset from 0 i.e, 0, 4, 10, 16, 22

    


    Additionally, I ensured that
TIMESTAMP2 + TIMESTAMP3 = time at which each image display should end ie., 4, 10, 16, 22, 27

    


    xfade=transition=circlecrop:duration=1.00:offset=TIMESTAMP4

    


    =======

    


    Few problems

    


      

    1. The transition between images, is not as per the times i expect
    2. 


    3. Overall clip length is long 10:43 as opposed to expected 00:27
    4. 


    5. Overall processing time is 5+ minutes
    6. 


    


    Am i missing something ?

    


  • How to convert a single photo into video with some filters ?

    11 avril 2019, par Zedd W

    I have a picture in jpeg format : cat.

    I converted this picture into a video through some ffmpeg filter : scale and zoompan. The video is that the picture is slowly enlarged

    Then, I encountered some problems when using the following command.

    command 1

    ffmpeg -loop 1 -i cat.jpeg -filter_complex "scale=iw*2:-1,zoompan=z='zoom+0.002':x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':s=720x960" -pix_fmt yuv420p -vcodec libx264 -preset ultrafast -crf 28 -y -t 5 out.mp4

    command 2 (Just adjust the scale value of command 1)

    ffmpeg -loop 1 -i cat.jpeg -filter_complex "scale=iw*8:-1,zoompan=z='zoom+0.002':x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':s=720x960" -pix_fmt yuv420p -vcodec libx264 -preset ultrafast -crf 28 -y -t 5 out.mp4

    Problems :

    1. The picture in the video will zoom in slowly, which is true, but until about the fourth second, the picture will return to the minimum and re-enlarge.Is this the filter parameter I used wrong ?

    2. There is a warning after running the command : [swscaler @ 0x113c66000] Warning: data is not aligned! This can lead to a speed loss. The picture size is 720 x 960 and the video is the same. 720/16 is an integer and 960/16 also an integer. So what not aligned ?

    3. There is another warning : deprecated pixel format used, make sure you did set range correctly. Did I set the pix_fmtparameter wrong ?

    4. command 2 and command 1 are different scale value, But the time they run will vary greatly (If you try to run it). Using a larger scale will have better results. So how to choose a scale value or have better way ?

  • FFMPEG - How to resize an image overlay ?

    2 mars 2020, par John Doe

    I need to resize input 3 (logo.gif) to 360x360, but using scale=360:360 just made my video quality really bad. Here’s my code :

    ffmpeg -y -hide_banner -safe 0 -f concat -i "concat.txt" -i "overlay.png" -i "audio.mp3" -ignore_loop 0 -i "logo.gif" -filter_complex "[0]scale=3840x2160,zoompan=z='if(lte(zoom,1.0),1.25,max(1.001,zoom-0.0012))':x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':fps=20:d=200:s=1920x1080[p];[p][1]overlay, scale=1920:1080, drawtext=fontfile=Heathergreen.otf:text=TITLE':fontcolor=black:fontsize=62:x=135:y=940, drawtext=fontfile=voxbox.ttf:text='TEXT':fontcolor=white:fontsize=70:x=120:y=885[v];[2:a]showwaves=mode=cline:s=178x56:r=20:scale=sqrt:colors=0x222222,colorkey=0x000000:0.01:0.1,format=yuva420p[w];[v][3]overlay=20:500[z];[z][w]overlay=108:740[outv]" -map "[outv]" -map 2:a -pix_fmt yuv420p -c:v libx264 -c:a aac -preset veryfast -shortest -movflags faststart -fflags genpts -r 20 "output.mp4"

    UPDATE : I’ve simply resized the image and used that as input rather than resizing during the encode. It works fine, but if anyone has an answer to this I’d be curious to know where I was going wrong.