Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

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

Autres articles (110)

Sur d’autres sites (9648)

  • resize and crop HD video into square video using ffmpeg

    7 mai 2021, par Ahmet Cetin

    I want to scale and crop HD video (1920x1080) into square one while adding watermark. I tried

    


    ffmpeg
    
-i video.mp4
    
-i watermark.png
    
-filter_complex "[0]scale=720:720,crop=720:720[a] ;[1]scale=720:720[b] ;[a][b]overlay=(W-w)/2 :(H-h)/2"
    
output.mp4

    


    but it produces output with 889x500. Can anyone help me ? What I'm doing wrong ?

    


  • ffmpeg remove multiple segments from a video rotate and crop video

    2 novembre 2017, par 1234567

    ffmpeg remove multiple segments from a video rotate and crop video

    I have a video of 2 min 25 seconds , i want to remove part from 10 second to 16 second and 20 second to 26 second and rotate video and crop it

    I am trying this command

    "-y", "-i", j,
                         "-filter_complex",
                           "[0:v]trim=start=10:end=16,setpts=PTS-STARTPTS[a];  " +
                                   "[0:v]trim=start=20:end=26,setpts=PTS-STARTPTS[b]; " +
                                   "[0:a]atrim=start=10:end=16,asetpts=PTS-STARTPTS[c]; " +
                                   "[0:a]atrim=start=20:end=26,asetpts=PTS-STARTPTS[d]; " +
                                   "[a][c][b][d]concat=n=2:v=1:a=1[e][f],"+
                                   "crop=" + 40 + ":" + 20 + ":" + 100 + ":" + 100,"+
                                   "transpose=1", "-map", "'[e]'" ,"-map",
                           "'[f]'", "-preset", "ultrafast",out

    what is the correct command to do it

  • How to merge webm video with mp4 video with transperency ?

    30 novembre 2017, par kostya572

    I have 1080p webm video and 500x300 mp4 video. How could I place muted mp4 video on top-center position of webm video with transparency ? The output file format needed ".webm". Here what similar code I found, but it uses two mp4 videos and second video scales full width on front of first one :

    ffmpeg \
           -i in1.mp4 -i in2.mp4 \
           -filter_complex " \
               [0:v]setpts=PTS-STARTPTS, scale=480x360[top]; \
               [1:v]setpts=PTS-STARTPTS, scale=480x360, \
                    format=yuva420p,colorchannelmixer=aa=0.5[bottom]; \
               [top][bottom]overlay=shortest=1" \
           -vcodec libx264 out.mp4

    Output log :
    Output log: