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

Look for duration in format if not available in stream #11

Conversation

FredHaa
Copy link
Contributor

@FredHaa FredHaa commented May 3, 2023

Fixes https://github.com/mediacatch/s3-upload-api/issues/124

We first check audio stream for duration in case video and audio streams are not of same length.
If duration isn't found the format field is used as backup.

@FredHaa FredHaa requested a review from sumandari May 3, 2023 09:14
@codecov
Copy link

codecov bot commented May 3, 2023

Codecov Report

Merging #11 (efe0031) into main (2b31133) will increase coverage by 0.42%.
The diff coverage is 88.23%.

@@            Coverage Diff             @@
##             main      #11      +/-   ##
==========================================
+ Coverage   84.82%   85.25%   +0.42%     
==========================================
  Files           3        3              
  Lines         145      156      +11     
==========================================
+ Hits          123      133      +10     
- Misses         22       23       +1     
Impacted Files Coverage Δ
src/mediacatch_s2t/uploader.py 78.50% <77.77%> (+0.07%) ⬆️
tests/test_uploader.py 100.00% <100.00%> (ø)

Copy link
Contributor

@sumandari sumandari left a comment

Choose a reason for hiding this comment

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

LGTM

@FredHaa FredHaa merged commit 2e3e35f into main May 3, 2023
@FredHaa FredHaa deleted the 124-current-uploader-package-thrown-error-during-reading-ffprobe-stream-data branch May 3, 2023 10:07
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.

2 participants