#11594: Hardcoding subtitles broken with libx265 since 20241205 ------------------------------------+----------------------------------- Reporter: SubJunk | Owner: (none) Type: defect | Status: closed Priority: normal | Component: avcodec Version: git-master | Resolution: invalid Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+----------------------------------- Comment (by SubJunk):
Thanks again for the response, but I get the same error with HDMV subtitles. The input file can be downloaded here https://github.com/UniversalMediaServer/UniversalMediaServer/blob/b0709d67fc7761cc719744461bfbbb9ca2422e90/src/test/resources/net/pms/parsers /video-h265_dolbyvision_p08.06-eac3_dolby_surround_ex-hdmv_pgs.mkv The command: {{{ ffmpeg.exe -y -loglevel info -i input.mkv -filter_complex [0:v][0:s:0]overlay -maxrate 89000k -crf 16 -c:a copy -c:v libx265 -preset superfast -f mpegts output.ts }}} Output: {{{ ffmpeg version 2025-05-15-git-12b853530a-essentials_build-www.gyan.dev Copyright (c) 2000-2025 the FFmpeg developers built with gcc 15.1.0 (Rev4, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable- w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable- avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable- libfribidi --enable-libharfbuzz --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable- dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libgme --enable- libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable- libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore- amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable- librubberband libavutil 60. 2.100 / 60. 2.100 libavcodec 62. 3.101 / 62. 3.101 libavformat 62. 0.102 / 62. 0.102 libavdevice 62. 0.100 / 62. 0.100 libavfilter 11. 0.100 / 11. 0.100 libswscale 9. 0.100 / 9. 0.100 libswresample 6. 0.100 / 6. 0.100 [matroska,webm @ 0000023384427a00] 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 'input.mkv': Metadata: encoder : libebml v1.4.2 + libmatroska v1.6.4 creation_time : 2022-12-17T02:31:50.000000Z Duration: 01:09:15.17, start: 0.000000, bitrate: 3425 kb/s Chapters: Chapter #0:0: start 0.000000, end 605.939000 Metadata: title : 00:00:00.000 Chapter #0:1: start 605.939000, end 820.695000 Metadata: title : 00:10:05.939 Chapter #0:2: start 820.695000, end 1088.462000 Metadata: title : 00:13:40.695 Chapter #0:3: start 1088.462000, end 1559.641000 Metadata: title : 00:18:08.462 Chapter #0:4: start 1559.641000, end 1812.561000 Metadata: title : 00:25:59.641 Chapter #0:5: start 1812.561000, end 2018.850000 Metadata: title : 00:30:12.561 Chapter #0:6: start 2018.850000, end 2397.186000 Metadata: title : 00:33:38.850 Chapter #0:7: start 2397.186000, end 2622.703000 Metadata: title : 00:39:57.186 Chapter #0:8: start 2622.703000, end 2990.196000 Metadata: title : 00:43:42.703 Chapter #0:9: start 2990.196000, end 3447.444000 Metadata: title : 00:49:50.196 Chapter #0:10: start 3447.444000, end 3841.046000 Metadata: title : 00:57:27.444 Chapter #0:11: start 3841.046000, end 4155.168000 Metadata: title : 01:04:01.046 Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv), 1920x1080, SAR 1:1 DAR 16:9, 23.81 fps, 23.81 tbr, 1k tbn (default) Stream #0:1(eng): Audio: eac3, 48000 Hz, 5.1(side), fltp, 640 kb/s Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle (pgssub) (default) Metadata: title : Stream mapping: Stream #0:0 (hevc) -> overlay Stream #0:2 (pgssub) -> overlay overlay:default -> Stream #0:0 (libx265) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help [libx265 @ 0000023384706740] Loaded libx265 does not support alpha layer encoding. [vost#0:0/libx265 @ 0000023384706040] [enc:libx265 @ 0000023384645dc0] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height. [fc#0 @ 0000023384423400] Error sending frames to consumers: Error number -129 occurred [fc#0 @ 0000023384423400] Task finished with error code: -129 (Error number -129 occurred) [fc#0 @ 0000023384423400] Terminating thread with return code -129 (Error number -129 occurred) [vost#0:0/libx265 @ 0000023384706040] [enc:libx265 @ 0000023384645dc0] Could not open encoder before EOF [vost#0:0/libx265 @ 0000023384706040] Task finished with error code: -22 (Invalid argument) [vost#0:0/libx265 @ 0000023384706040] Terminating thread with return code -22 (Invalid argument) [out#0/mpegts @ 00000233845ebb80] 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.18 Conversion failed! }}} -- Ticket URL: <https://trac.ffmpeg.org/ticket/11594#comment:4> 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".