-
-
Notifications
You must be signed in to change notification settings - Fork 999
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
add --height --width flags #1427
Conversation
@exitflynn is attempting to deploy a commit to the Remotion Team on Vercel. A member of the Team first needs to authorize it. |
woah sir i must inform you that this is a set-up and a ruse, i have no intention of attempting to deploy a commit on vercel. haha, that happened by mistake, any way i can prevent that from happening the next time? |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Haha all good, this happens automatically on every pull request, and gives a preview link to the website, so we can read for example the new documentation! I will take a closer look at the documentation tomorrow! |
hey @JonnyBurger, I have only been able to implement the flags in the cli commands so far, and thought creating a PR would make for a convenient way to show/discuss those changes (i now realise a Draft PR is what I was looking for). I'm currently trying to figure out how to port these functions to thank you! |
@exitflynn Awesome, thanks a lot! A quick hint on how to continue: You can now pull out This should already result in a working proof of concept :) |
I had been absolutely s t u c k for > the past two days. I tried looking at other cli flags like Thanks a lot for reaching out with that hint! It looks pretty simple in hindsight now, had me reverting some commits. I also finally managed to overwrite the values and make the cli-flags work for Thanks again, @JonnyBurger! |
Hey @JonnyBurger, I managed to figure out how to overwrite the height and width for the Could you please provide some pointers / locations in the codebase as to where I should look (for getting input from CLI flags for still and lambda commands)? It'd be of immense help. 😅 |
Hey @exitflynn! I don't know the reason for the desparation, you actually implemented it correctly! :) I have helped a bit with some stronger validation and passing all the parameters through to Lambda to also make the feature work there. What's left is to add the new parameters to the documentation (for |
hahahaha thank you soo much @JonnyBurger! After trying all day, I finally (or atleast i think i) got the hang of it and I was able to implement the functionality to I'm looking over the additions and the changes you made and they make so much more sense. For instance, it is clearly obvious how something as small as renaming the CLI height to forcedHeight would considerably improve readability. |
packages/core/src/config.ts
Outdated
/** | ||
* Override the output video's height. | ||
* Ovverrides natural height of the video. | ||
* See h264 restriction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
had to leave for classes so pushed but this is NOT the final documentation haha
Nice, you were on the right track as well, sorry for interfering! |
Haha thanks a lot for everything, @JonnyBurger! Quick question, I added the documentation but I'm unsure which release number to put like here (i just put v3.2.40, is that something that gets added on later?). Also would it look nicer if I described the And I was also wondering whether I need to make an entry for height and width in |
3.2.40 sounds good! I'll adjust it manually if it gets added into a later release.
Good question, the convention for now is to keep it separate, might change it in the future
Not necessary, since you can already pass height and width using Thank you! |
😳 😳 Please review and let me know if there's anything more to do here on the issue! |
Nice! Everything works 🥳 Had to update the docs because a few options had the wrong name, but generally really nice work! Congrats on your first contribution and your bounty! 🥳 💰 Appreciate it and hope you had a good experience 😃 |
🥳 Thank you so much, @JonnyBurger for all the support! I remember hearing someone say that "the best thing about open source is the community" and I have time and again said the same thing about you in our Open-Source dev community's discord. |
@exitflynn Thanks a lot! 🚀 🚀 🚀 |
@exitflynn For statistics, can you also estimate how long you spent on this PR in total? 😊 |
@JonnyBurger let's see, I actually started working on the issue on day 5 of being assigned (hectic week), spent a day or two to setup the project and get a basic feel of how React works. Including all the debugging (spent a lot of time on the |
@exitflynn Okay, that is quite an outlier but I'll write you down as 35 hours then, hope that is seems about right! Thanks a lot for your effort! |
this references issue #808
I tried implementing as advised and came up with the following. Am I moving in the right direction? I'll be extending this to the
lambda
andstill
commands and documenting afterwards.IssueHunt Summary
Referenced issues
This pull request has been submitted to:
width
andheight
& FPS