Opened 4 months ago

Closed 4 months ago

Last modified 4 months ago

#7844 closed defect (worksforme)

32-bit FFMPEG - Libaom crashes

Reported by: Lenin_Lime Owned by:
Priority: important Component: undetermined
Version: git-master Keywords: libaom crash
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

So this bug only seems to happen with 32-bit FFMPEG when trying to encode into AV1 with Libaom. FFMPEG simply crashes after trying to encode the first frame, every time. The 32-bit FFMPEG 4.1.0 version is the last version that has not crashed on me. 4.1.1 and all the recent nightlys crash. Using the same commands in the 64-bit versions however work just fine without issue, even on all the recent 64-bit nightlys.

Sample commands that crash the 32-bit.

ffmpeg -i "testbars_libaom_crash.mp4" -c:v libaom-av1 -cpu-used 4 -crf 30 -b:v 0 -strict -2 testbars_libaom_crash.mkv

I'm on Windows 7 64bit, AMD CPU.

Attachments (1)

testbars_libaom_crash.zip (10.7 KB) - added by Lenin_Lime 4 months ago.
MP4 source and -report log.

Download all attachments as: .zip

Change History (6)

Changed 4 months ago by Lenin_Lime

MP4 source and -report log.

comment:1 Changed 4 months ago by Lenin_Lime

  • Version changed from 4.1 to git-master

comment:2 Changed 4 months ago by heleppkes

The crash seems unrelated to ffmpeg. It crashes in aom_paeth_predictor_64x64_avx2, inside libaom.

Did you ever test an older ffmpeg (that you say is fine) with a newer libaom? Because if you increase both versions at the same time, you can't really pinpoint the culprit.

So in short, its probably a bug in libaom - or they changed their requirements somewhere, and didn't document that.

Last edited 4 months ago by heleppkes (previous) (diff)

comment:3 Changed 4 months ago by cehoyos

  • Component changed from ffmpeg to undetermined
  • Keywords crash added; av1 removed
  • Resolution set to duplicate
  • Status changed from new to closed

See #7618.

comment:4 Changed 4 months ago by cehoyos

  • Priority changed from normal to important
  • Resolution changed from duplicate to worksforme

Sorry, that is a decoder crash.
Anyway, this works fine here:

$ ffmpeg -i fate-suite/svq3/Vertical400kbit.sorenson3.mov -c:v libaom-av1 -cpu-used 4 -crf 30 -b:v 0 -strict -2 -an out.mkv
ffmpeg version N-93562-g3e10223385 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8 (Ubuntu 8.2.0-7ubuntu1)
  configuration: --cc='gcc -m32' --enable-libaom --extra-cflags=-I../libaom --extra-ldflags=-L../aom_build
  libavutil      56. 26.100 / 56. 26.100
  libavcodec     58. 50.100 / 58. 50.100
  libavformat    58. 27.102 / 58. 27.102
  libavdevice    58.  7.100 / 58.  7.100
  libavfilter     7. 48.100 /  7. 48.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fate-suite/svq3/Vertical400kbit.sorenson3.mov':
  Metadata:
    creation_time   : 2001-03-20T16:17:18.000000Z
    title           : Vertical Online SV3 Demo
    title-eng       : Vertical Online SV3 Demo
    artist          : Logan Kelsey
    artist-eng      : Logan Kelsey
    copyright       : © Vertical Online 2001
    copyright-eng   : © Vertical Online 2001
    encoder         : Sorenson Video 3
    encoder-eng     : Sorenson Video 3
  Duration: 00:00:43.58, start: 0.000000, bitrate: 580 kb/s
    Stream #0:0(eng): Video: svq3 (SVQ3 / 0x33515653), yuvj420p(pc), 320x240, 391 kb/s, 30.02 fps, 30 tbr, 600 tbn, 600 tbc (default)
    Metadata:
      creation_time   : 2001-03-20T16:17:18.000000Z
      handler_name    : Apple Video Media Handler
      encoder         : Sorenson Video 3
    Stream #0:1(eng): Audio: adpcm_ima_qt (ima4 / 0x34616D69), 44100 Hz, mono, s16p, 176 kb/s (default)
    Metadata:
      creation_time   : 2001-03-20T16:17:18.000000Z
      handler_name    : Apple Sound Media Handler
Stream mapping:
  Stream #0:0 -> #0:0 (svq3 (native) -> av1 (libaom-av1))
Press [q] to stop, [?] for help
[swscaler @ 0x59d5e4c0] deprecated pixel format used, make sure you did set range correctly
[libaom-av1 @ 0x59ca6900] 1.0.0-1613-ga56032289
Output #0, matroska, to 'out.mkv':
  Metadata:
    encoder         : Lavf58.27.102
    title           : Vertical Online SV3 Demo
    title-eng       : Vertical Online SV3 Demo
    artist          : Logan Kelsey
    artist-eng      : Logan Kelsey
    copyright       : © Vertical Online 2001
    copyright-eng   : © Vertical Online 2001
    Stream #0:0(eng): Video: av1 (libaom-av1) (AV01 / 0x31305641), yuv420p, 320x240, q=-1--1, 30 fps, 1k tbn, 30 tbc (default)
    Metadata:
      creation_time   : 2001-03-20T16:17:18.000000Z
      handler_name    : Apple Video Media Handler
      encoder         : Lavc58.50.100 libaom-av1
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
frame=  686 fps=3.3 q=0.0 Lsize=     834kB time=00:00:22.83 bitrate= 299.0kbits/s speed=0.11x
video:829kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.520305%

comment:5 Changed 4 months ago by Lenin_Lime

Is that a log from a very recent 32-bit FFMPEG? Anyway I usually use Avisynth with FFMPEG so I usually don't even have FFMPEG decode anything, and it still crashes it.

Note: See TracTickets for help on using tickets.