fruiz500 / VideoSkip

HTML5 video player with the ability to filter out several types of objectionable content. It can skip sections entirely, or simply mute the sound or blank the video, at user's discretion.
GNU General Public License v3.0
16 stars 5 forks source link

Dynamic zoom/crop #5

Open cordellstoyer opened 3 years ago

cordellstoyer commented 3 years ago

Hey friend, I had an idea but wasn't sure if it was technically possible. I do my edits in Adobe Premiere, and one of my methods is utilizing zoom to crop out undesirable elements. Let's say for example a female is wearing a revealing shirt, well instead of blacking out the entire screen I can simply zoom in and pan up a bit to effectively crop out unwanted elements. Would such a thing be possible with VideoSkip?

fruiz500 commented 3 years ago

Actually, I think it would be possible as an alternative to blanking out the screen. The trick is how to describe the zoom with the least trouble for editors. At minimum, there would be three parameters: x and y coordinates, and size of the zoomed-in portion. An alternative to zooming would be blurring a certain section of the screen, but this again would require three parameters to be entered.

What would be the simplest way to enter them?

On Mon, Nov 30, 2020 at 9:48 AM cordellstoyer notifications@github.com wrote:

Hey friend, I had an idea but wasn't sure if it was technically possible. I do my edits in Adobe Premiere, and one of my methods is utilizing zoom to crop out undesirable elements. Let's say for example a female is wearing a revealing shirt, well instead of blacking out the entire screen I can simply zoom in and pan up a bit to effectively crop out unwanted elements. Would such a thing be possible with VideoSkip?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fruiz500/VideoSkip/issues/5, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATF25GCNMTV764GMDS5WMLSSO5GDANCNFSM4UHX5Z3A .

-- Francisco Ruiz Associate Professor MMAE department Illinois Institute of Technology

PL24wordLok==qualifications veterans speaker coating physically tapes worldsex folder book mostly distinguished shine enemy sticker focusing arena believe zinc baker thoroughly==PL24wordLok https://www.youtube.com http://youtube.com/watch?v=BT_tFXpkUR0

get the PassLok privacy app at: https://passlok.com http://passlok.com

cordellstoyer commented 3 years ago

X, Y, and scale would be perfect, that's what Premiere uses. Blur might also be useful for certain things, like maybe a small picture on the wall or something.

cordellstoyer commented 3 years ago

Follow up on that, is it possible to animate the zoom and pan? Like you specify Time A with x,y and Time B with another set of x,y values and it would animate from point A to B? I might be getting ahead of myself sorry lol, I'm just excited to try it out.

fruiz500 commented 3 years ago

I've looked into it, and it's harder than anticipated. Sure, it is relatively easy to do a zoom on the video, but since the goal is to stop showing the part of the zoomed image that falls outside the original viewport, this requires a framing element with special overflow settings. Here's an article explaining how to do it: https://code-boxx.com/image-zoom-css-javascript/

The problem is that, at least in the extension version of VideoSkip, introducing this special element as a parent to the video is rather awkward and may break things on the page. Since the extension is the version that most people would use, it doesn't seem proper to introduce a capability that only the standalone version would be able to perform, with the extension falling back to simple screen blanking in the VideoSkip extension.

Please comment.

fruiz500 commented 3 years ago

@cordellstoyer. If you read the article in my previous post, you'll see that it is indeed possible to animate a zoom. But I'm not likely to implement it in VideoSkip, for the reasons stated in that post.

On Sat, Dec 5, 2020 at 12:18 PM cordellstoyer notifications@github.com wrote:

Follow up on that, is it possible to animate the zoom and pan? Like you specify Time A with x,y and Time B with another set of x,y values and it would animate from point A to B? I might be getting ahead of myself sorry lol, I'm just excited to try it out.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fruiz500/VideoSkip/issues/5#issuecomment-739330325, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATF25CJ66RPKMISRQDFWRTSTJ2QLANCNFSM4UHX5Z3A .

-- Francisco Ruiz Associate Professor MMAE department Illinois Institute of Technology

PL24wordLok==qualifications veterans speaker coating physically tapes worldsex folder book mostly distinguished shine enemy sticker focusing arena believe zinc baker thoroughly==PL24wordLok https://www.youtube.com http://youtube.com/watch?v=BT_tFXpkUR0

get the PassLok privacy app at: https://passlok.com http://passlok.com