Jump to content

Subtitles are off-screen?


Recommended Posts

Happy2Play
Posted
18 minutes ago, JoLarsson said:

Same issue with 4.8.7.0 unfortunately.... so I'm stuck with software transcodning 😒

Please provide ffmpeg log for a specific example as most the pgssub issues are resolved per many other topics.  But most are related to 4k downscaling.

Happy2Play
Posted (edited)

@LukeBut looks like the 4K fix is not applying to other resolutions.

example 1080 scaled to 720

image.thumb.png.8db1d12dc8c7694449b1bda640534dac.png

Spoiler

>> ThrottleBySegmentRequest: Initialize - TargetBufferSize: 120s
2024-05-17 14:27:09.925
Operating System: Microsoft Windows 10.0.26120
OS/Process: x64/x64
Emby Server version: 4.8.7.0
Operating system: Microsoft Windows NT 10.0.26120.0
Command Line: C:\Users\Media\Desktop\TEST\system\EmbyServer.dll C:\Users\Media\Desktop\TEST\system\EmbyServer.dll C:\Users\Media\Desktop\TEST\system\EmbyServer.dll C:\Users\Media\Desktop\TEST\system\EmbyServer.dll C:\Users\Media\Desktop\TEST\system\EmbyServer.dll C:\Users\Media\Desktop\TEST\system\EmbyServer.dll -noautorunwebapp

App: Emby Web 4.8.7.0
Microsoft Edge Windows
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0

http://localhost:8091/emby/videos/155/main.m3u8?DeviceId=b162d34e-1e28-4de9-8529-624d6ca27606&MediaSourceId=13bf675a9913a4e460f7cdee6831ce14&PlaySessionId=45f1cbf2d8f4495babb1926eb1ad9639&api_key=42eeb7303e4d455a87eaddc2515fd147&VideoCodec=h264,h265,hevc,av1&AudioCodec=ac3,mp3,aac&VideoBitrate=3616000&AudioBitrate=384000&MaxWidth=1280&AudioStreamIndex=1&SubtitleStreamIndex=3&SubtitleMethod=Encode&TranscodingMaxAudioChannels=2&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=62&hevc-codectag=hvc1,hev1,hevc,hdmv&TranscodeReasons=SubtitleCodecNotSupported

http://localhost:8091/emby/videos/155/hls1/main/175.ts?PlaySessionId=45f1cbf2d8f4495babb1926eb1ad9639

{"Protocol":"File","Id":"13bf675a9913a4e460f7cdee6831ce14","Path":"E:\\Media\\Movies - nfo\\How to Train Your Dragon, The Hidden World (2019)\\How to Train Your Dragon, The Hidden World (2019).mkv","Type":"Default","Container":"mkv","Size":13145198712,"Name":"How to Train Your Dragon: The Hidden World","IsRemote":false,"HasMixedProtocols":false,"RunTimeTicks":62441030000,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[{"Codec":"h264","Language":"eng","TimeBase":"1/1000","Title":"How to Train Your Dragon, The Hidden World (2019)","VideoRange":"SDR","DisplayTitle":"1080p H264","DisplayLanguage":"English","NalLengthSize":"4","IsInterlaced":false,"BitRate":16841744,"BitDepth":8,"RefFrames":1,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":816,"Width":1920,"AverageFrameRate":23.975904,"RealFrameRate":23.975904,"Profile":"High","Type":"Video","AspectRatio":"40:17","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuv420p","Level":41,"IsAnamorphic":false,"ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"truehd","Language":"eng","TimeBase":"1/1000","Title":"Dolby TrueHD/Atmos Audio / 7.1 / 48 kHz / 3312 kbps / 16-bit","DisplayTitle":"English TRUEHD 7.1 (Default)","DisplayLanguage":"English","IsInterlaced":false,"ChannelLayout":"7.1","BitDepth":24,"Channels":8,"SampleRate":48000,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"ac3","Language":"eng","TimeBase":"1/1000","Title":"Compatibility Track / Dolby Digital Audio / 5.1 / 48 kHz / 448 kbps","DisplayTitle":"English AC3 5.1","DisplayLanguage":"English","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":448000,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"IsHearingImpaired":false,"Type":"Audio","Index":2,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"PGSSUB","Language":"eng","TimeBase":"1/1000","Title":"SDH","DisplayTitle":"English (PGSSUB)","DisplayLanguage":"English","IsInterlaced":false,"IsDefault":false,"IsForced":false,"IsHearingImpaired":false,"Type":"Subtitle","Index":3,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0,"SubtitleLocationType":"InternalStream"},{"Codec":"srt","Language":"en","DisplayTitle":"English (SRT)","DisplayLanguage":"English","IsInterlaced":false,"IsDefault":false,"IsForced":false,"IsHearingImpaired":false,"Type":"Subtitle","Index":4,"IsExternal":true,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":"E:\\Media\\Movies - nfo\\How to Train Your Dragon, The Hidden World (2019)\\How to Train Your Dragon, The Hidden World (2019).en.srt","Protocol":"File","ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0}],"Formats":[],"Bitrate":16841744,"RequiredHttpHeaders":{},"AddApiKeyToDirectStreamUrl":false,"ReadAtNativeFramerate":false,"ItemId":"155"}

