fatfs and http stream on the same pipeline

newhobby
Posts: 35
Joined: Sun Aug 19, 2018 4:36 am

fatfs and http stream on the same pipeline

Postby newhobby » Wed Sep 19, 2018 6:59 am

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?

hallgrim
Posts: 4
Joined: Fri Nov 30, 2018 10:35 am

Re: fatfs and http stream on the same pipeline

Postby hallgrim » Fri Nov 30, 2018 10:44 am

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?

jerome
Posts: 37
Joined: Wed Jan 23, 2019 2:28 pm

Re: fatfs and http stream on the same pipeline

Postby jerome » Tue Jan 29, 2019 2:41 pm

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

Who is online

Users browsing this forum: No registered users and 31 guests