[FFmpeg-trac] #10051(undetermined:new): yuv4 enc crash
FFmpeg
trac at avcodec.org
Fri Nov 18 14:38:50 EET 2022
#10051: yuv4 enc crash
-------------------------------------+-------------------------------------
Reporter: ami_stuff | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
{{{
(gdb) r -i 1980.jpg -y -vcodec yuv4 out.avi
Starting program: ffmpeg_g -i 1980.jpg -y -vcodec yuv4 out.avi
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
ffmpeg version N-109101-g822da7a317 Copyright (c) 2000-2022 the FFmpeg
developers
built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
configuration:
libavutil 57. 42.100 / 57. 42.100
libavcodec 59. 52.102 / 59. 52.102
libavformat 59. 34.101 / 59. 34.101
libavdevice 59. 8.101 / 59. 8.101
libavfilter 8. 50.100 / 8. 50.100
libswscale 6. 8.112 / 6. 8.112
libswresample 4. 9.100 / 4. 9.100
[mjpeg @ 0x555557141d40] EOI missing, emulating
Input #0, image2, from '1980.jpg':
Duration: 00:00:00.04, start: 0.000000, bitrate: 14561 kb/s
Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc,
bt470bg/unknown/unknown), 1980x2301, 25 fps, 25 tbr, 25 tbn
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> yuv4 (native))
Press [q] to stop, [?] for help
[New Thread 0x7ffff6b9c700 (LWP 23820)]
[Thread 0x7ffff6b9c700 (LWP 23820) exited]
[New Thread 0x7ffff5cd8700 (LWP 23821)]
[New Thread 0x7ffff54d7700 (LWP 23822)]
[New Thread 0x7ffff4cd6700 (LWP 23823)]
[New Thread 0x7fffeffff700 (LWP 23824)]
[New Thread 0x7fffef7fe700 (LWP 23825)]
[New Thread 0x7fffeeffd700 (LWP 23826)]
[New Thread 0x7fffee7fc700 (LWP 23827)]
[New Thread 0x7fffedffb700 (LWP 23828)]
[New Thread 0x7fffed7fa700 (LWP 23829)]
[New Thread 0x7fffecff9700 (LWP 23830)]
[New Thread 0x7fffec7f8700 (LWP 23831)]
[New Thread 0x7fffebff7700 (LWP 23832)]
[New Thread 0x7fffeb7f6700 (LWP 23833)]
[New Thread 0x7fffeaff5700 (LWP 23834)]
[New Thread 0x7fffea7f4700 (LWP 23835)]
[New Thread 0x7fffe9ff3700 (LWP 23836)]
[swscaler @ 0x5555571821c0] [swscaler @ 0x55555718f540] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x5555571821c0] [swscaler @ 0x5555571e5300] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x5555571821c0] [swscaler @ 0x555557238d00] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x5555571821c0] [swscaler @ 0x55555728e600] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x5555571821c0] [swscaler @ 0x5555572e2000] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x5555571821c0] [swscaler @ 0x555557335a00] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x5555571821c0] [swscaler @ 0x55555738b7c0] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x5555571821c0] [swscaler @ 0x5555573df1c0] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x5555571821c0] [swscaler @ 0x555557434ac0] deprecated pixel
format used, make sure you did set range correctly
[Thread 0x7fffebff7700 (LWP 23832) exited]
[New Thread 0x7fffe9ff3700 (LWP 23837)]
[Thread 0x7fffe9ff3700 (LWP 23836) exited]
[Thread 0x7fffea7f4700 (LWP 23835) exited]
[Thread 0x7fffeaff5700 (LWP 23834) exited]
[Thread 0x7fffeb7f6700 (LWP 23833) exited]
[Thread 0x7fffec7f8700 (LWP 23831) exited]
[Thread 0x7fffecff9700 (LWP 23830) exited]
[Thread 0x7fffed7fa700 (LWP 23829) exited]
[New Thread 0x7fffea7f4700 (LWP 23838)]
[New Thread 0x7fffeaff5700 (LWP 23839)]
[New Thread 0x7fffeb7f6700 (LWP 23840)]
[New Thread 0x7fffed7fa700 (LWP 23841)]
[New Thread 0x7fffecff9700 (LWP 23842)]
[New Thread 0x7fffec7f8700 (LWP 23843)]
[New Thread 0x7fffebff7700 (LWP 23844)]
[swscaler @ 0x55555718f540] [swscaler @ 0x55555719e9c0] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x55555718f540] [swscaler @ 0x5555573e1b00] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x55555718f540] [swscaler @ 0x55555723d780] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x55555718f540] [swscaler @ 0x55555738eb00] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x55555718f540] [swscaler @ 0x5555571e7880] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x55555718f540] [swscaler @ 0x555557290800] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x55555718f540] [swscaler @ 0x5555572e4b80] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x55555718f540] [swscaler @ 0x5555573394c0] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x55555718f540] [swscaler @ 0x555557437140] deprecated pixel
format used, make sure you did set range correctly
[Thread 0x7fffebff7700 (LWP 23844) exited]
[Thread 0x7fffec7f8700 (LWP 23843) exited]
[Thread 0x7fffecff9700 (LWP 23842) exited]
[Thread 0x7fffed7fa700 (LWP 23841) exited]
[Thread 0x7fffeb7f6700 (LWP 23840) exited]
[Thread 0x7fffeaff5700 (LWP 23839) exited]
[Thread 0x7fffea7f4700 (LWP 23838) exited]
[Thread 0x7fffe9ff3700 (LWP 23837) exited]
[New Thread 0x7fffebff7700 (LWP 23845)]
[New Thread 0x7fffec7f8700 (LWP 23846)]
[New Thread 0x7fffecff9700 (LWP 23847)]
[New Thread 0x7fffed7fa700 (LWP 23848)]
[New Thread 0x7fffeb7f6700 (LWP 23849)]
[New Thread 0x7fffeaff5700 (LWP 23850)]
[New Thread 0x7fffea7f4700 (LWP 23851)]
[New Thread 0x7fffe9ff3700 (LWP 23852)]
[swscaler @ 0x55555718f540] [swscaler @ 0x55555719e9c0] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x55555718f540] [swscaler @ 0x555557286800] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x55555718f540] [swscaler @ 0x555557235680] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x55555718f540] [swscaler @ 0x5555573dfc00] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x55555718f540] [swscaler @ 0x55555738e1c0] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x55555718f540] [swscaler @ 0x5555571e5980] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x55555718f540] [swscaler @ 0x5555574345c0] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x55555718f540] [swscaler @ 0x5555572dee00] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x55555718f540] [swscaler @ 0x555557334700] deprecated pixel
format used, make sure you did set range correctly
[Thread 0x7fffe9ff3700 (LWP 23852) exited]
[Thread 0x7fffea7f4700 (LWP 23851) exited]
[Thread 0x7fffeaff5700 (LWP 23850) exited]
[New Thread 0x7fffe9ff3700 (LWP 23853)]
[Thread 0x7fffeb7f6700 (LWP 23849) exited]
[Thread 0x7fffed7fa700 (LWP 23848) exited]
[Thread 0x7fffecff9700 (LWP 23847) exited]
[Thread 0x7fffec7f8700 (LWP 23846) exited]
[Thread 0x7fffebff7700 (LWP 23845) exited]
[New Thread 0x7fffea7f4700 (LWP 23854)]
[New Thread 0x7fffeaff5700 (LWP 23855)]
[New Thread 0x7fffeb7f6700 (LWP 23856)]
[New Thread 0x7fffed7fa700 (LWP 23857)]
[New Thread 0x7fffecff9700 (LWP 23858)]
[New Thread 0x7fffec7f8700 (LWP 23859)]
[New Thread 0x7fffebff7700 (LWP 23860)]
[swscaler @ 0x55555718f540] [swscaler @ 0x55555719e9c0] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x55555718f540] [swscaler @ 0x555557284840] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x55555718f540] [swscaler @ 0x555557233700] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x55555718f540] [swscaler @ 0x5555573dbe00] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x55555718f540] [swscaler @ 0x555557431480] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x55555718f540] [swscaler @ 0x555557388500] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x55555718f540] [swscaler @ 0x5555571e0e80] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x55555718f540] [swscaler @ 0x5555572dee00] deprecated pixel
format used, make sure you did set range correctly
[swscaler @ 0x55555718f540] [swscaler @ 0x555557332800] deprecated pixel
format used, make sure you did set range correctly
Output #0, avi, to 'out.avi':
Metadata:
ISFT : Lavf59.34.101
Stream #0:0: Video: yuv4 (yuv4 / 0x34767579), yuv420p(tv,
bt470bg/unknown/unknown, progressive), 1980x2301, q=2-31, 200 kb/s, 25
fps, 25 tbn
Metadata:
encoder : Lavc59.52.102 yuv4
[New Thread 0x7fffe95c4700 (LWP 23861)]
--Type <RET> for more, q to quit, c to continue without paging--
Thread 1 "ffmpeg_g" received signal SIGSEGV, Segmentation fault.
0x00005555561a7bdd in yuv4_encode_frame (avctx=0x5555571459c0,
pkt=0x5555573529c0, pic=0x5555573523c0, got_packet=0x7fffffffd944)
at libavcodec/yuv4enc.c:50
50 *dst++ = y[pic->linesize[0] + 2 * j ];
(gdb) bt
#0 0x00005555561a7bdd in yuv4_encode_frame (avctx=0x5555571459c0,
pkt=0x5555573529c0, pic=0x5555573523c0, got_packet=0x7fffffffd944)
at libavcodec/yuv4enc.c:50
#1 0x0000555555c096b2 in ff_encode_encode_cb (
avctx=avctx at entry=0x5555571459c0, avpkt=avpkt at entry=0x5555573529c0,
frame=frame at entry=0x5555573523c0,
got_packet=got_packet at entry=0x7fffffffd944) at libavcodec/encode.c:199
#2 0x0000555555c09979 in encode_simple_internal (avpkt=0x5555573529c0,
avctx=0x5555571459c0) at libavcodec/encode.c:277
#3 encode_simple_receive_packet (avpkt=<optimized out>, avctx=<optimized
out>)
at libavcodec/encode.c:295
#4 encode_receive_packet_internal (avctx=avctx at entry=0x5555571459c0,
avpkt=0x5555573529c0) at libavcodec/encode.c:329
#5 0x0000555555c09c34 in avcodec_send_frame (avctx=0x5555571459c0,
frame=0x555557145e40) at libavcodec/encode.c:471
#6 0x0000555555708e61 in encode_frame (of=0x555557143ac0,
ost=0x5555571456c0,
frame=0x555557145e40) at fftools/ffmpeg.c:848
#7 0x000055555570f046 in do_video_out (of=0x555557143ac0,
ost=0x5555571456c0,
next_picture=0x555557145e40) at fftools/ffmpeg.c:1264
#8 0x000055555570f798 in reap_filters (flush=0) at fftools/ffmpeg.c:1341
#9 0x000055555571217d in transcode_step () at fftools/ffmpeg.c:3868
#10 transcode () at fftools/ffmpeg.c:3905
#11 0x00005555556e9deb in main (argc=7, argv=0x7fffffffdf68)
--Type <RET> for more, q to quit, c to continue without paging--
at fftools/ffmpeg.c:4052
}}}
{{{
==23868== Invalid read of size 1
==23868== at 0xD5BBDD: yuv4_encode_frame (yuv4enc.c:50)
==23868== by 0x7BD6B1: ff_encode_encode_cb (encode.c:199)
==23868== by 0x7BD978: encode_simple_internal (encode.c:277)
==23868== by 0x7BD978: encode_simple_receive_packet (encode.c:295)
==23868== by 0x7BD978: encode_receive_packet_internal (encode.c:329)
==23868== by 0x7BDC33: avcodec_send_frame (encode.c:471)
==23868== by 0x2BCE60: encode_frame (ffmpeg.c:848)
==23868== by 0x2C3045: do_video_out (ffmpeg.c:1264)
==23868== by 0x2C3797: reap_filters (ffmpeg.c:1341)
==23868== by 0x2C617C: transcode_step (ffmpeg.c:3868)
==23868== by 0x2C617C: transcode (ffmpeg.c:3905)
==23868== by 0x29DDEA: main (ffmpeg.c:4052)
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10051>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list