>>>>>>  User policy for Media
        Enable Playback Remuxing: True
        Enable Video Playback Transcoding: True
        Enable Audio Playback Transcoding: True

>>>>>>  Hardware Decoders for h264
        [X] QuickSync Intel HD Graphics 530 - H.264 (AVC)
        [X] DX11VA Intel HD Graphics 530 - H.264 (AVC)

>>>>>>  Hardware Encoders for h264
        [X] QuickSync Intel HD Graphics 530 - H.264 (AVC)

>>>>>>  Selected Codecs
Decoder QuickSync Intel HD Graphics 530 - H.264 (AVC)
        Adapter #0: 'Intel(R) HD Graphics 530' Id:6418 (Driver: , Vendor: 32902, SDK Version: 1.35)
        Max Bitrate: 781 Mbit/s - Frame Sizes: 16x16...16384x16384 - Width Alignment: 2 - Height Alignment: 2
        Color Formats: NV12 - Bit Depths: 8
        Profiles: Baseline Profile (Level 6.2), Main Profile (Level 6.2), Extended Profile (Level 6.2), High Profile (Level 6.2), Constrained Baseline Profile (Level 6.2), Progressive High Profile (Level 6.2), Constrained High Profile (Level 6.2)

Encoder QuickSync Intel HD Graphics 530 - H.264 (AVC)
        Adapter #0: 'Intel(R) HD Graphics 530' Id:6418 (Driver: , Vendor: 32902, SDK Version: 1.35)
        Max Bitrate: 234 Mbit/s - Frame Sizes: 32x32...8192x8192 - Width Alignment: 16 - Height Alignment: 16
        Color Formats: NV12 - Bit Depths: 8
        Profiles: Baseline Profile (Level 5.2), Main Profile (Level 5.2), High Profile (Level 5.2)


>>>>>>  FindVideoEncoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Advanced
Info    Checking: 'QuickSync Intel HD Graphics 530 - H.264 (AVC)'
Info    Check successful - selecting 'QuickSync Intel HD Graphics 530 - H.264 (AVC)'

>>>>>>  FindVideoDecoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Advanced
Info    Checking: 'QuickSync Intel HD Graphics 530 - H.264 (AVC)'
Info    Check successful - selecting 'QuickSync Intel HD Graphics 530 - H.264 (AVC)'

Warning: Hardware-accelerated subtitle-overlay is disabled due to diagnostic option

>>>>>>  Subtitle Processing Steps for [0:3]: HDMV PGS subtitles
        Step                    Format             Target Size 
        HDMV_PGS_SUBTITLE    >> Subs: Bitmap                   
        scale                >> Video: UNKNOWN     1280x544
   

>>>>>>  Processing Plan
        Name                                        CanDoInHW  WillDoInHW  Reason                                                 
        QuickSync Intel HD Graphics 530 - H.2... >> True       True        Hardware Codec                                          
        VideoInput                               >> True       True        Same adapter Id (0), same hardware context (D3D11)      
        Scaling                                  >> True       True                                                                
        SubtitleOverlay                          >> False      False                                                               
        VideoOutput                              >> True       True        Hardware encoder                                        
        QuickSync Intel HD Graphics 530 - H.2... >> True       True        Hardware Codec                                          

>>>>>>  Video Processing Steps for [0:0]: H.264 (AVC)
        Step                    HW-Context   Format       SW-Format           Size   Next
        H264_QSV             >> QSV          qsv          nv12            1920x816 >> vpp_qsv
        vpp_qsv              >> QSV          qsv          nv12            1280x544 >> hwdownload
        hwdownload           >> -            nv12         nv12            1280x544 >> format
        format               >> -            nv12         nv12            1280x544 >> format
        format               >> -            yuv420p      yuv420p         1280x544 >> overlay
        overlay              >> -            yuv420p      yuv420p         1280x544 >> hwupload
        hwupload             >> QSV          qsv          nv12            1280x544 >> 

C:\Users\Media\Desktop\TEST\system\ffmpeg.exe -loglevel +timing -y -print_graphs_file "C:\Users\Media\Desktop\TEST\programdata\logs\ffmpeg-transcode-80a1eeb8-b6f5-4880-b3ad-c1c56ef5014f_1graph.txt" -copyts -start_at_zero -init_hw_device "qsv=dev1:hw,child_device=0,qsv_use_dx11=1" -f matroska,webm -ss 00:08:45.000 -c:v:0 h264_qsv -threads:v:0 1 -hwaccel:v:0 qsv -hwaccel_device:v:0 dev1 -hwaccel_output_format:v:0 qsv -noautorotate -canvas_size:s:0 "1920:816" -i "E:\Media\Movies - nfo\How to Train Your Dragon, The Hidden World (2019)\How to Train Your Dragon, The Hidden World (2019).mkv" -filter_complex "[0:0]vpp_qsv@f1=width=1280:height=544,hwdownload@f2,format@f3=pix_fmts=nv12,format@f4=pix_fmts=yuv420p[f4_out0];[0:3]scale@f5=width=1280:height=544[f5_out0];[f4_out0][f5_out0]overlay@f6=x=(W-w)/2:y=(H-h):repeatlast=0,hwupload@f7=extra_hw_frames=32[f7_out0]" -map [f7_out0] -map 0:1 -sn -c:v:0 h264_qsv -b:v:0 3616000 -g:v:0 72 -maxrate:v:0 3616000 -bufsize:v:0 7232000 -keyint_min:v:0 72 -r:v:0 23.97590446472168 -profile:v:0 high -aud:v:0 1 -c:a:0 libmp3lame -ab:a:0 192000 -ac:a:0 2 -metadata:s:a:0 language=eng -filter:a:0 "volume=2" -disposition:a:0 default -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list "C:\Users\Media\Desktop\TEST\programdata\transcoding-temp\D4B71B\D4B71B.m3u8" -segment_list_type m3u8 -segment_time 00:00:03.000 -segment_start_number 175 -individual_header_trailer 0 -write_header_trailer 0 -segment_write_temp 1 "C:\Users\Media\Desktop\TEST\programdata\transcoding-temp\D4B71B\D4B71B_%d.ts"

