How to Stream Favorite Movies (MP4 Files) From Linux Terminal to Your Apple TV

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Hosting referral link if you planning to start your blog ($3.82/month).
  4. Support us via PayPal donate - Make a Donation
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Cameron Banowsky

I have been programming and using Linux for 3+ years, and find that often the toughest of problems yield the greatest of knowledge.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

12 Responses

  1. Darius says:

    When the video is playing, in Terminal the progress bar is very incorrect – when the movie is 90% done it only shows 9%, so it is a ‘zero’ out – does anybody know how to fix this?

  2. amon-sul says:

    Not sure, but since I started a new default size terminal it seems to work for video. too.

  3. amon-sul says:

    Great stuff, I had some problems until I installed ruby, ruby-dev, make, automake, gcc, g++ – not sure if all were strictly needed. What was needed on top was “apt-get install libavahi-compat-libdnssd-dev“.

    I managed to get mp3 playing via my Apple TV nicely. MP4 video shows picture and sound for a second or two and then crashes with an error. Anyone else got this – and maybe was able to fix it?

    loading can take a few seconds...
    => press [q] to exit airstream
    /var/lib/gems/2.3.0/gems/ruby-progressbar-
    1.1.1/lib/progress_bar/components/bar.rb:33:in `*': negative argument
    (ArgumentError)
    from /var/lib/gems/2.3.0/gems/ruby-progressbar-
    1.1.1/lib/progress_bar/components/bar.rb:33:in `empty_string'
    
  4. Hugh G Rekshin says:

    Anyone having problems installing Airstream may want to follow this link ( https://github.com/unused/airstream )to the Airstream Github page. Scroll down to “troubleshooting” on that page and follow the promts.
    Though I had Ruby installed, I did not have Ruby Dev installed. I simply solved this by using the command
    sudo apt-get install ruby-dev . After I had this installed/working, I entered this command sudo apt-get install libavahi-compat-libdnssd-dev and then I was easilly able to install both gems, for airplayer and airstream by using these commands sudo gem install airplayer and sudo gem install airstream .

  5. rk says:

    Got it to work. But for some reason, it often takes many attempts to get it to stream to the ATV. Sometimes the ATV complains “an error blah blah, the content cannot be streamed” and sometimes airstream stalls and nothing happens. Wonder why. Any clues ?

    • Derek says:

      In my experience files smaller than 1GB will run, but files larger than 1GB will give that error. That’s what I’ve deduced, but you could be experiencing something different. I just shrink my video sizes a bit and everything plays A-OK.

  6. Marcio says:

    Can’t updare the Ruby, It shows this error when I try to run “sudo apt-get install ruby2.0-dev”

    E: Unable to locate package ruby2.0
    E: Couldn’t find any package by regex ‘ruby2.0’

  7. Hi!

    Just finish to install, there is no ruby2.2-dev version so we have to stay il ruby2.1!

    I works fine but not for mkv files, do you have a solution to play directly those files?

  8. francois says:

    Hello
    I appreciate your help regarding these settings on linux but I have a question;
    Is it possible to send music from spotify installed on linux to an airplay device like freebox player ?
    Thanks for your help y advance

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

Join Over 300K+ Linux Users
  1. 202,035
  2. 9,267
  3. 38,621

Are you subscribed?