× Warning! This forum is in archival status. New contributions may not work.
Scheduled Webstream ignored.
  • I set up a webstream which works perfectly in preview.
    I scheduled this as a program.
    At the show start time it shows as playing in backend and progressbar shows it as playing.
    The fail-over folder continues to play. :(
    The documentation on this feature does not help.
    I can find no errors at all in the logs.
    Any clues'?
    Skype john_chewter


    No longer using Airtime or Libretime.
  • 10 Comments sorted by
  • 2013-10-19 11:39:55,000 DEBUG - [telnetliquidsoap.py : start_web_stream_buffer() : line 177] - dynamic_source.id 7789

    2013-10-19 11:39:55,001 DEBUG - [telnetliquidsoap.py : start_web_stream_buffer() : line 181] - http.restart http://XXX.YYY:9056/;stream.mp3

    2013-10-19 11:39:55,005 DEBUG - [telnetliquidsoap.py : start_web_stream_buffer() : line 185] - 7789
    END
    OK
    END
    Bye!

    2013-10-19 11:39:55,007 INFO - [pypoliqqueue.py : main() : line 38] - waiting 4.992047s until next scheduled item
    2013-10-19 11:40:00,000 DEBUG - [telnetliquidsoap.py : start_web_stream() : line 158] - dynamic_source.output_start

    2013-10-19 11:40:00,261 DEBUG - [telnetliquidsoap.py : start_web_stream() : line 162] - Done.
    END
    enabled
    END
    Bye!

    No longer using Airtime or Libretime.
  • Is the problem that you cannot use failover and webstream?
    Has anybody got similar working?
    No longer using Airtime or Libretime.
  • Pypo.log
    2013-10-19 11:39:26,031 DEBUG - [telnetliquidsoap.py : get_current_stream_id() : line 205] - stream_id: -1
    2013-10-19 11:39:26,032 INFO - [pypoliqqueue.py : main() : line 54] - New schedule received: {u'2013-10-19-12-39-59_0': {u'start': datetime.datetime(2013, 10, 19, 12, 39, 59), u'independent_event': True, u'end': datetime.datetime(2013, 10, 19, 12, 39, 59), u'uri': u'http://XXX.YYY:9056/;stream.mp3', u'type': u'stream_output_end'}, u'2013-10-19-12-39-59': {u'end': datetime.datetime(2013, 10, 19, 12, 39, 59), u'uri': u'http://XXX.YYY:9056/;stream.mp3', u'start': datetime.datetime(2013, 10, 19, 12, 39, 59), u'row_id': 7789, u'type': u'stream_buffer_end', u'independent_event': True}, u'2013-10-19-11-40-00_0': {u'end': datetime.datetime(2013, 10, 19, 12, 40), u'show_name': u'CMR Test', u'uri': u'http://XXX.YYY:9056/;stream.mp3', u'start': datetime.datetime(2013, 10, 19, 11, 40), u'independent_event': True, u'row_id': 7789, u'type': u'stream_output_start', u'id': 1}, u'2013-10-19-11-40-00': {u'end': datetime.datetime(2013, 10, 19, 11, 39, 55), u'uri': u'http://XXX.YYY:9056/;stream.mp3', u'start': datetime.datetime(2013, 10, 19, 11, 39, 55), u'row_id': 7789, u'type': u'stream_buffer_start', u'independent_event': True}}
    2013-10-19 11:39:26,033 INFO - [pypoliqqueue.py : main() : line 38] - waiting 28.96672s until next scheduled item
    2013-10-19 11:39:41,383 DEBUG - [api_client.py : __call__() : line 134] -

    Post edited by John Chewter at 2013-10-19 09:39:20
    No longer using Airtime or Libretime.
  • Is the problem that you cannot use failover and webstream?
    Has anybody got similar working?



    No there is no problem with failover and webstream.

    You post the wrong two logs


    The airtime- liquidsoap log and icecast log would be more appropriate

    What failover script are you using?
    Did you check the stream with another client like vlc to see if its running?
    What  did you see in the schedule time slot.?
    Did you put the webstream as a content in your show?

    So much could be wrong
    Test those above and let me know the script you use  and the give me a synopsis of your logs

    Read here http://forum.sourcefabric.org/discussion/15654

    ***********************
    * V.O.I.S.S.E.S.      *
    * Can You Hear Me Now *
    ***********************

    ♬♬♬♬♬♬♬♬♬♬♬♩♪♫♩♪♫♪♩♫♪♩ ♬♬♬♬♬♬♬♬♬♬♬
    ######################################################
    [En][24/7][712- 432- 8476]############################
    http://tunein.com/radio/BIGLINK-RADIO-s190864/

    [Korean][24/7] [712- 432- 8464]#######################
    http://tunein.com/radio/Goaheadmissionorg-s190399/

    [En][Sundays 2300-Mondays 0600 EST][712- 432- 8437]###
    http://tunein.com/radio/Caribbean-Experience-s200915/
    ######################################################

    Post edited by Voisses Tech at 2013-10-19 11:35:39
    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.
  • Thanks
    The stream is an mp3 live stream from blogspot  - and yes it was running. It works in library preview.
    The schedule slot in the backend looked exactly as expected, showing the webstream as show content and it said it was running - even showing progress of the stream.

    I will try again and look more closely at the right logs.
    I guess it may be not using the correct failover script. I got it from the forums here I think - its in ls_script.lq if I remember rightly, changing the silence stream.
    Post edited by John Chewter at 2013-10-19 14:20:25
    No longer using Airtime or Libretime.
  • As i will always say,I will help to make what you are doing works if
    1. it will help others to enhance what they are doing
    2. I have the ability to do so

    putting a web stream in a fallback ,I do not know why someone would want to do that when its so easy to schedule a show for that but if you do think you need it you have to have a line like this

     ignore(output.dummy(source, fallible=true))

    so that you can send some of the buffer over-run from the stream to silence

    then you have to do something with the silence by passing it to say a failover jingles.

    I do hope you share more information like the blogspot so I can help.

    Pm me if you do not want to put it here

    *********************************
    * V.O.I.S.S.E.S.      *         *
    * Can You Hear Me Now *         *
    *********************************

    ♬♬♬♬♬♬♬♬♬♬♬♩♪♫♩♪♫♪♩♫♪♩ ♬♬♬♬♬♬♬♬♬♬♬
    ######################################################
    [En][24/7][712- 432- 8476]############################
    http://tunein.com/radio/BIGLINK-RADIO-s190864/

    [Korean][24/7] [712- 432- 8464]#######################
    http://tunein.com/radio/Goaheadmissionorg-s190399/

    [En][Sundays 2300-Mondays 0600 EST][712- 432- 8437]###
    http://tunein.com/radio/Caribbean-Experience-s200915/
    ######################################################


    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.
  • I do not want to use webstream for fallback. I have a folder of mp3s for that.

    I am saying that if I enable fallback, the scheduled webstream (say from a news source) does not play - the fallback plays instead.

    I have subsequently found that certain mp3s do not play either - even though they imported without error.

    Both the webstream and 'faulty' mp3s work perfectly in preview.

    Post edited by John Chewter at 2013-10-21 14:04:52
    No longer using Airtime or Libretime.
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi John, if you are using a folder of MP3s for fallback then I guess you have modified Airtime's Liquidsoap script, is that correct? If so, please post your modified script.

    Cheers!

    Daniel
  • These are the only changes:

    #default = amplify(id="silence_src", 0.00001, noise())
    #default = rewrite_metadata([("artist","Airtime"), ("title", "offline")],default)
    #drops = playlist(mode='randomize',reload=1,reload_mode="rounds", "/srv/airtime/drops/")

    music = playlist(mode='randomize',reload=1,reload_mode="rounds", "/srv/airtime/stor/music-fillers")
    jingles = playlist(mode='randomize',reload=1,reload_mode="rounds", "/srv/airtime/stor/jingles")
    default = rotate(weights=[1,3], [jingles,music])
    ignore(output.dummy(default, fallible=true))
    No longer using Airtime or Libretime.
  • These are the only changes:

    #default = amplify(id="silence_src", 0.00001, noise())
    #default = rewrite_metadata([("artist","Airtime"), ("title", "offline")],default)
    #drops = playlist(mode='randomize',reload=1,reload_mode="rounds", "/srv/airtime/drops/")

    music = playlist(mode='randomize',reload=1,reload_mode="rounds", "/srv/airtime/stor/music-fillers")
    jingles = playlist(mode='randomize',reload=1,reload_mode="rounds", "/srv/airtime/stor/jingles")
    default = rotate(weights=[1,3], [jingles,music])
    ignore(output.dummy(default, fallible=true))


    As I express over and over ,if you do not have a fallback for default you will end up with a silence at the end of your music playlist 

    default = rotate(weights=[1,3], [jingles,music])

    is like a "for" conditional statement  and this will only occur once when you restart the script

    you need to tell liquidsoap what to do "next"

    so this is one of the correct way to fixed this script

    make your self a emergency,or security file

    like this

    security = single("/srv/backup/drops/stationID.mp3")

    now your script should be

    music = playlist(mode='randomize',reload=1,reload_mode="rounds", "/srv/airtime/stor/music-fillers")
    jingles = playlist(mode='randomize',reload=1,reload_mode="rounds", "/srv/airtime/stor/jingles")
    myrotation = rotate(weights=[1,3], [jingles,music])
    default = fallback(track_sensitive = false,[myrotation,security])

    Please Read here

    and my comments here


    You do not need to read everything just the first part.Copy it and read it.

    If you want various script just look for the samples at my last comments.

    I will see if I have rights to the wiki and make the comments so others can see it

    Most people ask about

    ignore(output.dummy(default, fallible=true))

    it serves two purpose
    1. should tell liquidsoap play silence if "default" occurs and you do not know what to do
    2. it helps reduce the number of buffer runs on webstream
    I have not seen its effect on fallback folder but definitely needed for Airtime so leave it uncommented


    ***********************
    * V.O.I.S.S.E.S.      *
    * Can You Hear Me Now *
    ***********************

    ♬♬♬♬♬♬♬♬♬♬♬♩♪♫♩♪♫♪♩♫♪♩ ♬♬♬♬♬♬♬♬♬♬♬
    ######################################################
    [En][24/7][712- 432- 8476]############################

    [Korean][24/7] [712- 432- 8464]#######################

    [En][Sundays 2300-Mondays 0600 EST][712- 432- 8437]###
    ######################################################




    Post edited by Voisses Tech at 2013-10-22 13:48:42
    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.