Cannot create sample file if it contains "HDMV PGS" subtitle stream
foxi69 opened this issue · comments
IConversion conversion = FFmpeg.Conversions.New().AddStream(mediaInfo.Streams).AddParameter($"-ss {TimeSpan.FromMinutes(5)} -t {TimeSpan.FromMinutes(mainForm.sampleDuration)}").UseMultiThread(mainForm.useMultiThreading).SetOutput(outputFilePath);
IConversionResult result = await conversion.Start();
[matroska,webm @ 0000022a5241e800] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[matroska,webm @ 0000022a5241e800] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[sost#0:5/ssa @ 0000011b8b30d240] Subtitle encoding currently only possible from text to text or bitmap to bitmap
How can i fix this?
ffmpeg version 5.1.2-essentials_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 12.1.0 (Rev2, Built by MSYS2 project)
oh my bad:
Fixed with .AddParameter(@"-c:s copy")