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

[GSoC2024] added better error message when video resolution too large #7549

Merged
merged 9 commits into from
Mar 11, 2024

Conversation

Viditagarwal7479
Copy link
Contributor

On uploading video files exceeding the maximum resolution supported by OpenH264, it raises error while trying to decode the video. To handle this more gracefully I have added dimension check based on which it raises an error beforehand with appropriate message.

Motivation and context

Fixes #7425

Checklist

  • I submit my changes into the develop branch
    - [ ] I have created a changelog fragment
    - [ ] I have updated the documentation accordingly
    - [ ] I have added tests to cover my changes
  • I have linked related issues (see GitHub docs)
    - [ ] I have increased versions of npm packages if it is necessary
    (cvat-canvas,
    cvat-core,
    cvat-data and
    cvat-ui)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

Copy link

codecov bot commented Mar 5, 2024

Codecov Report

Merging #7549 (b455bcd) into develop (7a1fc3f) will decrease coverage by 0.01%.
The diff coverage is 75.00%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #7549      +/-   ##
===========================================
- Coverage    83.45%   83.45%   -0.01%     
===========================================
  Files          373      373              
  Lines        39742    39746       +4     
  Branches      3741     3741              
===========================================
+ Hits         33168    33171       +3     
- Misses        6574     6575       +1     
Components Coverage Δ
cvat-ui 79.27% <ø> (+<0.01%) ⬆️
cvat-server 87.31% <75.00%> (-0.01%) ⬇️

@nmanovic nmanovic changed the title added better error message when video resolution too large [GSoC2024] added better error message when video resolution too large Mar 6, 2024
@Viditagarwal7479
Copy link
Contributor Author

Hey @Marishka17 a gentle reminder to review this PR.

Copy link
Contributor

@Marishka17 Marishka17 left a comment

Choose a reason for hiding this comment

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

Hello, @Viditagarwal7479,
Thank you for your contribution! Could you please fix minor comments?

cvat/apps/engine/media_extractors.py Outdated Show resolved Hide resolved
cvat/apps/engine/media_extractors.py Outdated Show resolved Hide resolved
cvat/apps/engine/media_extractors.py Outdated Show resolved Hide resolved
cvat/apps/engine/media_extractors.py Outdated Show resolved Hide resolved
Copy link
Contributor

@Marishka17 Marishka17 left a comment

Choose a reason for hiding this comment

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

LGTM

@Viditagarwal7479
Copy link
Contributor Author

Hi @Marishka17, how will this PR get merged after your approval?

@Marishka17 Marishka17 merged commit 58b6bad into cvat-ai:develop Mar 11, 2024
34 checks passed
@Viditagarwal7479 Viditagarwal7479 deleted the H264_size branch March 11, 2024 11:03
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

Successfully merging this pull request may close these issues.

CVAT Error working with very large resolution files (4096 x 3008). OpenH264 limitation.
2 participants