Next revision
|
Previous revision
|
ffmpeg [2021/02/16 09:56] 127.0.0.1 external edit |
ffmpeg [2021/05/03 21:31] (current) sqbell |
* https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images | * https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images |
* http://stackoverflow.com/questions/20847674/ffmpeg-libx264-height-not-divisible-by-2 | * http://stackoverflow.com/questions/20847674/ffmpeg-libx264-height-not-divisible-by-2 |
| |
| ==== Stabilizacja wideo ==== |
| |
| * https://rainnic.altervista.org/en/how-stabilize-video-using-ffmpeg-and-vidstab |
| |
| ==== Obrót filmu o 180 stopni ==== |
| |
| <code> |
| ffmpeg -i input.mp4 -vf "hflip,vflip,format=yuv420p" -metadata:s:v rotate=0 \ |
| -codec:v libx264 -codec:a copy output.mkv |
| </code> |
| |
| INFO: |
| * https://superuser.com/questions/578321/how-to-rotate-a-video-180-with-ffmpeg |
| |
| ==== Przyspieszenie filmu ==== |
| |
| <code> |
| ffmpeg -i input.mkv -filter:v "setpts=PTS/60" output.mkv |
| </code> |
| |
| PTS/60 = 60-krotne przyspiesznie. |
| |
| INFO: |
| * https://superuser.com/questions/1261678/how-do-i-speed-up-a-video-by-60x-in-ffmpeg |
| |
| ==== Obrót, przyspieszenie, overlay ==== |
| |
| <code> |
| ffmpeg -hwaccel auto -i DSC_5796.MOV -i ~/Dokumenty/elisa_watermark.png -filter_complex "[0]hflip,vflip,format=yuv420p,setpts=PTS/4[a];[a][1]overlay=main_w-overlay_w-10:10" -metadata:s:v rotate=0 -codec:v libx264 -preset slow -crf 22 -filter:a "atempo=4.0" -movflags +faststart DSC_5796_rotated_and_fast_with_overlay.MOV |
| </code> |
| |
| ==== Obrót i overlay ==== |
| |
| <code> |
| ffmpeg -hwaccel auto -i DSC_5793.MOV -i ~/Dokumenty/elisa_watermark.png -filter_complex "[0]hflip,vflip,format=yuv420p[a];[a][1]overlay=main_w-overlay_w-10:10" -metadata:s:v rotate=0 -codec:v libx264 -preset slow -crf 22 -c:a copy -movflags +faststart DSC_5793_rotated_and_slow_with_overlay.MOV |
| </code> |