Reading option '/code/data/sample-coded-2.mp4'. matched as option 'filter_complex' (create a complex filtergraph) with argument 'hwdownload,format=nv12,crop=w=240:h=240:x=133:y=133:exact=1'. matched as option 'y' (overwrite output files) with argument '1'. matched as option 'f' (force format) with argument 'mp4'. matched as option 'pix_fmt' (set pixel format) with argument 'yuv420p'. matched as option 'c' (codec name) with argument 'h264_nvenc'. ![]() matched as AVOption 'cq:v' with argument '16'. matched as input url with argument '/code/data/sample.mp4'. matched as option 'vsync' (video sync method) with argument '0'. matched as option 'hwaccel_output_format' (select output format used with HW accelerated decoding) with argument 'cuda'. matched as option 'c' (codec name) with argument 'h264_cuvid'. matched as option 'hwaccel' (use HW accelerated decoding) with argument 'cuda'. matched as option 'report' (generate a report) with argument '1'. Report written to "ffmpeg-20210615-164000.log"įfmpeg -report -hwaccel cuda -c:v h264_cuvid -hwaccel_output_format cuda -vsync 0 -i /code/data/sample.mp4 -vsync 0 -cq:v 16 -c:v h264_nvenc -pix_fmt yuv420p -f mp4 -y -filter_complex "hwdownload,format=nv12,crop=w=240:h=240:x=133:y=133:exact=1" /code/data/sample-coded-2.mp4įfmpeg version N-102632-g575e52272d Copyright (c) 2000-2021 the FFmpeg developersīuilt with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)Ĭonfiguration: -enable-nonfree -enable-gpl -enable-libnpp -enable-libx264 -enable-libx265 -enable-cuda -extra-cflags=-I/usr/local/cuda/include -extra-ldflags=-L/usr/local/cuda/lib64 ![]() In the report below, video was used, but it seems to happen on every video I checked. How to reproduce: decode video using h264_cuvid, in video filter specify "hwdownload,format=nv12,crop=.:x=(even):y=(even):exact=1". ![]() Summary of the bug: when crop filtering any video in nv12 format with exact=1, it works good for even (x, y), but for odd (x, y) the resulting video has strong color mismatch as if two color components were swapped in process.
0 Comments
Leave a Reply. |