E
E
Evgeny2021-03-11 14:25:07
fmpeg
Evgeny, 2021-03-11 14:25:07

How to preserve color space when converting from AVI to MP4 or WEBP?

Hello!

There is an avi source that I need to convert to mp4 and webp. When converting, I get more pale colors.

Input #0, avi, from 'en.avi':
Metadata:
date : 2021-03-04T13:42:47+02:00
Duration: 00:00:07.29, start: 0.000000, bitrate: 179702 kb/s
Stream # 0:0: Video: v210 (v210 / 0x30313276), yuv422p10le, 720x480, 177964 kb/s, 24 fps, 24 tbr, 24 tbn, 24 tbc
Stream #0:1: Audio: pcm_s16le ([1][0][ 0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (v210 (native) -> h264 (libx264))

Command used:
ffmpeg -i en.avi -colorspace 1 -color_primaries 1 -color_trc 1 -c:v libx264 -profile:v high422 -level 3.1 -pix_fmt yuv422p -crf 22 -an -filter:v "crop=720:240:0:120 " -s 300x100 -preset veryslow -movflags +faststart en.mp4

What needs to be changed?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question