FFMPEG Convert YUV444p to YUV420p



Published: 2019-04-04 09:48:01 +0000
Categories: BASH,

Language

BASH

Description

Recently I've been using Kazam to create screencasts.

Although it's simple and convenient to use, it does have one drawback, in it's recordings it uses YUV444 as the colour encoding. That's almost fine for videos that are going to be played back on a desktop (depending on player support etc), but means that the majority of mobile devices will not play the content back.

It's therefore essential to convert to YUV420 before publishing. This snippet details how to do that using FFMPEG

Snippet

ffmpeg -i [input file] -c:v libx264 -pix_fmt yuv420p [output file]

Usage Example

ffmpeg -i Kazam_screencast_00003.mp4 -c:v libx264 -pix_fmt yuv420p example.mp4

Requires

Video Example

Keywords

FFmpeg, YUV420, YUV444, convert,

Latest Posts

Urldecode string (LUA)
FFMPEG Convert YUV444p to YUV420p (BASH)
Forcing FFMPEG to honour segment length in HLS Stream Creator (BASH)
Force CURL to place request to a specific IP (BASH)
Set a variable only if it is undefined (Javascript)
Ignore query string with Nginx caching proxy (NGinx)
Get breakdown of UK and non-UK votes for a Parliamentary Petition (Python)
Decompress Mozilla Firefox jsonlz4 bookmark backup files (Python)
Setting Git author details for a single repo (Git)
Checking Virtual Machine Resource Allocations with Libvirt (BASH)

Copyright © 2019 Ben Tasker | Sitemap | Privacy Policy
Available at snippets.bentasker.co.uk and snippets.6zdgh5a5e6zpchdz.onion