Comments (35)
Reading .of *.m3u8 playlists very usefull feature anywere
from ka-radio32.
Can you add the ability to read playlists on the network without specifying the port? I have a network storage with music. I make a playlist accessible via the link \192.168.1.1\MyNAS\Music\MyPlaylist.m3u This link succesfully opens in a music player, for example MPC-HC or VLC, but KaRadio can't open this link right now. It would be very very nice if i could open and save not only radio stations, but also such playlists in the same station list. In truth, this is exactly what I need to listen to my music library without turn on large devices like SmartTV or PC.
from ka-radio32.
Checked.
Only DAC output are static GPIO's.
I will add your suggestion in next release
"P_PDM_L" and "P_PDM_R"
from ka-radio32.
Thanks,
What is a power off/on from the software point of view?
I can ask the processor to go to sleep, but cannot control lcd, vs1053 etc power.
Sure it can read from a sd card, but we are in 2017. mount a local SHOUTcast server and make your own radio. A must.
Bluetooth speaker: I tried but not enough sram for both.
from ka-radio32.
ok. a2dp source as server bluetooth?
from ka-radio32.
Good try but...
espressif/esp-idf#580
;-)
from ka-radio32.
Fair point, what about a standby mode then? Display could show the time? VS1053 should be silent, volume 0?
Not sure a local shoutcast server is for me. Reading MP3's off a USB drive would be better, ie more convenient for playing locally stored MP3's. But most/many VS1053 boards already have an SD card slot built in?
Pity about the Bluetooth speaker, is there any way around that?
from ka-radio32.
'' Can you add the ability to read playlists on the network without specifying the port? I have a network storage with music. I make a playlist accessible via the link \192.168.1.1\MyNAS\Music\MyPlaylist.m3u ''
It is not a port problem but a network protocol problem. Your pc is not an html server and smb is not implemented in esp32.
Another solution is to write a little soft to convert the playlist in a txt file uinderstandable by KaRadio.
But it doesn't work for local pc files. They must be on a html server.
from ka-radio32.
m3u8 is more or less a HTTP Live Streaming and is difficult to decode because it basically breaks the stream down into multiple files.
Only the first found is played.
from ka-radio32.
I mean import radiostations list from m3u8 file
from ka-radio32.
Done a while ago.
The list of format is
char *t0 = strstr(clientPath, ".m3u");
if (t0 == NULL) t0 = strstr(clientPath, ".pls");
if (t0 == NULL) t0 = strstr(clientPath, ".xspf");
if (t0 == NULL) t0 = strstr(clientPath, ".m3u8");
if (t0 == NULL) t0 = strstr(clientPath, ".asx");
if (t0 != NULL) // a playlist asked
But only the first is read
from ka-radio32.
Probably, small need "import/export m3u8" button at Edit tab of web page
from ka-radio32.
The web page is only a cached view of the esp32 data with some facilities.
- If done in the javascript, it is only available on the web page as instant play feature. seen from the esp32.
May be the less worst choice for some little playlists. - If sent to the esp32, it replace the current list that can be restored by re reading the txt file.
- or converted in txt KaRadio format and treated like any other saved files.
All these are not very clean.
from ka-radio32.
Now I import m3u8 playlist made for AIMP3 windows player by custom php script,
I see, that jet one man created php script for convert m3u8 playlist to WebStations.txt internal KaRadio32 format
from ka-radio32.
The internal format is a simple json text
{"Name":"RTL","URL":"streaming.radio.rtl.fr","File":"/rtl-1-48-192","Port":"80","ovol":"-4"}
For historical reason, the path is named File. ovol is the relative offset volume.
No php allowed (it must run on the esp32 for that, but...). Just javascript on the browser.
from ka-radio32.
PHP selected as well known language and run once at PC,
May be any open source javascript parser with convert to internal json, or RegularExpression js parser?
Station list has 254 items - not big work for client side js
from ka-radio32.
The PHP run on the server side.
from ka-radio32.
I have php server at my PC
from ka-radio32.
and?
Explain what you want to do.
from ka-radio32.
It must be an easy solution for all users
from ka-radio32.
Usefull feature will been take well known m3u8 playlist and loaded to KaRadio32 station lists instread of internal not using nowhere WebStations.txt
from ka-radio32.
Ok do it
from ka-radio32.
Its optional suggestion, will can been useful at your free time
from ka-radio32.
;-) But we loose the ovol.
from ka-radio32.
ovol can still at WebStations.txt, at m3u8 ovol = 0 unfortunally
from ka-radio32.
It is not a port problem but a network protocol problem. Your pc is not an html server and smb is not implemented in esp32.
Another solution is to write a little soft to convert the playlist in a txt file uinderstandable by KaRadio.
But it doesn't work for local pc files. They must be on a html server.
I mean to add the ability to play not only streaming, but also directly reading files over the network. I understand that this is a another protocol. I just tried to explain my use case.
As i know this feature implemented in Edzelf ESP32-Radio https://github.com/Edzelf/ESP32-Radio but not sure
from ka-radio32.
ARMOR888 I don't think. Probably a mp3 file on a sd card.
from ka-radio32.
I've got a board I'm launching that uses the RPi form factor. This gives me a unique situation where I2S needs to be on alternate pins to hardware DAC. No issue there, I can assign the pins and it works beautifully, then select the DAC and it works too, from the TRS jack in the expected RPi position. The issue is trying to use PDM in this configuration, it comes out the I2S pins of course.
Is it possible to allow for the definition of a "P_PDM_L" and "P_PDM_R" pins in the hardware file? Since reboot is necessary between audio outlets, this would support situations where an I2S and an analog both exist in one system.
https://twitter.com/TonyMac_32/status/1124079867828559872
from ka-radio32.
Not sure.
I wonder if DAC and PCM can be configured with GPIO not equal to (GPIO25 & GPIO26)
It works for I2S but for DAC or PCM the pin's config must be :
pin: I2S Pin structure, or NULL to set 2-channel 8-bit internal DAC pin configuration (GPIO25 & GPIO26)
https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/i2s.html
By the way, the board seems very interesting.
from ka-radio32.
from ka-radio32.
Checked the software. The pdm pin are wrongly not assigned in the source. So output are in the default pins.
The documentation is not very clear for the PDM mode.
I can change the soft to use the i2s definitions for i2s and pdm output.
So "P_PDM_L" and "P_PDM_R" are not needed. Only the mode is enough.
For the pdm mode, i think that the output is PDM_CLK and PDM_DATA like
Is it ok or am i wrong?
from ka-radio32.
Hmmm, that explains some odd behaviors I was seeing, like only getting output on "warm" reset and not on a full power cycle...
As to the format of the output, I will have to do some checking, I don't think any demuxing was necessary.
from ka-radio32.
OK, for Mono output no demuxing is required (only LPF), but for stereo it is, which requires a proper amplifier to handle the data/clock signal. My mistake, the documentation is not the easiest to find... Some info on the topic:
https://translate.google.com/translate?hl=en&sl=ja&u=http://blog-yama.a-quest.com/%3Feid%3D970192&prev=search
I agree splitting the paths doesn't make a lot of sense at that point, it can be kept with the I2S
from ka-radio32.
You can try the sys.prerelease available.
from ka-radio32.
For importing playlists in .m3u or .pls format follow this link :
https://bazooka07.github.io/Ka-Radio32/
from ka-radio32.
Related Issues (20)
- Doesn't work without a computer HOT 1
- wolfssl error -323, WANT_READ HOT 6
- Gm
- csv to bin HOT 1
- Does not get the ip address HOT 3
- Statio URL Convert HOT 4
- Where can I upload my project prototype picture and station? HOT 2
- Wrong play aac HOT 12
- 0.96 80x160 IPS screen problem
- Error connect with wifi aes
- SPI LCD HOT 1
- WT32-ETH01 support?
- Play m3u? HOT 2
- Problem with link to playlist with spaces
- New guy on the block
- IPS Panels
- no Battery on lcd 194
- Stations switches only through web interface
- BBC stations no longer compatible
- Power on reset
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ka-radio32.