[FFmpeg-user] Segfault with prores and 15696x2048 input images
Aleksandar Lazic
al-ffmpeguser at none.at
Sat Aug 10 12:44:55 CEST 2013
Dear listmembers,
today I got a segfault with the following command line.
ffmpeg -i img%03d.jpg -y -c:v prores -c:a null -r 25 -an /tmp/output.mov
The original Imagessizes are.
# identify img284.jpg
img284.jpg JPEG 15696x2048 15696x2048+0+0 8-bit DirectClass 21.98MB
0.000u 0:00.000
I have created the sequence like that
x=1; for i in *jpg; do counter=$(printf %03d $x); ln -s "$i"
img"$counter".jpg; x=$(($x+1)); done
I plan to use a 30kx2K as final input size, is this with the prores
encoder possible?
Maybe there is a better encoder for such a Movie size.
###
ffmpeg -i img%03d.jpg -y -c:v prores -c:a null -r 25 -an
/tmp/output.mov
ffmpeg version 2.0 Copyright (c) 2000-2013 the FFmpeg developers
built on Aug 10 2013 12:33:35 with gcc 4.6 (Ubuntu/Linaro
4.6.3-1ubuntu5)
configuration: --prefix=/root/progs/ffmpeg --disable-stripping
--enable-debug=2
libavutil 52. 38.100 / 52. 38.100
libavcodec 55. 18.102 / 55. 18.102
libavformat 55. 12.100 / 55. 12.100
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 79.101 / 3. 79.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
[image2 @ 0x2577860] Stream #0: not enough frames to estimate rate;
consider increasing probesize
Input #0, image2, from 'img%03d.jpg':
Duration: 00:00:27.20, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj420p, 15696x2048 [SAR 72:72 DAR
981:128], 25 tbr, 25 tbn, 25 tbc
[prores @ 0x2562b20] encoding with ProRes standard (apcn) profile
[prores @ 0x2607600] encoding with ProRes standard (apcn) profile
[prores @ 0x2605d80] encoding with ProRes standard (apcn) profile
[prores @ 0x26065c0] encoding with ProRes standard (apcn) profile
[prores @ 0x2713d20] encoding with ProRes standard (apcn) profile
[prores @ 0x2873e00] encoding with ProRes standard (apcn) profile
[prores @ 0x2874b20] encoding with ProRes standard (apcn) profile
[prores @ 0x28186e0] encoding with ProRes standard (apcn) profile
[prores @ 0x281af80] encoding with ProRes standard (apcn) profile
[prores @ 0x281dce0] encoding with ProRes standard (apcn) profile
[prores @ 0x2820a40] encoding with ProRes standard (apcn) profile
[prores @ 0x28b50a0] encoding with ProRes standard (apcn) profile
[prores @ 0x28b7b00] encoding with ProRes standard (apcn) profile
[prores @ 0x28ba6a0] encoding with ProRes standard (apcn) profile
[prores @ 0x28bd300] encoding with ProRes standard (apcn) profile
[prores @ 0x28bfea0] encoding with ProRes standard (apcn) profile
[prores @ 0x28c2ae0] encoding with ProRes standard (apcn) profile
[prores @ 0x28c5720] encoding with ProRes standard (apcn) profile
[prores @ 0x28c8360] encoding with ProRes standard (apcn) profile
[prores @ 0x28cafa0] encoding with ProRes standard (apcn) profile
[prores @ 0x28cdbe0] encoding with ProRes standard (apcn) profile
[prores @ 0x28d0820] encoding with ProRes standard (apcn) profile
[prores @ 0x28d3460] encoding with ProRes standard (apcn) profile
[prores @ 0x28d60a0] encoding with ProRes standard (apcn) profile
[prores @ 0x25797c0] encoding with ProRes standard (apcn) profile
Output #0, mov, to '/tmp/output.mov':
Metadata:
encoder : Lavf55.12.100
Stream #0:0: Video: prores (apcn) (apcn / 0x6E637061), yuv422p10le,
15696x2048 [SAR 1:1 DAR 981:128], q=2-31, 200 kb/s, 12800 tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg -> prores)
Press [q] to stop, [?] for help
Segmentation fault (core dumped)
####
This is the gdb bt output.
####
root at ns61620:/home/klaus/original# gdb /root/progs/ffmpeg/bin/ffmpeg
core
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show
copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /root/progs/ffmpeg/bin/ffmpeg...done.
[New LWP 19580]
[New LWP 19581]
[New LWP 19566]
[New LWP 19583]
[New LWP 19582]
[New LWP 19585]
[New LWP 19591]
[New LWP 19584]
[New LWP 19589]
[New LWP 19592]
[New LWP 19554]
[New LWP 19602]
[New LWP 19590]
[New LWP 19556]
[New LWP 19572]
[New LWP 19588]
[New LWP 19594]
[New LWP 19569]
[New LWP 19586]
[New LWP 19587]
[New LWP 19576]
[New LWP 19595]
[New LWP 19558]
[New LWP 19577]
[New LWP 19573]
[New LWP 19578]
[New LWP 19575]
[New LWP 19557]
[New LWP 19570]
[New LWP 19603]
[New LWP 19567]
[New LWP 19601]
[New LWP 19599]
[New LWP 19564]
[New LWP 19600]
[New LWP 19598]
[New LWP 19561]
[New LWP 19579]
[New LWP 19597]
[New LWP 19555]
[New LWP 19568]
[New LWP 19593]
[New LWP 19563]
[New LWP 19596]
[New LWP 19571]
[New LWP 19562]
[New LWP 19574]
[New LWP 19560]
[New LWP 19565]
[New LWP 19559]
warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `ffmpeg -i img%03d.jpg -y -c:v prores -c:a null -r
25 -an /tmp/output.mov'.
Program terminated with signal 11, Segmentation fault.
#0 0x000000000089e71d in put_bits (value=2, n=3, s=0x7f5dcc286ca0) at
libavcodec/put_bits.h:169
169 AV_WB32(s->buf_ptr, bit_buf);
(gdb) bt
#0 0x000000000089e71d in put_bits (value=2, n=3, s=0x7f5dcc286ca0) at
libavcodec/put_bits.h:169
#1 encode_codeword (pb=0x7f5dcc286ca0, val=<optimized out>,
codebook=<optimized out>) at libavcodec/proresenc_anatoliy.c:179
#2 0x000000000089f492 in encode_dc_coeffs (qmat=0x2711918,
blocks_per_slice=32, in=0x7f5dcc285ca0, pb=0x7f5dcc286ca0)
at libavcodec/proresenc_anatoliy.c:220
#3 encode_slice_plane (mb_count=<optimized out>, src=<optimized out>,
src_stride=<optimized out>, buf=0x0, buf_size=514359626,
qmat=0x2711918, chroma=0, avctx=<optimized out>) at
libavcodec/proresenc_anatoliy.c:309
#4 0x000000000089fabe in encode_slice_data (qp=1,
v_data_size=<synthetic pointer>, u_data_size=<synthetic pointer>,
y_data_size=<synthetic pointer>, data_size=514359626,
buf=0x7f5d33870cea "", mb_count=8, chroma_stride=15728,
luma_stride=31456,
dest_v=<optimized out>, dest_u=<optimized out>, dest_y=<optimized
out>, avctx=0x2562b20) at libavcodec/proresenc_anatoliy.c:324
#5 encode_slice (qp=<synthetic pointer>, unsafe=<optimized out>,
data_size=514359632, buf=0x7f5d33870ce4 "", mb_count=8, mb_y=0,
mb_x=<optimized out>, pic=0x28dffc0, avctx=0x2562b20) at
libavcodec/proresenc_anatoliy.c:408
#6 prores_encode_picture (buf_size=514359640, buf=0x7f5d338690dc "",
pic=<optimized out>, avctx=0x2562b20)
at libavcodec/proresenc_anatoliy.c:471
#7 prores_encode_frame (got_packet=0x7f5dcc286eac, pict=<optimized
out>, pkt=0x7f5dc40008c0, avctx=0x2562b20)
at libavcodec/proresenc_anatoliy.c:502
#8 prores_encode_frame (avctx=0x2562b20, pkt=0x7f5dc40008c0,
pict=<optimized out>, got_packet=0x7f5dcc286eac)
at libavcodec/proresenc_anatoliy.c:489
#9 0x0000000000934413 in avcodec_encode_video2 (avctx=0x2562b20,
avpkt=0x7f5dc40008c0, frame=0x28dffc0,
got_packet_ptr=0x7f5dcc286eac) at libavcodec/utils.c:1756
#10 0x0000000000a4ae86 in worker (v=<optimized out>) at
libavcodec/frame_thread_encoder.c:93
#11 0x00007f5dda244e9a in start_thread () from
/lib/x86_64-linux-gnu/libpthread.so.0
#12 0x00007f5dd9f71ccd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#13 0x0000000000000000 in ?? ()
(gdb)
###
System:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.2 LTS
Release: 12.04
Codename: precise
dpkg -l yasm
ii yasm 1.1.0-1 modular
assembler with multiple syntaxes support
Thanks for any help.
Best regards
Aleks
More information about the ffmpeg-user
mailing list