Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert y4m file to yuv? [closed]

I searched the internet and Stack Overflow, but I could not find an answer:

  • Does anyone know how to convert a y4m file to yuv?
like image 888
roberutsu Avatar asked Jan 13 '23 06:01

roberutsu


1 Answers

ffmpeg to the rescue!

A detailed description of the format is found here:

Example files can be downloaded from http://samples.mplayerhq.hu/yuv4mpeg2/

To convert the file to YV12-format, do

$ ffmpeg -i example.y4m test.yuv

The first frame looks like this:

enter image description here

like image 162
Fredrik Pihl Avatar answered Feb 27 '23 01:02

Fredrik Pihl