New issue
Advanced search Search tips

Issue 618762 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

media_unittest BasicPlaybackOpusOggTrimmingHashed uses .webm file

Project Member Reported by mbjorge@chromium.org, Jun 9 2016

Issue description

https://cs.chromium.org/chromium/src/media/test/pipeline_integration_test.cc?q=BasicPlaybackOpu&sq=package:chromium&l=932

Introduced here: https://codereview.chromium.org/1260193005

Should use 'opus-trimming-test.ogg', but when I tried changing this locally the test fails with:

../../media/test/pipeline_integration_test.cc:950: Failure
Value of: GetAudioHash()
  Actual: "-12.44,-13.97,-13.23,-11.62,-10.57,-10.92,"
Expected: kOpusEndTrimmingHash_3
Which is: "-13.28,-14.35,-13.67,-11.68,-10.18,-10.46,"
[  FAILED  ] PipelineIntegrationTest.BasicPlaybackOpusOggTrimmingHashed (391 ms)

 
Cc: dalecur...@chromium.org
Owner: chcunningham@chromium.org
Status: Assigned (was: Untriaged)
Hmm, strange, chcunningham@ since you've looked over the discard helper most recently, want to see what's going on?
Little confused... both the ogg and webm file contain opus. Why should we be using the ogg file?

Its possible that the ogg and webm file have slightly different encoded opus data, leading to different hash. 
It's highly possible we shouldn't be.
Ah, perhaps we shouldn't be. I was basing it off of the names and the presence of the opus-trimming-test.ogg file that is not getting used anywhere (that I could find).

BasicPlaybackOpusOggTrimmingHashed

BasicPlaybackOpusWebmTrimmingHashed

Currently these two functions are completely identical (as far as I can see), so I think either one can be deleted or one should use the other file
No, you're right - my mistake. 

I think the bug is legit actually. I just converted the ogg and webm file to wav files and found no differences... so I suspect they are encoded the same and we are trimming slightly differently. 
Possibly related: Issue 456252

Sign in to add a comment