14:27:09.995 ffmpeg version 5.1-emby_2023_06_25 Copyright (c) 2000-2022 the FFmpeg developers and softworkz for Emby LLC
14:27:09.995   built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
14:27:09.996 Execution Date: 2024-05-17 14:27:09
14:27:10.023 [AVHWDeviceContext @ 000001b33c776840] Using D3D11 device 8086:1912 (Intel(R) HD Graphics 530).
14:27:10.226 [matroska,webm @ 000001b33c77ad00] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
14:27:10.236 Input #0, matroska,webm, from 'E:\Media\Movies - nfo\How to Train Your Dragon, The Hidden World (2019)\How to Train Your Dragon, The Hidden World (2019).mkv':
14:27:10.236   Metadata:
14:27:10.236     encoder         : libebml v1.3.7 + libmatroska v1.5.0
14:27:10.236     creation_time   : 2019-04-14T12:04:10.000000Z
14:27:10.236   Duration: 01:44:04.10, start: 0.000000, bitrate: 16841 kb/s
14:27:10.236   Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x816 [SAR 1:1 DAR 40:17], Level 41, 23.98 fps, 23.98 tbr, 1k tbn (default)
14:27:10.236     Metadata:
14:27:10.236       title           : How to Train Your Dragon, The Hidden World (2019)
14:27:10.236       BPS-eng         : 12999778
14:27:10.236       DURATION-eng    : 01:44:04.103000000
14:27:10.236       NUMBER_OF_FRAMES-eng: 149708
14:27:10.236       NUMBER_OF_BYTES-eng: 10146494813
14:27:10.236   Stream #0:1(eng): Audio: truehd, 48000 Hz, 7.1, s32 (24 bit) (default)
14:27:10.236     Metadata:
14:27:10.236       title           : Dolby TrueHD/Atmos Audio / 7.1 / 48 kHz / 3312 kbps / 16-bit
14:27:10.236       BPS-eng         : 3312566
14:27:10.236       DURATION-eng    : 01:44:04.072000000
14:27:10.237       NUMBER_OF_FRAMES-eng: 7492886
14:27:10.237       NUMBER_OF_BYTES-eng: 2585487690
14:27:10.237   Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
14:27:10.237     Metadata:
14:27:10.237       title           : Compatibility Track / Dolby Digital Audio / 5.1 / 48 kHz / 448 kbps
14:27:10.237       BPS-eng         : 448000
14:27:10.237       DURATION-eng    : 01:44:04.096000000
14:27:10.237       NUMBER_OF_FRAMES-eng: 195128
14:27:10.237       NUMBER_OF_BYTES-eng: 349669376
14:27:10.237   Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle, 1920x816
14:27:10.237     Metadata:
14:27:10.237       title           : SDH
14:27:10.237       BPS-eng         : 43046
14:27:10.237       DURATION-eng    : 01:32:55.153000000
14:27:10.237       NUMBER_OF_FRAMES-eng: 3091
14:27:10.237       NUMBER_OF_BYTES-eng: 29998757
14:27:10.238 Stream mapping:
14:27:10.239   Stream #0:0 (h264_qsv) -> vpp_qsv:default (graph 0)
14:27:10.239   Stream #0:3 (pgssub) -> scale:default (graph 0)
14:27:10.239   hwupload:default (graph 0) -> Stream #0:0 (h264_qsv)
14:27:10.239   Stream #0:1 -> #0:1 (truehd (native) -> mp3 (libmp3lame))
14:27:10.239 Press [q] to stop, [?] for help
14:27:10.265 subtitle_kickoff: call subtitle_resend_current 523452 frame->format: 1
14:27:10.422 subtitle input filter: decoding size 1920x816
14:27:10.423 Auto-inserting subfeed filter
14:27:10.423 Auto-inserting graphicsub2video filter
14:27:10.537 subtitle_kickoff: resend - pts: 523901
14:27:10.537 subtitle_kickoff: call subtitle_resend_current 523911 frame->format: 1
14:27:10.950 Output #0, segment, to 'C:\Users\Media\Desktop\TEST\programdata\transcoding-temp\D4B71B\D4B71B_%d.ts':
14:27:10.950   Metadata:
14:27:10.950     encoder         : Lavf59.27.100
14:27:10.950   Stream #0:0: Video: h264, qsv(tv, progressive), 1280x544 [SAR 1:1 DAR 40:17], q=2-31, 3616 kb/s, 23.98 fps, 90k tbn
14:27:10.950     Metadata:
14:27:10.950       encoder         : Lavc59.37.100 h264_qsv
14:27:10.950     Side data:
14:27:10.950       cpb: bitrate max/min/avg: 3616000/0/3616000 buffer size: 7232000 vbv_delay: N/A
14:27:10.950   Stream #0:1(eng): Audio: mp3, 48000 Hz, stereo, fltp, 192 kb/s (default)
14:27:10.950     Metadata:
14:27:10.950       encoder         : Lavc59.37.100 libmp3lame

Changing canvas from 1920x816 to 1280x544 corrects the issue.  Have not seen an issue when scaling is not required but have only done limited testing.

 

Will test some more as it looks like 4K is failing and falling back to software.  But others have reported it working so we many need to see log per other topics.

14:42:57.185 Stream mapping:
14:42:57.185   Stream #0:0 (hevc_qsv) -> vpp_qsv:default
14:42:57.185   Stream #0:5 (pgssub) -> scale:default
14:42:57.186   hwupload:default -> Stream #0:0 (h264_qsv)
14:42:57.186   Stream #0:2 -> #0:1 (copy)
14:42:57.186 Press [q] to stop, [?] for help
14:42:57.416 subtitle input filter: decoding size 1920x1080
14:42:57.416 Auto-inserting subfeed filter
14:42:57.416 Auto-inserting graphicsub2video filter
14:42:57.604 [vpp_qsv@f1 @ 000002b32f4a0980] Failed to create a qsvvpp: invalid video parameters (-15)
14:42:57.604 [vpp_qsv@f1 @ 000002b32f4a0980] Failed to configure output pad on vpp_qsv@f1
14:42:57.606 Error reinitializing filters!
14:42:57.606 Failed to inject frame into filter network: Invalid argument
14:42:57.606 Error while processing the decoded data for stream #0:0
14:42:57.890 Conversion failed!
14:42:57.890 EXIT

 

