[Solved - by my hack] Simple remote ingestion.
  • <UPDATE - I Made a hack and fixed it myself - Its in Airtime Hacks>

    My station is a 'best of the shows on the web' kind and I need to get a lot of large shows imported per day. The file sizes are typically 80mb each.
    This involves downloading the file from source website and uploading into 'Add Media' or via sftp.
    This takes a long time so i want to import from the remote location into airtime directly.
    Is there any way to do this? It seems a common thing to want to do?
    Have I missed a feature?
    I can easily write code to do it - but is it in airtime already?


    Post edited by John Chewter at 2013-11-14 22:29:01
    No longer using Airtime or Libretime.
  • 16 Comments sorted by
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi John, the closest feature to this at the moment is the watched folder, but that does not download files from remote systems. If the files you want are on a remote server, is there an RSS feed you can monitor?

    This remote ingest is something we are working on for Airtime 3.0 so your feedback would be very helpful.

    Cheers!

    Daniel

  • Post edited by John Chewter at 2013-11-14 16:22:28
    No longer using Airtime or Libretime.
  • Hello John,

    As Daniel suggests, using a watched folder would be a good approach. In
    this case, I would recommend it since you can from the server, download the
    files directly into the watched folder using curl, wget or whatever utility
    you want and potentially schedule the process using cron. By using the Add
    Media user interface, you are first downloading from the remote site and
    then uploading into Airtime which is somewhat less efficient.

    For instance, create a folder /srv/airtime/imported_shows on the server and
    then from the Airtime menus, select SYSTEM, Media Folders then Add to add
    the new folder. Note that when you update this folder with new contents,
    you need to come back to this menu and click the Rescan button (small
    circular arrow) for the files to show up in Airtime.

    Hope this helps,
    -Bill


    On Fri, Nov 1, 2013 at 9:17 AM, John Chewter <<br />airtime-support@lists.sourcefabric.org> wrote:

    > Hi Daniel
    > I just did it with a few lines of php for a test.
    > Worked first time.
    > It seems fairly easy to just add that to the Add Media screen as an extra
    > button?
    >
    >
  • Thanks for that Bill. I can't see why Airtime cannot just have a remote url text box to remotly import a remote file.
    No longer using Airtime or Libretime.
  • Vote Up0Vote Down Albert SantoniAlbert Santoni
    Posts: 68Member, Sourcefabric Team, Airtime Moderator
    Hey John,

    I think this is a good idea and would definitely cut out a step for your workflow. Would you be willing to try hacking this into the Add Media page yourself? Otherwise, I can file a bug ticket in JIRA and we can try to do this in the coming months. We can help you get started working on the code too, if you need any pointers.

    (We're talking about just adding a simple field that would make Airtime remotely download a single file. That's a great starting point and could definitely be expanded upon in the future.)

    Thanks!
    Albert 
    Airtime Developer @ Sourcefabric
  • Sure, I can do that.

    No longer using Airtime or Libretime.
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Bill,

    Note that when you update this folder with new contents,
    you need to come back to this menu and click the Rescan button (small
    circular arrow) for the files to show up in Airtime.



    That should not be necessary, the media monitor is meant to take notice of changes in watched folders. I will test this and file a ticket if it isn't working in Airtime 2.5.0.

    Cheers!

    Daniel
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Bill,

    The automatic update of Library content in watched folders is working fine for me. It only takes a few seconds with a small watched folder. If the problem persists, please file a ticket with details of the type of file and the size of the watched folder.

    Cheers!

    Daniel
  • The watch feature working great in 2.5, i just used shell command to scp 2000 media files over to a watch folder.   Airtime kept up with the file transfer and imported them all ass they transfers.    works great.

    Also, another option we have used.    Add dropbox client to server and add a shared media folder.   Any one in production can just drop files on their desktop dropfolder and they are imported immediately.  The whole team can drop and drag to there own folders.

    I tested removing them from folder as well.   Once they are scheduled in show, they continue to playout even if deleted since a cache version exists.

    regards,
    Stephen
  • The Drop Box is an excellent Idea and one I had not considered. Many thanks for that :) Currently each producer is using FTP into individual watched folders.
    No longer using Airtime or Libretime.
  • @ Albert - I am working on that today. It can be done,I believe, using Plupload 2.x. but not 1.54
    No longer using Airtime or Libretime.
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    a good way to do that too is a distant drive (cloud solution / fuse, etc)
  • My main prolem is importing from Blogtalk
    No longer using Airtime or Libretime.
  • Hey @Stephen 

    "Once they are scheduled in show, they continue to playout even if deleted since a cache version exists."

    Yes, I just wanted to make sure that you know about the variable "cache_ahead_hours = 1" in /etc/airtime/airtime.conf which will let you configure how many hours of audio the scheduler should download/cache ahead of time.
    Post edited by Naomi at 2013-11-06 15:00:24
  • This explains some odd things I saw. Thank you for that tip Naomi.
    No longer using Airtime or Libretime.
  • Fixed by making an Airtime Hack - Its in 'Airtime Hacks'
    No longer using Airtime or Libretime.