Selur's Little Message Board
odd numbers to crop - Printable Version

+- Selur's Little Message Board (https://forum.selur.net)
+-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html)
+--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html)
+--- Thread: odd numbers to crop (/thread-328.html)

Pages: 1 2


odd numbers to crop - rohamsh - 08.03.2018

Why can not use odd numbers to crop a movie in Avisynth setting?
Not a way to do this?


RE: odd numbers to crop - Selur - 08.03.2018

Since most input is YUV12 (4:2:0) and as such only allow mod2 cropping at it's lowest Hybrid by default uses a +2 when using the spin box.
You can manually use uneven values if your are sure your content supports it.
Hybrid does no automated conversion to RGB atm. to allow odd cropping for all color spaces.
I could probably add this,... note that the resulting resolution needs to be 4:4:4 or RGB to support uneven resolutions. (+ not sure whether all encoders do support uneven resolution)


Cu Selur


RE: odd numbers to crop - Selur - 10.03.2018

Send you a link to a dev version which supports odd crop values.

Cu Selur


RE: odd numbers to crop - rohamsh - 10.03.2018

(10.03.2018, 00:44)Selur Wrote: Send you a link to a dev version which supports odd crop values.

Cu Selur

thanks a lot.
This feature is also released in the final release?


RE: odd numbers to crop - Selur - 10.03.2018

Quote:This feature is also released in the final release?
I don't use it so I'm waiting from feedback from you. If it doesn't work it won't make into the next release. If it does work as it should, it will be kept.

Cu Selur


RE: odd numbers to crop - rohamsh - 10.03.2018

(10.03.2018, 12:28)Selur Wrote:
Quote:This feature is also released in the final release?
I don't use it so I'm waiting from feedback from you. If it doesn't work it won't make into the next release. If it does work as it should, it will be kept.

Cu Selur

I tried this feature on a few movies and did not work!
I set the crop top and bottom on 137, but the software crop 136 from top and 138 from bottom!


RE: odd numbers to crop - Selur - 10.03.2018

Need more details, because when I set 137 for top&bottom crop, I get:

in Vapoursynth:
clip = core.std.CropRel(clip=clip, left=0, right=0, top=137, bottom=137)
in Avisynth:
Crop(0,137,0,-137)
FFmpeg uses:
-vf crop=1280:446:0:137
Mencoder uses: (uses DVD input to force mencoder as decoder)
-vf scale,format=i420,crop=720:446:0:137
my guess it that you are not using Avisynth or Vapoursynth and I missed to adjust one of the other decoding options.
Normally either (/ and or) Avisynth, Vapoursynth, Mencoder or FFmpeg should be used and they all seem to work fine here. :/
-> Create a debug output so I can see whats happening on your end. Smile

Cu Selur


RE: odd numbers to crop - rohamsh - 11.03.2018

(10.03.2018, 15:01)Selur Wrote: Need more details, because when I set 137 for top&bottom crop, I get:

in Vapoursynth:
clip = core.std.CropRel(clip=clip, left=0, right=0, top=137, bottom=137)
in Avisynth:
Crop(0,137,0,-137)
FFmpeg uses:
-vf crop=1280:446:0:137
Mencoder uses: (uses DVD input to force mencoder as decoder)
-vf scale,format=i420,crop=720:446:0:137
my guess it that you are not using Avisynth or Vapoursynth and I missed to adjust one of the other decoding options.
Normally either (/ and or) Avisynth, Vapoursynth, Mencoder or FFmpeg should be used and they all seem to work fine here. :/
-> Create a debug output so I can see whats happening on your end. Smile

Cu Selur


The #1 photo is extracted frame from source movie and 137 for top & bottom crop in Photoshop, and #2 is extracted frame from my Hybrid output movie with 137 for top & bottom crop, but the software crop 136 from top and 138 from bottom (Compare the two photos together).

Here is the DebugOutput Level 9 file:


RE: odd numbers to crop - Selur - 11.03.2018

Seems like ffmpeg needs some additional parameters to do this, because Hybrid sends to it:
-vf crop=1920:806:0:137
which should crop as you wanted.
Does is work if you enable: "Config->Internals->Avisynth->Always use Avisynth" ?

Cu Selur


RE: odd numbers to crop - rohamsh - 11.03.2018

(11.03.2018, 09:12)Selur Wrote: Seems like ffmpeg needs some additional parameters to do this, because Hybrid sends to it:
-vf crop=1920:806:0:137
which should crop as you wanted.
Does is work if you enable: "Config->Internals->Avisynth->Always use Avisynth" ?

Cu Selur

No. Does not work.
And this is the DebugOutput Level 9 file of that setting: