[FFmpeg-trac] #4945(undetermined:new): potential regressio on drawtext timecode
FFmpeg
trac at avcodec.org
Mon Oct 19 17:06:29 CEST 2015
#4945: potential regressio on drawtext timecode
-------------------------------------+-------------------------------------
Reporter: | Type: defect
lorenzo.angeli | Priority: normal
Status: new | Version:
Component: | unspecified
undetermined | Blocked By:
Keywords: | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
[[Image()]]Summary of the bug:
How to reproduce:
{{{
efesto at hdd-XPS-15-9530 ffmpeg-git-20151017-64bit-static $ ./ffmpeg
-thread_queue_size 512 -hwaccel auto -threads 0 -y -r 25.0 -start_number 1
-i "/usr/tmp/tmpyCJaTB.%4d.png" -c:v libx264 -crf 18 -preset slow -strict
-2 -movflags faststart -pix_fmt yuv420p -filter_complex
"[0:v]null,scale=1920:1080,
drawtext=timecode=\'00:00:00:00\':r=25.0:fontcolor=white at 1:fontsize=28:x=50:y=50-text_h[clip];[clip]scale=1920:1080,
fps=25.0, setdar=16:9[v]" -map [v] -v debug
/home/efesto/Desktop/foobar.mov
ffmpeg version N-50577-g777b305-static http://johnvansickle.com/ffmpeg/
Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.9.3 (Debian 4.9.3-5)
configuration: --enable-gpl --enable-version3 --disable-shared
--disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-
libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-
libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig
--enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls
--enable-libvidstab --enable-libsoxr --enable-frei0r --enable-libfribidi
--cc=gcc-4.9
libavutil 55. 4.100 / 55. 4.100
libavcodec 57. 7.100 / 57. 7.100
libavformat 57. 8.100 / 57. 8.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 11.100 / 6. 11.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.100 / 2. 0.100
libpostproc 54. 0.100 / 54. 0.100
Splitting the commandline.
Reading option '-thread_queue_size' ... matched as option
'thread_queue_size' (set the maximum number of queued packets from the
demuxer) with argument '512'.
Reading option '-hwaccel' ... matched as option 'hwaccel' (use HW
accelerated decoding) with argument 'auto'.
Reading option '-threads' ... matched as AVOption 'threads' with argument
'0'.
Reading option '-y' ... matched as option 'y' (overwrite output files)
with argument '1'.
Reading option '-r' ... matched as option 'r' (set frame rate (Hz value,
fraction or abbreviation)) with argument '25.0'.
Reading option '-start_number' ... matched as AVOption 'start_number' with
argument '1'.
Reading option '-i' ... matched as input file with argument
'/usr/tmp/tmpyCJaTB.%4d.png'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument
'libx264'.
Reading option '-crf' ... matched as AVOption 'crf' with argument '18'.
Reading option '-preset' ... matched as AVOption 'preset' with argument
'slow'.
Reading option '-strict' ...Routing option strict to both codec and muxer
layer
matched as AVOption 'strict' with argument '-2'.
Reading option '-movflags' ... matched as AVOption 'movflags' with
argument 'faststart'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel
format) with argument 'yuv420p'.
Reading option '-filter_complex' ... matched as option 'filter_complex'
(create a complex filtergraph) with argument '[0:v]null,scale=1920:1080,
drawtext=timecode=\'00:00:00:00\':r=25.0:fontcolor=white at 1:fontsize=28:x=50:y=50-text_h[clip];[clip]scale=1920:1080,
fps=25.0, setdar=16:9[v]'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '[v]'.
Reading option '-v' ... matched as option 'v' (set logging level) with
argument 'debug'.
Reading option '/home/efesto/Desktop/foobar.mov' ... matched as output
file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option y (overwrite output files) with argument 1.
Applying option filter_complex (create a complex filtergraph) with
argument [0:v]null,scale=1920:1080,
drawtext=timecode=\'00:00:00:00\':r=25.0:fontcolor=white at 1:fontsize=28:x=50:y=50-text_h[clip];[clip]scale=1920:1080,
fps=25.0, setdar=16:9[v].
Applying option v (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file /usr/tmp/tmpyCJaTB.%4d.png.
Applying option thread_queue_size (set the maximum number of queued
packets from the demuxer) with argument 512.
Applying option hwaccel (use HW accelerated decoding) with argument auto.
Applying option r (set frame rate (Hz value, fraction or abbreviation))
with argument 25.0.
Successfully parsed a group of options.
Opening an input file: /usr/tmp/tmpyCJaTB.%4d.png.
[AVIOContext @ 0x45312c0] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x45291a0] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x4529300] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x4529560] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x4529440] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x4529620] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x4529780] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x4529820] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x4529a00] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x4529b60] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x4529cc0] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x4529e20] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x4529f80] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x452a0e0] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x452a240] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x452a3a0] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x452a500] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x452a660] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x452a7c0] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x452a920] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x452aa80] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x452ac80] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x4539ba0] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x452ade0] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x4539c60] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x4539d20] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x4539ea0] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x453a000] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x453a160] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x453a2c0] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x453a420] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x453a580] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x453a6e0] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x453a840] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x453a9a0] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x453ab00] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x453ac60] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x453adc0] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x453af20] Statistics: 11318 bytes read, 0 seeks
[AVIOContext @ 0x453b080] Statistics: 11318 bytes read, 0 seeks
Input #0, image2, from '/usr/tmp/tmpyCJaTB.%4d.png':
Duration: 00:00:01.60, start: 0.000000, bitrate: N/A
Stream #0:0, 40, 1/25: Video: png, 1 reference frame, rgba(pc),
1920x1080 (0x0), 1/25, 25 fps, 25 tbr, 25 tbn, 25 tbc
Successfully opened the file.
detected 8 logical cores
[Parsed_scale_1 @ 0x4534360] Setting 'w' to value '1920'
[Parsed_scale_1 @ 0x4534360] Setting 'h' to value '1080'
[Parsed_scale_1 @ 0x4534360] w:1920 h:1080 flags:'bilinear' interl:0
[Parsed_drawtext_2 @ 0x4534d00] Setting 'timecode' to value '00:00:00:00'
[Parsed_drawtext_2 @ 0x4534d00] Setting 'r' to value '25.0'
[Parsed_drawtext_2 @ 0x4534d00] Setting 'fontcolor' to value 'white at 1'
[Parsed_drawtext_2 @ 0x4534d00] Setting 'fontsize' to value '28'
[Parsed_drawtext_2 @ 0x4534d00] Setting 'x' to value '50'
[Parsed_drawtext_2 @ 0x4534d00] Setting 'y' to value '50-text_h'
Segmentation fault
}}}
changing timecode with text, doesn't trigger the segfault.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4945>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list