Opened 6 months ago

Last modified 6 months ago

#6326 new defect

FFmpeg 3.3+3.4-dev crash when scaling to same dimensions with scale_npp

Reported by: Bloof Owned by:
Priority: important Component: avfilter
Version: git-master Keywords: crash SIGSEGV
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
I am trying to transcode and scale video from mp4+h264 to mp4+h264 using h264_nvenc encoder, h264_cuvid decoder and scale_npp filter. FFmpeg crashes with segfault if source and target dimensions (from scale_npp) are same.

How to reproduce:

% ffmpeg -y -hwaccel cuvid -c:v h264_cuvid -i bug_input.mp4 -c:v h264_nvenc -vf "scale_npp=w=1280:h=720" -vb 4096k -an -sn -f mp4 out.mp4
ffmpeg version N-85548-g3390a2b Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
  configuration: --prefix=/opt/ffmpeg_gpu --enable-static --disable-shared --disable-ffplay --disable-ffserver --disable-network --disable-doc --disable-indev=jack --enable-debug --enable-nonfree --enable-version3 --enable-gpl --enable-libfdk-aac --enable-gray --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-frei0r --enable-ladspa --enable-libass --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-nvenc --enable-cuvid --enable-cuda --enable-libnpp --shlibdir=/usr/lib64 --extra-cflags=-I../nv_sdk --extra-ldflags=-L../nv_sdk --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64 --extra-cflags=-I/usr/local/include/opus --extra-ldflags=-L/usr/local/lib/
  libavutil      55. 61.100 / 55. 61.100
  libavcodec     57. 92.100 / 57. 92.100
  libavformat    57. 72.101 / 57. 72.101
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6. 84.101 /  6. 84.101
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'bug_input.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf56.40.101
  Duration: 00:00:05.01, start: 0.000000, bitrate: 17393 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 17390 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
    Metadata:
      handler_name    : VideoHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (h264_cuvid) -> h264 (h264_nvenc))
Press [q] to stop, [?] for help
Segmentation fault

Input file is attached via videolan file uploader.

Attachments (2)

report.txt (47.8 KB) - added by Bloof 6 months ago.
Input file ffmpeg report
gdb.txt (14.6 KB) - added by Bloof 6 months ago.
GDB segfault output

Download all attachments as: .zip

Change History (3)

Changed 6 months ago by Bloof

Input file ffmpeg report

Changed 6 months ago by Bloof

GDB segfault output

comment:1 Changed 6 months ago by cehoyos

  • Keywords crash SIGSEGV added
  • Priority changed from normal to important
Note: See TracTickets for help on using tickets.