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

Preparing for 6.0.0 release #960

Open
wants to merge 50 commits into
base: master
Choose a base branch
from
Open

Preparing for 6.0.0 release #960

wants to merge 50 commits into from

Conversation

paulpv
Copy link
Member

@paulpv paulpv commented Jan 11, 2024

  • Tweak libndi-get.sh
  • Tweak CMakeLists.txt
  • Tweak readme
  • Bump OBS-NDI version to 6.0.0
  • Rebrand from Stéphane Lepin stephane.lepin@gmail.com to OBS-NDI Project obsndi@obsndiproject.com
  • Add Discord link in app
  • Major cleanup of strings
  • Update to NDI SDK 6.0.1
  • Update Config logic to match obs-websocket
  • Add a --obs-ndi-verbose command-line option to print out 'a' and 'v' for audio and video packets respectively

paulpv and others added 24 commits November 14, 2023 01:25
Also making Config code similar to `obs-websocket`'s code
...and not legacy NDI 4 `ndi_hwaccel`.
According to their docs and forum posts there is supposedly no way to un-set this.
The current code either packages a .msi **or** generates a .zip.
Many users prefer the zip (and it has the benefit of mitigating code signing warnings).
This change always generates the .zip file.
If `-BuildInstaller` is also specified then is **also** builds a .msi.
Also having urls launch a much more consistent way in output-settings, obs-ndi-filter, and obs-ndi-source.

Commenting out currently unused obs_log(...) method.
That method allocates and frees a formatting template every time it is called.
All just to prefix the plugin module name in a `blog` output.
obs-ndi `blog` already exhaustively prefix the module name, so this convenience function is unnecessary for now.
If logging consistency ever gets out of hand then this could be uncommented and used.
Also making Config code similar to `obs-websocket`'s code
...and not legacy NDI 4 `ndi_hwaccel`.
According to their docs and forum posts there is supposedly no way to un-set this.
The current code either packages a .msi **or** generates a .zip.
Many users prefer the zip (and it has the benefit of mitigating code signing warnings).
This change always generates the .zip file.
If `-BuildInstaller` is also specified then is **also** builds a .msi.
Also having urls launch a much more consistent way in output-settings, obs-ndi-filter, and obs-ndi-source.

Commenting out currently unused obs_log(...) method.
That method allocates and frees a formatting template every time it is called.
All just to prefix the plugin module name in a `blog` output.
obs-ndi `blog` already exhaustively prefix the module name, so this convenience function is unnecessary for now.
If logging consistency ever gets out of hand then this could be uncommented and used.
@paulpv paulpv force-pushed the develop branch 3 times, most recently from 23d2148 to 36330b5 Compare January 13, 2024 04:03
@Trouffman Trouffman added help wanted macos critical needs-testers Seeking Testers PRs with this label will package the plugin so that others can test windows linux (supported) labels May 10, 2024
@paulpv
Copy link
Member Author

paulpv commented May 10, 2024

For anyone reviewing this:
I think we are fine here, but just to be safe, please look out for any master code that I might have unintentionally reverted in this PR (ex: due to a possible merge mistake).
The only one that comes to mind is https://github.com/obs-ndi/obs-ndi/pull/954/files, but that looks fine to me in this PR, but I just wanted to be sure I didn't accidentally miss or revert anything.
This is a little complicated (but actual usual coding IMO) because some things on master I have already improved on this develop branch, but it is possible some more recent desired changes on master might have been reverted in this branch...ie possible logical conflicts.

I am 100% aware that this PR is non-trivial (I hesitate to call it "large"; I have seen some crazy large PRs way bigger than this) and there is a reason why PRs should be small.

Sorry for the below "rant"...

I also am not a big fan of the branching strategy used here that is probably all my fault.
Almost everyone opening PRs targets the default master branch (understandably because that is the default branch).
That complicates things when another branch, develop, is intended to be the leading edge next release.
This requires the usual day-to-day task of merging master back into develop.
This is not a big problem, but does open up the possibility of accidentally reverting changes on master if they conflict with similar changes on develop.

My main gripe about our branching is that I am of the personal understanding/camp/belief/religion that everything on our master branch should be [reasonably] immediately ready for release.
That may sound a little odd/backwards/misguided to many people smarter than me, but let me explain.

For the record, I work at a company that does the opposite: our master is leading edge code that may not be ready for release; when it finally is ready for release we create a release branch and then increment the master version number to the next release version number; we only ever release a build from the release branch.

  1. master = 1.2.0
  2. create 1.2.0 release branch
  3. increment master to 1.3.0

if 1.2.0 needs a patch, branch a 1.2.1 release branch from 1.2.0 and work and release that.
This seems similar to how OBS does it: https://github.com/obsproject/obs-studio/branches/all

My understanding of how many Open Source projects on GitHub work (but perhaps not OBS Studio) that get lots of contributors is that most of them only ever release from master.
In fact, GitHub calls this GitHub Flow: https://docs.github.com/en/get-started/using-github/github-flow

  1. fork repo
  2. on fork, branch feature from master
  3. work feature
  4. open PR to upstream master
  5. merge fork feature to upstream master
  6. This process repeats until eventually a release tag is created and a release is built and released
    Simple (but rarely are things always that simple)

This tells me that master should always be in a shippable state.
(Maybe there is a [not so] subtle difference between "should always be in a shippable state" and "should always be [reasonably] immediately ready for release"...the latter implies that all version numbers defined in the code are set/incremented correctly)

What this does not tell me or the uninformed reader/developer is how to actually release.
When a feature PR is merged to master, that contributor most likely did not increment in their branch any version number defined in the code on master.
So now the master still says it is the old version (ex: 1.2.3), but now it has new code in it and is still the old version number.
So now the version number on master needs to be incremented.
So now you [should] need to create a feature branch from master to increment the version number to 1.2.4 and then merge that back to master and THEN you can release the code.
I personally find this unintuitive, highly confusing, and non-ideal.
My understanding is that this is how most simple Open Source projects on GitHub work.
I would be wrong.

Speaking of I could be wrong, I think that is how the OBS-NDI repo has historically worked before I got involved.

When I started to get involved I unfortunately approached using this repo with a type of GitFlow mindset.
image

Simplified:

  1. branch develop from master
  2. branch feature1 from develop
  3. work feature1
  4. merge feature1 to develop
  5. branch feature2 from develop
  6. work feature2
  7. merge feature2 to develop
  8. prep develop for release
  9. merge develop to master
  10. release master

I am not going to get into any [religious] arguments about the pros or cons of GitFlow, I am just saying factually that I did try, right or wrong, to start using it in the OBS-NDI repo...and I kind-of regret that.

I now believe that GitFlow does not work very well in an Open Source project where most code contributors don't know to follow GitFlow. GitFlow would only work if everyone follows it, like at a small team at a company where everyone understands their Way Of Work and there are no outside contributors. If someone on a GitFlow team starts branching feature PRs from master (instead of develop) and merging them to master (instead of develop) then that entirely breaks GitFlow.

One way to mitigate this in an Open Source project might be to make the develop branch the default branch, but that might still confuse people; human nature seems to be that most non-professional developers instinctively just want to branch from master by default and may even intentionally go out of their way to change their PR from [the default] develop back to master.
I thought there once was a repo setting that allowed you to enforce GitFlow and define your branches, but I don't see that anymore.

People are going to be people. People are going to ignore GitFlow.

So, this is a big long rant to say that I am open to future healthy constructive conversations about a better git branching/releasing strategy for OBS-NDI, but unless I hear any better ideas I am going to stop using a develop branch and go back to using a basic GitHub Flow with its awkward [to me, unless I am probably missing something obvious] release steps.

Perhaps we may eventually go to a more OBS-Studio type of flow (and what I also use at work) of also having a release branch (RB), and when that RB is created then the master is incremented to the next version that will be eventually be released in the future.

Apologies again for the rant! :)

@paulpv paulpv force-pushed the develop branch 3 times, most recently from b78f822 to e29a7b0 Compare May 10, 2024 20:35
@Trouffman
Copy link
Collaborator

Tbh, if we want ppl to submit to a specific branch we have to really make it clear.
Example, even myself though that you were using the develop branch mostly for you, so contribution were sometimes sent to master instead.

I have no specific preference, as long as it is clear / documented on how to contribute.

@Trouffman
Copy link
Collaborator

Some update :
After reading through the changes support and suggestion.

I believe we should keep master for : whatever is the latest OFFICIAL tagged release. And push dev PR to the develop branch as initially expected. (to-do ; document in the dev wiki)

The main reasons are :
-> the github default repo Page will ALWAYS have the latest stable infos (Important! as this is what people will see first, and if we have a "massive" rework then, this can be done "easy peasy" in the develop branch without impacting regular (non dev/contrib) users.

Other main argument :

  • we refer to the install script directly from the repo (master branch) > If this was to change based on the "flavor of the moment", then that would be a pain.

And YES there might be time where we might have to update master branch even if this is not a full release. But this is an extrem use-case.

Correcting typos & nitpicking.
data/locale/en-US.ini Outdated Show resolved Hide resolved
data/locale/fr-FR.ini Outdated Show resolved Hide resolved
@paulpv
Copy link
Member Author

paulpv commented May 13, 2024

@Trouffman please review my recent translation updates.
Thanks

@paulpv paulpv requested a review from Trouffman May 13, 2024 06:13
@paulpv paulpv self-assigned this May 13, 2024
Trouffman
Trouffman previously approved these changes May 13, 2024
Copy link
Collaborator

@Trouffman Trouffman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The proposed translation works as well - (seems to be more consistent with previous translations)

@Trouffman Trouffman dismissed their stale review May 13, 2024 16:42

that was for the translation only - still have 2 files to review

NDIPlugin.SourceProps.LatencyMode="Latency Mode"
NDIPlugin.SourceProps.LatencyMode.Normal="Normal (safest/recommended)"
NDIPlugin.SourceProps.LatencyMode.Low="Low"
NDIPlugin.SourceProps.LatencyMode.Lowest="Lowest (unbuffered; Alpha channel not supported)"
NDIPlugin.SourceProps.Audio="Enable audio"
NDIPlugin.SourceProps.PTZ="Pan Tilt Zoom"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is confusing when displayed in the UI.
Should be : PTZ control

Copy link
Collaborator

@Trouffman Trouffman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seem that the basics are working.
I have tested getting & sending on

  • MacOS - Apple Silicon

Left to test : win10-11 & linux

PTZ could not be tested.

@Trouffman Trouffman added this to the 6.0.0 milestone May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
critical help wanted linux (supported) macos needs-testers Seeking Testers PRs with this label will package the plugin so that others can test windows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants