numberwolf / FFmpeg-PlusPlus

🔥 FFmpeg扩展版本,1.支持OpenGL图形渲染,自定义着色器 滤镜、特效、转场。2.支持FLV+HEVC/AV1/Opus编码解码 🔥 FFmpeg Extension: 1.Support GLSL OpenGL(Filter/Effect/Transition/Shaders); 2. And Transcode FLV with HEVC/AV1/Opus Codec

Home Page:https://www.zzsin.com/shaderplus.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Resolution Mismatch

HakkaTjakka opened this issue · comments

Hello Sir,

I'm working with this repo and i'm stuck on the following:

If i use input-resolutions with dar 16:9 on 1920x1080 or below like 1280x720 or 640x360 the pipglshader works fine.
But if i have other resolutions the texture(s) is/are screwed up.

I've put a sample into my repo on: SAMPLE

I've looked into the source and tried some stuff but i can't get it right.

I've patched FFmpeg-n4.3.1 with your code. (SOURCES)

I would like to use different (full) resolutions that i can use in the GPU shaders so i can zoom in on them....
Maybe you got a fix?

Thanks for reading, have a nice day.
Gerard W.

If i use input-resolutions with dar 16:9 on 1920x1080 or below like 1280x720 or 640x360 the pipglshader works fine.
But if i have other resolutions the texture(s) is/are screwed up.

Resolution:

If your render-window's aspect ratio is not match video's aspect ration, you should scale the video's aspect same sa windows's aspect; last, after render, scale it back to your target~

If i use input-resolutions with dar 16:9 on 1920x1080 or below like 1280x720 or 640x360 the pipglshader works fine.
But if i have other resolutions the texture(s) is/are screwed up.

Resolution:

If your render-window's aspect ratio is not match video's aspect ration, you should scale the video's aspect same sa windows's aspect; last, after render, scale it back to your target~

What should I do when using vertical video?
Currently, it can support 16:9 on 1920x1080, but if it is 9:16 on 1080x1920?
thanks

What should I do when using vertical video? Currently, it can support 16:9 on 1920x1080, but if it is 9:16 on 1080x1920? thanks

I have the same question.
Also, what if the original video resolution is higher than the screen? Is there a simple demo that we can learn about

If i use input-resolutions with dar 16:9 on 1920x1080 or below like 1280x720 or 640x360 the pipglshader works fine.
But if i have other resolutions the texture(s) is/are screwed up.

Resolution:

If your render-window's aspect ratio is not match video's aspect ration, you should scale the video's aspect same sa windows's aspect; last, after render, scale it back to your target~

What is the reason? Can you provide an idea for us to modify the source code to solve the problem? Because scaling video can lead to quality loss and performance loss