[FFmpeg-trac] #8495(undetermined:new): Segfault encode since 4.2 version(
FFmpeg
trac at avcodec.org
Thu Jan 23 21:32:20 EET 2020
#8495: Segfault encode since 4.2 version(
-------------------------------------+-------------------------------------
Reporter: naimson | Type: defect
Status: new | Priority: normal
Component: | Version: 4.2
undetermined |
Keywords: segmenation | Blocked By:
fault,degradation |
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug: We faced with segfault in new version 4.2 (and the
same for latest from git )
How to reproduce:
{{{
ffmpeg -nostdin -hide_banner -v 9 -loglevel 99 -stats -i test.mkv -vf
scale=-2:360 -profile:v high -level 4.0 -pix_fmt yuv420p -threads:v 4
-preset veryfast -movflags +faststart -c:a aac -y -f mp4
/tmp/tmp3kz7l7am_out.mp4
Splitting the commandline.
Reading option '-nostdin' ... matched as option 'stdin' (enable or disable
interaction on standard input) with argument 0.
Reading option '-hide_banner' ... matched as option 'hide_banner' (do not
show program banner) with argument '1'.
Reading option '-v' ... matched as option 'v' (set logging level) with
argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument '99'.
Reading option '-stats' ... matched as option 'stats' (print progress
report during encoding) with argument '1'.
Reading option '-i' ... matched as input url with argument
'/streamall/Downloads/Celebrity.Coach.Trip.S06E07.Beaucaire.HDTV.x264-LiNKLE[eztv].mkv'.
Reading option '-vf' ... matched as option 'vf' (set video filters) with
argument 'scale=-2:360'.
Reading option '-profile:v' ... matched as option 'profile' (set profile)
with argument 'high'.
Reading option '-level' ... matched as AVOption 'level' with argument
'4.0'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel
format) with argument 'yuv420p'.
Reading option '-threads:v' ... matched as AVOption 'threads:v' with
argument '4'.
Reading option '-preset' ... matched as AVOption 'preset' with argument
'veryfast'.
Reading option '-movflags' ... matched as AVOption 'movflags' with
argument '+faststart'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument
'aac'.
Reading option '-y' ... matched as option 'y' (overwrite output files)
with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with argument
'mp4'.
Reading option '/tmp/tmp3kz7l7am_out.mp4' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option nostdin (enable or disable interaction on standard input)
with argument 0.
Applying option hide_banner (do not show program banner) with argument 1.
Applying option v (set logging level) with argument 9.
Applying option stats (print progress report during encoding) with
argument 1.
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url test.mkv.
Successfully parsed a group of options.
Opening an input file: test.mkv.
[NULL @ 0x557652e8c300] Opening 'test.mkv' for reading
[file @ 0x557652e8ce00] Setting default whitelist 'file,crypto'
Probing matroska,webm score:100 size:2048
[matroska,webm @ 0x557652e8c300] Format matroska,webm probed with
size=2048 and score=100
st:0 removing common factor 1000000 from timebase
st:1 removing common factor 1000000 from timebase
st:2 removing common factor 1000000 from timebase
[matroska,webm @ 0x557652e8c300] Before avformat_find_stream_info() pos:
5645 bytes read:32819 seeks:2 nb_streams:3
[h264 @ 0x557652e90080] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x557652e90080] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x557652e90080] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x557652e90080] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x557652e90080] nal_unit_type: 6(SEI), nal_ref_idc: 0
[h264 @ 0x557652e90080] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x557652e90080] Format yuv420p chosen by get_format().
[h264 @ 0x557652e90080] Reinit context to 720x416, pix_fmt: yuv420p
[h264 @ 0x557652e90080] no picture
[matroska,webm @ 0x557652e8c300] All info found
[matroska,webm @ 0x557652e8c300] stream 0: start_time: 0.000 duration:
-9223372036854776.000
[matroska,webm @ 0x557652e8c300] stream 1: start_time: 0.000 duration:
-9223372036854776.000
[matroska,webm @ 0x557652e8c300] stream 2: start_time: 0.000 duration:
2798.037
[matroska,webm @ 0x557652e8c300] format: start_time: 0.000 duration:
2798.037 bitrate=1070 kb/s
[matroska,webm @ 0x557652e8c300] After avformat_find_stream_info() pos:
81494 bytes read:131123 seeks:2 frames:12
Input #0, matroska,webm, from 'test.mkv':
Metadata:
title : Celebrity Coach Trip S06E07 Beaucaire
encoder : no_variable_data
Duration: 00:46:38.04, start: 0.000000, bitrate: 1070 kb/s
Chapter #0:0: start 0.000000, end 836.000000
Metadata:
title : PART_01
Chapter #0:1: start 836.000000, end 1509.000000
Metadata:
title : PART_02
Chapter #0:2: start 1509.000000, end 2232.000000
Metadata:
title : PART_03
Chapter #0:3: start 2232.000000, end 2798.037000
Metadata:
title : PART_04
Stream #0:0(eng), 4, 1/1000: Video: h264 (High), 1 reference frame,
yuv420p(tv, bt709/unknown/unknown, progressive, left), 720x404 (720x416)
[SAR 1:1 DAR 180:101], 0/1, 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
Stream #0:1(eng), 8, 1/1000: Audio: aac (LC), 48000 Hz, stereo, fltp
(default)
Stream #0:2(eng), 0, 1/1000: Subtitle: subrip
Successfully opened the file.
Parsing a group of options: output url /tmp/tmp3kz7l7am_out.mp4.
Applying option vf (set video filters) with argument scale=-2:360.
Applying option profile:v (set profile) with argument high.
Applying option pix_fmt (set pixel format) with argument yuv420p.
Applying option c:a (codec name) with argument aac.
Applying option f (force format) with argument mp4.
Successfully parsed a group of options.
Opening an output file: /tmp/tmp3kz7l7am_out.mp4.
[file @ 0x557652ed4ec0] Setting default whitelist 'file,crypto'
Successfully opened the file.
detected 40 logical cores
[h264 @ 0x557652edc380] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x557652edc380] nal_unit_type: 8(PPS), nal_ref_idc: 3
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless
if it occurs once at the start per stream)
Segmentation faultepeated 1 times
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9 (Debian 9.2.1-19)
configuration: --enable-gpl --enable-version3 --disable-static --enable-
shared --enable-avisynth --enable-chromaprint --enable-frei0r --enable-gmp
--enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-
libcaca --enable-libcdio --enable-libcodec2 --enable-libfontconfig
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm
--enable-libjack --enable-libmodplug --enable-libmp3lame --enable-
libopencore-amrnb --enable-libopencore-amrwb --enable-libopencore-amrwb
--enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-
libpulse --enable-librsvg --enable-librubberband --enable-librtmp
--enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex
--enable-libssh --enable-libtesseract --enable-libtheora --enable-
libtwolame --enable-libv4l2 --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxvid --enable-libxml2 --enable-libzmq
--enable-libzvbi --enable-lv2 --enable-libmysofa --enable-openal --enable-
opencl --enable-opengl --enable-libdrm --enable-nonfree --enable-libfdk-
aac --enable-libbluray
libavutil 56. 31.100 / 56. 22.100
libavcodec 58. 54.100 / 58. 35.100
libavformat 58. 29.100 / 58. 20.100
libavdevice 58. 8.100 / 58. 5.100
libavfilter 7. 57.100 / 7. 40.101
libswscale 5. 5.100 / 5. 3.100
libswresample 3. 5.100 / 3. 3.100
libpostproc 55. 5.100 / 55. 3.100
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8495>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list