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

Initial implementation #1

Merged
merged 13 commits into from
Dec 9, 2024
Merged

Initial implementation #1

merged 13 commits into from
Dec 9, 2024

Conversation

varsill
Copy link
Collaborator

@varsill varsill commented Nov 13, 2024

TODO:

  • Add tests

@varsill varsill force-pushed the initial_implementation branch from 6fad25f to d013850 Compare November 14, 2024 13:37
@varsill varsill requested a review from FelonEkonom November 18, 2024 13:16
@@ -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
Copy link
Member

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{}

end

defp do_plug_audio_transcoding(builder, %RemoteStream{content_format: AAC}, %AAC{}) do
builder
Copy link
Member

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{}

@varsill varsill requested a review from FelonEkonom November 25, 2024 13:34
README.md Outdated Show resolved Hide resolved
mix.exs Outdated Show resolved Hide resolved
lib/transcoder.ex Show resolved Hide resolved
lib/transcoder/audio.ex Outdated Show resolved Hide resolved
mix.exs Outdated Show resolved Hide resolved
@varsill varsill requested a review from FelonEkonom December 2, 2024 13:24
lib/transcoder.ex Outdated Show resolved Hide resolved
@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
Copy link
Member

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

varsill and others added 2 commits December 9, 2024 14:50
@varsill varsill merged commit 6454a00 into master Dec 9, 2024
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