HaveAGitGat / Tdarr

Tdarr - Distributed transcode automation using FFmpeg/HandBrake + Audio/Video library analytics + video health checking (Windows, macOS, Linux & Docker)
Other
3.03k stars 94 forks source link

FFMPEG fails with "Aborted (core dumped)" or sometimes even without an error message #976

Closed JohnnyDeeee closed 6 months ago

JohnnyDeeee commented 7 months ago

Describe the bug FFMPEG command fails with error Aborted (core dumped)

To Reproduce Steps to reproduce the behavior: I'm not sure yet what causes this. It fails 10/10 on the same file in my case. I can share a small part of the video if that is necessary.

Expected behavior FFMPEG should not fail.

Screenshots N.A

Please provide the following information:

Additional context N/A

JohnnyDeeee commented 7 months ago

i also got the corrupted double linked list and invalid chunk size errors.. Could be related to https://github.com/reticivis-net/mediaforge/issues/147, but this is the output from the free command on my host machine

              total        used        free      shared  buff/cache   available
Mem:        5925288      286912     5281600        2212      356776     5368960
Swap:       2097152           0     2097152

and inside the tdarr docker container (if that even matters)

              total        used        free      shared  buff/cache   available
Mem:        7834896     4728496      590928      149384     2515472     2811912
Swap:       4194300     1628132     2566168
JohnnyDeeee commented 7 months ago

This is the stat output of the video file

  File: According.to.Jim.S01E02.1080p.WEB-DL.x264.Rus.Eng.mkv
  Size: 2522125571      Blocks: 4926032    IO Block: 4096   regular file
Device: 26h/38d Inode: 1942768501107309336  Links: 1
Access: (0774/-rwxrwxr--)  Uid: ( 1000/     abc)   Gid: (   46/ plugdev)
Access: 2024-02-28 00:59:52.787695200 +0000
Modify: 2024-02-27 20:27:23.568908000 +0000
Change: 2024-02-28 00:59:19.112993300 +0000
 Birth: -
JohnnyDeeee commented 7 months ago

Using ffmpeg version 2.8.17-0ubuntu0.1 on another machine i got this output

ffmpeg version 2.8.17-0ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 20160609
  configuration: --prefix=/usr --extra-version=0ubuntu0.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Input #0, matroska,webm, from 'According.to.Jim.S01E02.1080p.WEB-DL.x264.Rus.Eng.mkv':
  Metadata:
    title           : According.to.Jim.S01E02.1080p.WEB-DL.x264-TrollHD-ParovozN
    encoder         : libebml v1.3.5 + libmatroska v1.4.8
    creation_time   : 2018-06-07 16:37:19
  Duration: 00:21:45.64, start: 0.000000, bitrate: 15453 kb/s
    Stream #0:0: Video: h264 (High), yuv420p(tv, bt709), 1920x1080 [SAR 19999:20000 DAR 19999:11250], Closed Captions, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      title           : According to Jim S01E02
      BPS-eng         : 14682971
      DURATION-eng    : 00:21:45.638000000
      NUMBER_OF_FRAMES-eng: 31304
      NUMBER_OF_BYTES-eng: 2396330693
      _STATISTICS_WRITING_APP-eng: mkvmerge v22.0.0 ('At The End Of The World') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-06-07 16:37:19
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(rus): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      title           : MVO (FOX)
      BPS-eng         : 192000
      DURATION-eng    : 00:21:45.600000000
      NUMBER_OF_FRAMES-eng: 40800
      NUMBER_OF_BYTES-eng: 31334400
      _STATISTICS_WRITING_APP-eng: mkvmerge v22.0.0 ('At The End Of The World') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-06-07 16:37:19
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(rus): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : MVO (СТС)
      BPS-eng         : 192000
      DURATION-eng    : 00:21:45.600000000
      NUMBER_OF_FRAMES-eng: 40800
      NUMBER_OF_BYTES-eng: 31334400
      _STATISTICS_WRITING_APP-eng: mkvmerge v22.0.0 ('At The End Of The World') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-06-07 16:37:19
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:3(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Metadata:
      BPS-eng         : 384000
      DURATION-eng    : 00:21:45.600000000
      NUMBER_OF_FRAMES-eng: 40800
      NUMBER_OF_BYTES-eng: 62668800
      _STATISTICS_WRITING_APP-eng: mkvmerge v22.0.0 ('At The End Of The World') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-06-07 16:37:19
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:4(eng): Subtitle: subrip (default)
    Metadata:
      title           : English
      BPS-eng         : 80
      DURATION-eng    : 00:21:29.918000000
      NUMBER_OF_FRAMES-eng: 463
      NUMBER_OF_BYTES-eng: 13023
      _STATISTICS_WRITING_APP-eng: mkvmerge v22.0.0 ('At The End Of The World') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-06-07 16:37:19
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
x265 [info]: HEVC encoder version 1.9
x265 [info]: build info [Linux][GCC 5.3.1][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
x265 [info]: Main profile, Level-4 (Main tier)
Segmentation fault
HaveAGitGat commented 7 months ago

Seems internal FFmpeg bug so we'd need to open a bug report here most likely where we can add input file: https://ffmpeg.org/bugreports.html

HaveAGitGat commented 6 months ago

Re-open if needed with sample file ty.