FFMPEG libx264 Segfault error
I'm installing ffmpeg 4.2.1 on alpine:3.11 image and I continuously get segfault errors which using ffmpeg with libx264.
Step 18/33 : RUN ffmpeg -version
ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9.2.0 (Alpine 9.2.0)
configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --disable-stripping --disable-static --disable-librtmp --enable-vaapi --enable-vdpau --enable-libopus --disable-debug
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
The command is:
ffmpeg -f rawvideo -vcodec rawvideo -pix_fmt rgba -s 320x180 -r 15 -i - -map 0:v:0 -vf format=yuv420p -vcodec libx264 -profile:v high -preset:v ultrafast -crf 18 -mov
The error is: Segmentation fault (core dumped)
and that's it. I'm using xvfb to run node, inside node a package called editly is running this ffmpeg command. Other fluent-ffmpeg commands seem to work without issues, only libx264 crashes.