
I used ffplay to play RNZ Concert with URL http://radionz-ice.streamguys.com/concert which Ian Stewart found for me. It works with VLC. It actually worked with ffplay, but gave an error message Channel element 1.6 is not allocated f=0/0 Element type mismatch 1 !=0/0 etc Do you know what options to use to correct the mismatch? By the way VLC is able to record the RNZ Concert network stream, also the ABC direct streaming URLs. Rod On 2 January 2017 at 20:19, Roderick Aldridge <rod.aldridge1(a)gmail.com> wrote:
Thanks Lawrence. Worked like a charm.
Rod
On 2 January 2017 at 19:23, Lawrence D'Oliveiro <ldo(a)geek-central.gen.nz> wrote:
On Mon, 2 Jan 2017 18:08:08 +1300, Roderick Aldridge wrote:
I tried to use ffplay, but couldn't decipher the syntax and options to use it successfully.
It takes a couple of steps.
Starting from <https://radio.abc.net.au/help/streams>, choose one of the links for the station you want to listen to. Say I pick the AAC+ link for TripleJ: <http://www.abc.net.au/res/streaming/audio/aac/triplej.pls>.
I grab the contents of this URL (it’s a “playlist” file) with wget, and print it directly to the screen without saving it, with “-O -”:
ldo(a)theon:~> wget -O - http://www.abc.net.au/res/stre aming/audio/aac/triplej.pls --2017-01-02 19:12:37-- http://www.abc.net.au/res/stre aming/audio/aac/triplej.pls Resolving www.abc.net.au (www.abc.net.au)... 203.109.255.65, 203.109.255.59 Connecting to www.abc.net.au (www.abc.net.au)|203.109.255.65|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 240 [audio/x-scpls] Saving to: ‘STDOUT’
- 0%[ ] 0 --.-KB/s [playlist] NumberOfEvents=2
File1=http://live-radio01.mediahubaustralia.com/2TJW/aac/ Title1=Triple J NSW Length1=-1 Version=2
File2=http://live-radio02.mediahubaustralia.com/2TJW/aac/ Title2=Triple J NSW Length2=-1 Version=2 - 100%[===================>] 240 --.-KB/s in 0s
2017-01-02 19:12:37 (43.1 MB/s) - written to stdout [240/240]
As you can see, the result is some text containing two “http:” links. I pick either one, say the first one, and pass it to ffplay:
ffplay http://live-radio01.mediahubaustralia.com/2TJW/aac/
and the station immediately starts playing.
By default, ffplay puts up a video window which is filled with some kind of visualization of the audio. If you don’t want this, you can turn it off with the “-nodisp” option:
ffplay -nodisp http://live-radio01.mediahubaustralia.com/2TJW/aac/
You can stop it playing with CTRL/C in the terminal window. Or, if the video window is visible and active, then pressing ESC will close it and quit ffplay.
Once you have that last link, you can skip all the intermediate steps to play the stream again. Unless and until they decide to change the link. :) _______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: https://list.waikato.ac.nz/mailman/listinfo/wlug