Problem on live-recorded show...
  • Hi!

    I have a problem, and I don't know if I got something on the Airtime structure wrongly or not.

    PROBLEM PREVIEW:

    My shows recorded live from line-in don't stream at the same time they are happening.

    DESCRIPTION:

    We have a "classic" radio station with a standard analog studio, with live shows only in the afternoon, and repeats in the morning and weekends.

    I connect the stereo output from the studio to the AirTime server audio input, and the output from airtime, to the FM emitter. Also, I stream via Icecast. I create the shows checking "record from line in", because the show is made live at that time on the studio, and set a rebroadcast for next day, when it needs to repeat.

    Rest of the day I did set up the liquid script for random music and jingle playing, very simple, like this:

    music = playlist(mode='randomize',reload=1,reload_mode="rounds", "/fonoteca/musica/")
    jingles = playlist(mode='randomize',reload=1,reload_mode="rounds", "/fonoteca/jingles/")
    default = rotate(weights=[1,3], [jingles, music])

    PROBLEM:

    Random music playing works fine.
    If I upload a pre-recorded show, or make a playing list for a show, it fades-in and plays correctly.
    But, I would expect that, when a "line in recording" show happens, that is, when a live show begins, it should fade-in to the actual show happening in the studio and, at the same time, recording it for rebroadcast, but, when the time comes, the random background music keeps playing.

    What I'm doing wrong? Did I begin from a wrong base?
  • 3 Comments sorted by
  • Ive been checking my logs and, setting a test show to 15:10h it does indeed begin to record:

    2012-10-10 15:10:00,005 INFO - [recorder.py : record_show() : line 78] - starting record
    2012-10-10 15:10:00,006 INFO - [recorder.py : record_show() : line 79] - command ecasound -f:16,2,44100 -i alsa -o /var/tmp/airtime/show-recorder/2012-10-10-15:10:00.ogg,256000 -t
    :3600.0

    But it keeps playing "default" background music, and doesn't "notice" it has to play back what it's recording live:

    2012/10/10 15:09:16 [decoder:3] Method "MAD" accepted "/fonoteca/jingles//06 Just A Gigolo.mp3".
    2012/10/10 15:09:16 [jingles:3] Loading playlist...
    2012/10/10 15:09:16 [jingles:3] Playlist is a directory.
    2012/10/10 15:09:16 [jingles:3] Successfully loaded a playlist of 1 tracks.
    2012/10/10 15:09:16 [decoder:3] Method "MAD" accepted "/fonoteca/jingles//06 Just A Gigolo.mp3".
    2012/10/10 15:09:29 [jingles:3] Finished with "/fonoteca/jingles//06 Just A Gigolo.mp3".
    2012/10/10 15:09:29 [jingles:3] Prepared "/fonoteca/jingles//06 Just A Gigolo.mp3" (RID 13).
    2012/10/10 15:09:29 [quota_5275:3] Switch to musica with forgetful transition.
    2012/10/10 15:11:47 [decoder:3] Method "MAD" accepted "/fonoteca/musica//unclassified/06 Just A Gigolo.mp3".
    2012/10/10 15:11:47 [musica:3] Loading playlist...
    2012/10/10 15:11:47 [musica:3] Playlist is a directory.
    2012/10/10 15:11:47 [musica:3] Successfully loaded a playlist of 1 tracks.
    2012/10/10 15:11:47 [decoder:3] Method "MAD" accepted "/fonoteca/musica//unclassified/06 Just A Gigolo.mp3".

    Does Airtime allow this or am I doing something incorrectly?
    I'm not putting any audio in, just silence. Is this related?
  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    Hey, Avaro,
    I think you want to record some contents and rebroadcast them at the same time, is that right?

    Currently, Airtime can only support record some contents and rebroadcast it in the future (at least 1 hour after). You need check "rebroadcast" option when you create/edit the record show. But you raise a good idea and I think you can open a ticket to Airtime project on http://dev.sourcefabric.org to submit function request.

    Thank you.

    Cloud Radio -> http://airtime.pro
  • And it doesn't even change metadata on the streamer, what would be nice for getting some things to work :P

    I'll think how to do it meanwhile...