Opened 3 years ago

Closed 3 years ago

Last modified 2 years ago

#9221 closed task (invalid)

How to set yuv to full range in a mpeg2video?

Reported by: Jefferson Villasan Josol Owned by:
Priority: normal Component: avfilter
Version: git-master Keywords: Full range
Cc: mirh Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I've found out that YUV420P has a limited range based on MediaInfo
How can I set that into Full range using ffmpeg? Does anyone know how to set it into Full?
I'm currently using mpeg2video -q:v 0 because it has an acceptable quality and small file sizes compared to x264 -crf 0
Thanks in advance for those who can help me!

Change History (4)

comment:1 by Jefferson Villasan Josol, 3 years ago

Another question, can I use BT.2020 on 1080p video?

in reply to:  1 comment:2 by Balling, 3 years ago

Resolution: invalid
Status: newclosed

yuvj420p is full range, where j means full range and p means planar. But I recommend to use modern and not deprecated -vf scale=out_range=pc -color_range pc file.mp4

can I use BT.2020 on 1080p video?

Yes, both SDR and as part of BT.2100, i.e. HDR.

x264 -crf 0

Is mathematically lossless. mpeg2video is not. Seriously?

Also please stop asking such questions on a bugtracker. I agree those options (and their defaults and their strange behaviour) is confusing as hell.

Last edited 3 years ago by Balling (previous) (diff)

comment:3 by Balling, 2 years ago

x264 -crf 0

Is not lossless, I was wrong. Both x264 and ffmepg require -qp 0 instead.

comment:4 by mirh, 2 years ago

Cc: mirh added

I would guess a bug report to track the stupid JPEG pixel format related behaviours is due.
Putting even aside their eventual removal, it's kinda pathetic that ffmpeg will trigger random warnings by itself just because you are extracting/converting yuv420p to/from jpeg.

Note: See TracTickets for help on using tickets.