Subtitles are not flip when using transform-vflip

This forum is about all development around libVLC.
neosettler
Cone that earned his stripes
Cone that earned his stripes
Posts: 107
Joined: 18 Dec 2012 17:44

Subtitles are not flip when using transform-vflip

Postby neosettler » 23 Feb 2017 02:03

Greetings,

I need to flip the video in order to render to a texture using OpenGL.

With VLC 2.2.4 on windows 8.1 I do:

Code: Select all

const Char *l_args[] = { "--video-filter=transform", "--transform-type=vflip", }; m_VLC_Instance = libvlc_new(sizeof(l_args) / sizeof(l_args[0]), l_args);
The video play flipped as intended but the subtitles are still upside down, any idea what I might be missing?

Thank you,

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Subtitles are not flip when using transform-vflip

Postby Jean-Baptiste Kempf » 23 Feb 2017 11:44

No, it's a known bug.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

neosettler
Cone that earned his stripes
Cone that earned his stripes
Posts: 107
Joined: 18 Dec 2012 17:44

Re: Subtitles are not flip when using transform-vflip

Postby neosettler » 23 Feb 2017 16:09

Ok thank you.

Is there a procedure for entering and tracking this bug?

When is 2.2.5 is due by the way?

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Subtitles are not flip when using transform-vflip

Postby Rémi Denis-Courmont » 23 Feb 2017 18:41

What do you mean by "still"? The video transform is not intended to affect SPUs.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

neosettler
Cone that earned his stripes
Cone that earned his stripes
Posts: 107
Joined: 18 Dec 2012 17:44

Re: Subtitles are not flip when using transform-vflip

Postby neosettler » 23 Feb 2017 18:48

Hi Remis, when you transform vflip inside the application, the subtitles are flip as well but not using the libvlc and the previous code.

If you are right, what is the magic to achieve a vflip as in the VLC application? (including every possible items that could be shown on screen including subtitles and/or overlays of any kind)

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Subtitles are not flip when using transform-vflip

Postby Rémi Denis-Courmont » 23 Feb 2017 20:13

Pass a window handle rather than a memory area for rendering, I guess.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

neosettler
Cone that earned his stripes
Cone that earned his stripes
Posts: 107
Joined: 18 Dec 2012 17:44

Re: Subtitles are not flip when using transform-vflip

Postby neosettler » 23 Feb 2017 20:15

Thank you for your suggestion but no can do because I must render to a texture.

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Subtitles are not flip when using transform-vflip

Postby Rémi Denis-Courmont » 23 Feb 2017 20:22

I was only answering your question as to how VLC does it.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

neosettler
Cone that earned his stripes
Cone that earned his stripes
Posts: 107
Joined: 18 Dec 2012 17:44

Re: Subtitles are not flip when using transform-vflip

Postby neosettler » 23 Feb 2017 20:25

Ah, very good point. Will this bug be fixed in the next release? When is the next release due by the way? What about Version 3.0?


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 21 guests