jellyfin / jellyfin-plugin-tvheadend

https://jellyfin.org
MIT License
32 stars 19 forks source link

Restore subtitles and multiple audio that got destroyed in commit db8cd9af238813a7b141ba826168fdaa22f1509e on Feb 18, 2018 #68

Open roman-vanicek opened 1 year ago

roman-vanicek commented 1 year ago

Subtitles and multiple audio that got destroyed in commit db8cd9af238813a7b141ba826168fdaa22f1509e on Feb 18, 2018. Restoring probing for additional audio streams and subtitles. Tested on both live TV and recordings.

Shall fix issue Live TV - Captions not available (nor audio tracks) #63

citronalco commented 2 months ago

Applied this to current master.

Subtitles:

Works perfectly for DVBSUB subtitles. When selecting a DVBTXT subtitle, playback stops with an error: ffmpeg output:

  Program 1 
    Metadata:
      service_name    : Das Erste HD
      service_provider: ARD
  Stream #0:0[0x13ed]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn
  Stream #0:1[0x13ee](deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 448 kb/s
  Stream #0:2[0x13ef](deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 192 kb/s (visual impaired) (descriptions)
  Stream #0:3[0x13f0](deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006), 492x250
  Stream #0:4[0x13f1](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired)
  Stream #0:5[0x13f3](deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 192 kb/s (hearing impaired)
  No Program
  Stream #0:6[0x12]: Data: epg
[Parsed_subtitles_2 @ 0x562bda3c3880] libass API version: 0x1703000
[Parsed_subtitles_2 @ 0x562bda3c3880] libass source: commit: 0.17.3-0-ge46aedea0a0d17da4c4ef49d84b94a7994664ab5
[Parsed_subtitles_2 @ 0x562bda3c3880] Shaper: FriBidi 1.0.15 (SIMPLE) HarfBuzz-ng 9.0.0 (COMPLEX)
[h264 @ 0x562bda69b480] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x562bda69b480] decode_slice_header error
[h264 @ 0x562bda69b480] no frame!
[h264 @ 0x562bda69b480] mmco: unref short failure
[Parsed_subtitles_2 @ 0x562bda3c3880] Using font provider fontconfig
[Parsed_subtitles_2 @ 0x562bda3c3880] Only text based subtitles are currently supported
[AVFilterGraph @ 0x562bda3d4140] Error initializing filters
Error initializing complex filters.
Not yet implemented in FFmpeg, patches welcome

Audio channels:

Switching audio channels does not work reliable. Sometimes it works, sometimes playback continues without video, sometimes without audio, or playback does not continue at all. When stopping playback in Jellyfin Web and selecting another TV channel, the playback issues mentioned above may also happen to the new TV channel, without having touched its audio channel at all.