[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
SMPlayer Support Forum • View topic - [Suggestion] Make negative values for vertical margin (subs)
Page 1 of 2

[Suggestion] Make negative values for vertical margin (subs)

PostPosted: Sun Sep 15, 2019 10:14 pm
by rado84
I've set SMPlayer to add black stripes on top and bottom of the movie, so that the subs can appear below the image. I've also set the vertical margin for subs to be 0 (zero) but they still won't appear BELOW the image and it's not possible to enter a negative value which would send the subs even further down. They're in fact almost in the middle, as you can see from the screenshots. So my suggestion is that you allow negative values to be used, so that the subs will actually appear below the image - just like on POT Player in Windows. I tried reducing the subs size but they still appear not where I want them: far below the image and not covering it, at the very bottom of the screen.




Re: [Suggestion] Make negative values for vertical margin (s

PostPosted: Mon Sep 16, 2019 7:40 pm
by rvm
I can add that change, but it seems only mplayer supports negative values for the vertical margin (mpv fails with negative values).
You can also try to move the subtitles up and down with the R and T keys.

Re: [Suggestion] Make negative values for vertical margin (s

PostPosted: Tue Sep 17, 2019 1:48 am
by rado84

Re: [Suggestion] Make negative values for vertical margin (s

PostPosted: Tue Sep 17, 2019 9:25 am
by Xenos
Hi,

I had a similar problem with the vertical position of the subtitles (see "Margin settings for subtitles not working?", it's a few posts below yours).
There is a bug and the margin settings don't work, so rvm gave me a link for an unstable version (not offially released) in which the problem is fixed for the vertical margin (left and right still don't work).
With this version, when I set vertical margin to zero and of course have the black bars added, the subtitles appear at the bottom of the screen:
SMPlayer_2.jpg
SMPlayer_2.jpg (57.8 KiB) Viewed 3673 times

So, there is no need for negative values.

What would be great though, is if we could zoom out and move the picture up (and down) without affecting the size and position of the subtitles (I've found only one player that can do this, but I really prefer to use SMPlayer for everything).
This way, we could make enough space to fit the subtitles under the picture even for a movie that is 16:9. This would be very helpfull for videos that have subtitles burned-in and also when you need to have two subtitle languages at the same time, but in order not to cover half of the image with four lines of text, you could have the second language below the image on black space.
Believe me, this is extremely useful for classes and seminars where big screens are used, so there is no problem to zoom out the image a little, just to fit subtitles below.
But in order for this to work, the subtitles' size and position sould not be affected by the zoom function.

It would be really great to consider this function (all teachers and lecturers will love you...).

Best regards,
Xenos

Re: [Suggestion] Make negative values for vertical margin (s

PostPosted: Tue Sep 17, 2019 1:00 pm
by rado84
Xenos, I don't care about the horizontal margins. Even if they're not working, I'm fine with the horizontal subs position. Only the vertical one is the problematic.

Re: [Suggestion] Make negative values for vertical margin (s

PostPosted: Tue Sep 17, 2019 1:12 pm
by Xenos
Well, if there is the option to set them as we wish, then normally they should all be working. But I agree that the vertical is the one that matters the most.

With the unstable version that rvm provided (see his reply to my original post to find the download link), when we set vertical margin to zero, this is exactly what we get. Try it and you'll see for yourself, because for some reason the screengrab I uploaded to my previous reply doesn't show and I can't make it work...
May I ask how did you manage to upload your images, to see if I'm doing something wrong?
Thanks in advance,
Xenos

Re: [Suggestion] Make negative values for vertical margin (s

PostPosted: Wed Sep 18, 2019 12:00 am
by rado84

Re: [Suggestion] Make negative values for vertical margin (s

PostPosted: Wed Sep 18, 2019 2:13 am
by Xenos
Hi again,
thanks for the help, but my problem was that the image couldn't be uploaded to the forum by using the "Img" option. For some strange reason it is not working with links on google drive, mega and imgbb.
So I just tried to upload it as an attachment and it worked! You can see now (in the edited post) that the subtitles "touch" the bottom of the image and of course the same thing happens on fullscreen.
Let's hope we'll have the stable release soon.

Re: [Suggestion] Make negative values for vertical margin (s

PostPosted: Mon Sep 23, 2019 10:37 pm
by rado84

Re: [Suggestion] Make negative values for vertical margin (s

PostPosted: Tue Sep 24, 2019 8:56 pm
by rvm
The possibility to use negative values was added in r9229.