-
Notifications
You must be signed in to change notification settings - Fork 11
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
As a user, I want to validate MP4/H.264/AAC encoded video with audio as observational data #605
Comments
Taking the video from this post #604 and a free audio file "SCIShip_Spaceship passage 1 (ID 1971)_BSB.wav" from https://bigsoundbank.com, I combined them in avidemux which can simply combine the video (no change or pass-thru) with the wav file converting it to AAC on output. ingenuity_sol120_30fps_crf13_fakeAudioAAC.mp4The added sound is fake! There is no audio for ingenuity. |
Here are two sibling raccoons wrestling at 3 am from my house. The sound is just static but the video is H.264 and the audio AAC. 6109045024.mp4 |
@thareUSGS so how would we label this file? basically just have this:
would this basically be the same for Video too? Or would you have both Audio and Video in the label? |
@al-niessner here is an example label. example.xml.txt. will need to change the filename referenced to match the sample files above, but awaiting response from Trent. |
offset should be 0 since we are pointing to the "container" of video only or video/audio looks like you found the example from the jira ticket. But I think we need IM "K" to fix the schema links in that example. |
Using the provided example:
Does fixing the second and third errors as stated match with your expectations or should the third error be fixed some other way? |
With respect to audio: the example has |
Here is a new example that references the latest version of the IM and standard_id = WAV
Let's use the WAV file referenced from here: https://bigsoundbank.com/sound-1971-spaceship-passage-1.html I think the WAV overlayed with the video can probably be used as a second example to #604, where we can have 1 example with just video, and another with video+audio. see Trent's comment above. |
@al-niessner βοΈ |
Sorry, a bit confused. I thought we had 2 items (one per issue) of video and video+audio. Are you saying we have 3: audio, video, video+audio? I get I remade the #604 video using same ffmpeg command but really shortened it. Do not need 10 MB of movie. Using raccoons for video+audio and will get your suggestion for audio. |
@al-niessner yeah per #605 (comment), it sounds like for |
1K00 does not seem to be available:
Different version like J or L maybe? |
@al-niessner right yes. forgot to mention. you will either need to include those LDDs in the GitHub repo and feed them in using the appropriate flags, or link to their dev locations in the schemaLocation and schematron references since they will not be released until the first week of June. PDS XSD: https://pds.nasa.gov/datastandards/schema/develop/pds/PDS4_PDS_1K00.xsd PROC XSD: https://raw.githubusercontent.com/pds-data-dictionaries/ldd-proc/main/build/release/1.20.0.0/PDS4_PROC_1K00_1300.xsd |
I am good with using local schema and schematron but do you want to commit it that way with a ticket to remove it when 1K00 becomes mainstream or just leave the work done here sit on a PR until 1K00 becomes mainstream to not set the dev schema/schematron that may change before going mainstream? I suggest the latter. |
Let's go with the latter then and we can keep this in draft until then |
@al-niessner can we add the example from this comment from @thareUSGS to test that the software is catching invalid video+audio files? Labeling should follow the same format as the others. |
Can but I used the ones I did not because they look good but because they are trimmed to a minimum for size purposes - I trimmed the ones given in this ticket even more just save space. Do not need GB test files for validate just 1 KB files that are representative. If the suggested files are too big, git will refuse them like it did for the data given for #500 that was around 65 MB. |
Are you saying you want validate to detect a text file name fake.mp4 is not an MP4? I thought you just wanted to handle the new extension and that it matched what was allowed for its supposed type (MP4) not that you wanted a binary validation that the file was MP4. As in fake.mp4 with the text "hahaha" would work just fine with the encoding_standard_id of MP4 (M4A now it seems). |
@al-niessner sorry for the lack of clarity. if possible, we did want to actually perform the binary content validation of the products using the libraries noted in the whitepaper / ticket. |
Checked for duplicates
Yes - I've already checked
π§βπ¬ User Persona(s)
Archive Manager
πͺ Motivation
...so that I the encoded video is valid and meets the standards outlined by ISO standard for MP4/H.264/AAC.
π Additional Details
See CCB-325 for more details. Info to validate in this doc: white_paper_v4.pdf (see
Testing for PDS MP4 Compliance
section)Acceptance Criteria
Given an properly labeled and valid MP4/H.264/AAC encoded audio product
When I perform validation of that data content
Then I expect validate to complete successfully
Given an properly labeled but invalid MP4/H.264/AAC encoded audio product
When I perform validation of that data content
Then I expect validate to fail with an ERROR
βοΈ Engineering Details
Related to NASA-PDS/pds4-information-model#616
The text was updated successfully, but these errors were encountered: