Plex is transcoding srt subtitles into ASS which triggers a whole video transcode

Server Version#: 1.40.1.8227
Player Version#: 4.128.1

Apr 13, 2024 22:38:41.285 [139703057656632] DEBUG - [Req#50/Transcode] TranscodeUniversalRequest: adapting profile with augmentation data: append-transcode-target-codec(type=videoProfile&context=streaming&audioCodec=aac&protocol=dash)
Apr 13, 2024 22:38:41.285 [139703057656632] DEBUG - [Req#50/Transcode] TranscodeUniversalRequest: using augmented profile Firefox
Apr 13, 2024 22:38:41.285 [139703057656632] DEBUG - [Req#50/Transcode] Downloading document http://127.0.0.1:32400/library/metadata/3198?includeBandwidths=1&offset=-1&X-Plex-Incomplete-Segments=1&X-Plex-Session-Identifier=u0yl83oxtzsgnoowfq4kfarr
Apr 13, 2024 22:38:41.288 [139703057656632] DEBUG - [Req#50/Transcode] Audio Stream: 5591, Subtitle Stream: 5592
Apr 13, 2024 22:38:41.289 [139703057656632] DEBUG - [Req#50/Transcode] Codecs: testing h264_vaapi (encoder)
Apr 13, 2024 22:38:41.289 [139703057656632] DEBUG - [Req#50/Transcode] Codecs: hardware transcoding: testing API vaapi for device '/dev/dri/renderD128' (DG2 [Arc A380])
Apr 13, 2024 22:38:41.289 [139703057656632] ERROR - [Req#50/Transcode] [FFMPEG] - No VA display found for device /dev/dri/renderD128.
Apr 13, 2024 22:38:41.289 [139703057656632] DEBUG - [Req#50/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Invalid argument
Apr 13, 2024 22:38:41.289 [139703057656632] DEBUG - [Req#50/Transcode] Could not create hardware context for h264_vaapi
Apr 13, 2024 22:38:41.289 [139703057656632] DEBUG - [Req#50/Transcode] Codecs: testing hevc (decoder) with hwdevice vaapi
Apr 13, 2024 22:38:41.289 [139703057656632] DEBUG - [Req#50/Transcode] Codecs: hardware transcoding: testing API vaapi for device '/dev/dri/renderD128' (DG2 [Arc A380])
Apr 13, 2024 22:38:41.289 [139703057656632] ERROR - [Req#50/Transcode] [FFMPEG] - No VA display found for device /dev/dri/renderD128.
Apr 13, 2024 22:38:41.289 [139703057656632] DEBUG - [Req#50/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Invalid argument
Apr 13, 2024 22:38:41.289 [139703057656632] DEBUG - [Req#50/Transcode] Could not create hardware context for hevc
Apr 13, 2024 22:38:41.290 [139703057656632] DEBUG - [Req#50/Transcode] MDE: Selected protocol dash; container: mp4
Apr 13, 2024 22:38:41.290 [139703057656632] DEBUG - [Req#50/Transcode] MDE: analyzing media item 3105
Apr 13, 2024 22:38:41.290 [139703057656632] DEBUG - [Req#50/Transcode] MDE: Evangelion: 1.0 You Are (Not) Alone (2007): Direct Play is disabled
Apr 13, 2024 22:38:41.290 [139703057656632] DEBUG - [Req#50/Transcode] MDE: Evangelion: 1.0 You Are (Not) Alone (2007): media must be transcoded in order to use the dash protocol
Apr 13, 2024 22:38:41.290 [139703057656632] DEBUG - [Req#50/Transcode] MDE: Evangelion: 1.0 You Are (Not) Alone (2007): selected audio stream is not the first audio stream and direct play stream selection is not enabled
Apr 13, 2024 22:38:41.290 [139703057656632] DEBUG - [Req#50/Transcode] MDE: Evangelion: 1.0 You Are (Not) Alone (2007): no direct play video profile exists for http/mkv/hevc
Apr 13, 2024 22:38:41.290 [139703057656632] DEBUG - [Req#50/Transcode] MDE: Evangelion: 1.0 You Are (Not) Alone (2007): no direct play video profile exists for http/mkv/hevc/dca
Apr 13, 2024 22:38:41.290 [139703057656632] DEBUG - [Req#50/Transcode] MDE: Evangelion: 1.0 You Are (Not) Alone (2007): no direct play video profile exists for http/mkv/hevc/flac
Apr 13, 2024 22:38:41.290 [139703057656632] DEBUG - [Req#50/Transcode] MDE: Evangelion: 1.0 You Are (Not) Alone (2007): no direct play video profile exists for http/mkv/hevc/ac3
Apr 13, 2024 22:38:41.290 [139703057656632] DEBUG - [Req#50/Transcode] MDE: Evangelion: 1.0 You Are (Not) Alone (2007): no direct play video profile exists for http/mkv/hevc/flac
Apr 13, 2024 22:38:41.290 [139703057656632] DEBUG - [Req#50/Transcode] Evangelion: 1.0 You Are (Not) Alone - video.bitDepth limitation applies: 10 > 8
Apr 13, 2024 22:38:41.290 [139703057656632] DEBUG - [Req#50/Transcode] Evangelion: 1.0 You Are (Not) Alone - audio.channels limitation applies: 7 > 2
Apr 13, 2024 22:38:41.290 [139703057656632] DEBUG - [Req#50/Transcode] MDE: Evangelion: 1.0 You Are (Not) Alone (2007): Direct Streaming is disabled, so video stream will be transcoded
Apr 13, 2024 22:38:41.290 [139703057656632] DEBUG - [Req#50/Transcode] MDE: Evangelion: 1.0 You Are (Not) Alone (2007): no remuxable profile found, so video stream will be transcoded
Apr 13, 2024 22:38:41.290 [139703057656632] DEBUG - [Req#50/Transcode] MDE: Cannot direct stream video stream due to profile or setting limitations
Apr 13, 2024 22:38:41.290 [139703057656632] DEBUG - [Req#50/Transcode] Codecs: testing hevc (decoder) with hwdevice vaapi
Apr 13, 2024 22:38:41.290 [139703057656632] DEBUG - [Req#50/Transcode] Codecs: hardware transcoding: testing API vaapi for device '/dev/dri/renderD128' (DG2 [Arc A380])
Apr 13, 2024 22:38:41.290 [139703057656632] ERROR - [Req#50/Transcode] [FFMPEG] - No VA display found for device /dev/dri/renderD128.
Apr 13, 2024 22:38:41.290 [139703057656632] DEBUG - [Req#50/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Invalid argument
Apr 13, 2024 22:38:41.290 [139703057656632] DEBUG - [Req#50/Transcode] Could not create hardware context for hevc
Apr 13, 2024 22:38:41.290 [139703057656632] DEBUG - [Req#50/Transcode] MDE: Evangelion: 1.0 You Are (Not) Alone (2007): Audio Direct Streaming is disabled, so video's audio stream will be transcoded
Apr 13, 2024 22:38:41.290 [139703057656632] DEBUG - [Req#50/Transcode] MDE: Cannot direct stream audio stream due to profile or setting limitations
Apr 13, 2024 22:38:41.290 [139703057656632] DEBUG - [Req#50/Transcode] MDE: Evangelion: 1.0 You Are (Not) Alone (2007): selected media 0 / 3105
Apr 13, 2024 22:38:41.291 [139703057656632] DEBUG - [Req#50/Transcode] Streaming Resource: Adding session 0x7f0f2ae147c8:u0yl83oxtzsgnoowfq4kfarr which is using transcoder slot.  Used slots is now 1
Apr 13, 2024 22:38:41.291 [139703057656632] DEBUG - [Req#50/Transcode] Streaming Resource: Added session 0x7f0f2ae147c8:u0yl83oxtzsgnoowfq4kfarr
Apr 13, 2024 22:38:41.291 [139703057656632] DEBUG - [Req#50/Transcode] Streaming Resource: Reached Decision id=3198 codes=(General=1001,Direct play not available; Conversion OK. Direct Play=3000,App cannot direct play this item. Direct play is disabled. Transcode=1001,Direct play not available; Conversion OK.) media=(id=3105 part=(id=3108 decision=transcode container=mp4 protocol=dash streams=(Video=(id=5587 decision=transcode bitrate=2147483647 encoder=libx264 width=1920 height=1080) Audio=(id=5591 decision=transcode bitrate=256 encoder=aac channels=2 rate=48000) Subtitle=(id=5592 decision=transcode bitrate=2147483647 encoder=ass languageCode=spa location=sidecar))))
Apr 13, 2024 22:38:41.291 [139703112182584] DEBUG - Completed: [192.168.1.145:56580] 200 GET /video/:/transcode/universal/decision?hasMDE=1&path=%2Flibrary%2Fmetadata%2F3198&mediaIndex=0&partIndex=0&protocol=dash&fastSeek=1&directPlay=0&directStream=0&subtitleSize=50&audioBoost=100&location=lan&addDebugOverlay=0&autoAdjustQuality=1&directStreamAudio=0&mediaBufferSize=102400&session=pg6vfwl149hbwmpuyssd5qbi&subtitles=auto&Accept-Language=es (13 live) #50 TLS GZIP 6ms 3447 bytes (pipelined: 9)
Apr 13, 2024 22:38:41.381 [139703078628152] DEBUG - Request: [192.168.1.145:56580 (Subnet)] GET /video/:/transcode/universal/start.mpd?hasMDE=1&path=%2Flibrary%2Fmetadata%2F3198&mediaIndex=0&partIndex=0&protocol=dash&fastSeek=1&directPlay=0&directStream=0&subtitleSize=50&audioBoost=100&location=lan&addDebugOverlay=0&autoAdjustQuality=1&directStreamAudio=0&mediaBufferSize=102400&session=pg6vfwl149hbwmpuyssd5qbi&subtitles=auto&Accept-Language=es (13 live) #53 TLS GZIP Signed-in Token (user) (Firefox)
Apr 13, 2024 22:38:41.381 [139703078628152] DEBUG - [Req#53/Transcode] Found session GUID of pg6vfwl149hbwmpuyssd5qbi in session start.
Apr 13, 2024 22:38:41.381 [139703078628152] DEBUG - [Req#53/Transcode] TranscodeUniversalRequest: adapting profile with augmentation data: append-transcode-target-codec(type=videoProfile&context=streaming&audioCodec=aac&protocol=dash)
Apr 13, 2024 22:38:41.381 [139703078628152] DEBUG - [Req#53/Transcode] TranscodeUniversalRequest: using augmented profile Firefox
Apr 13, 2024 22:38:41.381 [139703078628152] DEBUG - [Req#53/Transcode] Downloading document http://127.0.0.1:32400/library/metadata/3198?checkFiles=1&includeBandwidths=1&offset=-1&X-Plex-Incomplete-Segments=1&X-Plex-Session-Identifier=u0yl83oxtzsgnoowfq4kfarr
Apr 13, 2024 22:38:41.384 [139703078628152] DEBUG - [Req#53/Transcode] Audio Stream: 5591, Subtitle Stream: 5592
Apr 13, 2024 22:38:41.385 [139703078628152] DEBUG - [Req#53/Transcode] Found session GUID of pg6vfwl149hbwmpuyssd5qbi in session start.
Apr 13, 2024 22:38:41.385 [139703078628152] DEBUG - [Req#53/Transcode] Cleaning directory for session pg6vfwl149hbwmpuyssd5qbi ()
Apr 13, 2024 22:38:41.385 [139703078628152] DEBUG - [Req#53/Transcode] Starting a transcode session pg6vfwl149hbwmpuyssd5qbi at offset -1.0 (state=3)
Apr 13, 2024 22:38:41.386 [139703078628152] DEBUG - [Req#53/Transcode] TPU: hardware transcoding: enabled, but no hardware decode accelerator found
Apr 13, 2024 22:38:41.386 [139703078628152] DEBUG - [Req#53/Transcode] [Universal] Using local file path instead of URL: /mnt/raid/Videos/Movies/Evangelion: 1.0 You Are (Not) Alone (2007)/Evangelion: You Are (Not) Alone.mkv
Apr 13, 2024 22:38:41.386 [139703078628152] DEBUG - [Req#53/Transcode] TPU: hardware transcoding: final decoder: , final encoder: 
Apr 13, 2024 22:38:41.386 [139703078628152] DEBUG - [Req#53/Transcode/JobRunner] Job running: FFMPEG_EXTERNAL_LIBS='/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/ad47460-4673-linux-x86_64/' X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "/usr/lib/plexmediaserver/Plex Transcoder" -codec:0 hevc -codec:4 flac -analyzeduration 20000000 -probesize 20000000 -i "/mnt/raid/Videos/Movies/Evangelion: 1.0 You Are (Not) Alone (2007)/Evangelion: You Are (Not) Alone.mkv" -filter_complex "[0:0]scale=w=1920:h=1080:force_divisible_by=4[0];[0]format=pix_fmts=yuv420p|nv12[1]" -map "[1]" -codec:0 libx264 -crf:0 16 -r:0 23.975999999999999 -preset:0 veryfast -x264opts:0 subme=0:me_range=4:rc_lookahead=10:me=hex:8x8dct=0:partitions=none -force_key_frames:0 "expr:gte(t,n_forced*3)" -filter_complex "[0:4] aresample=async=1:ochl='stereo':rematrix_maxval=0.000000dB:osr=48000[2]" -map "[2]" -metadata:s:1 language=jpn -codec:1 aac -b:1 256k -f dash -seg_duration 3 -dash_segment_type mp4 -init_seg_name 'init-stream$RepresentationID$.m4s' -media_seg_name 'chunk-stream$RepresentationID$-$Number%05d$.m4s' -window_size 5 -delete_removed false -skip_to_segment 1 -time_delta 0.0625 -manifest_name "http://127.0.0.1:32400/video/:/transcode/session/pg6vfwl149hbwmpuyssd5qbi/dc07108f-9bd0-4183-bfcf-736448a20854/manifest?X-Plex-Http-Pipeline=infinite" -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 dash -map 0:5 -metadata:s:0 language=spa -codec:0 ass -strict_ts:0 0 -f segment -segment_format ass -segment_time 1 -segment_header_filename sub-header -segment_start_number 0 -segment_list "http://127.0.0.1:32400/video/:/transcode/session/pg6vfwl149hbwmpuyssd5qbi/dc07108f-9bd0-4183-bfcf-736448a20854/manifest?stream=subtitles&X-Plex-Http-Pipeline=infinite" -segment_list_type csv -segment_list_size 5 -segment_list_separate_stream_times 1 -segment_format_options ignore_readorder=1 -segment_list_unfinished 1 -fflags +flush_packets "sub-chunk-%05d" -start_at_zero -copyts -vsync cfr -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/pg6vfwl149hbwmpuyssd5qbi/dc07108f-9bd0-4183-bfcf-736448a20854/progress

Intel Arc A380 has no issues encoding on Handbrake with the QSV encoder, GUC and HUC firmware is loaded. Using packman Mesa 24.0.3 with hardware accelerated codecs enabled, intel-media-driver installed, also ffmpeg 6 from packman too with all non-free codecs installed.
openSUSE Tumbleweed kernel 6.8.5-1

vainfo:

Trying display: wayland
libva info: VA-API version 1.20.0
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.20 (libva 2.20.1)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 24.1.3 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileNone                   :	VAEntrypointStats
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSliceLP
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSliceLP
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointEncSliceLP
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointEncSliceLP
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointEncSliceLP
      VAProfileVP9Profile1            :	VAEntrypointVLD
      VAProfileVP9Profile1            :	VAEntrypointEncSliceLP
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointEncSliceLP
      VAProfileVP9Profile3            :	VAEntrypointVLD
      VAProfileVP9Profile3            :	VAEntrypointEncSliceLP
      VAProfileHEVCMain12             :	VAEntrypointVLD
      VAProfileHEVCMain422_10         :	VAEntrypointVLD
      VAProfileHEVCMain422_10         :	VAEntrypointEncSliceLP
      VAProfileHEVCMain422_12         :	VAEntrypointVLD
      VAProfileHEVCMain444            :	VAEntrypointVLD
      VAProfileHEVCMain444            :	VAEntrypointEncSliceLP
      VAProfileHEVCMain444_10         :	VAEntrypointVLD
      VAProfileHEVCMain444_10         :	VAEntrypointEncSliceLP
      VAProfileHEVCMain444_12         :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointEncSliceLP
      VAProfileHEVCSccMain10          :	VAEntrypointVLD
      VAProfileHEVCSccMain10          :	VAEntrypointEncSliceLP
      VAProfileHEVCSccMain444         :	VAEntrypointVLD
      VAProfileHEVCSccMain444         :	VAEntrypointEncSliceLP
      VAProfileAV1Profile0            :	VAEntrypointVLD
      VAProfileAV1Profile0            :	VAEntrypointEncSliceLP
      VAProfileHEVCSccMain444_10      :	VAEntrypointVLD
      VAProfileHEVCSccMain444_10      :	VAEntrypointEncSliceLP

Anyone?

Similar issue here. Apple TV won’t direct play 4k videos if PGS captions are enabled.

That’s normal, PGS is an image subtitle format. You would have to either download srt subtitles from a website like opensubtitles or importing the video with the subtitles into a subtitle editor like Subtitle Edit and do OCR on the PGS and then save as .srt.

I humbly disagree. Yes, it’s an image based format. However, iOS and AppleTV have support for it. Direct play to my iPhone using Plex with PGS works just fine - no transcoding required. The same doesn’t hold true for Apple TV. Other players, like infuse work just fine on Apple TV too with PGS - no transcoding required. So the issue has something to do with plex’s Apple TV player, not the media or subtitle format.

The difference between the Plex and Infuse apps is Metal.

Infuse is native Metal implementation. Plex is MPV based (OpenGL+OpenCL).

There is work in progress but I have no other insight about that effort.

PGS subs, like all other image based subtitles, on AppleTV, will require burning for now.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.