-
Notifications
You must be signed in to change notification settings - Fork 15
Interim fix: recognize M4A/AAC as valid encoding type, warn content validation unsupported #1637
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
Open
jordanpadams
wants to merge
1
commit into
main
Choose a base branch
from
issue/1635-m4a-aac-encoding-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <?xml-model href="https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1K00.sch" schematypens="http://purl.oclc.org/dsdl/schematron"?> | ||
|
|
||
| <Product_Observational xmlns="http://pds.nasa.gov/pds4/pds/v1" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation=" | ||
| http://pds.nasa.gov/pds4/pds/v1 https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1K00.xsd"> | ||
|
|
||
| <Identification_Area> | ||
| <logical_identifier>urn:nasa:pds:audio_example:data:sample_m4a_audio</logical_identifier> | ||
| <version_id>1.0</version_id> | ||
| <title>Sample M4A/AAC Audio File</title> | ||
| <information_model_version>1.20.0.0</information_model_version> | ||
| <product_class>Product_Observational</product_class> | ||
| </Identification_Area> | ||
|
|
||
| <Observation_Area> | ||
| <Time_Coordinates> | ||
| <start_date_time>2024-01-01Z</start_date_time> | ||
| <stop_date_time>2024-01-01Z</stop_date_time> | ||
| </Time_Coordinates> | ||
| <Investigation_Area> | ||
| <name>Test Mission</name> | ||
| <type>Mission</type> | ||
| <Internal_Reference> | ||
| <lid_reference>urn:nasa:pds:context:investigation:mission.mars2020</lid_reference> | ||
| <reference_type>data_to_investigation</reference_type> | ||
| </Internal_Reference> | ||
| </Investigation_Area> | ||
| <Observing_System> | ||
| <Observing_System_Component> | ||
| <name>Test Instrument</name> | ||
| <type>Instrument</type> | ||
| <Internal_Reference> | ||
| <lid_reference>urn:nasa:pds:context:instrument:mars2020.camera</lid_reference> | ||
| <reference_type>is_instrument</reference_type> | ||
| </Internal_Reference> | ||
| </Observing_System_Component> | ||
| </Observing_System> | ||
| <Target_Identification> | ||
| <name>Mars</name> | ||
| <type>Planet</type> | ||
| <Internal_Reference> | ||
| <lid_reference>urn:nasa:pds:context:target:planet.mars</lid_reference> | ||
| <reference_type>data_to_target</reference_type> | ||
| </Internal_Reference> | ||
| </Target_Identification> | ||
| </Observation_Area> | ||
|
|
||
| <File_Area_Observational> | ||
| <File> | ||
| <file_name>sample.m4a</file_name> | ||
| <creation_date_time>2024-01-01T00:00:00</creation_date_time> | ||
| </File> | ||
| <Encoded_Audio> | ||
| <local_identifier>sample_audio</local_identifier> | ||
| <offset unit="byte">0</offset> | ||
| <encoding_standard_id>M4A/AAC</encoding_standard_id> | ||
| <description>Sample M4A audio file</description> | ||
| </Encoded_Audio> | ||
| </File_Area_Observational> | ||
| </Product_Observational> |
Binary file not shown.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
M4A files often have the extension
.aacso should this beM4A(Arrays.asList("m4a", "aac")),?Also, since AAC is the codec and M4A is the container, would the enum be better off known as
M4A_AAC(similar to the string detected later, line 38, asM4A/AAC)?