Edited by Happy2Play
  • Thanks 1
Posted

Not using any 4k movies only 1080p. Not able to provide logs this weekend...

Posted
On 5/18/2024 at 10:58 AM, JoLarsson said:

Not using any 4k movies only 1080p. Not able to provide logs this weekend...

Ok when you can that would be great, thanks.

Posted

I'm having some weird issues with this. When I start to play a movie with PGS subtitles, hw-transcoding on. 3/10 times the subtitle is ok.
If i change quality from 1080p - 30Mbps to 1080p - 40-Mbps (or any setting) the subtitle is not visible anymore, well sometimes it shows a few pixels far down so it's there, just off screen.

The attached ffmpeg-log is from when the text is off screen.

image.thumb.png.396f4ec62121994a18e29b422b000d76.png

embyserver.txt ffmpeg-transcode-2c3fbdf3-e2bc-4071-b097-ebdbc6beffff_1.txt

Posted
On 5/20/2024 at 5:50 AM, JoLarsson said:

I'm having some weird issues with this. When I start to play a movie with PGS subtitles, hw-transcoding on. 3/10 times the subtitle is ok.
If i change quality from 1080p - 30Mbps to 1080p - 40-Mbps (or any setting) the subtitle is not visible anymore, well sometimes it shows a few pixels far down so it's there, just off screen.

The attached ffmpeg-log is from when the text is off screen.

image.thumb.png.396f4ec62121994a18e29b422b000d76.png

embyserver.txt 538.38 kB · 2 downloads ffmpeg-transcode-2c3fbdf3-e2bc-4071-b097-ebdbc6beffff_1.txt 23.25 kB · 3 downloads

Hi, we'll take a look at it. Thanks.

romainsi
Posted (edited)

Hello,
Same problem with Emby 4.8.7.0.
When transcoding converts the subtitles directly into the video, the subtitles are half hidden.

See examples in screenshots same problem with firefox or chrome/chromium but it's ok with Emby-theater in direct play (full screen or not doesn't change the problem).

I hope the examples/logs will help.
Thanks in advance.

dashboard.png

FirefoxBrowser.png

EmbyTheater.png

ffmpeg-transcode-9f491768-0348-41dd-8c51-7d6e2579a432_1.txt embyserver.txt

Edited by romainsi
Posted
15 hours ago, romainsi said:

Hello,
Same problem with Emby 4.8.7.0.
When transcoding converts the subtitles directly into the video, the subtitles are half hidden.

See examples in screenshots same problem with firefox or chrome/chromium but it's ok with Emby-theater in direct play (full screen or not doesn't change the problem).

I hope the examples/logs will help.
Thanks in advance.

dashboard.png

FirefoxBrowser.png

EmbyTheater.png

ffmpeg-transcode-9f491768-0348-41dd-8c51-7d6e2579a432_1.txt 79.63 kB · 0 downloads embyserver.txt 38.15 kB · 0 downloads

Hi, we’re looking into it. Thanks.

  • Thanks 1
  • 3 months later...
Posted (edited)

just found this thread as I'm having a similar issue

in my case it's a 4:3 show (1440x1080) being displayed on a 16:9 TV screen (with black bars down the sides), and the PGS subs appear positioned too far over to the right, and they disappear off the edge of the image. it looks to me as if they are being positioned to be central on a 1920 pixel wide image instead of a on a 1440 pixel wide image (so if the PGS sub is also 1440 pixels wide, then it should be positioned horizontally at column 0 but instead it's shifted across by 240 pixels, which would be correct if it was a 1440px wide PGS on a 1920px wide video)

 

 

 

 

Edited by Statick
Posted

following this up with a screenshot, confusingly this series has the end credits with hard coded black bars top and bottom, so the screenshot looks 16:9 but the show is definitely 4:3

the PGS subs are transcoded into the video by Emby as my TV can't play PGS subs, the subs are not displayed as they should be, they look stretched and are cut off the edge of the video as a result. it looks to me as though the subs have been stretched from 4:3 to 16:9 and then overlaid onto the 4:3 image

attached a screenshot showing this, and another taken from VLC showing how they are supposed to look

 

Screenshot 2024-09-24 at 20-20-54 Cowboy Bebop.png

vlcsnap-2024-09-24-20h25m03s713.png

  • Thanks 1
  • 1 month later...
Posted

