Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: if you use VLC and like classical music... or just radio

  1. #1
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan
    Beans
    2,086
    Distro
    Ubuntu 16.04 Xenial Xerus

    if you use VLC and like classical music... or just radio

    save as classical.lua and place in ~/.local/share/vlc/lua/extensions


    Code:
    sudo cp classical.lua  ~/.local/share/vlc/lua/extensions
    You may need to create the folders lua and extensions if they are not already there.

    Lua extension designed by Ben Dowling

    Of course you can use for any radio stations of your choice
    Here my list is ClaSsical European and high sound quality...


    Code:
    --[[
     Streaming Radio Player extension for VLC >= 1.1.0
     Authors: Ben Dowling (http://www.coderholic.com)
    --]]
     
    stations = {
    	
    
    { name = "BBC Radio3 HD", url = "http://www.bbc.co.uk/radio/listen/live/r3_aaclca.pls" },
    { name = "Norway Radio Klassisk 192", url = "http://lyd.nrk.no:80/nrk_radio_klassisk_mp3_h" },
    { name = "Radio Mozart", url = "http://listen.radionomy.com/radio-mozart.m3u" },
    { name = "Poland", url = "http://91.121.92.167:8900" },
    { name = "Classical Persian http://www.iranianradio.com/#", url = "http://213.73.255.244:10700" },
    { name = "Radio-Orfei RUSSIA", url = "mms://live.rfn.ru/orfey-128/" },
    { name = "Bayern 4 Klassik", url = "mms://gffstream-w8a.wm.llnwd.net/gffstream_w8a" },
    { name = "SwissRadio Küsnacht, Swiss", url = "http://www.swissradio.ch/streams/6034.asx" },
    { name = "Venice Classic Radio ITALIA", url = "http://www.veniceclassicradio.eu/live1/128.asx" },
    { name = "SwissRadio Küsnacht, Swiss Opera", url = "http://www.swissradio.ch/streams/6060.asx" },
    { name = "Radio Darvish Classical Persian", url = "http://207.200.96.228:8078/" },
    { name = "WGBH Boston USA", url = "http://streams.wgbh.org:8006/" },
    { name = "radio spivakov   russia", url = "http://radio.corbina.ru:8229/" },
    { name = "RTVE3  ☮☮ Cuando los elefantes sueñan con la música", url = "http://195.10.10.210/rtve/radio3.mp3" },
    { name = "Radio Suisse Classique", url = "http://www.radiosuisseclassique.ch/live/mp3.m3u" },
    { name = "Denmark dr.dk", url = "http://www.dr.dk/netradio/Metafiler/ASX/DR_P2_128.asx" },
    { name = "Austria RadioStephansdom", url = "http://srvhost24.serverhosting.apa.net:8000/rsdstream128.m3u" },
    { name = "France Musique", url = "http://www.tv-radio.com/station/france_musique_mp3/france_musique_mp3-128k.m3u" },
    { name = "Espana Radio Clasica", url = "http://radioclasica.rtve.stream.flumotion.com/rtve/radioclasica.mp3.m3u" },
    { name = "Slovak Radio Klasika", url = "http://live.slovakradio.sk:8000/Klasika_256.mp3.m3u" },
    { name = "Slovak Radio Devin", url = "http://live.slovakradio.sk:8000/Devin_256.mp3.m3u" },
    { name = "Sverige-Sweden 1", url = "http://sverigesradio.se/topsy/direkt/1603-hi-mp3.pls" },
    { name = "Sverige-Sweden 2", url = "http://sverigesradio.se/topsy/direkt/2562-hi-mp3.pls" },
    { name = "Czech classic", url = "http://www.play.cz/radio/classic128.asx" },
    { name = "Latvia", url = "http://82.135.234.195/Klasika.asx" },
    { name = "BBC Radio3 192kbps", url = "http://bbc.co.uk/radio/listen/live/r3.asx" },
    { name = "P2 musik Sverige-Sweden", url = "http://http-live.sr.se/p2musik-aac-192" },
    { name = "Deutschland MDR Figaro", url = "http://avw.mdr.de/livestreams/mdr_figaro_live_128.m3u" },
    { name = "Deutschland MDR Klassik", url = "http://avw.mdr.de/livestreams/mdr_klassik_live_128.m3u" },
    { name = "Классическая музыка MyRadio.com.ua  ", url = "http://music.myradio.com.ua:8000/Classica128.ogg" },
    { name = "Finland rondofm", url = "mms://mms.rondofm.fi/RondoHF" },
    { name = "Belgium RTBF Musiq 3 French-Speaking", url = "http://streaming.rtbf.be:8000/mus3128xrtbf.m3u" },
    { name = "Estonia Klassikaraadio", url = "http://web.mmm.elion.ee/klassikaraadio.asx" },
    
    
    
    }
     
    function descriptor()
        return { title = "Streaming Radio Player" ;
                 version = "0.1" ;
                 author = "Ben Dowling" ;
                 capabilities = {} }
    end
     
    function activate()
        dlg = vlc.dialog("Streaming Radio Player")
    	list = dlg:add_list(1, 3, 4, 1)
    	button_play = dlg:add_button("Play", click_play, 1, 4, 4, 1)
    	-- Add the radio stations
        for idx, details in ipairs(stations) do
            list:add_value(details.name, idx)
        end
        dlg:show()
    end
     
    function click_play()
        selection = list:get_selection()
        if (not selection) then return 1 end
        local sel = nil
        for idx, selectedItem in pairs(selection) do
            sel = idx
            break
        end
        details = stations[sel]
     
    	-- Play the selected radio station
    	vlc.playlist.clear()
    	vlc.playlist.add({{path = details.url; title = details.name; name = details.name}})
    	vlc.playlist.play()
    end
     
    function deactivate()
    end
     
    function close()
        vlc.deactivate()
    end
    Attached Images Attached Images
    Last edited by shantiq; April 28th, 2012 at 11:32 AM.
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community
    Playing with Slackware too now ...
    ShanArt

  2. #2
    Join Date
    Dec 2004
    Location
    Atlanta, GA USA
    Beans
    7,257
    Distro
    Ubuntu Development Release

    Re: if you use VLC and like classical music... or just radio

    I'm assuming I have to make /lua/extensions folders, as they don't exist for me. Where in VLC, would this extension show up?

  3. #3
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan
    Beans
    2,086
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: if you use VLC and like classical music... or just radio

    der wolfen i forgot to say did i not?


    click on view and right on top of allocine lua extension
    and then the streamer pops up it has the name Streaming Radio Player

    and yes create the lua and extensions folders
    Attached Images Attached Images
    Last edited by shantiq; June 3rd, 2011 at 07:39 PM.
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community
    Playing with Slackware too now ...
    ShanArt

  4. #4
    Join Date
    Dec 2006
    Beans
    7,308

    Re: if you use VLC and like classical music... or just radio

    Thanks shantiq works very nicely here. Where did you find this one?
    Attached Images Attached Images
    You think that's air you're breathing now?

  5. #5
    Join Date
    Jun 2007
    Beans
    16,016

    Re: if you use VLC and like classical music... or just radio

    Quote Originally Posted by andrew.46 View Post
    Thanks shantiq works very nicely here. Where did you find this one?
    Maybe here
    http://www.coderholic.com/extending-vlc-with-lua/

    (would be interesting to find 3rd party lua scripts

  6. #6
    Join Date
    Dec 2006
    Beans
    7,308

    Re: if you use VLC and like classical music... or just radio

    Quote Originally Posted by mc4man View Post
    As indicated in the lua script I guess..... sometimes I can be really thick
    You think that's air you're breathing now?

  7. #7
    Join Date
    Jun 2007
    Beans
    16,016

    Re: if you use VLC and like classical music... or just radio

    Quote Originally Posted by andrew.46 View Post
    As indicated in the lua script I guess.....
    Well it's possible shantiq found it or a ref on another site with some others -
    This one, Streaming Radio Player, will prove to be quite useful

  8. #8
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan
    Beans
    2,086
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: if you use VLC and like classical music... or just radio

    well guys from here and yes it was Ron999 from this forum who showed me it for which i am enormously grateful
    I thought many of you would like it too



    ps this is a good site to find radio stations to add to your list


    one other huge place to find radio is here


    If any of you know of similar lists of stations feel free to add here
    Last edited by shantiq; September 21st, 2011 at 12:36 PM.
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community
    Playing with Slackware too now ...
    ShanArt

  9. #9
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 17.04 Zesty Zapus

    Re: if you use VLC and like classical music... or just radio

    @shantiq, many thanks for posting this.

    Quote Originally Posted by shantiq View Post
    If any of you know of similar lists of stations feel free to add here
    Another one for your list. Classic FM in the UK.

    http://www.classicfm.co.uk/

    I found the streaming URL on its FAQ page. Since it lists Ubuntu by name I think we ought to add it.

    http://www.classicfm.co.uk/on-air/wa...qs/#jump-linux

    This is the line I added to classical.lua:

    Code:
    { name = "Classic FM", url = "http://mediaweb.musicradio.com/Show.asx?StreamID=2" },
    Ubuntu 16.04 Desktop Guide - Ubuntu 14.04 Desktop Guide - Forum Guide to BBCode - Using BBCode code tags - IRC #ubuntuforums

    Member: Not Canonical Team

    Please do not PM me about your forum account unless you have been asked to. The correct place to contact an admin about your account is here.

  10. #10
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan
    Beans
    2,086
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: if you use VLC and like classical music... or just radio

    Thanx coffeecat great programming that station too sadly it has ads but cool thanx will add it here
    on the list

    I aimed to have a list with over 128kbps stations the Norway one NRK is 384 and the BBC radio3 HD is 320 which gives a great sound

    One day ( soon ) we shall have lossless radio
    Last edited by shantiq; June 10th, 2011 at 07:53 AM.
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community
    Playing with Slackware too now ...
    ShanArt

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •