Skip to content

Instantly share code, notes, and snippets.

View Wilann's full-sized avatar

Wilson Chan Wilann

View GitHub Profile

FFMPEG Trim Video

This command is what I use personally to quickly trim a video on my specific hardware:

  • AMD Ryzen 5 4600G
  • NVIDIA RTX 4070 12 GB

My ffmpeg -version:

ffmpeg version 2025-05-12-git-8ce32a7cbb-full_build-www.gyan.dev Copyright (c) 2000-2025 the FFmpeg developers
built with gcc 15.1.0 (Rev2, Built by MSYS2 project)
@Wilann
Wilann / ubuntu20-04_compile_ffmpeg_with_libx264_libx265_conda_env.md
Created November 4, 2021 15:32
[Tutorial] Compiling `ffmpeg` on Ubuntu 20.04 with libx264, libx265, etc. (Conda environment interference)

Assumptions

  • The conda environment where the ffmpeg isn't updating is called ffmpeg_env
  • ffmpeg was downloaded when installing pytorch from PyTorch's official site

Issue

The current issue is that ffmpeg's configuration is in conda, which may looks something like this:

(ffmpeg_env) ~ $ ffmpeg -version