Page 1 of 1

Pan Video by clicking & dragging with mouse

Posted: 08 Oct 2013 07:19
by JSLover
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).

Re: Pan Video by clicking & dragging with mouse

Posted: 08 Oct 2013 23:42
by Jean-Baptiste Kempf
Use the interactive zoom filters.

Re: Pan Video by clicking & dragging with mouse

Posted: 09 Oct 2013 19:19
by JSLover
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?

Re: Pan Video by clicking & dragging with mouse

Posted: 10 Oct 2013 17:48
by Jean-Baptiste Kempf
No, this needs to be done in the core.

Re: Pan Video by clicking & dragging with mouse

Posted: 01 Mar 2017 13:14
by zimon
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.

Re: Pan Video by clicking & dragging with mouse

Posted: 10 Feb 2021 21:18
by profchamberlain
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