Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 10th June 2018, 20:45   #1  |  Link
color
Registered User
 
color's Avatar
 
Join Date: May 2016
Location: Sweden Dalarna
Posts: 93
Whats my options on 4:3 to 16:9

What is my options on a video filmed in 4:3 to get to 16:9 exept adding borders on the sides or crop it in the middle?

Is there a good "tracking plugin" that might crop it right for avisynth script (face or what they do) or possible to make points on all scenes where it should be croped or do I need a more advance program to do this?
__________________
Automatic Colorization
color is offline   Reply With Quote
Old 10th June 2018, 23:02   #2  |  Link
amichaelt
Registered User
 
Join Date: Apr 2018
Posts: 50
If you really must you can always try WarpedResize that is part of the SimpleResize filter: http://avisynth.nl/index.php/SimpleResize

Quote:
WarpedResize will do a non-linear stretch/squeeze in both the horizontal and vertical dimensions. This can be useful when you want to change the aspect ratio of a video clip and have it mostly distorted at the top, bottom, and side edges. This is mostly experimental but I added it because it required few code changes and almost zero performance penalty. See the Examples section below.
Otherwise, cropping or pillarboxing are your only other options.
__________________
My project BDSup2Sub++: https://github.com/amichaeltm/BDSup2SubPlusPlus
amichaelt is offline   Reply With Quote
Old 11th June 2018, 00:30   #3  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Germany
Posts: 377
Quote:
Originally Posted by color View Post

Is there a good "tracking plugin" that might crop it right for avisynth script (face or what they do)?
In other words, Pan & Scan. I've been dealing with it in 2015 when I was trying to Restore a few old 4:3 contents:

https://forum.doom9.org/showthread.php?t=172566
__________________
Broadcast Encoder
FranceBB is offline   Reply With Quote
Old 12th June 2018, 07:26   #4  |  Link
color
Registered User
 
color's Avatar
 
Join Date: May 2016
Location: Sweden Dalarna
Posts: 93
I think I have to give Sony Vegas a try. I think I have to give another editor a try.

Or crop manually every scene and then merge them after export. Maybe easier than doing this in another program?
__________________
Automatic Colorization
color is offline   Reply With Quote
Old 12th June 2018, 22:45   #5  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 564
Quote:
Originally Posted by amichaelt View Post
Otherwise, cropping or pillarboxing are your only other options.
No, linear distortion is also an option.
__________________
If I ask "How do I do X?" or "what happens if I do X?", and X is a very bad thing that no one would ever normally do, assume that I already know this, and that I have Katie reasons for asking anyway.
Katie Boundary is offline   Reply With Quote
Old 13th June 2018, 00:48   #6  |  Link
amichaelt
Registered User
 
Join Date: Apr 2018
Posts: 50
Quote:
Originally Posted by Katie Boundary View Post
No, linear distortion is also an option.
Only if their request was a way to make the video look awful which doesn't sound like what they wanted.
__________________
My project BDSup2Sub++: https://github.com/amichaeltm/BDSup2SubPlusPlus
amichaelt is offline   Reply With Quote
Old 13th June 2018, 14:59   #7  |  Link
color
Registered User
 
color's Avatar
 
Join Date: May 2016
Location: Sweden Dalarna
Posts: 93
I want to do a little update. I did edit the movie in virtualdub, exporting it in 5 files cause most parts are kind of good just croping it to the middle part but some needed to be cropped so the top parts is more visible to not cut of heads.

