#2847(avfilter:new): 3D_LUT_Filter seems to work incorrect
#2847: 3D_LUT_Filter seems to work incorrect -------------------------------------+------------------------------------- Reporter: rainer | Type: defect fritz | Priority: normal Status: new | Version: 2.0 Component: avfilter | Blocked By: Keywords: 3d lut | Reproduced by developer: 0 conversion | Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Summary of the bug: I'm working a lot with ARRI Alexa LOG-C footage and tried to convert it with the new 3d_lut filter. The result differs a lot with a file which I converted via Davinci Resolve built in LOG-C to REC709 LUT and one which was downloaded from the ARRI LUT Generator. The Gamma seems to be ok but the colors seems to be incorrect. How to reproduce: I can upload sample files to your ftp where you can try yourself. Take a LOG-C Alexa Quicktime Prores 4444 file and convert it. {{{ % ffmpeg -i /Volumes/6TB_RAID5/ffmpeg_3DLUT/Source_LOGC_Alexa_trim.mov -s 1920x1080 -vf lut3d="/Volumes/6TB_RAID5/ffmpeg_3DLUT/ArriAlexaLogCtoRec709.dat" -vcodec prores_ks -pix_fmt yuv422p /Volumes/6TB_RAID5/ffmpeg_3DLUT/Alexa_LogC_LUT_converted_ffmpeg.mov ffmpeg version 2.0 built on Mac OSX 10.8.3 ffmpeg version 2.0 Copyright (c) 2000-2013 the FFmpeg developers built on Jul 23 2013 10:30:44 with llvm-gcc 4.2.1 (LLVM build 2336.11.00) configuration: --enable-gpl --enable-version3 --enable-nonfree --enable- static --disable-shared --enable-postproc --enable-libass --enable-libcelt --enable-libfaac --enable-libfdk-aac --enable-libfreetype --enable- libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable- openssl --enable-libtheora --enable-libvo-aacenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid libavutil 52. 38.100 / 52. 38.100 libavcodec 55. 18.102 / 55. 18.102 libavformat 55. 12.100 / 55. 12.100 libavdevice 55. 3.100 / 55. 3.100 libavfilter 3. 79.101 / 3. 79.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/6TB_RAID5/ffmpeg_3DLUT/Source_LOGC_Alexa_trim.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-08-09 12:49:47 timecode : 22:32:19:04 Duration: 00:00:00.36, start: 0.000000, bitrate: 405676 kb/s Stream #0:0(eng): Video: prores (ap4h / 0x68347061), yuv444p10le, 2048x1536, 405549 kb/s, SAR 1:1 DAR 4:3, 25 fps, 25 tbr, 25 tbn, 25 tbc Metadata: creation_time : 2013-08-09 12:49:47 handler_name : Apple Alias-Datensteuerung Stream #0:1(eng): Data: none (tmcd / 0x64636D74), 0 kb/s Metadata: creation_time : 2013-08-09 12:49:47 handler_name : Apple Alias-Datensteuerung timecode : 22:32:19:04 Incompatible pixel format 'yuv422p' for codec 'prores_ks', auto-selecting format 'yuv422p10le' Output #0, mov, to '/Volumes/6TB_RAID5/ffmpeg_3DLUT/Alexa_LogC_LUT_converted_ffmpeg.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt timecode : 22:32:19:04 encoder : Lavf55.12.100 Stream #0:0(eng): Video: prores (prores_ks) (apcn / 0x6E637061), yuv422p10le, 1920x1080 [SAR 3:4 DAR 4:3], q=2-31, 200 kb/s, 12800 tbn, 25 tbc Metadata: creation_time : 2013-08-09 12:49:47 handler_name : Apple Alias-Datensteuerung Stream mapping: Stream #0:0 -> #0:0 (prores -> prores_ks) Press [q] to stop, [?] for help frame= 9 fps=2.9 q=0.0 Lsize= 5678kB time=00:00:00.36 bitrate=129214.3kbits/s video:5677kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.025735% k-effectss-MacBook-Pro:~ k-effects$ }}} Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2847> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#2847: 3D_LUT_Filter seems to work incorrect -------------------------------------+------------------------------------- Reporter: rainer | Owner: fritz | Status: open Type: defect | Component: avfilter Priority: normal | Resolution: Version: git-master | Blocked By: Keywords: 3d lut | Reproduced by developer: 1 conversion | Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by richardpl): * status: new => open * version: 2.0 => git-master * reproduced: 0 => 1 Comment: If I remove first 3 lines from lut file I get much better result. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2847#comment:1> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#2847: 3D_LUT_Filter seems to work incorrect -------------------------------------+------------------------------------- Reporter: rainer | Owner: fritz | Status: open Type: defect | Component: avfilter Priority: normal | Resolution: Version: git-master | Blocked By: Keywords: 3d lut | Reproduced by developer: 1 conversion | Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by rainer fritz): If I remove it or set it to 0.0000 i get this error: [Parsed_lut3d_0 @ 0x7fc271d00000] Unexpected EOF [AVFilterGraph @ 0x7fc271c147c0] Error initializing filter 'lut3d' with args '/Volumes/6TB_RAID5/ffmpeg_3DLUT/ArriAlexaLogCtoRec709.dat' Error opening filters! can you please post the file... -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2847#comment:2> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#2847: 3D_LUT_Filter seems to work incorrect -------------------------------------+------------------------------------- Reporter: rainer | Owner: fritz | Status: open Type: defect | Component: avfilter Priority: normal | Resolution: Version: git-master | Blocked By: Keywords: 3d lut | Reproduced by developer: 1 conversion | Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by richardpl): Than just remove 2 empty lines. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2847#comment:3> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#2847: 3D_LUT_Filter seems to work incorrect -------------------------------------+------------------------------------- Reporter: rainer | Owner: fritz | Status: open Type: defect | Component: avfilter Priority: normal | Resolution: Version: git-master | Blocked By: Keywords: 3d lut | Reproduced by developer: 1 conversion | Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by rainer fritz): Replying to [comment:3 richardpl]:
Than just remove 2 empty lines.
I set the first three lines to zero. that worked. but when i remove lines I get an error. result with zeros in the first three lines is still too greenish... -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2847#comment:4> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#2847: 3D_LUT_Filter seems to work incorrect -------------------------------------+------------------------------------- Reporter: rainer | Owner: fritz | Status: open Type: defect | Component: avfilter Priority: normal | Resolution: Version: git-master | Blocked By: Keywords: 3d lut | Reproduced by developer: 1 conversion | Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by richardpl): I will repeat once again to remove 2 empty lines, that would be 1st and 3rd. Why you get error when removing first 3 lines is because 2.0 version is even more picky about syntax. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2847#comment:5> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#2847: 3D_LUT_Filter seems to work incorrect -------------------------------------+------------------------------------- Reporter: rainer | Owner: fritz | Status: open Type: defect | Component: avfilter Priority: normal | Resolution: Version: git-master | Blocked By: Keywords: 3d lut | Reproduced by developer: 1 conversion | Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by rainer fritz): Replying to [comment:5 richardpl]:
I will repeat once again to remove 2 empty lines, that would be 1st and 3rd. Why you get error when removing first 3 lines is because 2.0 version is even more picky about syntax.
Ok sorry... have it now. But it changes here not the output. It is still the same.... should i upload you a sample file? -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2847#comment:6> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#2847: 3D_LUT_Filter seems to work incorrect -------------------------------------+------------------------------------- Reporter: rainer | Owner: fritz | Status: open Type: defect | Component: avfilter Priority: normal | Resolution: Version: git-master | Blocked By: Keywords: 3d lut | Reproduced by developer: 1 conversion | Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by ubitux): That format looks "unsupported": the 3DLUTSIZE directive is not supported in the code and likely break the {{{parse_dat()}}} code, because the only .dat sample I had had not those (only tuple values per line). Remove the 3 first lines and it should work. Also note that there are tons of weird LUT format out there, without any reliable way of probing them. As a result, the parsing, and especially probing of those formats, is pretty weak. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2847#comment:7> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#2847: 3D_LUT_Filter seems to work incorrect -------------------------------------+------------------------------------- Reporter: rainer | Owner: fritz | Status: open Type: defect | Component: avfilter Priority: normal | Resolution: Version: git-master | Blocked By: Keywords: 3d lut | Reproduced by developer: 1 conversion | Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by rainer fritz): For ARRI Alexa LOG-C Footage you can download and configure your LUTs from their online LUT Generator: http://www.arri.com/camera/digital_cameras/tools/lut_generator/lut_generator... There you can get all kind of LUT formats... -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2847#comment:8> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg