[FFmpeg-trac] #7358(avfilter:new): Unable to use Lensfun
FFmpeg
trac at avcodec.org
Fri Aug 17 19:39:10 EEST 2018
#7358: Unable to use Lensfun
------------------------------------+------------------------------------
Reporter: Zeranoe | Owner:
Type: defect | Status: new
Priority: important | Component: avfilter
Version: git-master | Resolution:
Keywords: lensfun | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Comment (by Zeranoe):
Replying to [comment:1 cehoyos]:
> Is the issue reproducible with the following command line?
> {{{
> $ ffmpeg -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" -f null -
> }}}
I am:
{{{
ffmpeg version N-91626-gf631c328e6 Copyright (c) 2000-2018 the FFmpeg
developers
built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
configuration: --enable-gpl --enable-version3 --enable-liblensfun
--disable-optimizations --disable-stripping --disable-pthreads --disable-
os2threads --disable-w32threads --disable-doc
libavutil 56. 19.100 / 56. 19.100
libavcodec 58. 23.100 / 58. 23.100
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
[rawvideo @ 0x7f7f40801000] Warning: not compiled with thread support,
using thread emulation
Input #0, lavfi, from 'testsrc=s=hd1080':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 1920x1080
[SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
[rawvideo @ 0x7f7f41000000] Warning: not compiled with thread support,
using thread emulation
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
[Parsed_lensfun_0 @ 0x7f7f3fe03d00] Using camera Canon EOS 100D
[Parsed_lensfun_0 @ 0x7f7f3fe03d00] Using lens Canon EF-S 18-55mm
f/3.5-5.6 IS STM
ffmpeg(65374,0x7fff8f0ae380) malloc: *** error for object 0x7f7f3fd83000:
pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
}}}
Here's a backtrace:
{{{
warning: could not execute support code to read Objective-C class data in
the process. This may reduce the quality of type information available.
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
* frame #0: 0x00007fff566eab66 libsystem_kernel.dylib`__pthread_kill +
10
frame #1: 0x00007fff568b5080 libsystem_pthread.dylib`pthread_kill +
333
frame #2: 0x00007fff566461ae libsystem_c.dylib`abort + 127
frame #3: 0x00007fff56744822 libsystem_malloc.dylib`free + 521
frame #4: 0x00000001015a26ad
ffmpeg_g`lfLens::~lfLens(this=0x0000000102a4e1d0) at lens.cpp:53
frame #5: 0x00000001015a2755
ffmpeg_g`lfLens::~lfLens(this=0x0000000102a4e1d0) at lens.cpp:45
frame #6: 0x000000010158d513
ffmpeg_g`lfDatabase::~lfDatabase(this=0x0000000102d00dd0) at
database.cpp:53
frame #7: 0x000000010158d5b5
ffmpeg_g`lfDatabase::~lfDatabase(this=0x0000000102d00dd0) at
database.cpp:44
frame #8: 0x000000010158d647
ffmpeg_g`lfDatabase::Destroy(this=0x0000000102d00dd0) at database.cpp:63
frame #9: 0x0000000101597035
ffmpeg_g`::lf_db_destroy(db=0x0000000102d00dd0) at database.cpp:1565
frame #10: 0x00000001001ec73e ffmpeg_g`init(ctx=0x0000000102d00a40) at
vf_lensfun.c:182
frame #11: 0x00000001000ba519
ffmpeg_g`avfilter_init_dict(ctx=0x0000000102d00a40,
options=0x00007ffeefbfe2e0) at avfilter.c:917
frame #12: 0x00000001000baa91
ffmpeg_g`avfilter_init_str(filter=0x0000000102d00a40,
args="make=Canon:model=Canon EOS 100D:lens_model=Canon EF-S 18-55mm
f/3.5-5.6 IS STM") at avfilter.c:1018
frame #13: 0x00000001000fcbef
ffmpeg_g`create_filter(filt_ctx=0x00007ffeefbfe428,
ctx=0x0000000102d00880, index=0, name="lensfun",
args="make=Canon:model=Canon EOS 100D:lens_model=Canon EF-S 18-55mm
f/3.5-5.6 IS STM", log_ctx=0x0000000102d00880) at graphparser.c:149
frame #14: 0x00000001000fbd2b
ffmpeg_g`parse_filter(filt_ctx=0x00007ffeefbfe428, buf=0x00007ffeefbfe468,
graph=0x0000000102d00880, index=0, log_ctx=0x0000000102d00880) at
graphparser.c:192
frame #15: 0x00000001000fb86c
ffmpeg_g`avfilter_graph_parse2(graph=0x0000000102d00880, filters="",
inputs=0x00007ffeefbfe578, outputs=0x00007ffeefbfe570) at
graphparser.c:427
frame #16: 0x000000010001264e
ffmpeg_g`configure_filtergraph(fg=0x0000000102b0c480) at
ffmpeg_filter.c:1048
frame #17: 0x00000001000309f7
ffmpeg_g`ifilter_send_frame(ifilter=0x0000000102b0c5c0,
frame=0x0000000102d003c0) at ffmpeg.c:2187
frame #18: 0x00000001000304e7
ffmpeg_g`send_frame_to_filters(ist=0x0000000102b0c1c0,
decoded_frame=0x0000000102d003c0) at ffmpeg.c:2268
frame #19: 0x000000010002f5bf
ffmpeg_g`decode_video(ist=0x0000000102b0c1c0, pkt=0x00007ffeefbfec90,
got_output=0x00007ffeefbfec6c, duration_pts=0x00007ffeefbfec70, eof=0,
decode_failed=0x00007ffeefbfec68) at ffmpeg.c:2469
frame #20: 0x00000001000230d0
ffmpeg_g`process_input_packet(ist=0x0000000102b0c1c0,
pkt=0x00007ffeefbff0f0, no_eof=0) at ffmpeg.c:2623
frame #21: 0x000000010002a840 ffmpeg_g`process_input(file_index=0) at
ffmpeg.c:4505
frame #22: 0x0000000100021ab3 ffmpeg_g`transcode_step at ffmpeg.c:4625
frame #23: 0x000000010001f93b ffmpeg_g`transcode at ffmpeg.c:4679
frame #24: 0x000000010001ec82 ffmpeg_g`main(argc=10,
argv=0x00007ffeefbffa08) at ffmpeg.c:4886
frame #25: 0x00007fff5659a015 libdyld.dylib`start + 1
frame #26: 0x00007fff5659a015 libdyld.dylib`start + 1
}}}
lens.cpp:53 is part of the lfLens object destructor, so maybe it's on
Lensfun's end.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7358#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list