Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#6107 closed defect (fixed)

showspectrumpic crash on empty audio stream

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

Description

File (broken) atteched.

all you need to do is

% ffmpeg -i crash_spectrumpic.mov -lavfi showspectrumpic=s=1024x1024 output_pic.jpg

full output:

% ffmpeg -i result2.mov -lavfi showspectrumpic=s=1024x1024 a.jpg
ffmpeg version N-83243-g2080bc3 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 45.100 / 55. 45.100
  libavcodec     57. 75.100 / 57. 75.100
  libavformat    57. 63.100 / 57. 63.100
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 70.100 /  6. 70.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000ef79e0] Could not find codec parameters for stream 0 (Video: dvvideo (dvpp / 0x70707664), none(bt709, bottom coded first (swapped)), 720x576): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'result2.mov':
  Metadata:
    major_brand     : RIFF
    minor_version   : 0
    compatible_brands: RIFFqt
    creation_time   : 2017-01-27T11:23:45.000000Z
  Duration: 00:00:00.00, bitrate: N/A
    Stream #0:0(eng): Video: dvvideo (dvpp / 0x70707664), none(bt709, bottom coded first (swapped)), 720x576, SAR 59:54 DAR 295:216, 25 tbr, 25 tbn, 25 tbc (default)
    Metadata:
      creation_time   : 2017-01-27T11:23:45.000000Z
      handler_name    : ?Alias Data Handler
      encoder         : DVCPRO - PAL
    Stream #0:1(eng): Audio: pcm_s16le (lpcm / 0x6D63706C), 48000 Hz, stereo, s16, 1536 kb/s (default)
    Metadata:
      creation_time   : 2017-01-27T11:23:45.000000Z
      handler_name    : ?Alias Data Handler
[mjpeg @ 0000000000df9440] removing common factors from framerate
Output #0, image2, to 'a.jpg':
  Metadata:
    major_brand     : RIFF
    minor_version   : 0
    compatible_brands: RIFFqt
    encoder         : Lavf57.63.100
    Stream #0:0: Video: mjpeg, yuvj444p(pc), 1258x1152 [SAR 1:1 DAR 629:576], q=2-31, 200 kb/s, 23.44 fps, 23.44 tbn, 23.44 tbc (default)
    Metadata:
      encoder         : Lavc57.75.100 mjpeg
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
Stream mapping:
  Stream #0:1 (pcm_s16le) -> showspectrumpic
  showspectrumpic -> Stream #0:0 (mjpeg)
Press [q] to stop, [?] for help

Attachments (1)

crash_showspectrumpic.mov (275.6 KB ) - added by Aleksandr 7 years ago.
broken file that can crash ffmpeg on showspectrumpic filter

Download all attachments as: .zip

Change History (4)

by Aleksandr, 7 years ago

Attachment: crash_showspectrumpic.mov added

broken file that can crash ffmpeg on showspectrumpic filter

comment:1 by Aleksandr, 7 years ago

patch with fix is sent to ffmpeg-devel

comment:2 by Elon Musk, 7 years ago

Reproduced by developer: set
Resolution: fixed
Status: newclosed

comment:3 by Carl Eugen Hoyos, 7 years ago

Keywords: crash added
Priority: normalimportant
Note: See TracTickets for help on using tickets.