Re: [FFmpeg-trac] #10884(avfilter:new): Using `-hwaccel_output_format videotoolbox_vld` make `scale_vt` to produce wrong color

2024-02-26 Thread FFmpeg
#10884: Using `-hwaccel_output_format videotoolbox_vld` make `scale_vt` to 
produce
wrong color
+
 Reporter:  gnattu  |Owner:  (none)
 Type:  defect  |   Status:  new
 Priority:  normal  |Component:  avfilter
  Version:  git-master  |   Resolution:
 Keywords:  |   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+
Changes (by gnattu):

 * Attachment "correct-color.jpg" added.

 The correct color output. The sunlight looks more natural.
-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-trac] #10884(avfilter:new): Using `-hwaccel_output_format videotoolbox_vld` make `scale_vt` to produce wrong color

2024-02-26 Thread FFmpeg
#10884: Using `-hwaccel_output_format videotoolbox_vld` make `scale_vt` to 
produce
wrong color
+
 Reporter:  gnattu  |Owner:  (none)
 Type:  defect  |   Status:  new
 Priority:  normal  |Component:  avfilter
  Version:  git-master  |   Resolution:
 Keywords:  |   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+
Changes (by gnattu):

 * Attachment "wrong-color.jpg" added.

 The wrong color output. The sunlight appears too yellow.
-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-trac] #10884(avfilter:new): Using `-hwaccel_output_format videotoolbox_vld` make `scale_vt` to produce wrong color

2024-02-26 Thread FFmpeg
#10884: Using `-hwaccel_output_format videotoolbox_vld` make `scale_vt` to 
produce
wrong color
--+--
 Reporter:  gnattu| Type:  defect
   Status:  new   | Priority:  normal
Component:  avfilter  |  Version:  git-master
 Keywords:|   Blocked By:
 Blocking:|  Reproduced by developer:  0
Analyzed by developer:  0 |
--+--
 Summary of the bug:

 When use `-hwaccel_output_format videotoolbox_vld` with `scale_vt` filter,
 the output SDR file will have a wrong color. The red light would appears
 to be yellow.

 The sunlight from below video sample from LG promotion will produce a
 difference that is very easy to tell:

 
