HydrogenAudio

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: Nordfinn on 2024-01-11 20:29:49

Title: Streaming question (Radio Cultura Brasil, São Paulo)
Post by: Nordfinn on 2024-01-11 20:29:49
One of my favorite radio streams, Radio Cultura Brasil, out of São Paulo, has recently changed in such a way that the audio link I was using no longer works.  The stream is now only available through a video feed (https://cultura.uol.com.br/aovivo/67_ao-vivo-radio-cultura-brasil.html), and I can't find any way to extract an audio stream from the video.  Can anyone help?  Is there a Foobar component that would help with this (I don't see an obvious candidate)? I have tried "inspecting" the link to identify a url that would work, but the most I can load into Foobar that will play is 10-second "chunks."  I suspect that this kind of thing is going to happen more and more.  I don't understand what the motivation is, for the broadcasters.  Simply that they are robbed of clicks if people don't listen through their site?  This particular station is noncommercial, I'm fairly certain.  I would miss it, terribly, if I can't access it through Foobar.

The link that I was using (https://radiocultura2.jmvstream.com/stream) has an audio loop explaining the change (or so I assume), but as I don't know Portuguese, I can't make anything of it.  Anyone here understand?

Thanks very much,
N.
Title: Re: Streaming question (Radio Cultura Brasil, São Paulo)
Post by: Gus. on 2024-01-11 22:09:20
I don't understand Portuguese/Spanish...
Can you try these: http://fmstream.org/index.php?s=Radio%20Cultura%20Brasil

The last one from above, that says "web"
https://live9.livemus.com.br:27322
Title: Re: Streaming question (Radio Cultura Brasil, São Paulo)
Post by: Gus. on 2024-01-11 22:40:29
None of them sound like the video stream: https://evpp.mm.uol.com.br/cultura2/cultura2.sdp/chunklist_w1277278338.m3u8
And it doesn't seem to play in most players.
Title: Re: Streaming question (Radio Cultura Brasil, São Paulo)
Post by: Nordfinn on 2024-01-11 23:46:16
Yes, thanks Gus.  I tried those, but they are not the same station.  A little confusing, I know.  The programming on the one with the video stream is pretty great, and I haven't found another to match it (that is, if one is interested in classic MPB and bossa nova and such).
Title: Re: Streaming question (Radio Cultura Brasil, São Paulo)
Post by: Gus. on 2024-01-11 23:49:46
I even tried youtube component and the ffmpeg wrapper, I get "Forbidden" in foobar but it does play in Potplayer with the video, I couldn't figure if the audio only could be extracted.
https://evpp.mm.uol.com.br/cultura2/cultura2.sdp/playlist.m3u8
URL of embedded video stream
Title: Re: Streaming question (Radio Cultura Brasil, São Paulo)
Post by: Nordfinn on 2024-01-12 00:49:24
Thanks much for your efforts, Gus.  Interesting that it will play in PotPlayer (I'm doing so now).  That eliminates, at least, the possibility that it's a matter of national borders (like for the higher bitrate BBC streams), which I thought it might be.  Otherwise, I thought the solution might be, yes, an ffmpeg "wrapper," but I didn't really know how to go about that. 
Title: Re: Streaming question (Radio Cultura Brasil, São Paulo)
Post by: Nordfinn on 2024-01-12 19:03:36
By the way: I've experienced the same thing with another favorite, the streaming only The Lot Radio, from Brookyn, New York (https://www.thelotradio.com/).  Now only available through the video on the site.
Title: Re: Streaming question (Radio Cultura Brasil, São Paulo)
Post by: zeremy on 2024-01-13 12:56:29
By the way: I've experienced the same thing with another favorite, the streaming only The Lot Radio, from Brookyn, New York (https://www.thelotradio.com/).  Now only available through the video on the site.

Code: [Select]
https://prg-prod-catalyst-0.lp-playback.studio/video+85c28sa2o8wppm58.aac
Title: Re: Streaming question (Radio Cultura Brasil, São Paulo)
Post by: Sergey77 on 2024-01-13 17:04:03
I even tried youtube component and the ffmpeg wrapper, I get "Forbidden" in foobar but it does play in Potplayer with the video, I couldn't figure if the audio only could be extracted.
https://evpp.mm.uol.com.br/cultura2/cultura2.sdp/playlist.m3u8
URL of embedded video stream
With component installed Youtube Source (https://www.foobar2000.org/components/view/foo_youtube)
In the component settings, select: "Decoding/Audio Decoder -> ffmpeg"
Then in the player select "Add Location..." and adding the URL with "fy+"
Code: [Select]
fy+https://evpp.mm.uol.com.br/cultura2/cultura2.sdp/playlist.m3u8

By the way, this URL:
Code: [Select]
https://cultura.uol.com.br/aovivo/67_ao-vivo-radio-cultura-brasil.html
is also reproduced with this component Youtube Source. I add it using "Add Location..." in fb2k without "fy+".
Title: Re: Streaming question (Radio Cultura Brasil, São Paulo)
Post by: Nordfinn on 2024-01-14 18:04:58
Thank you both so very much.  Zeremy:  Works perfect for The Lot. Sergey: The first link/method works well, except for one detail: Foobar won't save the whole link for some reason when I save the new playlist.  It drops the "fy+", so that I will have to reload the location each time.  An inconvenience, but maybe I can figure out a fix. The second link does not work for me.  I get an "unspported file format" message.  Perhaps it's a lower bit rate not supported by my soundcard (EVGA NuAudio). 
Title: Re: Streaming question (Radio Cultura Brasil, São Paulo)
Post by: Gus. on 2024-01-14 18:27:36
According to Potplayer, the Brasil video stream has AAC 16-bit 48 KHZ stereo audio, any audio device should support at least 44.1 48 96 and some 192 KHZ.
Nu Audio:
Playback Format:
Up to 384kHz, 32bit (Stereo)
Up to 192kHz, 24bit (Optical
Title: Re: Streaming question (Radio Cultura Brasil, São Paulo)
Post by: Peter on 2024-01-15 13:29:00
The stream at https://cultura.uol.com.br/aovivo/67_ao-vivo-radio-cultura-brasil.html works if I spoof FFmpeg's user agent.
It's supposed to be possible to get such working using my FFmpeg decoder wrapper (https://www.foobar2000.org/components/view/foo_input_ffmpeg), only foobar2000 hits this error trying to determine stream's content type, before deciding which decoder to use, so it gives up.
I'm investigating a workaround, but it's a clear case of broken/misconfigured/hostile server.
Title: Re: Streaming question (Radio Cultura Brasil, São Paulo)
Post by: Nordfinn on 2024-01-16 04:09:06
Thanks much, Peter, for looking into it.   N.
Title: Re: Streaming question (Radio Cultura Brasil, São Paulo)
Post by: Case on 2024-01-16 13:28:21
I even tried youtube component and the ffmpeg wrapper, I get "Forbidden" in foobar but it does play in Potplayer with the video, I couldn't figure if the audio only could be extracted.
https://evpp.mm.uol.com.br/cultura2/cultura2.sdp/playlist.m3u8
FYI, FFmpeg wrapper can now play it with foobar2000 v2.1.1 (https://www.foobar2000.org/download).
Title: Re: Streaming question (Radio Cultura Brasil, São Paulo)
Post by: Gus. on 2024-01-16 15:22:38
Thank You Peter and Case! I can confirm it does play the audio from the video stream.
I use these x64 builds of FFmpeg: https://github.com/GyanD/codexffmpeg/releases
Title: Re: Streaming question (Radio Cultura Brasil, São Paulo)
Post by: Nordfinn on 2024-01-16 23:56:19
Thanks very much, but I’m sorry to say that it’s not working for me, with Foobar 2.1.1.  Get the “403 Forbidden” error message.  I generally use 32-bit Foobar (OS is Windows 10 64-bit) because I like Deskband Controls so much.  But I tried with both 32-bit and 64-bit Foobar, with the same result.  I’m fairily certain that I have FFMPEG Decoder Wrapper configured correctly, and I reloaded the binaries from ffmpeg-6.1.1-full_build.zip , from the site Gus used.  Stumped.
Title: Re: Streaming question (Radio Cultura Brasil, São Paulo)
Post by: Gus. on 2024-01-17 00:02:48
Preferences > Playback > Decoding
Move FFmpeg Decoder Wrapper to the top of the list

Preferences > Playback > Decoding > FFmpeg Decoder Wrapper
Did you tick at least HLS and RTMP?
Title: Re: Streaming question (Radio Cultura Brasil, São Paulo)
Post by: Gus. on 2024-01-17 00:15:47
Preferences > Playback > Decoding > FFmpeg Decoder Wrapper
FFmpeg installation folder: Make sure it shows ffmpeg.exe and ffprobe.exe found...
It takes a while to connect to the stream.
Title: Re: Streaming question (Radio Cultura Brasil, São Paulo)
Post by: Nordfinn on 2024-01-17 01:23:56
Ah: There we go.  All was right except that FFmpeg Decoder Wrapper was at the bottom of the list.  Moved it to the top, and now I am streaming.  Yes, takes a few moments.   Thanks very much to all of you.  N.
Title: Re: Streaming question (Radio Cultura Brasil, São Paulo)
Post by: Nordfinn on 2024-04-04 14:51:05
Something has changed with this stream again, and I can't access through Foobar.  Have tried everything I know of to find a URL that will play.  If anyone has any hints, would be much appreciated.  There is a pop-up player for two streams at this link, and I am especially interested in "Cultura Brasil" (although sometimes the programming for the two is the same): https://cultura.uol.com.br/radio/

Thanks much,
N.
Title: Re: Streaming question (Radio Cultura Brasil, São Paulo)
Post by: Gus. on 2024-04-04 17:53:15
After adding *.MPD to the ffmpeg wrapper, I could play this:
https://d30kauilet571q.cloudfront.net/out/v1/459c959c1ef14857af43bc86dd853849/index.mpd

There's no metadata, no station name, no title and artist, and the URL might change...
Title: Re: Streaming question (Radio Cultura Brasil, São Paulo)
Post by: Nordfinn on 2024-04-05 14:50:44
Thanks so much, Gus.  Works!  I'm clueless as to how you figured that out, but I think I see what I would need to do if the URL changes. N.
Title: Re: Streaming question (Radio Cultura Brasil, São Paulo)
Post by: Gus. on 2024-04-05 15:00:01
I use a browser extension to grab the stream URL, and I delete the extras after the file extension, in this case .mpd
ffmpeg was updated to version 7.0 https://github.com/GyanD/codexffmpeg/releases
Probably makes no difference in this case.
Title: Re: Streaming question (Radio Cultura Brasil, São Paulo)
Post by: Gus. on 2024-04-09 15:53:26
https://cultura.uol.com.br/controle-remoto-radio/culturafm/
Radio Cultura FM: https://d3jaj62pse1zw5.cloudfront.net/out/v1/d6af1786952e42069047304cc244cea2/index.mpd

https://cultura.uol.com.br/controle-remoto-radio/culturabrasil/
Radio Cultura Brasil: https://d30kauilet571q.cloudfront.net/out/v1/459c959c1ef14857af43bc86dd853849/index.mpd