-
Notifications
You must be signed in to change notification settings - Fork 1
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 an option to pass AudioSpecificConfig() #46
Conversation
8088528
to
edbfaf6
Compare
lib/membrane/aac/parser.ex
Outdated
@@ -8,6 +8,8 @@ defmodule Membrane.AAC.Parser do | |||
If PTS is absent, it calculates and puts one based on the sample rate. | |||
""" | |||
use Membrane.Filter | |||
require Membrane.Logger | |||
alias Hex.State |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need that? :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoops, lsp added that
lib/membrane/aac/parser.ex
Outdated
default: nil, | ||
description: """ | ||
Decoder configuration data AudioSpecificConfig() - if received | ||
from a side channel it should be provided via this option. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from a side channel it should be provided via this option. | |
via side channel it should be provided via this option. |
lib/membrane/aac/parser.ex
Outdated
spec: binary() | nil, | ||
default: nil, | ||
description: """ | ||
Decoder configuration data AudioSpecificConfig() - if received |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can also refer to ISO/IEC 14496-3 here
lib/membrane/aac/parser.ex
Outdated
be additionally provided and will be encoded in the `esds`. If not known they should be set to 0. | ||
Determines which config spec will be generated and included in output stream format as `config`: | ||
- `esds` - the field will be an `esds` MP4 atom. `avg_bit_rate` and `max_bit_rate` can be | ||
additionally provided and will be included in the `esds`. If not known they should be set to 0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
additionally provided and will be included in the `esds`. If not known they should be set to 0. | |
additionally provided and will be included in the `esds`. If not provided, they will be set to 0. |
lib/membrane/aac/parser.ex
Outdated
non_nil_config -> | ||
Membrane.Logger.warning( | ||
"AAC config provided both with stream_format and options, ignoring the latter" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about a case where stream_format.config
is not nil and state.audio_specific_config
is nil? We shouldn't print that message then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would also consider rewriting it with some cond
clause as I think it could be more descriptive if you wrote something like: config == nil and state.audio_specific_config == nil
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥇
No description provided.