[FFmpeg-user] bt470bg and limited range produced when anticipating bt709 full range
hydra3333 at gmail.com
hydra3333 at gmail.com
Wed Mar 1 15:42:25 EET 2023
Hello. I am hoping to produce a slideshow from a list of jpeg images.
I was anticipating bt709 output from scale, however the log appears to show it's producing bt470bg with limited range, even though I
specify out_color_matrix=bt709 and out_range=full
Any suggestions would be very welcome.
Edit:
It seems -f concat produces this: Stream #0:0: Video: mjpeg (Baseline), 1 reference frame, yuvj420p(pc, bt470bg/unknown/unknown,
center)
So I'm barking up the wrong tree and should just go with yuvj420p bt470bg limited range, unless concat can be coerced to produce
bt709 full-range ?
Thank you.
Commandline:
"C:\SOFTWARE\ffmpeg\0-homebuilt-x64\ffmpeg_OpenCL.exe" -hide_banner -v verbose -stats
-reinit_filter 0 -safe 0 -auto_convert 1 -f concat -i
"G:\DVD\PAT-SLIDESHOWS\2004\2004-ffmpeg-concat-input-2023.03.01.23.08.38.34-3900X.txt"
-sws_flags lanczos+accurate_rnd+full_chroma_int+full_chroma_inp
-filter_complex
"scale=1920:1080:interl=0:eval=frame:flags=lanczos+accurate_rnd+full_chroma_int+full_chroma_inp:force_original_aspect_ratio=decrease
:in_color_matrix=auto:out_color_matrix=bt709:in_range=full:out_range=full,
pad=1920:1080:(ow-iw)/2:(oh-ih)/2:eval=frame:color=black,
settb=expr=1/25,setpts=4*N/TB,setdar=16/9"
-strict experimental -c:v h264_nvenc -preset p7 -multipass fullres -forced-idr 1 -g 25 -coder:v cabac -spatial-aq 1 -temporal-aq 1
-dpb_size 0 -bf:v 0 -bf:v 3 -b_ref_mode:v 0 -rc:v vbr -cq:v 0
-b:v 9000000 -minrate:v 3000000 -maxrate:v 15000000 -bufsize 15000000
-profile:v high -level 5.2 -movflags +faststart+write_colr -an
-y "G:\DVD\PAT-SLIDESHOWS\2004\2004.slideshow.HQ.mp4"
Top part of log:
Routing option strict to both codec and muxer layer
Input #0, concat, from 'G:\DVD\PAT-SLIDESHOWS\2004\2004-ffmpeg-concat-input-2023.03.01.23.08.38.34-3900X.txt':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg (Baseline), 1 reference frame, yuvj420p(pc, bt470bg/unknown/unknown, center), 2032x1524, 25 fps, 25 tbr,
25 tbn
[Parsed_scale_0 @ 0000027e9c8a6380] w:1920 h:1080 flags:'lanczos+accurate_rnd+full_chroma_int+full_chroma_inp' interl:0
Stream mapping:
Stream #0:0 (mjpeg) -> scale:default
setdar:default -> Stream #0:0 (h264_nvenc)
Press [q] to stop, [?] for help
[AVIOContext @ 0000027e9c8364c0] Statistics: 1046203 bytes read, 0 seeks
[AVIOContext @ 0000027e9c856540] Statistics: 2330610 bytes read, 0 seeks
[Parsed_scale_0 @ 0000027e9c8d9040] w:1920 h:1080 flags:'lanczos+accurate_rnd+full_chroma_int+full_chroma_inp' interl:0
[graph 0 input from stream 0:0 @ 0000027e9c8d9d40] w:2032 h:1524 pixfmt:yuvj420p tb:1/25 fr:25/1 sar:0/1
[swscaler @ 0000027e9d2f3200] deprecated pixel format used, make sure you did set range correctly
[Parsed_scale_0 @ 0000027e9c8d9040] w:2032 h:1524 fmt:yuvj420p sar:0/1 -> w:1440 h:1080 fmt:yuv420p sar:0/1 flags:0x00046200
[Parsed_pad_1 @ 0000027e9aac8880] w:1440 h:1080 -> w:1920 h:1080 x:240 y:0 color:0x000000FF
[Parsed_settb_2 @ 0000027e9c8a1780] tb:1/25 -> tb:1/25
[Parsed_settb_2 @ 0000027e9c8a1780] TB:0.040000 FRAME_RATE:25.000000 SAMPLE_RATE:nan
[Parsed_setdar_4 @ 0000027e9c8d9840] w:1920 h:1080 dar:16/9 sar:0/1 -> dar:16/9 sar:1/1
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9d304200] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9d331b00] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9d3b6000] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9d41a180] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9cbe5f40] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9d4eed40] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9d590f00] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9d5abc00] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9d5b8bc0] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9d659c00] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9d780880] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9d7f05c0] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9d84a040] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9d8fc040] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9d90e500] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9da06040] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[h264_nvenc @ 0000027e9c89a9c0] Loaded Nvenc version 12.0
[h264_nvenc @ 0000027e9c89a9c0] Nvenc initialized successfully
[h264_nvenc @ 0000027e9c89a9c0] 1 CUDA capable devices found
[h264_nvenc @ 0000027e9c89a9c0] [ GPU #0 - < NVIDIA GeForce RTX 2060 SUPER > has Compute SM 7.5 ]
[h264_nvenc @ 0000027e9c89a9c0] supports NVENC
[h264_nvenc @ 0000027e9c89a9c0] AQ enabled.
[h264_nvenc @ 0000027e9c89a9c0] Temporal AQ enabled.
[h264_nvenc @ 0000027e9c89a9c0] Lookahead enabled: depth 28, scenecut enabled, B-adapt enabled.
Output #0, mp4, to 'G:\DVD\PAT-SLIDESHOWS\2004\2004.slideshow.HQ.mp4':
Metadata:
encoder : Lavf60.2.100
Stream #0:0: Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(pc, bt470bg/unknown/unknown, progressive, center),
1920x1080 (0x0) [SAR 1:1 DAR 16:9], q=2-31, 9000 kb/s, 25 fps, 12800 tbn
Metadata:
encoder : Lavc60.2.100 h264_nvenc
Side data:
cpb: bitrate max/min/avg: 15000000/0/9000000 buffer size: 15000000 vbv_delay: N/A
frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[AVIOContext @ 0000027e9c81c4c0] Statistics: 475322 bytes read, 0 seeks
[graph 0 input from stream 0:0 @ 0000027e9c8d9d40] filter context - w: 2032 h: 1524 fmt: 12, incoming frame - w: 2032 h: 1354 fmt:
12 pts_time: 0.04
[graph 0 input from stream 0:0 @ 0000027e9c8d9d40] Changing video frame properties on the fly is not supported by all filters.
[swscaler @ 0000027e9d2f3200] deprecated pixel format used, make sure you did set range correctly
[Parsed_scale_0 @ 0000027e9c8d9040] w:2032 h:1354 fmt:yuvj420p sar:0/1 -> w:1621 h:1080 fmt:yuv420p sar:0/1 flags:0x00046200
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9da06040] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9fef7080] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9fb9e280] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9db90380] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9dce3440] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9dcf4ec0] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9f68e840] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9fb8b040] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9f6b0d40] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9fda6000] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9fe8f040] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9fe9c040] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9d7b8040] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9d7e5040] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9f636040] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[swscaler @ 0000027e9d2f3200] [swscaler @ 0000027e9f67ffc0] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert
[Parsed_pad_1 @ 0000027e9aac8880] w:1621 h:1080 -> w:1920 h:1080 x:148 y:0 color:0x000000FF
[vost#0:0/h264_nvenc @ 0000027e9c8b5c00] *** 99 dup!
[AVIOContext @ 0000027e9f469f00] Statistics: 1566043 bytes read, 0 seeks
[graph 0 input from stream 0:0 @ 0000027e9c8d9d40] filter context - w: 2032 h: 1524 fmt: 12, incoming frame - w: 945 h: 629 fmt: 12
pts_time: 0.08
[graph 0 input from stream 0:0 @ 0000027e9c8d9d40] Changing video frame properties on the fly is not supported by all filters.
[swscaler @ 0000027e9f846b40] deprecated pixel format used, make sure you did set range correctly
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 8866 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20230302/d837e658/attachment.bin>
More information about the ffmpeg-user
mailing list