Rotate a video via activex in Visual Basic 6

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
barnie1989
New Cone
New Cone
Posts: 8
Joined: 13 Sep 2009 20:35

Rotate a video via activex in Visual Basic 6

Postby barnie1989 » 13 Sep 2009 20:39

Hi,

I've inserted the activex control VLCPlugin21 in my VB application. It works great! Now some videos must be rotated. Is it possible to do this with that contol? Only fpr viewing, not for saving!

Bye and thanks RUDI

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Rotate a video via activex in Visual Basic 6

Postby VLC_help » 14 Sep 2009 13:40

You can enable rotate filter from VLC.
http://wiki.videolan.org/Documentation:Modules/rotate

barnie1989
New Cone
New Cone
Posts: 8
Joined: 13 Sep 2009 20:35

Re: Rotate a video via activex in Visual Basic 6

Postby barnie1989 » 14 Sep 2009 14:12

and how do I this with the activex control ?

RUDI

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Rotate a video via activex in Visual Basic 6

Postby VLC_help » 15 Sep 2009 13:23

You add the rotate option before the name of your media file. Test the parameters in VLC to make sure you have the right ones.

barnie1989
New Cone
New Cone
Posts: 8
Joined: 13 Sep 2009 20:35

Re: Rotate a video via activex in Visual Basic 6

Postby barnie1989 » 15 Sep 2009 23:06

that command doesn't work:

VLCPlugin21.Playlist.Add "--video-filter ""rotate{angle=90}"" movie.avi"

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Rotate a video via activex in Visual Basic 6

Postby VLC_help » 16 Sep 2009 12:31

But it does work when you use it with vlc.exe?

barnie1989
New Cone
New Cone
Posts: 8
Joined: 13 Sep 2009 20:35

Re: Rotate a video via activex in Visual Basic 6

Postby barnie1989 » 16 Sep 2009 13:18

YES, with vlc.exe it works! Now tell me how does ist work with the activex component :)

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Rotate a video via activex in Visual Basic 6

Postby VLC_help » 17 Sep 2009 17:10

Does video play in ActiveX or it doesn't even start? Can you check the messages?

barnie1989
New Cone
New Cone
Posts: 8
Joined: 13 Sep 2009 20:35

Re: Rotate a video via activex in Visual Basic 6

Postby barnie1989 » 19 Sep 2009 10:49

Where I see the messages?

With that command, the video will be played: frmVLC.VLCPlugin21.Playlist.Add "\\server-barnie\FotoDB_FileStore01\Datenfiles\0308\#00308328#MOV03821.MPG"

and here - nothing happend: frmVLC.VLCPlugin21.Playlist.Add "--video-filter ""rotate{angle=90}"" \\server-barnie\FotoDB_FileStore01\Datenfiles\0308\#00308328#MOV03821.MPG"

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Rotate a video via activex in Visual Basic 6

Postby VLC_help » 19 Sep 2009 18:52

viewtopic.php?f=16&t=62328
It seems that in ActiveX the options are added as last parameter.

barnie1989
New Cone
New Cone
Posts: 8
Joined: 13 Sep 2009 20:35

Re: Rotate a video via activex in Visual Basic 6

Postby barnie1989 » 20 Sep 2009 11:16

Thanks... I've tried many versions... The video always will be played, but not rotated. How must I set the options???

Dim loOptionen(1) As String
loOptionen(0) = "video-filter"
loOptionen(1) = "rotate=190"
llHandle = frmVLC.VLCPlugin21.Playlist.Add(gfsGetBildDateiName(glBildID(giSelectedPic)), "MyVLC", loOptionen)
VLCPlugin21.Playlist.playItem 0


Dim loOptionen(0) As String
loOptionen(0) = "--video-filter ':rotate{angle=123}'"
llHandle = frmVLC.VLCPlugin21.Playlist.Add(gfsGetBildDateiName(glBildID(giSelectedPic)), "MyVLC", loOptionen)
VLCPlugin21.Playlist.playItem 0

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Rotate a video via activex in Visual Basic 6

Postby VLC_help » 20 Sep 2009 13:28

I have no clue how Visual Basic string stuff works, but
loOptionen(0) = "--video-filter ':rotate{angle=123}'"
should prolly be
loOptionen(0) = "--video-filter 'rotate{angle=123}'"
or
loOptionen(0) = "--video-filter=rotate{angle=123}"

barnie1989
New Cone
New Cone
Posts: 8
Joined: 13 Sep 2009 20:35

Re: Rotate a video via activex in Visual Basic 6

Postby barnie1989 » 20 Sep 2009 21:41

no chance.. :( I've tried all combinations... NOTHING!

barnie1989
New Cone
New Cone
Posts: 8
Joined: 13 Sep 2009 20:35

Re: Rotate a video via activex in Visual Basic 6

Postby barnie1989 » 26 Sep 2009 08:39

Does really noone knows how to set the option to rotate a video with the activex contol?

surf_uk
New Cone
New Cone
Posts: 5
Joined: 23 Oct 2008 18:13

Re: Rotate a video via activex in Visual Basic 6

Postby surf_uk » 21 Oct 2009 15:11

I'm using a c# vlclib.dll wrapper and the options I send are:

string[] args = {VlcDirectory,
":no-one-instance",
":no-loop",
":no-drop-late-frames",
":disable-screensaver",
":vout=direct3d",
"--no-osd","--ignore-config","--quiet","--video-filter","rotate{angle=180}",
"--plugin-path=" + Path.Combine(VlcDirectory,"plugins")};

Rotate works in with "--video-filter","rotate{angle=180}"

matthiasmueller
New Cone
New Cone
Posts: 1
Joined: 24 Mar 2022 17:53

Re: Rotate a video via activex in Visual Basic 6

Postby matthiasmueller » 24 Mar 2022 18:14

Hi!
It does not work for me.
Now I have:

Code: Select all

..... player.VlcMediaplayerOptions = new[] { "--high-priority", "--no-sout-smem-time-sync", "--clock-jitter=0", "--clock-synchro=0", "--live-caching=0", "--no-osd", "--rotate-angle=120.0", //Funktioniert auch, sogar mit genauen Graden und Kommastellen! "--video-filter=rotate", //Siehe: https://wiki.videolan.org/VLC_command-line_help/ }; player.EndInit();
This works fine when applying before EndInit() !!!
But what I need is to rotate while playing the video. It does not help me to just rotate to a fixed value before at Init because I need to rotate the video live (and also another problem is that this all does not have an effect to my recorded video - it is not rotated...

So my idea was to enter it here:

Code: Select all

string[] option = new string[] { @":dshow-vdev="+Kamera_Gerätename, @":dshow-adev=none", @":dshow-size="+Bildbreite_real+"x"+Bildhoehe_real, @":dshow-aspect-ratio=16\:9", @":live-caching=0", @":clock-synchro=0", //@":sout=#duplicate{dst=file{dst=C:\Users\matthias.mueller\Desktop\test.mp4},dst=display}", //@":sout-all", //@":sout-keep", @"--video-filter","rotate{angle=180}", }; player.Play(new Uri(@"dshow://"), option);
But I don't know any syntax that works... is it possible to make it work?
Is there another solution to rotate the video while playing? I would like to use data from an encoder to rotate in real-time...


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 14 guests