Stupid question again, what is it called when you leave the "middle part" as it is but only stretch the corners? (Like widescreen tv's had as option when watching 4:3 videos in widescreen, it looked horrible when someones head or shoulder is stretched out, but I always wanted to know what it is called)
__________________
Automatic Colorization
color is offline   Reply With Quote
Old 13th June 2018, 16:18   #8  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,038
Quote:
Originally Posted by color View Post
Stupid question again, what is it called when you leave the "middle part" as it is but only stretch the corners?
Anamorphic format

[edit]I developed techniques in my NLE, Vegas, to do non-linear stretching, so that most of the stretching happens at the edges. Unlike anamorphic stretching for movies (in the above link), where the stretching is "un-done" during projection, the stretching I did in Vegas to go from 4:3 to 16:9 leaves the image stretched at the edges.

Having done that work, IMHO it is much, much better to simply add the pillars on the sides when going from 4:3 to 16:9. Every other "trick" makes the video look really bad and is distracting.

Last edited by johnmeyer; 13th June 2018 at 16:20.
johnmeyer is offline   Reply With Quote
Old 13th June 2018, 21:02   #9  |  Link
amichaelt
Registered User
 
Join Date: Apr 2018
Posts: 50
Quote:
Originally Posted by color View Post
I want to do a little update. I did edit the movie in virtualdub, exporting it in 5 files cause most parts are kind of good just croping it to the middle part but some needed to be cropped so the top parts is more visible to not cut of heads.

Stupid question again, what is it called when you leave the "middle part" as it is but only stretch the corners? (Like widescreen tv's had as option when watching 4:3 videos in widescreen, it looked horrible when someones head or shoulder is stretched out, but I always wanted to know what it is called)
That would be what the WarpedResize I linked to does. It's a non-linear stretch when resizing.
__________________
My project BDSup2Sub++: https://github.com/amichaeltm/BDSup2SubPlusPlus
amichaelt is offline   Reply With Quote
Old 18th June 2018, 22:12   #10  |  Link
color
Registered User
 
color's Avatar
 
Join Date: May 2016
Location: Sweden Dalarna
Posts: 93
I did try warpedesize but I get wierd color distortion, well color bleeding or what it is called, a bug?

How do I best do 900x720 to 1280x720, don't get the hWarp and vWarp to look "normal", it looks like the filter fisheye when I move it up.

I do think "WarpedResize(1280, 720, 0.5, 1)" looks a bit okey, it has a little black bars on the sides that need to be cut.

I did try warpresize but I get wierd color distortion, well color bleeding or what it is called, a bug? How do I best do 900x720 to 1280x720, don't get the hWarp and vWarp to look "normal", it looks like the filter fisheye when I move it up. I do think "WarpedResize(1280, 720, 0.5, 1)" looks a bit okey, it has a little black bars on the sides that need to be cut.


__________________
Automatic Colorization

Last edited by color; 18th June 2018 at 22:18.
color is offline   Reply With Quote
Old 18th June 2018, 22:34   #11  |  Link
amichaelt
Registered User
 
Join Date: Apr 2018
Posts: 50
There is a bug with YV12 sources I see from the Avisynth wiki page. Maybe this can help you?

Quote:
Originally Posted by raffriff42 View Post
Has anybody used WarpedResize [with a YV12 source] lately? For me it is warping Chroma from one side instead of centered like Luma, which looks a bit odd:
Code:
LoadPlugin(p + "SimpleResize\Avisynth_2.5_Alpha\SimpleResize.dll")
ColorBars(pixel_type="YV12")
Subtitle("5 4 3 2 1 0 1 2 3 4 5", 
\       align=5, size=Height*0.2, font="Courier New",
\       text_color=$aaffffff, halo_color=$ff000000)
WarpedResize(Width, Height, 1.5, 1.0)
Subtitle("WarpedResize(hWarp=1.5)", align=8,
\       text_color=$ebebeb, halo_color=$ff000000)
return Last
...but this fixes the problem:
Code:
## fix WarpedResize YV12 chroma bug; make warp arguments optional 
function WarpedResize2(clip C, int width, int height, float "hWarp", float "vWarp")
{
    Assert(C.IsYV12, 
    \   "WarpedResize2: source must be YV12")     
    Assert(width % 4 == 0, 
    \   "WarpedResize2: 'width' arg must be mod 4")
    Assert(height % 4 == 0, 
    \   "WarpedResize2: 'height' arg must be mod 4")
    
    hWarp = Default(hWarp, 1.0)
    vWarp = Default(vWarp, 1.0)
    
    U = C.UToY .WarpedResize(width / 2, height / 2, hWarp, vWarp)
    V = C.VToY .WarpedResize(width / 2, height / 2, hWarp, vWarp)
    Y = C      .WarpedResize(width, height, hWarp, vWarp)

    return YToUV(U, V, Y)
}
__________________
My project BDSup2Sub++: https://github.com/amichaeltm/BDSup2SubPlusPlus

Last edited by amichaelt; 18th June 2018 at 22:38.
amichaelt is offline   Reply With Quote
Old 18th June 2018, 23:39   #12  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 564
Quote:
Originally Posted by amichaelt View Post
Only if their request was a way to make the video look awful
But every option does that
__________________
If I ask "How do I do X?" or "what happens if I do X?", and X is a very bad thing that no one would ever normally do, assume that I already know this, and that I have Katie reasons for asking anyway.
Katie Boundary is offline   Reply With Quote
Old 19th June 2018, 09:25   #13  |  Link
color
Registered User
 
color's Avatar
 
Join Date: May 2016
Location: Sweden Dalarna
Posts: 93
Quote:
Originally Posted by amichaelt View Post
There is a bug with YV12 sources I see from the Avisynth wiki page. Maybe this can help you?
Thank you. Its slow but it solved my problem.
__________________
Automatic Colorization
color is offline   Reply With Quote
Old 19th June 2018, 12:44   #14  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: UK
Posts: 2,324
Just clean edges and centre it inside 16x9 frame (pillarbox).
All other approaches are gimmicks (even Pan&Scan is a massive compromise).
kolak is offline   Reply With Quote
Old 19th June 2018, 13:28   #15  |  Link
color
Registered User
 
color's Avatar
 
Join Date: May 2016
Location: Sweden Dalarna
Posts: 93
Quote:
Originally Posted by kolak View Post
Just clean edges and centre it inside 16x9 frame (pillarbox).
All other approaches are gimmicks (even Pan&Scan is a massive compromise).
That is for me to judge. :P Joke aside, I know and I do this a lot of the times, but I'm going to watch a full series off movies and it feels like sticking a needle in the eyes when watching a 4:3 movie because it has not been released in 16:9 when the rest of the serie has been.
__________________
Automatic Colorization
color is offline   Reply With Quote
Old 19th June 2018, 15:56   #16  |  Link
amichaelt
Registered User
 
Join Date: Apr 2018
Posts: 50
Quote:
Originally Posted by Katie Boundary View Post
But every option does that
Probably, but yours is clearly the worst. I'd simply just pillarbox, but a non-linear warp is going to look far better than your idea.
__________________
My project BDSup2Sub++: https://github.com/amichaeltm/BDSup2SubPlusPlus
amichaelt is offline   Reply With Quote
Old 19th June 2018, 16:58   #17  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: UK
Posts: 2,324
Quote:
Originally Posted by color View Post
That is for me to judge. :P Joke aside, I know and I do this a lot of the times, but I'm going to watch a full series off movies and it feels like sticking a needle in the eyes when watching a 4:3 movie because it has not been released in 16:9 when the rest of the serie has been.

If you like gimmick solutions then your choice.
kolak is offline   Reply With Quote
Old 19th June 2018, 22:51   #18  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 564
Quote:
Originally Posted by amichaelt View Post
Probably, but yours is clearly the worst. I'd simply just pillarbox, but a non-linear warp is going to look far better than your idea.
That's extremely subjective. I find non-linear warping to be much more distracting/annoying than a linear warp, though both are inferior to cropping, which is in turn inferior to pillarboxing/letterboxing.
__________________
If I ask "How do I do X?" or "what happens if I do X?", and X is a very bad thing that no one would ever normally do, assume that I already know this, and that I have Katie reasons for asking anyway.
Katie Boundary is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 +1. The time now is 05:53.


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