[FFmpeg-trac] #7358(avfilter:new): Unable to use Lensfun

FFmpeg trac at avcodec.org
Wed Aug 15 23:51:50 EEST 2018


#7358: Unable to use Lensfun
----------------------------------+--------------------------------------
             Reporter:  Zeranoe   |                     Type:  defect
               Status:  new       |                 Priority:  important
            Component:  avfilter  |                  Version:  git-master
             Keywords:  lensfun   |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+--------------------------------------
 I'm unable to use Lensfun on Windows or MacOS, with MacOS throwing a
 malloc error:
 {{{
 ffmpeg(98713,0x7fff8f0ae380) malloc: *** error for object 0x7f94ebd3a600:
 pointer being freed was not allocated
 *** set a breakpoint in malloc_error_break to debug
 Abort trap: 6
 }}}

 Lensfun version: 20180811-3d771f6
 FFmpeg version: 20180815-4f8e65c (N-91611-g4f8e65c458)

 Invoking command:
 {{{
 ./ffmpeg -v 9 -loglevel 99 -f lavfi -i testsrc=s=hd1080 -vf
 lensfun=make=Canon:model="Canon EOS 100D":lens_model="Canon EF-S 18-55mm
 f/3.5-5.6 IS STM" -c:v libx264 -y o.mkv
 }}}

 MacOS output:
 {{{
 ffmpeg version N-91611-g4f8e65c458 Copyright (c) 2000-2018 the FFmpeg
 developers
   built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
   configuration: --disable-static --enable-shared --enable-gpl --enable-
 version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv
 --enable-libass --enable-libbluray --enable-libfreetype --enable-
 liblensfun --enable-libmp3lame --enable-libopencore-amrnb --enable-
 libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine
 --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame
 --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-
 zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-
 amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-
 libaom --enable-appkit --enable-avfoundation --enable-coreimage --enable-
 audiotoolbox
   libavutil      56. 19.100 / 56. 19.100
   libavcodec     58. 22.101 / 58. 22.101
   libavformat    58. 17.101 / 58. 17.101
   libavdevice    58.  4.101 / 58.  4.101
   libavfilter     7. 26.100 /  7. 26.100
   libswscale      5.  2.100 /  5.  2.100
   libswresample   3.  2.100 /  3.  2.100
   libpostproc    55.  2.100 / 55.  2.100
 Splitting the commandline.
 Reading option '-v' ... matched as option 'v' (set logging level) with
 argument '9'.
 Reading option '-loglevel' ... matched as option 'loglevel' (set logging
 level) with argument '99'.
 Reading option '-f' ... matched as option 'f' (force format) with argument
 'lavfi'.
 Reading option '-i' ... matched as input url with argument
 'testsrc=s=hd1080'.
 Reading option '-vf' ... matched as option 'vf' (set video filters) with
 argument 'lensfun=make=Canon:model=Canon EOS 100D:lens_model=Canon EF-S
 18-55mm f/3.5-5.6 IS STM'.
 Reading option '-c:v' ... matched as option 'c' (codec name) with argument
 'libx264'.
 Reading option '-y' ... matched as option 'y' (overwrite output files)
 with argument '1'.
 Reading option 'o.mkv' ... matched as output url.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option v (set logging level) with argument 9.
 Applying option y (overwrite output files) with argument 1.
 Successfully parsed a group of options.
 Parsing a group of options: input url testsrc=s=hd1080.
 Applying option f (force format) with argument lavfi.
 Successfully parsed a group of options.
 Opening an input file: testsrc=s=hd1080.
 detected 4 logical cores
 [Parsed_testsrc_0 @ 0x7f94ebd01280] Setting 's' to value 'hd1080'
 [Parsed_testsrc_0 @ 0x7f94ebd01280] size:1920x1080 rate:25/1
 duration:-1.000000 sar:1/1
 [AVFilterGraph @ 0x7f94ebd00a40] query_formats: 2 queried, 1 merged, 0
 already done, 0 delayed
 [lavfi @ 0x7f94ec000000] All info found
 [lavfi @ 0x7f94ec000000] stream 0: start_time: 0.000 duration:
 -368934881474191040.000
 [lavfi @ 0x7f94ec000000] format: start_time: 0.000 duration:
 -9223372036854.775 bitrate=0 kb/s
 Input #0, lavfi, from 'testsrc=s=hd1080':
   Duration: N/A, start: 0.000000, bitrate: N/A
     Stream #0:0, 1, 1/25: Video: rawvideo, 1 reference frame (RGB[24] /
 0x18424752), rgb24, 1920x1080 [SAR 1:1 DAR 16:9], 0/1, 25 tbr, 25 tbn, 25
 tbc
 Successfully opened the file.
 Parsing a group of options: output url o.mkv.
 Applying option vf (set video filters) with argument
 lensfun=make=Canon:model=Canon EOS 100D:lens_model=Canon EF-S 18-55mm
 f/3.5-5.6 IS STM.
 Applying option c:v (codec name) with argument libx264.
 Successfully parsed a group of options.
 Opening an output file: o.mkv.
 [file @ 0x7f94ebc00dc0] Setting default whitelist 'file,crypto'
 Successfully opened the file.
 Stream mapping:
   Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
 Press [q] to stop, [?] for help
 cur_dts is invalid (this is harmless if it occurs once at the start per
 stream)
 [rawvideo @ 0x7f94ec004800] PACKET SIZE: 6220800, STRIDE: 5760
 [Parsed_lensfun_0 @ 0x7f94ebd02d40] Setting 'make' to value 'Canon'
 [Parsed_lensfun_0 @ 0x7f94ebd02d40] Setting 'model' to value 'Canon EOS
 100D'
 [Parsed_lensfun_0 @ 0x7f94ebd02d40] Setting 'lens_model' to value 'Canon
 EF-S 18-55mm f/3.5-5.6 IS STM'
 [Parsed_lensfun_0 @ 0x7f94ebd02d40] Using camera Canon EOS 100D
 [Parsed_lensfun_0 @ 0x7f94ebd02d40] Using lens Canon EF-S 18-55mm
 f/3.5-5.6 IS STM
 ffmpeg(98713,0x7fff8f0ae380) malloc: *** error for object 0x7f94ebd3a600:
 pointer being freed was not allocated
 *** set a breakpoint in malloc_error_break to debug
 Abort trap: 6
 }}}

 Windows output (no error, just quits):
 {{{
 ffmpeg version N-91611-g4f8e65c458 Copyright (c) 2000-2018 the FFmpeg
 developers
   built with gcc 8.2.1 (GCC) 20180813
   configuration: --disable-static --enable-shared --enable-gpl --enable-
 version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv
 --enable-libass --enable-libbluray --enable-libfreetype --enable-
 liblensfun --enable-libmp3lame --enable-libopencore-amrnb --enable-
 libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine
 --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame
 --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-
 zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-
 amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-
 libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid
 --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-
 avisynth
   libavutil      56. 19.100 / 56. 19.100
   libavcodec     58. 22.101 / 58. 22.101
   libavformat    58. 17.101 / 58. 17.101
   libavdevice    58.  4.101 / 58.  4.101
   libavfilter     7. 26.100 /  7. 26.100
   libswscale      5.  2.100 /  5.  2.100
   libswresample   3.  2.100 /  3.  2.100
   libpostproc    55.  2.100 / 55.  2.100
 Splitting the commandline.
 Reading option '-v' ... matched as option 'v' (set logging level) with
 argument '9'.
 Reading option '-loglevel' ... matched as option 'loglevel' (set logging
 level) with argument '99'.
 Reading option '-f' ... matched as option 'f' (force format) with argument
 'lavfi'.
 Reading option '-i' ... matched as input url with argument
 'testsrc=s=hd1080'.
 Reading option '-vf' ... matched as option 'vf' (set video filters) with
 argument 'lensfun=make=Canon:model=Canon EOS 100D:lens_model=Canon EF-S
 18-55mm f/3.5-5.6 IS STM'.
 Reading option '-c:v' ... matched as option 'c' (codec name) with argument
 'libx264'.
 Reading option '-y' ... matched as option 'y' (overwrite output files)
 with argument '1'.
 Reading option 'o.mkv' ... matched as output url.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option v (set logging level) with argument 9.
 Applying option y (overwrite output files) with argument 1.
 Successfully parsed a group of options.
 Parsing a group of options: input url testsrc=s=hd1080.
 Applying option f (force format) with argument lavfi.
 Successfully parsed a group of options.
 Opening an input file: testsrc=s=hd1080.
 detected 8 logical cores
 [Parsed_testsrc_0 @ 000002265e6de040] Setting 's' to value 'hd1080'
 [Parsed_testsrc_0 @ 000002265e6de040] size:1920x1080 rate:25/1
 duration:-1.000000 sar:1/1
 [AVFilterGraph @ 000002265e6ddc40] query_formats: 2 queried, 1 merged, 0
 already done, 0 delayed
 [lavfi @ 000002265e6dc900] All info found
 [lavfi @ 000002265e6dc900] stream 0: start_time: 0.000 duration:
 -368934881474191040.000
 [lavfi @ 000002265e6dc900] format: start_time: 0.000 duration:
 -9223372036854.775 bitrate=0 kb/s
 Input #0, lavfi, from 'testsrc=s=hd1080':
   Duration: N/A, start: 0.000000, bitrate: N/A
     Stream #0:0, 1, 1/25: Video: rawvideo, 1 reference frame (RGB[24] /
 0x18424752), rgb24, 1920x1080 [SAR 1:1 DAR 16:9], 0/1, 25 tbr, 25 tbn, 25
 tbc
 Successfully opened the file.
 Parsing a group of options: output url o.mkv.
 Applying option vf (set video filters) with argument
 lensfun=make=Canon:model=Canon EOS 100D:lens_model=Canon EF-S 18-55mm
 f/3.5-5.6 IS STM.
 Applying option c:v (codec name) with argument libx264.
 Successfully parsed a group of options.
 Opening an output file: o.mkv.
 [file @ 000002265e6e7240] Setting default whitelist 'file,crypto'
 Successfully opened the file.
 Stream mapping:
   Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
 Press [q] to stop, [?] for help
 cur_dts is invalid (this is harmless if it occurs once at the start per
 stream)
 [rawvideo @ 000002265e6e4500] PACKET SIZE: 6220800, STRIDE: 5760
 [Parsed_lensfun_0 @ 000002265e6d4100] Setting 'make' to value 'Canon'
 [Parsed_lensfun_0 @ 000002265e6d4100] Setting 'model' to value 'Canon EOS
 100D'
 [Parsed_lensfun_0 @ 000002265e6d4100] Setting 'lens_model' to value 'Canon
 EF-S 18-55mm f/3.5-5.6 IS STM'
 }}}

 I can provide debug information if needed.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7358>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list