Hello, I’m trying to copy a PGS stream from an MKV to .TS (simple copy / no transcode), however neither mediainfo nor VLC show the subtitle streams in the output file (they do in the input file)
The decoder returns an error “[matroska,webm @ 000001ed237bfd20] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle): unspecified size”. I have tried changing the probsize etc but it didn’t work. The encoding otherwise completes successfully Running ffprobe on the output file shows errors: Unsupported codec with id 100359 for input stream 3 Unsupported codec with id 100359 for input stream 4 Thanks for any help Regards Pierre Console output below G:\Ubuntu\ffmpeg -scodec pgssub -analyzeduration 100M -probesize 100M -i "test.mkv" -map 0 -y -c:v nvenc_hevc -preset slow -level 4.1 -b:v 7500k -c:a libfdk_aac -b:a 256k -ac 2 -clev 3dB -c:s copy -ss "00:06:00" -t "00:02:00" "D:\Movies\Tests\Test.ts" ffmpeg version N-78227-gae5b2c5 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.3.0 (GCC) configuration: --arch=x86_64 --target-os=mingw32 --cross-prefix=/home/zheer/Desktop/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32- --pkg-config=pkg-config --disable-w32threads --enable-gpl --enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo --enable-libbluray --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libzvbi --enable-libcaca --enable-libmodplug --extra-libs=-lstdc++ --extra-libs=-lpng --enable-libvidstab --enable-libx265 --enable-decklink --extra-libs=-loleaut32 --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --enable-frei0r --enable-filter=frei0r --enable-bzlib --enable-libxavs --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-libilbc --enable-libwavpack --enable-libwebp --enable-libgme --enable-dxva2 --enable-libdcadec --enable-avisynth --enable-gray --enable-libopenh264 --extra-libs=-lpsapi --extra-cflags= --enable-static --disable-shared --prefix=/home/zheer/Desktop/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32 --enable-nonfree --enable-libfdk-aac --disable-libfaac --enable-nvenc --enable-runtime-cpudetect libavutil 55. 16.101 / 55. 16.101 libavcodec 57. 24.101 / 57. 24.101 libavformat 57. 23.101 / 57. 23.101 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 27.100 / 6. 27.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 [h264 @ 000001ed237d3ea0] Increasing reorder buffer to 1 [matroska,webm @ 000001ed237bfd20] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options [matroska,webm @ 000001ed237bfd20] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, matroska,webm, from 'test.mkv': Metadata: title : movie encoder : libmakemkv v1.8.14 (1.3.0/1.4.1) win(x64-release) creation_time : 2014-12-13 14:42:14 Duration: 02:41:41.69, start: 0.000000, bitrate: 30810 kb/s Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default) Metadata: title : Surround 5.1 Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s Metadata: title : Surround 5.1 Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle (default) Output #0, mpegts, to 'D:\Movies\Tests\Test.ts': Metadata: title : movie encoder : Lavf57.23.101 Chapter #0:0: start 0.000000, end 17.960917 Metadata: title : Chapter 01 Chapter #0:1: start 17.960917, end 113.598125 Metadata: title : Chapter 02 Chapter #0:2: start 113.598125, end 120.000000 Metadata: title : Chapter 03 Stream #0:0(eng): Video: hevc (nvenc_hevc) (Main), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 7500 kb/s, 23.98 fps, 90k tbn, 23.98 tbc Metadata: encoder : Lavc57.24.101 nvenc_hevc Side data: unknown side data type 10 (24 bytes) Stream #0:1(eng): Audio: aac (libfdk_aac), 48000 Hz, stereo, s16, 256 kb/s (default) Metadata: title : Surround 5.1 encoder : Lavc57.24.101 libfdk_aac Stream #0:2(eng): Audio: aac (libfdk_aac), 48000 Hz, stereo, s16, 256 kb/s Metadata: title : Surround 5.1 encoder : Lavc57.24.101 libfdk_aac Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle (default) Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> hevc (nvenc_hevc)) Stream #0:1 -> #0:1 (dts (dca) -> aac (libfdk_aac)) Stream #0:2 -> #0:2 (ac3 (native) -> aac (libfdk_aac)) Stream #0:3 -> #0:3 (copy) Stream #0:4 -> #0:4 (copy) Press [q] to stop, [?] for help frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0xframe= 0 fps=0.0 q=0.0 size= 0kB time=00:0frame= 2877 fps= 24 q=-0.0 Lsize= 128271kB time=00:02:00.03 bitrate=8753.9kbits/s speed=1.01x video:110100kB audio:7503kB subtitle:816kB other streams:0kB global headers:0kB muxing overhead: 8.319548% ffprobe -i "test.ts" ffprobe version N-78227-gae5b2c5 Copyright (c) 2007-2016 the FFmpeg developers built with gcc 5.3.0 (GCC) configuration: --arch=x86_64 --target-os=mingw32 --cross-prefix=/home/zheer/Desktop/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32- --pkg-config=pkg-config --disable-w32threads --enable-gpl --enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo --enable-libbluray --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libzvbi --enable-libcaca --enable-libmodplug --extra-libs=-lstdc++ --extra-libs=-lpng --enable-libvidstab --enable-libx265 --enable-decklink --extra-libs=-loleaut32 --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --enable-frei0r --enable-filter=frei0r --enable-bzlib --enable-libxavs --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-libilbc --enable-libwavpack --enable-libwebp --enable-libgme --enable-dxva2 --enable-libdcadec --enable-avisynth --enable-gray --enable-libopenh264 --extra-libs=-lpsapi --extra-cflags= --enable-static --disable-shared --prefix=/home/zheer/Desktop/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32 --enable-nonfree --enable-libfdk-aac --disable-libfaac --enable-nvenc --enable-runtime-cpudetect libavutil 55. 16.101 / 55. 16.101 libavcodec 57. 24.101 / 57. 24.101 libavformat 57. 23.101 / 57. 23.101 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 27.100 / 6. 27.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 [NULL @ 000001431dcbbae0] start time for stream 4 is not set in estimate_timings_from_pts Input #0, mpegts, from 'test.ts': Duration: 00:02:00.08, start: 1.400000, bitrate: 8750 kb/s Program 1 Metadata: service_name : Movie service_provider: FFmpeg Stream #0:0[0x100]: Video: hevc (Main) ([36][0][0][0] / 0x0024), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc Stream #0:1[0x101](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 222 kb/s Stream #0:2[0x102](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 217 kb/s Stream #0:3[0x103]: Data: bin_data ([6][0][0][0] / 0x0006) Stream #0:4[0x104]: Data: bin_data ([6][0][0][0] / 0x0006) Unsupported codec with id 100359 for input stream 3 Unsupported codec with id 100359 for input stream 4 _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user