https://isovideo.com/SDR_to_HLG_Conversion_Clips/LG_4K_OLED_Wonders-184055-tmu_hlg10_hevc.mkv

 How to reproduce:

 Run below command and the test.mp4 will have wrong color:
 {{{
 % ./ffmpeg -hwaccel videotoolbox \
 -hwaccel_output_format videotoolbox_vld \
 -i LG_4K_OLED_Wonders-184055-tmu_hlg10_hevc.mkv \
 -c:v hevc_videotoolbox \
 -profile:v main \
 -b:v 3M \
 -vf
 
scale_vt=w=iw/2:h=ih/2:color_matrix=bt709:color_primaries=bt709:color_transfer=bt709
 \
 -c:a copy \
 -tag:v hvc1 \
 test.mp4
 }}}

 Run this, just removing the `-hwaccel_output_format videotoolbox_vld \`
 line, and replace it with an hwupload, will give you a correct color:

 {{{
 %./ffmpeg -hwaccel videotoolbox \
 -i /Users/gnattu/Movies/ffmpeg-sample/4K_HLG.mkv \
 -c:v hevc_videotoolbox \
 -profile:v main \
 -b:v 3M \
 -vf
 
hwupload,scale_vt=w=iw/2:h=ih/2:color_matrix=bt709:color_primaries=bt709:color_transfer=bt709
 \
 -c:a copy \
 -tag:v hvc1 \
 test-correct.mp4
 }}}
-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-trac] #10826(ffmpeg:closed): Short trim inside filter_complex leads to empty output

2024-02-26 Thread FFmpeg
#10826: Short trim inside filter_complex leads to empty output
-+--
 Reporter:  Gyan |Owner:  (none)
 Type:  defect   |   Status:  closed
 Priority:  critical |Component:  ffmpeg
  Version:  unspecified  |   Resolution:  fixed
 Keywords:   |   Blocked By:
 Blocking:  7.0  |  Reproduced by developer:  0
Analyzed by developer:  0|
-+--
Changes (by Gyan):

 * status:  new => closed
 * resolution:   => fixed

Comment:

 Confirmed that current master is ok.

 Upon bisecting, the fix is 1ea2e757f7cba714eefd27efb2f9285078bba4a3
-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-trac] #10826(ffmpeg:new): Short trim inside filter_complex leads to empty output

2024-02-26 Thread FFmpeg
#10826: Short trim inside filter_complex leads to empty output
-+--
 Reporter:  Gyan |Owner:  (none)
 Type:  defect   |   Status:  new
 Priority:  critical |Component:  ffmpeg
  Version:  unspecified  |   Resolution:
 Keywords:   |   Blocked By:
 Blocking:  7.0  |  Reproduced by developer:  0
Analyzed by developer:  0|
-+--
Comment (by Niklas Haas):

 I can't reproduce this on current git master (a3ca4beeaa4). In particular,
 every commit since d119ae2fd82a4 fixes the output for me:

 $ git checkout d119ae2fd82a4 && make
 $ ./ffmpeg -y -i src.mp4 -filter_complex "[0:v]trim=start=0.5:end=0.9[v];
 [0:a]atrim=start=0.5:end=0.9[a]" -map [v] -map [a] out.mp4
 ffmpeg version N-112959-gd119ae2fd82 Copyright (c) 2000-2023 the FFmpeg
 developers
   built with gcc 13 (SUSE Linux)
   configuration: --prefix=/home/nand/dev/prefix/ --disable-optimizations
 --assert-level=2 --enable-libfreetype --enable-libharfbuzz --enable-
 libx264 --enable-libzimg --enable-lcms2 --enable-gpl --enable-libdrm
 --enable-libdav1d --enable-libplacebo --samples=/home/nand/cms/fate-suite
   libavutil  58. 32.100 / 58. 32.100
   libavcodec 60. 35.100 / 60. 35.100
   libavformat60. 18.100 / 60. 18.100
   libavdevice60.  4.100 / 60.  4.100
   libavfilter 9. 14.100 /  9. 14.100
   libswscale  7.  6.100 /  7.  6.100
   libswresample   4. 13.100 /  4. 13.100
   libpostproc57.  4.100 / 57.  4.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'src.mp4':
   Metadata:
 major_brand : isom
 minor_version   : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf60.21.101
   Duration: 00:00:01.00, start: 0.00, bitrate: 150 kb/s
   Stream #0:0[0x1](und): Video: h264 (High 4:4:4 Predictive) (avc1 /
 0x31637661), yuv444p(progressive), 320x240 [SAR 1:1 DAR 4:3], 61 kb/s, 25
 fps, 25 tbr, 12800 tbn (default)
 Metadata:
   handler_name: VideoHandler
   vendor_id   : [0][0][0][0]
   encoder : Lavc60.40.100 libx264
   Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
 mono, fltp, 70 kb/s (default)
 Metadata:
   handler_name: SoundHandler
   vendor_id   : [0][0][0][0]
 Stream mapping:
   Stream #0:0 (h264) -> trim:default
   Stream #0:1 (aac) -> atrim:default
   trim:default -> Stream #0:0 (libx264)
   atrim:default -> Stream #0:1 (aac)
 Press [q] to stop, [?] for help
 [libx264 @ 0x4e82fc0] using SAR=1/1
 [libx264 @ 0x4e82fc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
 AVX FMA3 BMI2 AVX2
 [libx264 @ 0x4e82fc0] profile High 4:4:4 Predictive, level 1.3, 4:4:4,
 8-bit
 [libx264 @ 0x4e82fc0] 264 - core 164 - H.264/MPEG-4 AVC codec - Copyleft
 2003-2022 - http://www.videolan.org/x264.html - options: cabac=1 ref=3
 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00
 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0
 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=7
 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25
 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
 Output #0, mp4, to 'out.mp4':
   Metadata:
 major_brand : isom
 minor_version   : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf60.18.100
   Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv444p(progressive),
 320x240 [SAR 1:1 DAR 4:3], q=2-31, 25 fps, 12800 tbn
 Metadata:
   encoder : Lavc60.35.100 libx264
 Side data:
   cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
   Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp,
 69 kb/s
 Metadata:
   encoder : Lavc60.35.100 aac
 [out#0/mp4 @ 0x4e81dc0] video:5kB audio:4kB subtitle:0kB other streams:0kB
 global headers:0kB muxing overhead: 21.040626%
 frame=   23 fps=0.0 q=-1.0 Lsize=  11kB time=N/A bitrate=N/A dup=13
 drop=0 speed=N/A
 [libx264 @ 0x4e82fc0] frame I:1 Avg QP:18.26  size:  3164
 [libx264 @ 0x4e82fc0] frame P:6 Avg QP:15.53  size:   183
 [libx264 @ 0x4e82fc0] frame B:16Avg QP:13.16  size:31
 [libx264 @ 0x4e82fc0] consecutive B-frames:  4.3%  0.0% 26.1% 69.6%
 [libx264 @ 0x4e82fc0] mb I  I16..4: 43.7% 29.7% 26.7%
 [libx264 @ 0x4e82fc0] mb P  I16..4:  0.2%  0.2%  0.0%  P16..4:  6.4%  2.2%
 0.8%  0.0%  0.0%skip:90.2%
 [libx264 @ 0x4e82fc0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  2.8%  0.0%
 0.0%  direct: 0.0%  skip:97.2%  L0:69.6% L1:25.6% BI: 4.8%
 [libx264 @ 0x4e82fc0] 8x8