Skip to menu

본문시작



질문하기 전에 검색하세요(Search before asking a question)


English
2021.05.09 00:22

shanacrop filter issue

Views 1400 Votes 0 Comment 2
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print Attachment
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print Attachment

Hello.

I believe cropping is not working. Here is parameters line I used:
-vf "crop=in_w-960:in_h,scale=1920:1080:flags=bicubic,shanacrop=DAR,setsar=1/1"

And the resulted video has cropped left & right bars with "crop" filter, but not cropped top & bottom with "shanacrop" during scaling down to 1080p and changed aspect ratio. So output is squashed. Please see attached screenshots.
Arguments other than "DAR" produce the same result.

 

input.png

output.png

P.S. I used to be able to crop 16:10 video to 16:9 with GUI settings in some previous version, but now cropping setting seems to do nothing. And I am also unable to find download for older versions on this site, which is a problem as well.

--
Thank you for your development.

 

Atachment
Attachment '2'
Facebook Twitter Pinterest Kakao
  • ?
    JKyle 2021.05.12 00:19

    You're doing crop ⇒ resize(scale) ⇒ crop. It's not a good work flow. Instead, do all the crops via [right click] > [Set segment/Crop] seeing the result in advance, and then do the resize.

    DAR means the display aspect ratio of the source. In resizing, Aspect: None or Padding (letterbox) is recommended. Don't do cropping there, 'cuz it will yield an unexpected result sometimes.

  • ?
    Leeroy 2021.05.19 23:49

    DAR means the display aspect ratio of the source.

    Is it? I was pretty sure that it is aspect ratio of ouput (at least in terms of ffmpeg), and it sure did act like that in previous ShanaEncoder versions. Setting output resolution of 1920x1080 and croping = DAR yilded for example 16:9 centered crop of 16:10 video without distortion.
    Even if I now set "shanacrop=16:9" or any other argument, the output is still identical. Does not seem right and very confusing.

    I was using this setting for simple reasons:

    a) it is located in main "Quick settings" menu, so seems like a logical way to do it.

    b) it requires no calculations in case you need centered picture output

    Thank you for pointing to "Set segment/Crop" menu, I was completely overlooking this submenu. It works well as a workaround.


List of Articles
No. Category Subject Author Date Views Votes
Notice ShanaEncoder Translation Rina 2021.04.28 2312 0
Notice This board is for users of the ShanaEncoder international version 4 Rina 2019.07.24 3191 1
138 Simplified Chinese 关于ts文件音画不同步的问题,附解决办法 falseen 2021.09.16 133 1
137 Simplified Chinese 缺少scale_cuda滤镜 sz 2021.08.30 921 0
136 Simplified Chinese 会加入hdr to sdr 滤镜tonemap_opencl吗 sz 2021.08.26 820 0
135 Simplified Chinese How to keep the date of the original video请问怎样复制原始视频的日期 2 file jaxonlau 2021.08.22 896 0
134 English E-AC3 deadlyshadow 2021.08.22 795 0
133 Simplified Chinese 新版AMF支持HDR to SDR了,希望下一版中能加入 sz 2021.08.11 1286 0
132 Simplified Chinese 转码多音轨的视频,音轨名称都变成一样了 4 file cswcsw 2021.08.02 1382 1
131 English Encoding error 2 Deepspace 2021.07.30 967 0
130 Simplified Chinese 希望可以增加字幕整体放大功能 1 M 2021.07.30 871 0
129 Simplified Chinese 关于av1编码 1 sz 2021.07.27 1024 0
128 Simplified Chinese 关于 nvenc hdr参数 2 sz 2021.07.18 1115 0
127 Simplified Chinese 我找不到以前的版本更新内容帖子在哪了。 2 小樱 2021.07.16 882 0
126 Simplified Chinese 复制视频音频会多出标签和全局标签 sz 2021.07.09 629 0
125 Simplified Chinese 使用 -map 0,会重复流0:0和0:1 1 sz 2021.07.09 557 0
124 Simplified Chinese 不能直接拖文件进去,只能一个个添加文件 mike12 2021.06.18 1066 0
123 Simplified Chinese 为什么我的不能直接拖文件进去,只能添加文件,5.2.1.5版本 7 mike12 2021.06.15 1278 0
122 English How do you hardsub with external subs? 2 ShrewOne 2021.06.13 818 0
121 Simplified Chinese 可不可以文件名后缀? 1 hao 2021.06.10 965 0
120 Simplified Chinese - 1 jaxonlau 2021.05.29 1200 0
» English shanacrop filter issue 2 file Leeroy 2021.05.09 1400 0
Board Pagination Prev 1 2 3 4 5 6 7 Next
/ 7