Any updates on this?
I'm now using 3 computers for software transcoding that could easily been done on one machine with hardware transcoding.
Where I live we use subtitles for everything.

visproduction
Posted (edited)

Emby Web only
If all the subtitles are in the same, incorrect position, you could do a CSS style to fix them.  Use only one CSS style of these choices.  This hack would not work if subtitles fail in different ways.  Here are examples.  You can combine two changes at once, if you wish.  padding: 0 15% 10% 0;  would move subtitles 15% from the right and 10% up from the bottom, for example.

/* Subtitles positioning - add to custom css file.  This only changes Emby Web */

.htmlVideoPlayerContainer {
	padding: 0 0 10% 0; /* raise 10% from bottom */
}
.htmlVideoPlayerContainer {
	padding: 0 0 0 10%; /* push 10% in from left */
}
.htmlVideoPlayerContainer {
	padding: 0 10% 0 0; /* push 10% in from right */
}
.htmlVideoPlayerContainer {
	padding: 10% 0 0 0; /* lower 10% from top */
}

Hope that is helpful.

Edited by visproduction
  • Thanks 1
Posted (edited)
15 hours ago, visproduction said:

Emby Web only
If all the subtitles are in the same, incorrect position, you could do a CSS style to fix them.  Use only one CSS style of these choices.  This hack would not work if subtitles fail in different ways.  Here are examples.  You can combine two changes at once, if you wish.  padding: 0 15% 10% 0;  would move subtitles 15% from the right and 10% up from the bottom, for example.

/* Subtitles positioning - add to custom css file.  This only changes Emby Web */

.htmlVideoPlayerContainer {
	padding: 0 0 10% 0; /* raise 10% from bottom */
}
.htmlVideoPlayerContainer {
	padding: 0 0 0 10%; /* push 10% in from left */
}
.htmlVideoPlayerContainer {
	padding: 0 10% 0 0; /* push 10% in from right */
}
.htmlVideoPlayerContainer {
	padding: 10% 0 0 0; /* lower 10% from top */
}

Hope that is helpful.

Well none of my users (me included) watches Emby using Web, so this solution doesn't work for me. The only time I access Emby Server Web is for administrative purposes.
Embedded and external srt work fine using hardware transcode so using this solution would probably put the srt's on the midde of the screen.

Edited by JoLarsson
Posted
On 11/12/2024 at 10:16 AM, JoLarsson said:

Any updates on this?
I'm now using 3 computers for software transcoding that could easily been done on one machine with hardware transcoding.
Where I live we use subtitles for everything.

@JoLarsson

 

Hi there, let's look at an example. Please attach the information requested in how to report a media playback issue. Thanks!

 

Posted
On 11/17/2024 at 1:47 AM, Luke said:

@JoLarsson

 

Hi there, let's look at an example. Please attach the information requested in how to report a media playback issue. Thanks!

 

It's been done by me and others earlier in this post.
But I guess that answers my question about updates on this issue.

  • 1 year later...
trevoragifford
Posted

This is still an issue in v4.9.1.80. I noticed specifically on my server that enabling QuickSync for H.264 hardware encoding is what causes the issue. Subtitle burn-in works fine with software encoding. Digging into the ffmpeg logs to compare software vs hardware encoding, I noticed the -canvas_size flag is used with hardware encoding, but not software. Removing the flag through diagnostic options seems to cause hardware encoding to fail or otherwise revert to software encoding, however I have had success with replacing the resolution with '1920:1080'. 

Obviously this is not a permanent solution -- I can't reliably predict the exact 'Text to replace' value and AFAIK regex is not supported there. However, hoping this might help get this issue moving toward a fix. It is frustrating to not be able to utilize HW encoding due to this issue.

 

Hardware encoding enabled:ffmpeg-transcode-ee3b5d5d-0bb0-4d08-8c37-09beff730351_1.txt

image.thumb.png.36b07fb50ed24e1359d52295e903b437.png

 

Hardware encoding enabled, w/ -canvas_size flag replaced: ffmpeg-transcode-451e9eb0-2c61-46ce-8d37-5b90f151977d_1.txt

image.thumb.png.6652f61e49003724aeb9a72c96c0d40a.png

  • 2 weeks later...
Posted

It's the same in 4.9.1.90

  • Agree 1
Posted

Hi, yes we will have to add some additional work to the library scan to determine the resolution of the embedded subtitles. Sometimes it is not the same as the video.

  • Like 1
  • Agree 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...