Install latest FFmpeg to the Google Colab runtime.
- Click on the "Open in Colab" button to open this notebook in google colab
- FFmpeg in Google Colaboratory
- Mount your google drive to access it's files in colab
- Install FFmpeg
- REMUX video files without RE-ENCODING.
- Make sure that
outputFormat
that you have selected is supported for all tracks in theinputFile
. WebM
only supportVP9
,VP8
,AV1
video andVorbis
,Opus
audio andWebVTT
subtitles.
- TRIM video files without RE-ENCODING.
inputFile
: video file's path and setstartTime
andendTime
to trim.- Trimed video will be saved as same as the source's format.
- EXTRACT audio tracks from video files.
DTS
,DTS-HD
,DTS-MA
,TrueHD
tracks will be muxed as a.mka
file.
- For
H.264
/AVC
tracks run first cell. - For
H.265
/HEVC
tracks run second cell.
CRF
and2-Pass
encoding available.- This cell only encodes the first video track from the input file.
- Convert
HDR
video toSDR
video. toneMap
: Select tone mapping method.
- Only
x265
/HEVC
tracks are supported. extractColors
: View the color information of the footage.- When encoding, make sure
extractColors
is deselected.