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

Az/chunk size #1315

Merged
merged 6 commits into from
Mar 26, 2020
Merged

Az/chunk size #1315

merged 6 commits into from
Mar 26, 2020

Conversation

azhavoro
Copy link
Contributor

No description provided.

@azhavoro azhavoro requested a review from nmanovic March 25, 2020 10:58
nmanovic
nmanovic previously approved these changes Mar 25, 2020
Copy link
Contributor

@nmanovic nmanovic left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -0,0 +1,18 @@
# Generated by Django 2.2.10 on 2020-03-24 12:22
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we splash the migration?

@nmanovic nmanovic dismissed their stale review March 25, 2020 13:57

have some questions

if isinstance(compressed_chunk_writer, ZipCompressedChunkWriter):
w, h = extractor.get_image_size()
area = h * w
if area <= 1920 * 1080:
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it make sense to have for small resolutions bigger chunk? Something like max(1920 * 1080 * 18 // area * 2, 2)

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe better to have clip(1920 * 1080 * 18 // area * 2, 2, 72)

@@ -252,25 +253,33 @@ def update_progress(progress):
compressed_chunk_writer = compressed_chunk_writer_class(db_data.image_quality)
original_chunk_writer = original_chunk_writer_class(100)

# calculate chunk size if it isn't specified
if db_data.chunk_size is None:
Copy link
Contributor

@nmanovic nmanovic Mar 26, 2020

Choose a reason for hiding this comment

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

@azhavoro , will it be critical for current video decoder if somebody specify a wrong chunk_size (too small or even)?

@@ -52,7 +52,27 @@ const webConfig = {
sourceType: 'unambiguous',
},
},
}],
}, {
test: /3rdparty\/.*\.worker\.js$/,
Copy link
Contributor

Choose a reason for hiding this comment

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

@azhavoro , why the change is necessary for the patch?

@nmanovic nmanovic merged commit 5f0ad2a into az/data_chunk_streaming Mar 26, 2020
@nmanovic nmanovic deleted the az/chunk_size branch March 26, 2020 09:30
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