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

Support AVC3 #113

Merged
merged 4 commits into from
Aug 22, 2024
Merged

Support AVC3 #113

merged 4 commits into from
Aug 22, 2024

Conversation

mat-hek
Copy link
Member

@mat-hek mat-hek commented Jun 6, 2024

No description provided.

@mat-hek mat-hek self-assigned this Jul 31, 2024
@mat-hek mat-hek force-pushed the isom-avc3 branch 2 times, most recently from 3d6bfd2 to 31d5d22 Compare August 1, 2024 13:32
@mat-hek mat-hek marked this pull request as ready for review August 1, 2024 13:33
@mat-hek mat-hek requested a review from varsill August 1, 2024 13:33
@mat-hek mat-hek changed the title WIP avc3 Support AVC3 Aug 1, 2024
@@ -40,7 +40,7 @@ defmodule Membrane.MP4.Demuxer.ISOM do
any_of(
%Membrane.AAC{config: {:esds, _esds}},
%Membrane.H264{
stream_structure: {:avc1, _dcr},
stream_structure: {_avc, _dcr},
Copy link
Contributor

Choose a reason for hiding this comment

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

We should assert on _avc being either :avc1 or :avc3

state

# otherwise we can assume that output will be corrupted
true ->
raise "ISOM Muxer doesn't support variable parameters"
previos_format ->
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
previos_format ->
previous_format ->

# when stream format is duplicated - ignore
ctx.pads[pad].stream_format == stream_format ->
# Handle receiving a stream format of the same type
%^type{} ->
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it OK for us to accept change from :avc3 to :avc1? Wouldn't it require appending something to the DCR?

@mat-hek mat-hek requested a review from varsill August 22, 2024 07:55
lib/membrane_mp4/muxer/isom.ex Outdated Show resolved Hide resolved
Copy link
Contributor

@varsill varsill left a comment

Choose a reason for hiding this comment

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

🥇

@mat-hek mat-hek merged commit 2c439e6 into master Aug 22, 2024
0 of 3 checks passed
@mat-hek mat-hek deleted the isom-avc3 branch August 22, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants