PDA

View Full Version : Playing live animal streams with ffmpeg


utuxia
04-05-2016, 07:35 PM
Can someone tell me (if possible) how to play one of these streams with ffmpeg?

http://www.liveanimals.tv/sea-aquarium-webcams/grand-cayman-island-reef

shawn1122
04-05-2016, 10:53 PM
Hi, any reason you want to use FFMpeg in particular?

This stream will work with Livestreamer (http://docs.livestreamer.io/install.html#windows-binaries) however you will have to edit one file since support for UStream (which is the source of this video: http://www.ustream.tv/exploreGrandCaymanReef) was broken a few months ago. After installing livestreamer you will need to go to C:\Program Files (x86)\Livestreamer\livestreamer-1.12.2-py2.7.egg\livestreamer\plugins and look for ustreamtv.pyc. Delete this file, open notepad and paste the code seen here: https://github.com/pmrowla/livestreamer/blob/ustream-desktop-streams/src/livestreamer/plugins/ustreamtv.py . Save this file as ustreamtv.py and move it into the plugins folder mentioned earlier.

After adding the Livestreamer folder (C:\Program Files (x86)\Livestreamer\) to $path (http://www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/) you should be able to simply open a command prompt and type:

livestreamer "http://www.ustream.tv/exploreGrandCaymanReef" best

and the video should open in VLC.

To record the stream you can use:

livestreamer "http://www.ustream.tv/exploreGrandCaymanReef" best -o fish.flv and it will save to the current folder.