Browse Source

add ffmpeg cheatsheet

master
parent
commit
243c482337
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 3
      README.md
  2. 32
      content/ffmpeg-cheatsheet.rst

3
README.md

@ -6,5 +6,8 @@ Source for www.alexandrostheodotou.com @@ -6,5 +6,8 @@ Source for www.alexandrostheodotou.com
# Build
`make html`
# Dependencies
* pelican
# Deploy
`SSH_USER=<user> SSH_HOST=<host> SSH_TARGET_DIR=<target-dir> make rsync_upload`

32
content/ffmpeg-cheatsheet.rst

@ -0,0 +1,32 @@ @@ -0,0 +1,32 @@
Ffmpeg Cheatsheet
#################
:date: 2021-03-13 17:40
:tags: ffmpeg, video
:category: video
:slug: ffmpeg-cheatsheet
:authors: Alexandros Theodotou
:summary: Commands for doing various things with video using ffmpeg
This is a list of commands for editing video using ffmpeg.
Cut and Fade
------------
Start the video at minute 1, make it last 20 seconds and fade the
first and last 4 seconds of audio and video:
.. code-block:: bash
ffmpeg \
# start at minute 1
-ss 00:01:00 \
# duration 20 seconds
-t 20 \
# input video
-i myinvideo.webm \
# audio fade
-af "afade=in:d=4,afade=t=out:st=16:d=4" \
# video fade
-vf "fade=in:d=4,fade=out:st=16:d=4" \
# output video
myoutvideo.webm
Loading…
Cancel
Save