[FFmpeg-trac] #9376(avfilter:new): Wrong conversion from flat to equirectangular
FFmpeg
trac at avcodec.org
Mon Aug 16 12:10:15 EEST 2021
#9376: Wrong conversion from flat to equirectangular
----------------------------------+----------------------------------
Reporter: jumpjack | Type: defect
Status: new | Priority: normal
Component: avfilter | Version: 4.3.2
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+----------------------------------
Summary of the bug:
reprojection between flat and equirectangular apparently add an undesired
rotation to the image (roll != 0)
{{{
ffmpeg -hide_banner -i test.png
-vf v360=fisheye:e -y test-equi.png
ffmpeg -hide_banner -i test-equi.png
-vf v360=e:e:yaw=10:pitch=10 -y test-
equi-rotated.png
ffmpeg -hide_banner -i test-equi-rotated.png
-vf v360=e:flat
-y test-flat.png
ffmpeg -hide_banner -i test-flat.png
-vf v360=flat:e,colorkey=0xFFFFFF:0.1 -y test-overlay-rotated.png
ffmpeg -hide_banner -i test-overlay-rotated.png
-vf v360=e:e:pitch=-10:yaw=-10 -y test-overlay-
back.png
ffmpeg -i test-equi.png -i test-overlay-back.png -filter_complex overlay
-y test-final.png
}}}
Last image test-final.png should appear identical to test-equi.png, but it
is not.
Version:
ffmpeg version 2021-07-06-git-758e2da289-full_build-www.gyan.dev Copyright
(c) 2000-2021 the FFmpeg developers
built with gcc 10.3.0 (Rev2, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-
w32threads --disable-autodetect --enable-fontconfig --enable-iconv
--enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-
libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh
--enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca
--enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e
--enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265
--enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx
--enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi
--enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf
--enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec
--enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-
libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-
libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb
--enable-libmp3lame --enable-libshine -- libavutil 57. 0.100 / 57.
0.100
libavcodec 59. 3.101 / 59. 3.101
libavformat 59. 4.100 / 59. 4.100
libavdevice 59. 0.100 / 59. 0.100
libavfilter 8. 0.103 / 8. 0.103
libswscale 6. 0.100 / 6. 0.100
libswresample 4. 0.100 / 4. 0.100
libpostproc 56. 0.100 / 56. 0.100
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9376>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list