Skip to content

Instantly share code, notes, and snippets.

@kaecy
Created December 16, 2021 16:54
Show Gist options
  • Save kaecy/08ffcdd1c3fd2c0fa3d02c64c73ee727 to your computer and use it in GitHub Desktop.
Save kaecy/08ffcdd1c3fd2c0fa3d02c64c73ee727 to your computer and use it in GitHub Desktop.

Audio Track Delay

Needs to be used after the input file.

Option:
  -itsoffset 1.3 (delay by 1.3 seconds)

Scale Video

Option:
  -filter:v scale=720:360 (scale to 720x360)

Default Audio Track

Makes track 0 the default audio track.

Option:
  -disposition:a 0

Stream Selection

Option:
  -map 0 (select everything from input 0)
  -map 0:a (selects only the audio stream from input 0)
  -map 1:v (selects ony the video stream from input 1)

Element Removal

Options:
  -sn (no subtitles)
  -vn (no video)
  -an (no audio)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment