Skip to content

Cannot convert AV1 to VP9 by FFMPEG with Segmentation fault (core dumped) error #142

@hugo53

Description

@hugo53

Hi there,

I'm trying to experiment with 8K AV1 to VP9 conversion by using FFMPEG + SVT-VP9 but got the error Segmentation fault (core dumped) after running ffmpeg command short time. This is how I did:

  • Build ffmpeg with ./configure --enable-libsvtvp9 --enable-libopus --enable-libaom --enable-libvpx
  • Run AV1 to VP9 conversion with ./ffmpeg -i av1_video.mp4 -c:v libsvt_vp9 -c:a libopus vp9output.webm:
ubuntu1804:~/svt$ ./ffmpeg -i av1_video.mp4 -c:v libsvt_vp9 -c:a libopus vp9output.webm
ffmpeg version n4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
  configuration: --enable-libsvtvp9 --enable-libopus --enable-libaom --enable-libvpx
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
[libaom-av1 @ 0x557b89b094c0] 2.0.2-1423-gb53a4d710
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'av1_20210205_Jy1N3jyFV6c.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    encoder         : Lavf58.45.100
  Duration: 00:29:13.29, start: 0.000000, bitrate: 22559 kb/s
    Stream #0:0(und): Video: av1 (Main) (av01 / 0x31307661), yuv420p(tv, bt709), 7680x3840, 22424 kb/s, 30 fps, 30 tbr, 15360 tbn, 15360 tbc (default)
    Metadata:
      handler_name    : ISO Media file produced by Google Inc.
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : ISO Media file produced by Google Inc.
[libaom-av1 @ 0x557b89c33300] 2.0.2-1423-gb53a4d710
Stream mapping:
  Stream #0:0 -> #0:0 (av1 (libaom-av1) -> vp9 (libsvt_vp9))
  Stream #0:1 -> #0:1 (aac (native) -> opus (libopus))
Press [q] to stop, [?] for help
-------------------------------------------
SVT [version]	: SVT-VP9 Encoder Lib v0.3.0
SVT [build]	: GCC 7.5.0	 64 bit
LIB Build date: Mar 22 2021 17:52:28
-------------------------------------------

[WARNING] For best speed performance, run with sudo privileges !

Number of logical cores available: 16
Number of PPCS 37
-------------------------------------------
SVT [config]: Profile [0]	Level (auto)
SVT [config]: EncoderMode / Tune 						: 9 / 0
SVT [config]: EncoderBitDepth 							: 8
SVT [config]: SourceWidth / SourceHeight					: 7680 / 3840
SVT [config]: Fps_Numerator / Fps_Denominator / Gop Size		: 30 / 1 / 12
SVT [config]: HierarchicalLevels / BaseLayerSwitchMode / PredStructure		: 3 / 0 / 2
SVT [config]: BRC Mode / QP 							: CQP / 32
-------------------------------------------


[libopus @ 0x557b89c365c0] No bit rate set. Defaulting to 96000 bps.
Output #0, webm, to 'test1.webm':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    encoder         : Lavf58.45.100
    Stream #0:0(und): Video: vp9 (libsvt_vp9), yuv420p(progressive), 7680x3840, q=10-48, 7000 kb/s, 30 fps, 1k tbn, 30 tbc (default)
    Metadata:
      handler_name    : ISO Media file produced by Google Inc.
      encoder         : Lavc58.91.100 libsvt_vp9
    Stream #0:1(eng): Audio: opus (libopus), 48000 Hz, stereo, flt, 96 kb/s (default)
    Metadata:
      handler_name    : ISO Media file produced by Google Inc.
      encoder         : Lavc58.91.100 libopus
Segmentation fault (core dumped)      1kB time=00:00:01.97 bitrate=   3.8kbits/s speed=0.156x

EC2 c5 server was used for this test with specs:

  • Intel(R) Xeon(R) Platinum 8275CL CPU
  • 16 CPU, 30 GB RAM

After around 60 frames, the error Segmentation fault (core dumped) appears and command exit. Could you please help on this issue? Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions