Opened 14 months ago

Last modified 5 weeks ago

#10411 new defect

Crash on certain videos when transcoding to x265

Reported by: eygraber Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: crash libx265 x265
Cc: eygraber Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by eygraber)

Summary of the bug:

I have a specific video file that I try to transcode to x265. As soon as I start the transcode it crashes. This happens on versions 6.0 and 6.1, and 7.0. It doesn't happen on version 4.4.2 or 5.1.1.

I am attaching the console log and gdb info and a sample file that repros the issue.

How to reproduce:

% ffmpeg -i segfault.mkv -vcodec libx265 -acodec copy  out.mkv
ffmpeg version git-master, n6.0 and n6.1-dev
built on Ubuntu 22.04

Attachments (3)

gdb.txt (14.6 KB ) - added by eygraber 14 months ago.
GDB output
ffmpeg-20230611-023320.log (58.4 KB ) - added by eygraber 14 months ago.
Console output
segfault2.mkv (790.6 KB ) - added by eygraber 11 months ago.
Snippet of video that causes the segfault

Download all attachments as: .zip

Change History (14)

by eygraber, 14 months ago

Attachment: gdb.txt added

GDB output

by eygraber, 14 months ago

Attachment: ffmpeg-20230611-023320.log added

Console output

comment:1 by eygraber, 14 months ago

Description: modified (diff)

comment:2 by eygraber, 14 months ago

Description: modified (diff)
Version: 6.0git-master

comment:3 by Balling, 14 months ago

Sample?

comment:4 by eygraber, 14 months ago

I uploaded it to https://streams.videolan.org/upload/ with the filename segfault.mkv

comment:5 by eygraber, 11 months ago

If you need more samples I recently encountered a bunch of media that has a similar issue.

comment:6 by Balling, 11 months ago

Yes, please.

by eygraber, 11 months ago

Attachment: segfault2.mkv added

Snippet of video that causes the segfault

comment:7 by eygraber, 9 months ago

Still happening with 6.1 release

comment:8 by eygraber, 3 months ago

Still happening with ffmpeg 7.0 and x265 53afbf5f5

comment:9 by eygraber, 3 months ago

Description: modified (diff)

comment:10 by mkver, 7 weeks ago

Looks like you ran into the bug described in ticket #9666 (see ​my comment there). It is not a complete duplicate though, because your file is based upon A53 closed caption SEIs and not User Data Unregistered SEIs.
Workaround is to use "-a53cc 0". (I just sent a patch to make this the default.)

comment:11 by eygraber, 5 weeks ago

I built with your patch locally, and that fixes the issue. Thank you!

Note: See TracTickets for help on using tickets.