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

Add support for ac3 and ec3 #37 #69

Merged
merged 2 commits into from
Mar 24, 2021
Merged

Conversation

ans-negi
Copy link
Contributor

No description provided.

@google-cla
Copy link

google-cla bot commented Mar 21, 2021

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@ans-negi
Copy link
Contributor Author

#37

@ans-negi
Copy link
Contributor Author

@googlebot I signed it!

@joeyparrish
Copy link
Member

This looks good to me, but I have one question: On what did you base the bitrate choices for ac3 and ec3?

@ans-negi
Copy link
Contributor Author

ans-negi commented Mar 22, 2021

@joeyparrish Hey they were recommended bitrates at FFmpeg site , so from there I took stereo values.
And I realised for Opus and aac there was a relation between stereo and surround values, so to calculate surround value for ac-3 and ec-3 I used same formula (160)*(6)/(2)(2) == 240k

@avelad
Copy link

avelad commented Mar 22, 2021

I would like more to take the values that Apple gives for Reference in HLS.
https://developer.apple.com/documentation/http_live_streaming/hls_authoring_specification_for_apple_devices

image

What do you think?

@joeyparrish
Copy link
Member

@avelad, how about this: We adjust the defaults to be more similar to Apple's recommendations, and we also create a explicit bitrate config file that exactly matches what Apple suggests, including for video.

Here's a compromise between our existing values (extrapolated from Google internal recommendations) and Apple's recommendations:

Num. Channels AAC Bitrate Opus Bitrate AC3 Bitrate EAC3 Bitrate
2 128 64 192 96
6 256 128 384 192

@avelad, @ans-negi, if y'all both agree, let's use the value above as the default.

@avelad
Copy link

avelad commented Mar 22, 2021

I agree!

@ans-negi
Copy link
Contributor Author

@joeyparrish Yeah that makes sense, I have updated the defaults.

@joeyparrish joeyparrish merged commit e9d47be into shaka-project:master Mar 24, 2021
@joeyparrish
Copy link
Member

Thanks for your contribution!

@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants