#11594: Hardcoding subtitles broken with libx265 since 20241205 ------------------------------------+----------------------------------- Reporter: SubJunk | Owner: (none) Type: defect | Status: new Priority: normal | Component: avcodec Version: git-master | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+----------------------------------- Comment (by SubJunk):
Hi Gyan, thanks for the quick response. The input file it uses is https://github.com/UniversalMediaServer/UniversalMediaServer/blob/7065d765dac8acdc57d13a5628d15b891b3b1fdf/src/test/resources/net/pms/parsers /video-h265_dolbyvision_p08.06-eac3_dolby_surround_ex-srt.mkv The output is: {{{ Input #0, matroska,webm, from 'D:\a\UniversalMediaServer\UniversalMediaServer\target\test- classes\net\pms\parsers\video-h265_dolbyvision_p08.06 -eac3_dolby_surround_ex-srt.mkv': Metadata: encoder : libebml v1.4.5 + libmatroska v1.7.1 creation_time : 2025-05-17T05:48:07.000000Z Duration: 00:02:12.90, start: 0.000000, bitrate: 1151 kb/s Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x1608, SAR 1:1 DAR 160:67, 23.98 fps, 23.98 tbr, 1k tbn (default) Metadata: BPS : 12605646 DURATION : 00:00:10.427000000 NUMBER_OF_FRAMES: 250 NUMBER_OF_BYTES : 16429884 _STATISTICS_WRITING_APP: mkvmerge v92.0 ('Everglow') 64-bit _STATISTICS_WRITING_DATE_UTC: 2025-05-17 05:48:07 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Side data: DOVI configuration record: version: 1.0, profile: 8, level: 6, rpu flag: 1, el flag: 0, bl flag: 1, compatibility id: 1, compression: 0 Stream #0:1(eng): Audio: eac3, 48000 Hz, 7.1, fltp, 1536 kb/s (default) Metadata: title : DDP 7.1 BPS : 1536000 DURATION : 00:00:10.432000000 NUMBER_OF_FRAMES: 326 NUMBER_OF_BYTES : 2002944 _STATISTICS_WRITING_APP: mkvmerge v92.0 ('Everglow') 64-bit _STATISTICS_WRITING_DATE_UTC: 2025-05-17 05:48:07 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:2(eng): Subtitle: subrip (srt) (default) Metadata: BPS : 85 DURATION : 00:02:10.794000000 NUMBER_OF_FRAMES: 44 NUMBER_OF_BYTES : 1406 _STATISTICS_WRITING_APP: mkvmerge v92.0 ('Everglow') 64-bit _STATISTICS_WRITING_DATE_UTC: 2025-05-17 05:48:07 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:3: Video: png, rgb24(pc, gbr/unknown/unknown), 608x759 [SAR 3780:3780 DAR 608:759], 90k tbr, 90k tbn (attached pic) Metadata: filename : Knock at the Cabin 2023 4K DV BiTOR.PNG mimetype : image/png Stream mapping: Stream #0:0 (hevc) -> overlay Stream #0:2 (srt) -> overlay overlay:default -> Stream #0:0 (libx265) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help [libx265 @ 000001d173492880] Loaded libx265 does not support alpha layer encoding. [vost#0:0/libx265 @ 000001d173492640] [enc:libx265 @ 000001d1733b97c0] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height. [fc#0 @ 000001d1731e5840] Error sending frames to consumers: Error number -129 occurred [fc#0 @ 000001d1731e5840] Task finished with error code: -129 (Error number -129 occurred) [fc#0 @ 000001d1731e5840] Terminating thread with return code -129 (Error number -129 occurred) [vost#0:0/libx265 @ 000001d173492640] [enc:libx265 @ 000001d1733b97c0] Could not open encoder before EOF [vost#0:0/libx265 @ 000001d173492640] Task finished with error code: -22 (Invalid argument) [vost#0:0/libx265 @ 000001d173492640] Terminating thread with return code -22 (Invalid argument) [out#0/mpegts @ 000001d1732aef00] Nothing was written into output file, because at least one of its streams received no packets. frame= 0 fps=0.0 q=0.0 Lsize= 0KiB time=N/A bitrate=N/A speed=N/A elapsed=0:00:00.52 Conversion failed! }}} That file is just one I muxed together to demonstrate the problem, but this happens on a lot of real world files too The test runs on GitHub Actions so the output for your latest build is here https://github.com/UniversalMediaServer/UniversalMediaServer/actions/runs/15091954469/job/42421723488#step:5:7501 -- Ticket URL: <https://trac.ffmpeg.org/ticket/11594#comment:2> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
_______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org https://ffmpeg.org/mailman/listinfo/ffmpeg-trac To unsubscribe, visit link above, or email ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".