jellyfin / jellyfin-plugin-tvheadend

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

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

Open KiralyCraft opened 1 year ago

KiralyCraft commented 1 year ago

I am running version 11.0.0.0 of the plugin, on Jellyfin 10.8.9 on Arch Linux. I use a GPU for transcoding (Intel ARC A750). I have recently set up TVHeadend and it works wonders with Jellyfin, except for subtitles. I have enabled the experimental subtitle setting yet there seems to be no option to set them.

I'm attaching a section of a log:

[2023-03-14 15:32:21.271 +02:00] [WRN] Undefined BaseItemKind to Type mapping: Program
[2023-03-14 15:32:21.273 +02:00] [WRN] Undefined BaseItemKind to Type mapping: Program
[2023-03-14 15:32:23.785 +02:00] [WRN] Undefined BaseItemKind to Type mapping: Program
[2023-03-14 15:32:23.786 +02:00] [WRN] Undefined BaseItemKind to Type mapping: Program
[2023-03-14 15:32:25.456 +02:00] [INF] [TVHclient] AccessTicketHandler.GetAccessTicket: New ticket (#"3") created for "channelId"="1324526807"
[2023-03-14 15:32:25.457 +02:00] [INF] [TVHclient] LiveTvService.GetChannelStream: support for live TV subtitles and multiple audio tracks is enabled
[2023-03-14 15:32:25.458 +02:00] [INF] User policy for "KiralyCraft". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2023-03-14 15:32:25.459 +02:00] [INF] StreamBuilder.BuildVideoItem( Profile="Anonymous Profile", Path="http://re:dacted@192.168.2.7:9981/stream/channelid/1324526807", AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=Transcode, TranscodeReason=ContainerBitrateExceedsLimit ) "media:/videos/23997aa7-6014-3490-f4c4-091740aa20c6/master.m3u8?MediaSourceId=1324526807&VideoCodec=h264&AudioCodec=aac,mp3&AudioStreamIndex=-1&VideoBitrate=19616000&AudioBitrate=384000&api_key=<token>&TranscodingMaxAudioChannels=2&RequireAvc=false&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-rangetype=SDR&h264-level=52&h264-deinterlace=true&TranscodeReasons=ContainerBitrateExceedsLimit"
[2023-03-14 15:32:25.742 +02:00] [INF] [TVHclient] LiveTvService.GetChannelStream: support for live TV subtitles and multiple audio tracks is enabled
[2023-03-14 15:32:25.756 +02:00] [INF] [TVHclient] LiveTvService.GetChannelStream: support for live TV subtitles and multiple audio tracks is enabled
[2023-03-14 15:32:25.756 +02:00] [INF] Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[2023-03-14 15:32:27.260 +02:00] [INF] "/usr/lib/jellyfin-ffmpeg/ffmpeg" "-analyzeduration 200M -init_hw_device vaapi=va:,driver=iHD,kernel_driver=i915 -init_hw_device qsv=qs@va -filter_hw_device qs -autorotate 0 -i \"http://re:dacted@192.168.2.7:9981/stream/channelid/1324526807\" -map_metadata -1 -map_chapters -1 -threads 0 -sn -codec:v:0 h264_qsv -low_power 1 -preset 7 -look_ahead 0 -b:v 19616000 -maxrate 19616000 -bufsize 39232000 -profile:v:0 high -level 51 -vf \"setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,yadif=0:-1:0,scale=trunc(min(max(iw\,ih*a)\,1920)/2)*2:trunc(ow/a/2)*2,format=yuv420p\" -flags -global_header -codec:a:0 libfdk_aac -ac 2 -ab 384000 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_base_url \"hls/27b696089f999b275123816be8d20ec7/\" -hls_segment_filename \"/var/lib/jellyfin/transcodes/27b696089f999b275123816be8d20ec7%d.ts\" -hls_playlist_type event -hls_list_size 0 -y \"/var/lib/jellyfin/transcodes/27b696089f999b275123816be8d20ec7.m3u8\""
[2023-03-14 15:32:40.890 +02:00] [WRN] Slow HTTP Response from "http://redacted/videos/23997aa7-6014-3490-f4c4-091740aa20c6/live.m3u8?DeviceId=TW96aWxsYS81LjAgKFgxMTsgTGludXggeDg2XzY0KSBBcHBsZVdlYktpdC81MzcuMzYgKEtIVE1MLCBsaWtlIEdlY2tvKSBDaHJvbWUvMTEyLjAuMC4wIFNhZmFyaS81MzcuMzZ8MTY3ODAxNDM1NDE1NQ11&MediaSourceId=1324526807&VideoCodec=h264&AudioCodec=aac,mp3&AudioStreamIndex=-1&VideoBitrate=19616000&AudioBitrate=384000&PlaySessionId=17ed423dbd8247559c4c23150b9d07ff&api_key=redacted_key&TranscodingMaxAudioChannels=2&RequireAvc=false&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-rangetype=SDR&h264-level=52&h264-deinterlace=true&TranscodeReasons=ContainerBitrateExceedsLimit" to "192.168.0.151" in 0:00:15.1385832 with Status Code 200
[2023-03-14 15:32:40.890 +02:00] [WRN] Slow HTTP Response from "http://redacted/videos/23997aa7-6014-3490-f4c4-091740aa20c6/live.m3u8?DeviceId=TW96aWxsYS81LjAgKFgxMTsgTGludXggeDg2XzY0KSBBcHBsZVdlYktpdC81MzcuMzYgKEtIVE1MLCBsaWtlIEdlY2tvKSBDaHJvbWUvMTEyLjAuMC4wIFNhZmFyaS81MzcuMzZ8MTY3ODAxNDM1NDE1NQ11&MediaSourceId=1324526807&VideoCodec=h264&AudioCodec=aac,mp3&AudioStreamIndex=-1&VideoBitrate=19616000&AudioBitrate=384000&PlaySessionId=17ed423dbd8247559c4c23150b9d07ff&api_key=redacted_key&TranscodingMaxAudioChannels=2&RequireAvc=false&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-rangetype=SDR&h264-level=52&h264-deinterlace=true&TranscodeReasons=ContainerBitrateExceedsLimit" to "192.168.0.151" in 0:00:04.1361686 with Status Code 200
[2023-03-14 15:32:41.753 +02:00] [INF] [TVHclient] LiveTvService.GetChannelStream: support for live TV subtitles and multiple audio tracks is enabled
[2023-03-14 15:32:53.533 +02:00] [INF] Stopping ffmpeg process with q command for "/var/lib/jellyfin/transcodes/27b696089f999b275123816be8d20ec7.m3u8"
[2023-03-14 15:32:53.784 +02:00] [INF] FFmpeg exited with code 0
[2023-03-14 15:32:53.785 +02:00] [INF] Deleting partial stream file(s) "/var/lib/jellyfin/transcodes/27b696089f999b275123816be8d20ec7.m3u8"
[2023-03-14 15:32:55.315 +02:00] [INF] Playback stopped reported by app "Jellyfin Web" "10.8.9" playing "Nat Geo HD". Stopped at "9514" ms
[2023-03-14 15:32:55.404 +02:00] [WRN] Slow HTTP Response from "http://redacted/Sessions/Playing/Stopped" to "192.168.0.151" in 0:00:01.8773597 with Status Code 204