Closed paulm17 closed 4 years ago
Can you upload the file causing this?
Thanks for the quick response. Here is the link: https://www.dropbox.com/s/wt8m4z7nr0lsjp0/big_buck_bunny_720p_1mb.mp4?dl=0
Let me know if you have issues and I'll share it elsewhere.
I'm on Ubuntu 19.04 and it seems to be working fine. The one thing that might segfault there is null pointer deref on AVFormatContext.meta
. Does this fix the problem?
Unfortunately it does not. I will upgrade to 19.04 and then report back.
I've upgraded to 19.10 and still have the same issue.
What's your version of ffmpeg? thanks
ffmpeg version 4.1.3-0ubuntu1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8 (Ubuntu 8.3.0-6ubuntu1)
configuration: --prefix=/usr --extra-version=0ubuntu1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
This is stock ubuntu FFmpeg and not compiled from sources, as it seems the ubuntu patch bugs no longer affect them.
I upgraded from the manual compile I had under 18.10 to the newer 4.1.3 with 19.04.
I also mocked up a standalone program with the above code and it works fine. Although my main program still does not. But I'm sure it's a fault on my end somewhere.
Seeing as it works standalone, I'm closing this.
Many thanks for your help and building out this library also.
This morning, I finally got to the bottom of this.
I'm using https://github.com/discordapp/lilliput for fast image resizing. If I use lilliput and thumbnailer together in the same app, then I get the crash.
goroutine 1 [syscall]:
runtime.cgocall(0x5bd270, 0xc000049bb8, 0x5a3cee)
/usr/lib/go-1.13/src/runtime/cgocall.go:128 +0x5b fp=0xc000049b88 sp=0xc000049b50 pc=0x4a315b
I presume that because are both using cgo at the same time?
It's all good now. I'm running an MQ and have put videos and other types of files into separate executables.
The problem seems to be that lilliput https://github.com/discordapp/lilliput statically links to precompiled static FFmpeg library archives but thumbnailer links against system FFmpeg libraries, resulting in a link conflict. These libraries can not be used together in the same Go binary.
On Sun, 22 Sep 2019 at 11:41, Paul notifications@github.com wrote:
This morning, I finally got to the bottom of this.
I'm using https://github.com/discordapp/lilliput for fast image resizing. If I use lilliput and bakape together in the same app, then I get the crash.
goroutine 1 [syscall]: runtime.cgocall(0x5bd270, 0xc000049bb8, 0x5a3cee) /usr/lib/go-1.13/src/runtime/cgocall.go:128 +0x5b fp=0xc000049b88 sp=0xc000049b50 pc=0x4a315b
I presume that because are both using cgo at the same time?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bakape/thumbnailer/issues/57?email_source=notifications&email_token=AB347MHUZQXQLYHQUJI77KLQK4VUZA5CNFSM4IY6UZI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7JBKWY#issuecomment-533861723, or mute the thread https://github.com/notifications/unsubscribe-auth/AB347ME5B5ZLZTBQJ57Q6E3QK4VUZANCNFSM4IY6UZIQ .
Thanks for the confirmation!
Trying to run this neat library, but keeps on crashing for me.
I tried with the ffmpeg mentioned in the readme but still the same.
My code:
Panic: