Pan Video by clicking & dragging with mouse

Feature requests for VLC.
JSLover
Cone that earned his stripes
Cone that earned his stripes
Posts: 116
Joined: 20 Mar 2012 00:08
VLC version: 2.1.5
Operating System: Win7
Location: r.secsrv.net/youtube.lua

Pan Video by clicking & dragging with mouse

Postby JSLover » 08 Oct 2013 07:19

When you press o to toggle video to "Original Size", for example, playing 1080p video on a 720p monitor, the video is bigger than the screen. I'd like to be able to click & drag to pan the video (& obviously some way to "reset" that pan). Basically, any time the video is larger than the screen, clicking & dragging would pan...& something like Left hold+Right click would reset the pan.

Having a way to constrict the pan into X or Y would be good too: Hold Ctrl+Drag = X-only, Hold Alt+Drag = Y-only. With a pref determining what each type of drag does: Left drag = (X-only, Y-only, both), Ctrl+Left Drag = (X-only, Y-only, both)...etc...

& of course, having a "follow mouse mode", by turning on Scroll Lock (for example), would pan with the mouse, without holding any mouse button.

I'd like this to be put in normal VLC, but can something like this even be done with a Lua script? I know the built-in Zoom function can pan & zoom, so how hard would adding the pan function of that to "normal VLC" (without the zoom thumbnail).
"why the f*** do i need a google+ account to comment on a video?" — jawed (2013) (about YouTube's new requirement of Google+)

youtube.lua — Play YouTube videos in VLC!
Updated: Thu, Jan 15, 2015 --- 1/15/15, 7:19:19pm EST

forum.videolan.org/viewtopic.php?f=29&t=111977&p=379147#p379147
Sigh, the above can't be a link: "You cannot use certain BBCodes: [url]."...so, I can't even link back to a post on this forum?
How about this: can long-term/trusted users be allowed links in sigs?

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: Pan Video by clicking & dragging with mouse

Postby Jean-Baptiste Kempf » 08 Oct 2013 23:42

Use the interactive zoom filters.
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.

JSLover
Cone that earned his stripes
Cone that earned his stripes
Posts: 116
Joined: 20 Mar 2012 00:08
VLC version: 2.1.5
Operating System: Win7
Location: r.secsrv.net/youtube.lua

Re: Pan Video by clicking & dragging with mouse

Postby JSLover » 09 Oct 2013 19:19

Use the interactive zoom filters.
...I know about that, I said...
I know the built-in Zoom function can pan & zoom, so how hard would adding the pan function of that to "normal VLC" (without the zoom thumbnail).
...if the "interactive zoom filters" would do exactly what I wanted, I wouldn't've posted this Feature Request. I generally know what VLC can & can't do: I know it does nothing when I click & drag on the video drawing surface, so I posted this.

I want to click & drag on the video drawing surface (not a thumbnail in the top left)...I do not want any "widgets" drawn on top of the video (as in the zoom filter: I don't wanna click on the video thumbnail widget to pan {it's a fine feature by itself, but it's not what I'm requesting here})...also I don't specifically want "zooming", for this feature (that might be a nice side-feature, but ignore it for now).

I mostly want "panning". The ability to click & drag on the video itself (think of Fullscreen) & move/pan the video.

I already stated the use case: any time a video has parts "hanging off the screen", I wanna be able to click & drag to see those parts. This is mostly for an interactive video-viewing "fun time", not to solve any problem with the video not fitting the screen. I simply wanna move my mouse to manually follow the action. I know I could use any number of options to fit the whole video on screen: that's not what this is about. Think if it as "manual pan & scan"...or a manual "remix" of the video: where I control the focus of the "camera".

Can you tell me: Can this be done within Lua? If not, will any developer even think about writing this? If this requires compiling VLC & writing a plugin in C, then I can't do it: I don't have a compiler set up. If this can be done in Lua, then I might try it...but where do I begin?
"why the f*** do i need a google+ account to comment on a video?" — jawed (2013) (about YouTube's new requirement of Google+)

youtube.lua — Play YouTube videos in VLC!
Updated: Thu, Jan 15, 2015 --- 1/15/15, 7:19:19pm EST

forum.videolan.org/viewtopic.php?f=29&t=111977&p=379147#p379147
Sigh, the above can't be a link: "You cannot use certain BBCodes: [url]."...so, I can't even link back to a post on this forum?
How about this: can long-term/trusted users be allowed links in sigs?

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: Pan Video by clicking & dragging with mouse

Postby Jean-Baptiste Kempf » 10 Oct 2013 17:48

No, this needs to be done in the core.
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.

zimon
Blank Cone
Blank Cone
Posts: 18
Joined: 28 Sep 2011 19:03
VLC version: 3.0.0-git-rpmfusion
Operating System: Linux

Re: Pan Video by clicking & dragging with mouse

Postby zimon » 01 Mar 2017 13:14

I was looking how to do this also, and found this feature request thread.

I have 1080P USB2-camera (Ausdom HD), which I am unable to (digital) zoom or pan during the video feed.
I'd like to crop, zoom and pan (part of) that 1920x1080p video-image on the fly with mouse.
It is very cumbersome to use crop-filter, and input the numbers of top,bottom,left and right to get wanted cropping of the image. There could be mouse support in that filter, so cropping area can be selected with a mouse.

I could also take out Video>Always_fit_window and then resize the window to the wanted crop area, then pan the visible image area inside that window with a mouse. But no support.

So I second this feature request.

profchamberlain
New Cone
New Cone
Posts: 2
Joined: 10 Feb 2021 17:19

Re: Pan Video by clicking & dragging with mouse

Postby profchamberlain » 10 Feb 2021 21:18

I just found this forum which relates to one I just posted. I would also support this!
https://forum.videolan.org/viewtopic.php?f=14&t=156450


Return to “VLC media player Feature Requests”

Who is online

Users browsing this forum: No registered users and 12 guests