diff mbox

[FFmpeg-devel] fate/als: add floating point decoding test

Message ID 20160908165443.GW4692@nb4
State Not Applicable
Headers show

Commit Message

Michael Niedermayer Sept. 8, 2016, 4:54 p.m. UTC
On Sun, Jul 17, 2016 at 07:25:31PM +0530, Umair Khan wrote:
> On Sun, Jul 17, 2016 at 1:50 PM, Thilo Borgmann <thilo.borgmann@mail.de> wrote:
> > Hi,
> >
> >> From e172e333807b4b3b2558a1ffa735ade79a3f3e36 Mon Sep 17 00:00:00 2001
> >> From: Umair Khan <omerjerk@gmail.com>
> >> Date: Sun, 17 Jul 2016 13:05:49 +0530
> >> Subject: [PATCH 1/1] fate/als: add floating point decoding test
> >>
> >> Signed-off-by: Umair Khan <omerjerk@gmail.com>
> >> ---
> >>  tests/fate/als.mak | 3 +++
> >>  1 file changed, 3 insertions(+)
> >>
> >> diff --git a/tests/fate/als.mak b/tests/fate/als.mak
> >> index ff2badf..2847a8d 100644
> >> --- a/tests/fate/als.mak
> >> +++ b/tests/fate/als.mak
> >> @@ -7,5 +7,8 @@ endef
> >>
> >>  $(foreach N,$(ALS_SUITE),$(eval $(call FATE_ALS_SUITE,$(N))))
> >>
> >> ++FATE_ALS += fate-mpeg4-als-conformance-07
> >
> > Just add "07" to the ALS_SUITE.
> >
> > You also need to add a new "tests/ref/fate/mpeg4-als-conformance-07"
> > file containing the correct CRC for that conformance file.
> >
> > Please setup a local FATE suite and test your patch before resubmitting.
> 
> Tested.
> Updated patch attached.
> 
> -Umair

>  fate/als.mak                      |    3 +++
>  ref/fate/mpeg4-als-conformance-07 |    1 +
>  2 files changed, 4 insertions(+)
> 1a677b6670ab1214c568ea495efd182a285dc6e3  0001-fate-als-add-floating-point-decoding-test.patch
> From 4295fc1a5f56d81e9b498bece4aed36197328763 Mon Sep 17 00:00:00 2001
> From: Umair Khan <omerjerk@gmail.com>
> Date: Sun, 17 Jul 2016 13:05:49 +0530
> Subject: [PATCH 1/1] fate/als: add floating point decoding test
> 
> Signed-off-by: Umair Khan <omerjerk@gmail.com>
> ---
>  tests/fate/als.mak                      | 3 +++
>  tests/ref/fate/mpeg4-als-conformance-07 | 1 +
>  2 files changed, 4 insertions(+)
>  create mode 100644 tests/ref/fate/mpeg4-als-conformance-07
> 
> diff --git a/tests/fate/als.mak b/tests/fate/als.mak
> index ff2badf..a67302c 100644
> --- a/tests/fate/als.mak
> +++ b/tests/fate/als.mak
> @@ -7,5 +7,8 @@ endef
>  
>  $(foreach N,$(ALS_SUITE),$(eval $(call FATE_ALS_SUITE,$(N))))
>  
> +FATE_ALS += fate-mpeg4-als-conformance-07
> +fate-mpeg4-als-conformance-07: CMD = crc -i $(TARGET_SAMPLES)/lossless-audio/als_07_2ch192k32bF.mp4

fails on arm

Test mpeg4-als-conformance-07 failed. Look at tests/data/fate/mpeg4-als-conformance-07.err for details.
make: *** [fate-mpeg4-als-conformance-07] Error 1

interrestingly it does not fail on mips

[...]

Comments

Umair Khan Sept. 12, 2016, 7:30 a.m. UTC | #1
On Thu, Sep 8, 2016 at 10:24 PM, Michael Niedermayer
<michael@niedermayer.cc> wrote:
> On Sun, Jul 17, 2016 at 07:25:31PM +0530, Umair Khan wrote:
>> On Sun, Jul 17, 2016 at 1:50 PM, Thilo Borgmann <thilo.borgmann@mail.de> wrote:
>> > Hi,
>> >
>> >> From e172e333807b4b3b2558a1ffa735ade79a3f3e36 Mon Sep 17 00:00:00 2001
>> >> From: Umair Khan <omerjerk@gmail.com>
>> >> Date: Sun, 17 Jul 2016 13:05:49 +0530
>> >> Subject: [PATCH 1/1] fate/als: add floating point decoding test
>> >>
>> >> Signed-off-by: Umair Khan <omerjerk@gmail.com>
>> >> ---
>> >>  tests/fate/als.mak | 3 +++
>> >>  1 file changed, 3 insertions(+)
>> >>
>> >> diff --git a/tests/fate/als.mak b/tests/fate/als.mak
>> >> index ff2badf..2847a8d 100644
>> >> --- a/tests/fate/als.mak
>> >> +++ b/tests/fate/als.mak
>> >> @@ -7,5 +7,8 @@ endef
>> >>
>> >>  $(foreach N,$(ALS_SUITE),$(eval $(call FATE_ALS_SUITE,$(N))))
>> >>
>> >> ++FATE_ALS += fate-mpeg4-als-conformance-07
>> >
>> > Just add "07" to the ALS_SUITE.
>> >
>> > You also need to add a new "tests/ref/fate/mpeg4-als-conformance-07"
>> > file containing the correct CRC for that conformance file.
>> >
>> > Please setup a local FATE suite and test your patch before resubmitting.
>>
>> Tested.
>> Updated patch attached.
>>
>> -Umair
>
>>  fate/als.mak                      |    3 +++
>>  ref/fate/mpeg4-als-conformance-07 |    1 +
>>  2 files changed, 4 insertions(+)
>> 1a677b6670ab1214c568ea495efd182a285dc6e3  0001-fate-als-add-floating-point-decoding-test.patch
>> From 4295fc1a5f56d81e9b498bece4aed36197328763 Mon Sep 17 00:00:00 2001
>> From: Umair Khan <omerjerk@gmail.com>
>> Date: Sun, 17 Jul 2016 13:05:49 +0530
>> Subject: [PATCH 1/1] fate/als: add floating point decoding test
>>
>> Signed-off-by: Umair Khan <omerjerk@gmail.com>
>> ---
>>  tests/fate/als.mak                      | 3 +++
>>  tests/ref/fate/mpeg4-als-conformance-07 | 1 +
>>  2 files changed, 4 insertions(+)
>>  create mode 100644 tests/ref/fate/mpeg4-als-conformance-07
>>
>> diff --git a/tests/fate/als.mak b/tests/fate/als.mak
>> index ff2badf..a67302c 100644
>> --- a/tests/fate/als.mak
>> +++ b/tests/fate/als.mak
>> @@ -7,5 +7,8 @@ endef
>>
>>  $(foreach N,$(ALS_SUITE),$(eval $(call FATE_ALS_SUITE,$(N))))
>>
>> +FATE_ALS += fate-mpeg4-als-conformance-07
>> +fate-mpeg4-als-conformance-07: CMD = crc -i $(TARGET_SAMPLES)/lossless-audio/als_07_2ch192k32bF.mp4
>
> fails on arm

How do I see what's the actual error?
My code was definitely supposed to be platform independent. :o

> --- tests/ref/fate/mpeg4-als-conformance-07     2016-09-08 18:36:16.095167935 +0200
> +++ tests/data/fate/mpeg4-als-conformance-07    2016-09-08 18:49:32.219184707 +0200
> @@ -1 +1 @@
> -CRC=0x01503df3
> +CRC=0x81b53f05
> Test mpeg4-als-conformance-07 failed. Look at tests/data/fate/mpeg4-als-conformance-07.err for details.
> make: *** [fate-mpeg4-als-conformance-07] Error 1
>
> interrestingly it does not fail on mips

I'm not sure how to go ahead to fix this. Any tips?

- Umair
Thilo Borgmann Sept. 12, 2016, 8:13 a.m. UTC | #2
Am 12.09.16 um 09:30 schrieb Umair Khan:
> On Thu, Sep 8, 2016 at 10:24 PM, Michael Niedermayer
> <michael@niedermayer.cc> wrote:
>> On Sun, Jul 17, 2016 at 07:25:31PM +0530, Umair Khan wrote:
>>> On Sun, Jul 17, 2016 at 1:50 PM, Thilo Borgmann <thilo.borgmann@mail.de> wrote:
>>>> Hi,
>>>>
>>>>> From e172e333807b4b3b2558a1ffa735ade79a3f3e36 Mon Sep 17 00:00:00 2001
>>>>> From: Umair Khan <omerjerk@gmail.com>
>>>>> Date: Sun, 17 Jul 2016 13:05:49 +0530
>>>>> Subject: [PATCH 1/1] fate/als: add floating point decoding test
>>>>>
>>>>> Signed-off-by: Umair Khan <omerjerk@gmail.com>
>>>>> ---
>>>>>  tests/fate/als.mak | 3 +++
>>>>>  1 file changed, 3 insertions(+)
>>>>>
>>>>> diff --git a/tests/fate/als.mak b/tests/fate/als.mak
>>>>> index ff2badf..2847a8d 100644
>>>>> --- a/tests/fate/als.mak
>>>>> +++ b/tests/fate/als.mak
>>>>> @@ -7,5 +7,8 @@ endef
>>>>>
>>>>>  $(foreach N,$(ALS_SUITE),$(eval $(call FATE_ALS_SUITE,$(N))))
>>>>>
>>>>> ++FATE_ALS += fate-mpeg4-als-conformance-07
>>>>
>>>> Just add "07" to the ALS_SUITE.
>>>>
>>>> You also need to add a new "tests/ref/fate/mpeg4-als-conformance-07"
>>>> file containing the correct CRC for that conformance file.
>>>>
>>>> Please setup a local FATE suite and test your patch before resubmitting.
>>>
>>> Tested.
>>> Updated patch attached.
>>>
>>> -Umair
>>
>>>  fate/als.mak                      |    3 +++
>>>  ref/fate/mpeg4-als-conformance-07 |    1 +
>>>  2 files changed, 4 insertions(+)
>>> 1a677b6670ab1214c568ea495efd182a285dc6e3  0001-fate-als-add-floating-point-decoding-test.patch
>>> From 4295fc1a5f56d81e9b498bece4aed36197328763 Mon Sep 17 00:00:00 2001
>>> From: Umair Khan <omerjerk@gmail.com>
>>> Date: Sun, 17 Jul 2016 13:05:49 +0530
>>> Subject: [PATCH 1/1] fate/als: add floating point decoding test
>>>
>>> Signed-off-by: Umair Khan <omerjerk@gmail.com>
>>> ---
>>>  tests/fate/als.mak                      | 3 +++
>>>  tests/ref/fate/mpeg4-als-conformance-07 | 1 +
>>>  2 files changed, 4 insertions(+)
>>>  create mode 100644 tests/ref/fate/mpeg4-als-conformance-07
>>>
>>> diff --git a/tests/fate/als.mak b/tests/fate/als.mak
>>> index ff2badf..a67302c 100644
>>> --- a/tests/fate/als.mak
>>> +++ b/tests/fate/als.mak
>>> @@ -7,5 +7,8 @@ endef
>>>
>>>  $(foreach N,$(ALS_SUITE),$(eval $(call FATE_ALS_SUITE,$(N))))
>>>
>>> +FATE_ALS += fate-mpeg4-als-conformance-07
>>> +fate-mpeg4-als-conformance-07: CMD = crc -i $(TARGET_SAMPLES)/lossless-audio/als_07_2ch192k32bF.mp4
>>
>> fails on arm
> 
> How do I see what's the actual error?

Go to fate.ffmpeg.org and you can find the log somewhere (I think).
I'm not sure but you might check out an emulator for AARCH64, for example qemu,
to test with.


-Thilo
diff mbox

Patch

--- tests/ref/fate/mpeg4-als-conformance-07     2016-09-08 18:36:16.095167935 +0200
+++ tests/data/fate/mpeg4-als-conformance-07    2016-09-08 18:49:32.219184707 +0200
@@ -1 +1 @@ 
-CRC=0x01503df3
+CRC=0x81b53f05