How to Trim Videos Using Python and FFMPEG

Опубликовано: 07 Октябрь 2024
на канале: Coding With Adam
13,387
182

In this exciting video we are going to learn how to trim a video using Python and FFMPEG.

I will guide you through setting up the python project in VSCode. I assume you have Python 3 and Pipenv installed. Using the FFMPEG-Python package we will trim a video.

I will show you how to install the FFMPEG command line tool on Mac and Windows

FFMPEG Python video has no sound after trim? As we will discover the video and audio must be trimmed separately and then concatenated together. If you don't do this then your video will have no audio.

GitHub
https://github.com/CodingWith-Adam/tr...

FFMPEG-Python
https://github.com/kkroening/ffmpeg-p...

Brew Package Manager for Mac
https://brew.sh/

Chocolatey Package Manager for Windows
https://chocolatey.org/install#indivi...

Chapters
00:00 Intro
00:43 FFMPEG installed?
1:12 FFMPEG Mac Install
1:40 FFMPEG Win Install
2:03 Project setup
3:15 Install FFMPEG-Python
3:46 Code
10:59 Probe Trim
12:02 Trim duration off by a little bit?

#python #programming #coding #ffmpeg #ffmpeg-python