Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolution option doesn't work #11

Open
DmytroUsenko opened this issue Sep 17, 2022 · 1 comment
Open

Resolution option doesn't work #11

DmytroUsenko opened this issue Sep 17, 2022 · 1 comment
Assignees

Comments

@DmytroUsenko
Copy link

trying to use
err := fluentffmpeg.
NewCommand("").
InputPath("http://").
OutputOptions("-movflags", "isml+frag_keyframe+empty_moov").
OutputFormat("mp4").
VideoCodec("h264").
KeyframeInterval(52).
Resolution("640x360").
PipeOutput(w).
Run()
all is ok besides the output resolution. It is always the same as the original (FullHD for example) and the Resolution option doesn't work.
Any ideas on how to fix it?

@vstruk01
Copy link

vstruk01 commented Mar 2, 2023

If shortly Resolution set aspect for video
In the documentation of ffmpeg you can find this option as -aspect
documentation link => https://ffmpeg.org/ffmpeg.html#Video-Options

And if you print ffmpeg arguments (GetArgs()) with setted resolution you can see that go-fluent-ffmpeg use next argument for ffmpeg "-aspect", "1.466667",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants