[FFmpeg-user] pgssub direct to .sub & .idx ? Possible?
Mark Filipak
markfilipak.imdb at gmail.com
Tue Jun 10 17:37:14 EEST 2025
Thank you, Paul.
So many people have trouble with pgssub-in-m2ts to <anysub>-in-<anyts> conversion. I have it working
for pgssub-in-m2ts to dvdsub-in-mp4 conversion but I'm trying to improve it.
On 10/06/2025 09.53, Paul B Mahol wrote:
> Which subtitle format is accepting dvdsub codec stream?
The standard is .sub & .idx -- two files in tandem -- what I'm calling "dvdsub-in-sub-with-idx".
> .sub extension you use here is for microdvd codec stream only and thus not
> possible.
It's working...
> What you want to do?
>
> Do you want to transcode input subtitle codec stream to another subtitle
> codec and container, which one?
I am already converting pgssub-in-m2ts to dvdsub-in-sub-with-idx (which SubtitleEdit accepts). Now,
I'm trying to do the same thing, but without having to go through mkvextract.
> Does files what mkvextracts outputs/produce in your above command is
> recognized by ffmpeg in any way?
They are recognized by SubtitleEdit (which is what I use for OCR and editing). The .srt that
SubtitleEdit produces is recognized by FFmpeg.
What I posted was Steps 2 & 3 of a 5 step factory. Step 1 uses FFmpeg to do the transcode-remux:
h264-in-m2ts to x264-in-mp4. Step 4 is dvdsub OCR & srt output via SubtitleEdit. Step 5 is srt mux
via FFmpeg. I will paste in the full factory if that would help.
I'm trying to fold Steps 2 & 3 into Step 1.
On your suggestion, for a combined Step 2 & 3 (i.e. pgssub-in-m2ts directly to dvdsub-in-sup, I
tried this:
ffmpeg^
-i "y:\BDMV\STREAM\00000.m2ts"^
-map 0:s:0 -s 1920x1080 -c:s dvdsub^
"c:\2001, A SPACE ODYSSEY [1968].sup"
It failed:
(The conversion to dvdsub seemed to go fine. The problem seems to be with the sup muxer.)
C:\Windows\System32>ffmpeg^
More? -i "y:\BDMV\STREAM\00000.m2ts"^
More? -map 0:s:0 -s 1920x1080 -c:s dvdsub^
More? "c:\2001, A SPACE ODYSSEY [1968].sup"
ffmpeg version 2025-06-02-git-688f3944ce-full_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-lcms2
--enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib
--enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth
--enable-libbluray --enable-libcaca --enable-libdvdnav --enable-libdvdread --enable-sdl2
--enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libopenjpeg
--enable-libquirc --enable-libuavs3d --enable-libxevd --enable-libzvbi --enable-liboapv
--enable-libqrencode --enable-librav1e --enable-libsvtav1 --enable-libvvenc --enable-libwebp
--enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxeve --enable-libxvid
--enable-libaom --enable-libjxl --enable-libvpx --enable-mediafoundation --enable-libass
--enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-liblensfun
--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-libshaderc --enable-vulkan --enable-libplacebo
--enable-opencl --enable-libcdio --enable-openal --enable-libgme --enable-libmodplug
--enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine
--enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libcodec2 --enable-libilbc
--enable-libgsm --enable-liblc3 --enable-libopencore-amrnb --enable-libopus --enable-libspeex
--enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa
--enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 60. 3.100 / 60. 3.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
[mpegts @ 00000000027021c0] Failed to open codec in avformat_find_stream_info
[mpegts @ 00000000027021c0] start time for stream 9 is not set in estimate_timings_from_pts
[mpegts @ 00000000027021c0] start time for stream 10 is not set in estimate_timings_from_pts
[mpegts @ 00000000027021c0] start time for stream 11 is not set in estimate_timings_from_pts
[mpegts @ 00000000027021c0] start time for stream 12 is not set in estimate_timings_from_pts
[mpegts @ 00000000027021c0] start time for stream 13 is not set in estimate_timings_from_pts
[mpegts @ 00000000027021c0] start time for stream 14 is not set in estimate_timings_from_pts
[mpegts @ 00000000027021c0] start time for stream 15 is not set in estimate_timings_from_pts
[mpegts @ 00000000027021c0] start time for stream 16 is not set in estimate_timings_from_pts
[mpegts @ 00000000027021c0] start time for stream 17 is not set in estimate_timings_from_pts
[mpegts @ 00000000027021c0] start time for stream 18 is not set in estimate_timings_from_pts
[mpegts @ 00000000027021c0] start time for stream 19 is not set in estimate_timings_from_pts
[mpegts @ 00000000027021c0] start time for stream 20 is not set in estimate_timings_from_pts
[mpegts @ 00000000027021c0] start time for stream 21 is not set in estimate_timings_from_pts
[mpegts @ 00000000027021c0] start time for stream 22 is not set in estimate_timings_from_pts
[mpegts @ 00000000027021c0] start time for stream 23 is not set in estimate_timings_from_pts
[mpegts @ 00000000027021c0] start time for stream 24 is not set in estimate_timings_from_pts
[mpegts @ 00000000027021c0] start time for stream 25 is not set in estimate_timings_from_pts
[mpegts @ 00000000027021c0] start time for stream 26 is not set in estimate_timings_from_pts
[mpegts @ 00000000027021c0] Could not find codec parameters for stream 9 (Subtitle:
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpegts @ 00000000027021c0] Could not find codec parameters for stream 10 (Subtitle:
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpegts @ 00000000027021c0] Could not find codec parameters for stream 11 (Subtitle:
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpegts @ 00000000027021c0] Could not find codec parameters for stream 12 (Subtitle:
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpegts @ 00000000027021c0] Could not find codec parameters for stream 13 (Subtitle:
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpegts @ 00000000027021c0] Could not find codec parameters for stream 14 (Subtitle:
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpegts @ 00000000027021c0] Could not find codec parameters for stream 15 (Subtitle:
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpegts @ 00000000027021c0] Could not find codec parameters for stream 16 (Subtitle:
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpegts @ 00000000027021c0] Could not find codec parameters for stream 17 (Subtitle:
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpegts @ 00000000027021c0] Could not find codec parameters for stream 18 (Subtitle:
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpegts @ 00000000027021c0] Could not find codec parameters for stream 19 (Subtitle:
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpegts @ 00000000027021c0] Could not find codec parameters for stream 20 (Subtitle:
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpegts @ 00000000027021c0] Could not find codec parameters for stream 21 (Subtitle:
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpegts @ 00000000027021c0] Could not find codec parameters for stream 22 (Subtitle:
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpegts @ 00000000027021c0] Could not find codec parameters for stream 23 (Subtitle:
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpegts @ 00000000027021c0] Could not find codec parameters for stream 24 (Subtitle:
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpegts @ 00000000027021c0] Could not find codec parameters for stream 25 (Subtitle:
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpegts @ 00000000027021c0] Could not find codec parameters for stream 26 (Subtitle:
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, mpegts, from 'y:\BDMV\STREAM\00000.m2ts':
Duration: 02:28:51.68, start: 11.650667, bitrate: 22336 kb/s
Program 1
Stream #0:0[0x1011]: Video: vc1 (Advanced) (VC-1 / 0x312D4356), yuv420p(progressive), 1920x1080
[SAR 1:1 DAR 16:9], 23.98 fps, 47.95 tbr, 90k tbn, Start 11.650667
Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s, Start
11.650667
Stream #0:2[0x1101]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, 5.1(side), s16, 4608 kb/s,
Start 11.650667
Stream #0:3[0x1102]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s, Start
11.650667
Stream #0:4[0x1103]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s, Start
11.650667
Stream #0:5[0x1104]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s, Start
11.650667
Stream #0:6[0x1105]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s, Start
11.650667
Stream #0:7[0x1106]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s, Start
11.650667
Stream #0:8[0x1107]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 192 kb/s, Start
11.650667
Stream #0:9[0x1200]: Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090), Start 11.650667
Stream #0:10[0x1201]: Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090), Start 11.650667
Stream #0:11[0x1202]: Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090), Start 11.650667
Stream #0:12[0x1203]: Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090), Start 11.650667
Stream #0:13[0x1204]: Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090), Start 11.650667
Stream #0:14[0x1205]: Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090), Start 11.650667
Stream #0:15[0x1206]: Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090), Start 11.650667
Stream #0:16[0x1207]: Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090), Start 11.650667
Stream #0:17[0x1208]: Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090), Start 11.650667
Stream #0:18[0x1209]: Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090), Start 11.650667
Stream #0:19[0x120a]: Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090), Start 11.650667
Stream #0:20[0x120b]: Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090), Start 11.650667
Stream #0:21[0x120c]: Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090), Start 11.650667
Stream #0:22[0x120d]: Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090), Start 11.650667
Stream #0:23[0x120e]: Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090), Start 11.650667
Stream #0:24[0x120f]: Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090), Start 11.650667
Stream #0:25[0x1210]: Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090), Start 11.650667
Stream #0:26[0x1211]: Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090), Start 11.650667
Stream mapping:
Stream #0:9 -> #0:0 (hdmv_pgs_subtitle (pgssub) -> dvd_subtitle (dvdsub))
Press [q] to stop, [?] for help
Output #0, sup, to 'c:\2001, A SPACE ODYSSEY [1968].sup':
Metadata:
encoder : Lavf62.0.102
Stream #0:0: Subtitle: dvd_subtitle, 1920x1080
Metadata:
encoder : Lavc62.3.101 dvdsub
[sup @ 0000000002709cc0] Not enough data, skipping 8633 bytes57.60
[sost#0:0/dvdsub @ 0000000005830680] Error submitting a packet to the muxer: Invalid data found when
processing input
Last message repeated 1 times
[out#0/sup @ 000000000280bb40] Error muxing a packet
[out#0/sup @ 000000000280bb40] Task finished with error code: -1094995529 (Invalid data found when
processing input)
[out#0/sup @ 000000000280bb40] Terminating thread with return code -1094995529 (Invalid data found
when processing input)
[out#0/sup @ 000000000280bb40] video:0KiB audio:0KiB subtitle:8KiB other streams:0KiB global
headers:0KiB muxing overhead: unknown
size= 0KiB time=1193:28:31.25 bitrate= 0.0kbits/s speed=2.41e+04x elapsed=0:02:58.33
Conversion failed!
More information about the ffmpeg-user
mailing list