[FFmpeg-trac] #9374(undetermined:new): mkv to mp4 has a color tint
FFmpeg
trac at avcodec.org
Sat Aug 14 09:05:43 EEST 2021
#9374: mkv to mp4 has a color tint
-------------------------------------+-------------------------------------
Reporter: razvan | Type: defect
Status: new | Priority: normal
Component: | Version: git-
undetermined | master
Keywords: mp4 tint | Blocked By:
color |
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
ubuntu 21.04
I have the same results on ubuntu and windows.
I am recording the screen in a lossless format to have small CPU load.
Here I use latest git version from johnvansickle.com
ffmpeg -video_size 1920x1200 -framerate 25 -f x11grab -i :0.0 -vcodec
libx264rgb -crf 0 -preset ultrafast rec.mkv
Input #0, matroska,webm, from 'vid.mkv':
Metadata:
ENCODER : Lavf58.64.100
Duration: 00:00:29.67, start: 0.000000, bitrate: 2829 kb/s
Stream #0:0: Video: h264 (High 4:4:4 Predictive), gbrp(pc,
gbr/unknown/unknown, progressive), 1920x1200, 30 fps, 30 tbr, 1k tbn, 60
tbc (default)
Metadata:
ENCODER : Lavc58.112.103 libx264rgb
DURATION : 00:00:29.666000000
then I convert/compress it in mp4
using latest git version from johnvansickle.com
ffmpeg -i rec.mkv -vcodec libx264 rec-git.mp4
ffprobe rec.mp4
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'rec.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf59.4.101
Duration: 00:00:02.16, start: 0.000000, bitrate: 719 kb/s
Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 /
0x31637661), gbrp(tv, gbr/unknown/unknown), 1920x1200, 714 kb/s, 25 fps,
25 tbr, 12800 tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
but the resulting mp4 is tinted by green and pink color (white areas are
tinted green and dark areas are tinted pink)
I have the same result using ffmpeg 4.4 for mkv to mp4, mp4 is tinted in
green and pink.
But if I use ffmpeg 4.3.1 for mkv to mp4 conversion the result is not
tinted anymore
fprobe rec-4.3.1.mp4
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'rec-4.3.1.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.45.100
Duration: 00:00:02.16, start: 0.000000, bitrate: 716 kb/s
Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 /
0x31637661), yuv444p, 1920x1200, 711 kb/s, 25 fps, 25 tbr, 12800 tbn
(default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9374>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list