ffmpeg error when streaming MKV video with embedded subtitle

Need help? Post your questions here.

Moderator: moderators

ffmpeg error when streaming MKV video with embedded subtitle

Postby FUNTOWNE » Wed May 15, 2019 1:40 pm

I am receiving the following error if I attempt to play an MKV file that has embedded subtitles:

Code: Select all
[5/15/19 3:23:36 PM CEST]   INFO   FFmpegHlsSession-1337951784   Starting ffmpeg for hls: /var/subsonic/transcode/ffmpeg -i /foo/bar/file.mkv -s 704x528 -c:v libx264 -c:a aac -b:v 1100k -maxrate 1200k -b:a 96k -bufsize 256k -map 0:0 -map 0:1 -ac 2 -preset superfast -v error -force_key_frames expr:gte(t,n_forced*10) -start_number 0 -hls_time 10 -hls_list_size 0 -hls_segment_filename /var/subsonic/hls/1337951784/%d.ts /var/subsonic/hls/1337951784/out.m3u8
[5/15/19 3:23:37 PM CEST]   INFO   InputStreamReaderThread   (FFmpegHlsSession) [webvtt @ 0x80b490c00] Exactly one WebVTT stream is needed.
[5/15/19 3:23:37 PM CEST]   INFO   InputStreamReaderThread   (FFmpegHlsSession) Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
[5/15/19 3:23:37 PM CEST]   INFO   InputStreamReaderThread   (FFmpegHlsSession)


This is all of the relevavnt data from the logs; the video does not play (the loading dots never stop).

If I use mkvmerge to completely remove the subtitles from the mkv, the file plays correctly in flowplayer.

Short of modifying my entire library, is there a way to pass a flag to ffpmeg to tell it to disable reading the subtitles?

I am using the latest Subsonic 6.1.5 and ffmpeg with the following options:

Code: Select all
ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
  built with FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1)
  configuration: --prefix=/usr/local --mandir=/usr/local/man --datadir=/usr/local/share/ffmpeg --pkgconfigdir=/usr/local/libdata/pkgconfig --enable-shared --enable-pic --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --enable-pthreads --cc=cc --disable-alsa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libaom --enable-libass --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcelt --enable-libcodec2 --enable-libdav1d --disable-libdavs2 --disable-libdc1394 --disable-debug --disable-htmlpages --enable-libdrm --enable-libfdk-aac --enable-libflite --enable-fontconfig --enable-libfreetype --enable-frei0r --enable-libfribidi --disable-gcrypt --enable-libgme --enable-gmp --disable-gnutls --enable-version3 --enable-libgsm --enable-iconv --enable-libilbc --disable-libjack --disable-libklvanc --disable-libkvazaar --enable-ladspa --enable-libmp3lame --disable-liblensfun --enable-libbluray --enable-librsvg --disable-librtmp --enable-libxml2 --enable-lv2 --disable-mbedtls --enable-mmx --enable-libmodplug --enable-libmysofa --enable-nonfree --enable-openal --enable-opencl --enable-libopencv --enable-opengl --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-openssl --enable-optimizations --enable-libopus --disable-libpulse --enable-runtime-cpudetect --enable-librubberband --enable-sdl2 --enable-libsmbclient --enable-libsnappy --enable-sndio --enable-libsoxr --enable-libspeex --disable-libsrt --enable-sse --enable-libssh --enable-libsvthevc --disable-libtensorflow --disable-libtesseract --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-vaapi --disable-vapoursynth --enable-vdpau --disable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --disable-libxavs2 --enable-libxcb --enable-libxvid --enable-libzimg --disable-libzmq --disable-libzvbi
FUNTOWNE
 
Posts: 8
Joined: Sun Apr 27, 2014 10:48 pm

Return to Help

Who is online

Users browsing this forum: No registered users and 9 guests