Netzflut

Webdesign, Webentwicklung, Drupal & Zeuchs

Video - FFMPEG

Inhaltsverzeichniss

    Video size umcodieren
    ffmpeg -i take2.mp4 -s 1920x1080 take2-fullhd.mp4 | ergibt schwarze balken
    ffmpeg -i 1cd-kamera-tool-2.mp4 -aspect 16:9 -vf scale=1920:1080 1cd-kamera-tool-2-HD2.mp4 | besser

    batch, ganzes folder mit allen videos

    for f in *.mp4; do ffmpeg -i "$f" -aspect 16:9 -vf scale=1920:1080 "${f%.hd}.mp4"; done

    https://trac.ffmpeg.org/wiki/Scaling%20(resizing)%20with%20ffmpeg

    Audio aus einem Video entfernen
    ffmpeg -i INPUT.mp4 -codec copy -an OUTPUT.mp4

    Audio entfernen und neues Aduio hinzufügen
    http://ochremusic.com/2016/07/05/replacing-video-audio-using-ffmpeg/

    ffmpeg -i INPUT.mp4 -i AUDIO.wav -map 0:0 -map 1:0 -c:v copy -c:a aac -b:a 256k -shortest OUTPUT.mp4
    ffmpeg -i VideoFile.mp4 -i AudioFile.mkv -acodec copy -vcodec copy -map 0:v -map 1:a Output.mkv
    ffmpeg -i input.mp4 -i input.aac -map 0:0 -map 1:0 -c:v copy -c:a copy output.mp4

    Video speed
    https://trac.ffmpeg.org/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20video
    30 here is the speed 30 = 30x faster?

    ffmpeg -i input.mkv -vf "setpts=(1/30)*PTS" output.mkv
    ffmpeg -i montage-griff.MOV -vf "setpts=(1/30)*PTS" montage-griff-SPEEDUP.mp4

    Batch
    http://stackoverflow.com/questions/5784661/how-do-you-convert-an-entire-directory-with-ffmpeg

    Slideshow/Video aus einem Bild

    http://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images

    ffmpeg -framerate 24 -i img%03d.png output.mp4
    %03d heißt, die Benennun gder bilder ist bild001 bild002 bild003

    Videos verbinden

    https://trac.ffmpeg.org/wiki/Concatenate

    Webm

    https://trac.ffmpeg.org/wiki/Encode/VP8

    Tagging: 
    Helpdesk: