Page 1 of 1

fatfs and http stream on the same pipeline

Posted: Wed Sep 19, 2018 6:59 am
by newhobby
How do I setup a pipeline that would take either fatfs or http stream?
Similar to what esp_audio does?
I would use esp_audio, but for some reason, my mp3 files get the first second or so cut off. It starts playing them at about 1 second. I couldn't figure out why, so I went with pipeline directly.
The problem is that I want to stream both fatfs and http.
Do I need to create two different pipelines?

Re: fatfs and http stream on the same pipeline

Posted: Fri Nov 30, 2018 10:44 am
by hallgrim
Hi,

Very recently an example was added that does exactly this:
(Flexible Pipeline Example)[https://github.com/espressif/esp-adf/tr ... e_pipeline]

I have also noticed that if I call audio_element_set_uri on a fatfs stream that is paused, the file_pos is retained and it will continue playing in the middle of the new file. Perhaps this is what is happening with your missing 1 second?

Re: fatfs and http stream on the same pipeline

Posted: Tue Jan 29, 2019 2:41 pm
by jerome
Hi newHobby
I was wondering if you succeeded in using 2 pipelines at the same time ?
I'd like to record audio as follow :

- ADC -> I2S -> WAV ENCODER -> (SDCARD FILE + HTTP UPLOAD)

Thanks for anything you can share.
Jerome