[FFmpeg-trac] #10556(undetermined:new): magicyuv enc assertion
FFmpeg
trac at avcodec.org
Sun Sep 10 17:12:55 EEST 2023
#10556: magicyuv enc assertion
-------------------------------------+-------------------------------------
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 |
-------------------------------------+-------------------------------------
https://samples.ffmpeg.org/4khdr/PE2_Leopard_4K.mkv
{{{
(gdb) r -i PE2_Leopard_4K.mkv -s 671x981 -vcodec magicyuv -an -y out.mov
Starting program: ffmpeg_g -i PE2_Leopard_4K.mkv -s 671x981 -vcodec
magicyuv -an -y out.mov
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
ffmpeg version N-112006-gc6f0fd2dcd Copyright (c) 2000-2023 the FFmpeg
developers
built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
configuration:
libavutil 58. 19.100 / 58. 19.100
libavcodec 60. 26.100 / 60. 26.100
libavformat 60. 11.100 / 60. 11.100
libavdevice 60. 2.101 / 60. 2.101
libavfilter 9. 11.100 / 9. 11.100
libswscale 7. 3.100 / 7. 3.100
libswresample 4. 11.100 / 4. 11.100
[matroska,webm @ 0x5555580df640] Could not find codec parameters for
stream 2 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and
'probesize' (5000000) options
Input #0, matroska,webm, from 'PE2_Leopard_4K.mkv':
Metadata:
title : Planet Earth II S01E01 4K
encoder : libebml v1.3.5 + libmatroska v1.4.8
creation_time : 2017-10-29T06:31:02.000000Z
Duration: 00:00:04.22, start: 0.000000, bitrate: 46848 kb/s
Chapters:
Chapter #0:0: start 0.000000, end 4.216000
Metadata:
title : 00:00:00.000
Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv,
bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98
tbr, 1k tbn (default)
Metadata:
BPS : 44365437
BPS-eng : 44365437
DURATION : 00:00:04.212000000
DURATION-eng : 00:00:04.212000000
NUMBER_OF_FRAMES: 101
NUMBER_OF_FRAMES-eng: 101
NUMBER_OF_BYTES : 23358403
NUMBER_OF_BYTES-eng: 23358403
_STATISTICS_WRITING_APP: mkvmerge v16.0.0 ('Protest') 64-bit
_STATISTICS_WRITING_APP-eng: mkvmerge v16.0.0 ('Protest') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2017-10-29 06:31:02
_STATISTICS_WRITING_DATE_UTC-eng: 2017-10-29 06:31:02
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s16p
(default)
Metadata:
title : DTS-HD MA 5.1
BPS : 2506995
BPS-eng : 2506995
DURATION : 00:00:04.214000000
DURATION-eng : 00:00:04.214000000
NUMBER_OF_FRAMES: 395
NUMBER_OF_FRAMES-eng: 395
NUMBER_OF_BYTES : 1320560
NUMBER_OF_BYTES-eng: 1320560
_STATISTICS_WRITING_APP: mkvmerge v16.0.0 ('Protest') 64-bit
_STATISTICS_WRITING_APP-eng: mkvmerge v16.0.0 ('Protest') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2017-10-29 06:31:02
_STATISTICS_WRITING_DATE_UTC-eng: 2017-10-29 06:31:02
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle
Metadata:
title : English (SDH)
BPS : 0
BPS-eng : 0
DURATION : 00:00:00.000000000
DURATION-eng : 00:00:00.000000000
NUMBER_OF_FRAMES: 0
NUMBER_OF_FRAMES-eng: 0
NUMBER_OF_BYTES : 0
NUMBER_OF_BYTES-eng: 0
_STATISTICS_WRITING_APP: mkvmerge v16.0.0 ('Protest') 64-bit
_STATISTICS_WRITING_APP-eng: mkvmerge v16.0.0 ('Protest') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2017-10-29 06:31:02
_STATISTICS_WRITING_DATE_UTC-eng: 2017-10-29 06:31:02
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[New Thread 0x7ffff646d640 (LWP 21176)]
[New Thread 0x7ffff5c6c640 (LWP 21177)]
[New Thread 0x7ffff546b640 (LWP 21178)]
[New Thread 0x7ffff4c6a640 (LWP 21179)]
[New Thread 0x7ffff4469640 (LWP 21180)]
[New Thread 0x7ffff3c68640 (LWP 21181)]
[New Thread 0x7ffff3467640 (LWP 21182)]
[New Thread 0x7ffff2c66640 (LWP 21183)]
[New Thread 0x7ffff2465640 (LWP 21184)]
[New Thread 0x7ffff1c64640 (LWP 21185)]
[New Thread 0x7ffff1463640 (LWP 21186)]
[New Thread 0x7ffff0c62640 (LWP 21187)]
[New Thread 0x7ffff0461640 (LWP 21188)]
[New Thread 0x7fffefc60640 (LWP 21189)]
[New Thread 0x7fffef45f640 (LWP 21190)]
[New Thread 0x7fffeec5e640 (LWP 21191)]
[New Thread 0x7fffee45d640 (LWP 21192)]
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> magicyuv (native))
Press [q] to stop, [?] for help
[New Thread 0x7fffedc5c640 (LWP 21193)]
[New Thread 0x7ffff6fdc640 (LWP 21194)]
[New Thread 0x7fff93fff640 (LWP 21195)]
[New Thread 0x7fff937fe640 (LWP 21196)]
[New Thread 0x7fff92ffd640 (LWP 21197)]
[New Thread 0x7fff927fc640 (LWP 21198)]
[New Thread 0x7fff91ffb640 (LWP 21199)]
[New Thread 0x7fff917fa640 (LWP 21200)]
[New Thread 0x7fff90ff9640 (LWP 21201)]
[New Thread 0x7fff8bfff640 (LWP 21202)]
[New Thread 0x7fff8b7fe640 (LWP 21203)]
[New Thread 0x7fff8affd640 (LWP 21204)]
[New Thread 0x7fff8a7fc640 (LWP 21205)]
[New Thread 0x7fff89ffb640 (LWP 21206)]
[New Thread 0x7fff897fa640 (LWP 21207)]
[New Thread 0x7fff88ff9640 (LWP 21208)]
[New Thread 0x7fff887f8640 (LWP 21209)]
[New Thread 0x7fff87ff7640 (LWP 21210)]
[New Thread 0x7fff877f6640 (LWP 21211)]
[New Thread 0x7fff86ff5640 (LWP 21212)]
[New Thread 0x7fff867f4640 (LWP 21213)]
[New Thread 0x7fff85ff3640 (LWP 21214)]
[New Thread 0x7fff857f2640 (LWP 21215)]
[New Thread 0x7fff84ff1640 (LWP 21216)]
[New Thread 0x7fff847f0640 (LWP 21217)]
[New Thread 0x7fff83fef640 (LWP 21218)]
[New Thread 0x7fff837ee640 (LWP 21219)]
[New Thread 0x7fff82fed640 (LWP 21220)]
[New Thread 0x7fff827ec640 (LWP 21221)]
[New Thread 0x7fff81feb640 (LWP 21222)]
[New Thread 0x7fff817ea640 (LWP 21223)]
[Thread 0x7fff817ea640 (LWP 21223) exited]
[Thread 0x7fff81feb640 (LWP 21222) exited]
[Thread 0x7fff827ec640 (LWP 21221) exited]
[Thread 0x7fff82fed640 (LWP 21220) exited]
[New Thread 0x7fff817ea640 (LWP 21224)]
[Thread 0x7fff837ee640 (LWP 21219) exited]
[Thread 0x7fff83fef640 (LWP 21218) exited]
[Thread 0x7fff847f0640 (LWP 21217) exited]
[Thread 0x7fff84ff1640 (LWP 21216) exited]
[Thread 0x7fff857f2640 (LWP 21215) exited]
[Thread 0x7fff85ff3640 (LWP 21214) exited]
[Thread 0x7fff867f4640 (LWP 21213) exited]
[Thread 0x7fff86ff5640 (LWP 21212) exited]
[Thread 0x7fff877f6640 (LWP 21211) exited]
[Thread 0x7fff87ff7640 (LWP 21210) exited]
[Thread 0x7fff887f8640 (LWP 21209) exited]
[New Thread 0x7fff81feb640 (LWP 21225)]
[New Thread 0x7fff827ec640 (LWP 21226)]
[New Thread 0x7fff82fed640 (LWP 21227)]
[New Thread 0x7fff887f8640 (LWP 21228)]
[New Thread 0x7fff87ff7640 (LWP 21229)]
[New Thread 0x7fff877f6640 (LWP 21230)]
[New Thread 0x7fff86ff5640 (LWP 21231)]
[New Thread 0x7fff867f4640 (LWP 21232)]
[New Thread 0x7fff85ff3640 (LWP 21233)]
[New Thread 0x7fff857f2640 (LWP 21234)]
[New Thread 0x7fff84ff1640 (LWP 21235)]
[New Thread 0x7fff847f0640 (LWP 21236)]
[New Thread 0x7fff83fef640 (LWP 21237)]
[New Thread 0x7fff837ee640 (LWP 21238)]
[Thread 0x7fff837ee640 (LWP 21238) exited]
[Thread 0x7fff83fef640 (LWP 21237) exited]
[Thread 0x7fff847f0640 (LWP 21236) exited]
[Thread 0x7fff84ff1640 (LWP 21235) exited]
[Thread 0x7fff857f2640 (LWP 21234) exited]
[New Thread 0x7fff837ee640 (LWP 21239)]
[Thread 0x7fff85ff3640 (LWP 21233) exited]
[Thread 0x7fff867f4640 (LWP 21232) exited]
[Thread 0x7fff86ff5640 (LWP 21231) exited]
[Thread 0x7fff877f6640 (LWP 21230) exited]
[Thread 0x7fff87ff7640 (LWP 21229) exited]
[Thread 0x7fff887f8640 (LWP 21228) exited]
[Thread 0x7fff82fed640 (LWP 21227) exited]
[Thread 0x7fff827ec640 (LWP 21226) exited]
[Thread 0x7fff81feb640 (LWP 21225) exited]
[Thread 0x7fff817ea640 (LWP 21224) exited]
[New Thread 0x7fff83fef640 (LWP 21240)]
[New Thread 0x7fff847f0640 (LWP 21241)]
[New Thread 0x7fff84ff1640 (LWP 21242)]
[New Thread 0x7fff887f8640 (LWP 21243)]
[New Thread 0x7fff87ff7640 (LWP 21244)]
[New Thread 0x7fff877f6640 (LWP 21245)]
[New Thread 0x7fff86ff5640 (LWP 21246)]
[New Thread 0x7fff867f4640 (LWP 21247)]
[New Thread 0x7fff85ff3640 (LWP 21248)]
[New Thread 0x7fff857f2640 (LWP 21249)]
[New Thread 0x7fff82fed640 (LWP 21250)]
[New Thread 0x7fff827ec640 (LWP 21251)]
[New Thread 0x7fff81feb640 (LWP 21252)]
[New Thread 0x7fff817ea640 (LWP 21253)]
[Thread 0x7fff827ec640 (LWP 21251) exited]
[Thread 0x7fff82fed640 (LWP 21250) exited]
[Thread 0x7fff817ea640 (LWP 21253) exited]
[Thread 0x7fff81feb640 (LWP 21252) exited]
[Thread 0x7fff857f2640 (LWP 21249) exited]
[Thread 0x7fff85ff3640 (LWP 21248) exited]
[Thread 0x7fff867f4640 (LWP 21247) exited]
[Thread 0x7fff86ff5640 (LWP 21246) exited]
[Thread 0x7fff877f6640 (LWP 21245) exited]
[New Thread 0x7fff817ea640 (LWP 21254)]
[Thread 0x7fff87ff7640 (LWP 21244) exited]
[Thread 0x7fff887f8640 (LWP 21243) exited]
[Thread 0x7fff84ff1640 (LWP 21242) exited]
[Thread 0x7fff847f0640 (LWP 21241) exited]
[Thread 0x7fff83fef640 (LWP 21240) exited]
[Thread 0x7fff837ee640 (LWP 21239) exited]
[New Thread 0x7fff81feb640 (LWP 21255)]
[New Thread 0x7fff827ec640 (LWP 21256)]
[New Thread 0x7fff82fed640 (LWP 21257)]
[New Thread 0x7fff887f8640 (LWP 21258)]
[New Thread 0x7fff87ff7640 (LWP 21259)]
[New Thread 0x7fff877f6640 (LWP 21260)]
[New Thread 0x7fff86ff5640 (LWP 21261)]
[New Thread 0x7fff867f4640 (LWP 21262)]
[New Thread 0x7fff85ff3640 (LWP 21263)]
[New Thread 0x7fff857f2640 (LWP 21264)]
[New Thread 0x7fff84ff1640 (LWP 21265)]
[New Thread 0x7fff847f0640 (LWP 21266)]
[New Thread 0x7fff83fef640 (LWP 21267)]
[New Thread 0x7fff837ee640 (LWP 21268)]
[New Thread 0x7fff80fe9640 (LWP 21269)]
[New Thread 0x7fff807e8640 (LWP 21270)]
[New Thread 0x7fff7ffe7640 (LWP 21271)]
[New Thread 0x7fff7f7e6640 (LWP 21272)]
[New Thread 0x7fff7efe5640 (LWP 21273)]
[New Thread 0x7fff7e7e4640 (LWP 21274)]
[New Thread 0x7fff7dfe3640 (LWP 21275)]
[New Thread 0x7fff7d7e2640 (LWP 21276)]
[New Thread 0x7fff7cfe1640 (LWP 21277)]
[New Thread 0x7fff7c7e0640 (LWP 21278)]
[New Thread 0x7fff7bfdf640 (LWP 21279)]
[New Thread 0x7fff7b7de640 (LWP 21280)]
[New Thread 0x7fff7afdd640 (LWP 21281)]
[New Thread 0x7fff7a7dc640 (LWP 21282)]
[New Thread 0x7fff79fdb640 (LWP 21283)]
[New Thread 0x7fff797da640 (LWP 21284)]
Output #0, mov, to 'out.mov':
Metadata:
title : Planet Earth II S01E01 4K
encoder : Lavf60.11.100
Chapters:
Chapter #0:0: start 0.000000, end 4.216000
Metadata:
title : 00:00:00.000
Stream #0:0: Video: magicyuv (M8Y0 / 0x3059384D), yuv420p(tv,
bt2020nc/bt2020/smpte2084, progressive), 671x981 [SAR 1744:671 DAR 16:9],
q=2-31, 200 kb/s, 23.98 fps, 24k tbn (default)
Metadata:
BPS : 44365437
BPS-eng : 44365437
DURATION : 00:00:04.212000000
DURATION-eng : 00:00:04.212000000
NUMBER_OF_FRAMES: 101
NUMBER_OF_FRAMES-eng: 101
NUMBER_OF_BYTES : 23358403
NUMBER_OF_BYTES-eng: 23358403
_STATISTICS_WRITING_APP: mkvmerge v16.0.0 ('Protest') 64-bit
_STATISTICS_WRITING_APP-eng: mkvmerge v16.0.0 ('Protest') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2017-10-29 06:31:02
_STATISTICS_WRITING_DATE_UTC-eng: 2017-10-29 06:31:02
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
encoder : Lavc60.26.100 magicyuv
[New Thread 0x7fff78fd9640 (LWP 21285)]
frame= 14 fps=0.0 q=-0.0 size= 6400kB time=00:00:00.58
bitrate=89789.0kbitsframe= 34 fps= 23 q=-0.0 size= 17152kB
time=00:00:01.41 bitrate=99084.2kbitsframe= 49 fps= 25 q=-0.0 size=
28160kB time=00:00:02.04 bitrate=112876.8kbitframe= 69 fps= 28 q=-0.0
size= 42240kB time=00:00:02.87 bitrate=120238.2kbit[Thread
0x7fffedc5c640 (LWP 21193) exited]
[Thread 0x7fffee45d640 (LWP 21192) exited]
frame= 82 fps= 26 q=-0.0 size= 51712kB time=00:00:03.50
bitrate=120914.9kbitInternal error, put_bits buffer too small
Last message repeated 55 times
Assertion s->buf_ptr < s->buf_end failed at libavcodec/put_bits.h:150
Thread 108 "ffmpeg_g" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fff7a7dc640 (LWP 21282)]
__pthread_kill_implementation (no_tid=0, signo=6,
threadid=140735248451136) at ./nptl/pthread_kill.c:44
44 ./nptl/pthread_kill.c
(gdb) bt
#0 __pthread_kill_implementation (no_tid=0, signo=6,
threadid=140735248451136)
at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=140735248451136)
at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=140735248451136, signo=signo at entry=6)
at ./nptl/pthread_kill.c:89
#3 0x00007ffff783c476 in __GI_raise (sig=sig at entry=6)
at ../sysdeps/posix/raise.c:26
#4 0x00007ffff78227f3 in __GI_abort () at ./stdlib/abort.c:79
#5 0x0000555555d8dd8c in flush_put_bits (s=<synthetic pointer>)
at libavcodec/put_bits.h:150
#6 encode_plane_slice (prediction=<optimized out>, he=<optimized out>,
height=62, width=671, dst_size=<optimized out>, dst=<optimized out>,
src=<optimized out>) at libavcodec/magicyuvenc.c:445
#7 encode_slice (avctx=0x55555d318980, tdata=<optimized out>, n=1,
threadnr=<optimized out>) at libavcodec/magicyuvenc.c:462
#8 0x0000555555b6203d in avcodec_default_execute2 (c=0x55555d318980,
func=0x555555d8dae0 <encode_slice>, arg=0x0, ret=<optimized out>,
count=16)
at libavcodec/avcodec.c:74
#9 0x0000555555d8d58a in magy_encode_frame (avctx=<optimized out>,
pkt=0x555559d2fcc0, frame=<optimized out>, got_packet=0x555559d2d3c0)
at libavcodec/magicyuvenc.c:590
#10 0x0000555555c4c978 in ff_encode_encode_cb (avctx=0x55555d318980,
avpkt=0x555559d2fcc0, frame=0x555559d2fa40,
got_packet=got_packet at entry=0x555559d2d3c0) at libavcodec/encode.c:263
#11 0x0000555555c91b0b in worker (v=<optimized out>)
at libavcodec/frame_thread_encoder.c:105
#12 0x00007ffff788eb43 in start_thread (arg=<optimized out>)
at ./nptl/pthread_create.c:442
#13 0x00007ffff7920a00 in clone3 ()
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10556>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list