Jump to content

{/an8} SUBRIP problem


Marcus1305

Recommended Posts

Marcus1305

Hi,

This problem has been present since I've been using emby and I'm currently using version 1.5.6. The problem is that this command is printed together with the subtitle text instead of moving subtitles at the top of video.

Is this Tizen problem or it could be fixed?

Link to comment
Share on other sites

On 6/27/2023 at 10:29 AM, Marcus1305 said:

https://ibb.co/nRVHqdZ

this is the picture with the stats for nerds turned on 

Can you please attach log file examples to this forum posting? Thanks !

Link to comment
Share on other sites

On 6/22/2023 at 5:56 PM, Marcus1305 said:

Hi,

This problem has been present since I've been using emby and I'm currently using version 1.5.6. The problem is that this command is printed together with the subtitle text instead of moving subtitles at the top of video.

Is this Tizen problem or it could be fixed?

This is a problem with your SRT files - probably an artifact from conversion between subtitle formats.

{\an8} is not a valid SRT tag, it's ASS/SSA format. SRT uses a different method for positioning.

Link to comment
Share on other sites

Marcus1305
17 hours ago, softworkz said:

This is a problem with your SRT files - probably an artifact from conversion between subtitle formats.

{\an8} is not a valid SRT tag, it's ASS/SSA format. SRT uses a different method for positioning.

I just tried it with VLC and it works perfectly, subtitles are at the top of the screen. You are correct that {/an8} is ASS tag but many players do support ASS tags in .srt files.

Take a look at this thread: https://superuser.com/questions/642265/moving-subtitle-text-up-in-srt-file-format

 

Link to comment
Share on other sites

15 minutes ago, Marcus1305 said:

Take a look at this thread: https://superuser.com/questions/642265/moving-subtitle-text-up-in-srt-file-format

Well - this is not something like "extended SRT" as it's being said in that conversation. It's simply invalid SRT. 

Of course each player is free to do what it likes to do and when some players decide to interpret ASS tags in SRT that's fine. 

But as far as Emby is concerned, we're not just delivering a single player. We have a multitude of playback situation across all clients, some are based on MPV player, some on ExoPlayer, then there are the platform specific players used in certain clients, and the HTML5 video element playback for the web client. Finally, there's transcoding where subtitles can either be burnt in or converted to other subtitle formats as supported by the client.

We want to provide a consistent playback experience, no matter which of the many possible paths it goes through and only in a some of those cases, we are even able to implement changes for supporting formats which don't conform to the specs.

I'm not much familiar with our Tizen client, but what I can say is that this is not a bug on our side.

Thanks,
sw

Link to comment
Share on other sites

SamES

Part of the issue is that all srt subs get translated to vtt, so if it comes through as a cueAttribute we might be able to handle it, but if it's just embedded in the caption text, then it may not be so easy to handle

Link to comment
Share on other sites

SamES
On 02/07/2023 at 08:50, SamES said:

Part of the issue is that all srt subs get translated to vtt, so if it comes through as a cueAttribute we might be able to handle it, but if it's just embedded in the caption text, then it may not be so easy to handle

I've tested this, and when the server converts the srt to vtt the position tags are removed, so there's nothing we can do on the client side

SRT

Spoiler

1
00:00:01,000 --> 00:00:04,000
{\an7} Top-left: an7

2
00:00:05,000 --> 00:00:08,000
{\an8}Top-center: an8

3
00:00:09,000 --> 00:00:12,000
{\an9}Top-right: an9

4
00:00:13,000 --> 00:00:16,000
{\an4}Middle-left: an4

5
00:00:17,000 --> 00:00:20,000
{\an5}Middle-center: an5

6
00:00:21,000 --> 00:00:24,000
{\an6}Middle-right: an6

7
00:00:25,000 --> 00:00:28,000
{\an1}Bottom-left: an1

8
00:00:29,000 --> 00:00:32,000
{\an2}Bottom-Center an2

9
00:00:33,000 --> 00:00:36,000
{\an3}Bottom-right: an3

11
00:00:37,000 --> 00:00:45,000
Back to default

VTT

Spoiler

WEBVTT

00:01.000 --> 00:04.000
 Top-left: an7

00:05.000 --> 00:08.000
Top-center: an8

00:09.000 --> 00:12.000
Top-right: an9

00:13.000 --> 00:16.000
Middle-left: an4

00:17.000 --> 00:20.000
Middle-center: an5

00:21.000 --> 00:24.000
Middle-right: an6

00:25.000 --> 00:28.000
Bottom-left: an1

00:29.000 --> 00:32.000
Bottom-Center an2

00:33.000 --> 00:36.000
Bottom-right: an3

00:37.000 --> 00:45.000
Back to default

 

Edited by SamES
  • Thanks 1
Link to comment
Share on other sites

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...