Skip to content

Instantly share code, notes, and snippets.

ffmpg recipes

Convert from ts to mp4

ffmpeg -i input.ts -c copy output.mp4

Concatenate

ffmpeg -i 'concat:input-1.ts|input-2.ts|input-3.ts' -codec copy output.ts

Split

ffmpeg -i <input> -vcodec copy -acodec copy -ss <from_time> -t <to_time> -sn <output>

@nickkraakman
nickkraakman / ffmpeg-cheatsheet.md
Last active April 2, 2024 23:16
FFmpeg cheat sheet for 360 video

FFmpeg Cheat Sheet for 360º video

Brought to you by Headjack

 
FFmpeg is one of the most powerful tools for video transcoding and manipulation, but it's fairly complex and confusing to use. That's why I decided to create this cheat sheet which shows some of the most often used commands.

 
Let's start with some basics:

  • ffmpeg calls the FFmpeg application in the command line window, could also be the full path to the FFmpeg binary or .exe file