-
Notifications
You must be signed in to change notification settings - Fork 0
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
Initial implementation #1
Conversation
…t specs are not created when second stream format arrives
6fad25f
to
d013850
Compare
lib/transcoder/audio.ex
Outdated
@@ -34,7 +48,11 @@ defmodule Boombox.Transcoder.Audio do | |||
end | |||
|
|||
defp do_plug_audio_transcoding(builder, %RemoteStream{content_format: Opus}, %Opus{}) do | |||
builder |> child(:opus_parser, Opus.Parser) | |||
builder |
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 cannot remove plugging Opus.Parser
, the output stream format will remain %RemoteStream{content_format: Opus}
but it should be %Opus{}
lib/transcoder/audio.ex
Outdated
end | ||
|
||
defp do_plug_audio_transcoding(builder, %RemoteStream{content_format: AAC}, %AAC{}) do | ||
builder |
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.
We need a parser here, to change stream format from RemoteStream
to %AAC{}
test/integration_test.exs
Outdated
@test_cases @video_cases ++ @audio_cases | ||
|
||
Enum.map(@test_cases, fn test_case -> | ||
test "if #{inspect(test_case.input_format)} stream is transcoded to #{inspect(test_case.output_format)}" do |
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.
This test should have a different name if the input format is the same as the output format, because the stream is not transcoded in such a scenario
Co-authored-by: Feliks Pobiedziński <[email protected]>
TODO: