Skip to content

Removes a broken link#22504

Merged
asmorkalov merged 1 commit intoopencv:3.4from
hflemmen:fix-broken-link
Sep 14, 2022
Merged

Removes a broken link#22504
asmorkalov merged 1 commit intoopencv:3.4from
hflemmen:fix-broken-link

Conversation

@hflemmen
Copy link
Copy Markdown
Contributor

Pull Request Readiness Checklist

This pull request removes a reference to a link that appears to be broken. Instead of being useful, it directs the user to some casino site. I guess that the domain owner has changed and this link should be replaced or removed entirely. I don't know what to replace it with, so I suggest removing it for now.

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

PS: I did not see anything in your contribution guidelines about fixing errors in the docs, so I did this. My apologies if this was the wrong place to notify you.

@alalek
Copy link
Copy Markdown
Member

alalek commented Sep 12, 2022

Thank you!

Please target this patch to "3.4" branch: https://github.com/opencv/opencv/wiki/Branches#rebasing-a-pull-request-between-branches
It makes sense to switch URL on the archive page: https://web.archive.org/web/20220316062600/http://www.fourcc.org/codecs.php

VideoWriter::fourcc('P','I','M','1') is a MPEG-1 codec, VideoWriter::fourcc('M','J','P','G') is a
motion-jpeg codec etc. List of codes can be obtained at [Video Codecs by
FOURCC](http://www.fourcc.org/codecs.php) page. FFMPEG backend with MP4 container natively uses
motion-jpeg codec etc. FFMPEG backend with MP4 container natively uses
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I propose to replace the link with some other long-living resource like MSDN: https://docs.microsoft.com/en-us/windows/win32/medfound/video-fourccs

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

long-living resource

There are tons of dead links from

microsoft.com


Anyway, content is different. So this is a wrong way.
With same effect we could place wiki page of FOURCC (which is wrong too).

@hflemmen hflemmen changed the base branch from 4.x to 3.4 September 12, 2022 14:19
@hflemmen
Copy link
Copy Markdown
Contributor Author

I agree with @asmorkalov that it should be a maintained resource, but the MSDN list is much smaller. I therefore added the wayback machine link. I guess that these formats changes quite rarely and maybe fourcc has got their domain back before it becomes a problem. I can change it again if you know of other reliable maintained lists.

I also rebased it onto 3.4.

@asmorkalov
Copy link
Copy Markdown
Contributor

The link does not work for me, just redirect to main page. I think MSDN is enough for popular codecs and it gives enough info to find more values.

@hflemmen
Copy link
Copy Markdown
Contributor Author

Strange, it works for me. (and it is the same as @alalek sent above).

Anyway, I changed it to MSDN per your request.

Copy link
Copy Markdown
Contributor

@asmorkalov asmorkalov left a comment

Choose a reason for hiding this comment

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

👍 Thanks a lot for the contribution! I appliend addition from @catree, fixed formatting a bit and squashed commits.

@asmorkalov asmorkalov merged commit 377fdf5 into opencv:3.4 Sep 14, 2022
@asmorkalov asmorkalov self-assigned this Sep 14, 2022
@alalek alalek mentioned this pull request Oct 15, 2022
@alalek alalek mentioned this pull request Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: documentation Documentation fix or update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants