I cannot play "mp4" and "m4a" files
Posted: Tue Mar 29, 2022 3:32 pm
I am using a code altered by me from example pipeline_sdcard_mp3_control (https://github.com/espressif/esp-adf/tr ... p3_control) and from example cli (https://github.com/espressif/esp-adf/tr ... amples/cli) with changes to work with USB (form example msc).
I made a "player" that can read/play mp3, wav, aac/m4a/mp4 files.
for "mp3", "wav" and "aac" files it works.
For mp4 and m4a files gives an error:
...
... file://usb/gs-16b-2c-44100hz.mp4
...
E (3353) M4A_PARSER: Get no data (line 1112)
E (3353) M4A_PARSER: read error, read bytes(-9) less than wanted read size (8), line 20
E (3363) M4A_PARSER: read error, read bytes(-9) less than wanted size (8), line 136
E (3373) M4A_PARSER: currently not support mvdt ahead of moov case,0
E (3373) AAC_DECODER: error mp4 stream, release
E (3383) AUDIO_ELEMENT: [aac] AEL_STATUS_ERROR_OPEN,-1
W (3383) AUDIO_ELEMENT: [aac] audio_element_on_cmd_error,7
W (3393) AUDIO_ELEMENT: IN-[filter] AEL_IO_ABORT
...
The file is one of the examples of Espressif in in "https://docs.espressif.com/projects/esp ... rt-samples".
Does this means that the AAC decoder cannot read the example gs-16b-2c-44100hz.mp4?
If AAC decoder cannot read this example, where is the decoder that can read this example music file?
Also: I cannot download example "https://dl.espressif.com/dl/audio/gs-16b-2c-44100hz.m4a" (????) so I went to a site with m4a examples, https://filesamples.com/formats/m4a, and all of them give error:
...
... file://usb/sample2.m4a
...
E (13393) M4A_PARSER: Get no data (line 1112)
E (13393) M4A_PARSER: read error, read bytes(-9) less than wanted read size (8), line 20
E (13393) M4A_PARSER: read error, read bytes(-9) less than wanted size (8), line 136
E (13413) M4A_PARSER: currently not support mvdt ahead of moov case,0
E (13413) AAC_DECODER: error mp4 stream, release
E (13413) AUDIO_ELEMENT: [aac] AEL_STATUS_ERROR_OPEN,-1
W (13423) AUDIO_ELEMENT: [aac] audio_element_on_cmd_error,7
W (13433) AUDIO_ELEMENT: IN-[filter] AEL_IO_ABORT
Does this means that the AAC decoder cannot read the examples in https://filesamples.com/formats/m4a?
Any help would be appreciated.
I made a "player" that can read/play mp3, wav, aac/m4a/mp4 files.
for "mp3", "wav" and "aac" files it works.
For mp4 and m4a files gives an error:
...
... file://usb/gs-16b-2c-44100hz.mp4
...
E (3353) M4A_PARSER: Get no data (line 1112)
E (3353) M4A_PARSER: read error, read bytes(-9) less than wanted read size (8), line 20
E (3363) M4A_PARSER: read error, read bytes(-9) less than wanted size (8), line 136
E (3373) M4A_PARSER: currently not support mvdt ahead of moov case,0
E (3373) AAC_DECODER: error mp4 stream, release
E (3383) AUDIO_ELEMENT: [aac] AEL_STATUS_ERROR_OPEN,-1
W (3383) AUDIO_ELEMENT: [aac] audio_element_on_cmd_error,7
W (3393) AUDIO_ELEMENT: IN-[filter] AEL_IO_ABORT
...
The file is one of the examples of Espressif in in "https://docs.espressif.com/projects/esp ... rt-samples".
Does this means that the AAC decoder cannot read the example gs-16b-2c-44100hz.mp4?
If AAC decoder cannot read this example, where is the decoder that can read this example music file?
Also: I cannot download example "https://dl.espressif.com/dl/audio/gs-16b-2c-44100hz.m4a" (????) so I went to a site with m4a examples, https://filesamples.com/formats/m4a, and all of them give error:
...
... file://usb/sample2.m4a
...
E (13393) M4A_PARSER: Get no data (line 1112)
E (13393) M4A_PARSER: read error, read bytes(-9) less than wanted read size (8), line 20
E (13393) M4A_PARSER: read error, read bytes(-9) less than wanted size (8), line 136
E (13413) M4A_PARSER: currently not support mvdt ahead of moov case,0
E (13413) AAC_DECODER: error mp4 stream, release
E (13413) AUDIO_ELEMENT: [aac] AEL_STATUS_ERROR_OPEN,-1
W (13423) AUDIO_ELEMENT: [aac] audio_element_on_cmd_error,7
W (13433) AUDIO_ELEMENT: IN-[filter] AEL_IO_ABORT
Does this means that the AAC decoder cannot read the examples in https://filesamples.com/formats/m4a?
Any help would be appreciated.