Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER for Video Editing/Mangling

Reply
 
Thread Tools Display Modes
Old 02-04-2023, 08:53 PM   #1
took-the-red-pill
Human being with feelings
 
Join Date: Oct 2015
Posts: 36
Default Editing portrait (vertical) video in with horizontals

Hi there,

I have some video some silly person shot with their phone vertical - in spite of me asking them to always be horizontal.

I want to be able to move that to the left or right and drop in another video beside it, with them both on screen at the same time.

However, the thick blackouts on the left and right of the cell phone footage a) won't move, b) block out whatever video behind it, and crop into the image if you move it to the side.

I have monkeyed with pretty much every preset that comes with Reaper and can't figure it out.

Any ideas?

Thanks
Keith
took-the-red-pill is offline   Reply With Quote
Old 02-05-2023, 05:23 PM   #2
papagirafe
Human being with feelings
 
papagirafe's Avatar
 
Join Date: Aug 2020
Location: Brasil
Posts: 690
Default

Quote:
Originally Posted by took-the-red-pill View Post
Hi there,

I have some video some silly person shot with their phone vertical - in spite of me asking them to always be horizontal.

I want to be able to move that to the left or right and drop in another video beside it, with them both on screen at the same time.

However, the thick blackouts on the left and right of the cell phone footage a) won't move, b) block out whatever video behind it, and crop into the image if you move it to the side.

I have monkeyed with pretty much every preset that comes with Reaper and can't figure it out.

Any ideas?

Thanks
Keith
Oddly there is no cropping tool with the stock presets. Several people work on that problem but here is a cropping preset that should do exactly what you need. Just add it in the fx chain before "Overlay: image". In your case I would leave the parameter "sizing policy to 0. If you need help on adding custon presets just follow the sticky thread "Links to additional Video processor presets"

Code:
//girafx:crop
//by papagirafe
//if you like this preset, please consider a donation or a tip at https://paypal.me/papagirafe
//@param sp "sizing policy" 0 0 3 1 1   //0:none, same as cropped source, 1:stretch to project's dim, 2:max pw, 3:max ph
//@param cl "crop left" 0 0 1 0.5 0.001
//@param cr "crop right" 0 0 1 0.5 0.001
//@param ct "crop top" 0 0 1 0.5 0.001
//@param cb "crop bottom" 0 0 1 0.5 0.001
//@param sm "smooth filter" 0 0 1 0.5 1

E=0xFFFE; //allow only even values
input_info(0,w,h)?(
  cl=(cl*w)&E;cr=(cr*w)&E;ct=(ct*h)&E;cb=(cb*h)&E;
  cx=cl;cy=ct;
  cw=w-(cl+cr);ch=h-(ct+cb); 
  sp==0?(project_w=dw=cw;project_h=dh=ch):
  sp==1?(dw=project_w;dh=project_h):
  sp==2?(dh=project_h;project_w=dw=(dh/project_w)*cw)&E:
  (dw=project_w;project_h=dh=(project_h/dw)*ch)&E;
  gfx_set(0,0,0,1,sm?0x100:0,-1);
  gfx_blit(0,0,0,0,dw,dh,cx,cy,cw,ch);
);
papagirafe is offline   Reply With Quote
Old 02-05-2023, 10:36 PM   #3
took-the-red-pill
Human being with feelings
 
Join Date: Oct 2015
Posts: 36
Default

Absolutely fantastic. Thank you so much.

Hopefully all these extra FX can one day get added to Reaper so a person doesn’t have to go looking for each one individually.

Cheers mate.
Keith.
took-the-red-pill is offline   Reply With Quote
Old 02-07-2023, 10:10 PM   #4
took-the-red-pill
Human being with feelings
 
Join Date: Oct 2015
Posts: 36
Default

Quote:
Originally Posted by papagirafe View Post
Oddly there is no cropping tool with the stock presets. Several people work on that problem but here is a cropping preset that should do exactly what you need. Just add it in the fx chain before "Overlay: image". In your case I would leave the parameter "sizing policy to 0. If you need help on adding custon presets just follow the sticky thread "Links to additional Video processor presets"

Code:
//girafx:crop
//by papagirafe
//if you like this preset, please consider a donation or a tip at https://paypal.me/papagirafe
//@param sp "sizing policy" 0 0 3 1 1   //0:none, same as cropped source, 1:stretch to project's dim, 2:max pw, 3:max ph
//@param cl "crop left" 0 0 1 0.5 0.001
//@param cr "crop right" 0 0 1 0.5 0.001
//@param ct "crop top" 0 0 1 0.5 0.001
//@param cb "crop bottom" 0 0 1 0.5 0.001
//@param sm "smooth filter" 0 0 1 0.5 1

E=0xFFFE; //allow only even values
input_info(0,w,h)?(
  cl=(cl*w)&E;cr=(cr*w)&E;ct=(ct*h)&E;cb=(cb*h)&E;
  cx=cl;cy=ct;
  cw=w-(cl+cr);ch=h-(ct+cb); 
  sp==0?(project_w=dw=cw;project_h=dh=ch):
  sp==1?(dw=project_w;dh=project_h):
  sp==2?(dh=project_h;project_w=dw=(dh/project_w)*cw)&E:
  (dw=project_w;project_h=dh=(project_h/dw)*ch)&E;
  gfx_set(0,0,0,1,sm?0x100:0,-1);
  gfx_blit(0,0,0,0,dw,dh,cx,cy,cw,ch);
);
I downloaded the code. I copied and pasted it. It works and functions.
I saved the preset as Vertical Video Crop 2
It loads and functions
I placed an instance of IMAGE OVERLAY After Vertical Video Crop 2.
I left Sizing Policy at 0

However, I get the same results as before. The black bars on either side are in FRONT of the image, so if I try to crop, the black bars cover my image.

I need the black bars to be completely translucent, so I can place the image wherever I need to, and so I can zoom in to fit a horizontal Frame.

I'll try to post a picture of the results I got.

Thanks
Keith.
took-the-red-pill is offline   Reply With Quote
Old 02-07-2023, 10:12 PM   #5
took-the-red-pill
Human being with feelings
 
Join Date: Oct 2015
Posts: 36
Default

Quote:
Originally Posted by papagirafe View Post
Oddly there is no cropping tool with the stock presets. Several people work on that problem but here is a cropping preset that should do exactly what you need. Just add it in the fx chain before "Overlay: image". In your case I would leave the parameter "sizing policy to 0. If you need help on adding custon presets just follow the sticky thread "Links to additional Video processor presets"

Code:
//girafx:crop
//by papagirafe
//if you like this preset, please consider a donation or a tip at https://paypal.me/papagirafe
//@param sp "sizing policy" 0 0 3 1 1   //0:none, same as cropped source, 1:stretch to project's dim, 2:max pw, 3:max ph
//@param cl "crop left" 0 0 1 0.5 0.001
//@param cr "crop right" 0 0 1 0.5 0.001
//@param ct "crop top" 0 0 1 0.5 0.001
//@param cb "crop bottom" 0 0 1 0.5 0.001
//@param sm "smooth filter" 0 0 1 0.5 1

E=0xFFFE; //allow only even values
input_info(0,w,h)?(
  cl=(cl*w)&E;cr=(cr*w)&E;ct=(ct*h)&E;cb=(cb*h)&E;
  cx=cl;cy=ct;
  cw=w-(cl+cr);ch=h-(ct+cb); 
  sp==0?(project_w=dw=cw;project_h=dh=ch):
  sp==1?(dw=project_w;dh=project_h):
  sp==2?(dh=project_h;project_w=dw=(dh/project_w)*cw)&E:
  (dw=project_w;project_h=dh=(project_h/dw)*ch)&E;
  gfx_set(0,0,0,1,sm?0x100:0,-1);
  gfx_blit(0,0,0,0,dw,dh,cx,cy,cw,ch);
);
I downloaded the code
took-the-red-pill is offline   Reply With Quote
Old 02-08-2023, 10:27 AM   #6
papagirafe
Human being with feelings
 
papagirafe's Avatar
 
Join Date: Aug 2020
Location: Brasil
Posts: 690
Default

Quote:
Originally Posted by took-the-red-pill View Post
I downloaded the code. I copied and pasted it. It works and functions.
I saved the preset as Vertical Video Crop 2
It loads and functions
I placed an instance of IMAGE OVERLAY After Vertical Video Crop 2.
I left Sizing Policy at 0

However, I get the same results as before. The black bars on either side are in FRONT of the image, so if I try to crop, the black bars cover my image.

I need the black bars to be completely translucent, so I can place the image wherever I need to, and so I can zoom in to fit a horizontal Frame.

I'll try to post a picture of the results I got.

Thanks
Keith.
There must be something else in the project structure that creates the black bars. If you could share your "rpp" file even without the videos/images. It is small enough to share through Reaper Stash.
papagirafe is offline   Reply With Quote
Old 02-08-2023, 08:54 PM   #7
took-the-red-pill
Human being with feelings
 
Join Date: Oct 2015
Posts: 36
Default

Okay, I don't think there is anything about the project settings that's odd,
It's in 1080 at 30 FPS.
ALL HORIZONTAL VIDEOS - of which there are about 30 - play perfectly fine.

I'll see if this old Luddite can figure out how to attach it. It's 454 Kb so hopefully it will go.
Attached Files
File Type: rpp Jan 31 video.RPP (442.9 KB, 58 views)
took-the-red-pill is offline   Reply With Quote
Old 02-08-2023, 08:56 PM   #8
took-the-red-pill
Human being with feelings
 
Join Date: Oct 2015
Posts: 36
Default

By the way, I really appreciate you trying to help me figure this out, my long necked friend.

Here's what happens when I try to crop using the preset in the text.
Attached Images
File Type: jpg IMG_4888.jpg (88.9 KB, 71 views)
File Type: jpg IMG_4889.jpg (58.9 KB, 68 views)
took-the-red-pill is offline   Reply With Quote
Old 02-09-2023, 12:27 AM   #9
vitalker
Human being with feelings
 
vitalker's Avatar
 
Join Date: Dec 2012
Posts: 13,336
Default

Perhaps it is video tracks order. There is a setting for that, but try the reverse order.
vitalker is online now   Reply With Quote
Old 02-09-2023, 07:46 AM   #10
papagirafe
Human being with feelings
 
papagirafe's Avatar
 
Join Date: Aug 2020
Location: Brasil
Posts: 690
Default

Quote:
Originally Posted by took-the-red-pill View Post
By the way, I really appreciate you trying to help me figure this out, my long necked friend.

Here's what happens when I try to crop using the preset in the text.
Combining images is tricky especially if you have many picture to combine. Track order is important and dependant upon "video item visibility" in project´s setting. Also for consitent results in zooming images, you need to set the projects´s "prefered video size". Here is a sample project for you:

https://stash.reaper.fm/46243/croppi...s%20solved.zip
papagirafe is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:02 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.