View Single Post
  #5  
Old 10-03-2013, 08:19 AM
StreamRecorder StreamRecorder is offline
Super Moderator
 
Join Date: Oct 2011
Posts: 53
StreamRecorder is on a distinguished road
Default

Re: download lower quality stream from ustream


Quote:
Originally Posted by dublin View Post
Try Livestreamer.

Usage:
livestreamer.exe "ustream url" "quality" -o "output filename"
quality option can be "best" "worst" "360p" "480p" "720p"

example:
Livestreamer.exe http://www.ustream.tv/sakkfesztival best -o video.mp4
Thank you very much for your suggestion!

I haven't been able to use livestreamer with the python-librtmp. I only get the following error when using it:
Code:
Failed to load plugin ustreamtv:
  File "/usr/local/lib/python2.7/dist-packages/livestreamer/plugins/ustreamtv.py", line 21, in <module>
    import librtmp
  File "/usr/local/lib/python2.7/dist-packages/librtmp/__init__.py", line 14, in <module>
    from librtmp_ffi.binding import librtmp
  File "/usr/local/lib/python2.7/dist-packages/librtmp_ffi/binding.py", line 16, in <module>
    librtmp = verifier.load_library()
  File "/usr/local/lib/python2.7/dist-packages/cffi/verifier.py", line 68, in load_library
    self.compile_module()
  File "/usr/local/lib/python2.7/dist-packages/cffi/verifier.py", line 55, in compile_module
    self._write_source()
  File "/usr/local/lib/python2.7/dist-packages/cffi/verifier.py", line 117, in _write_source
    file = open(self.sourcefilename, 'w')
IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/librtmp_ffi/__pycache__/_binding.c'
However Livestreamer downloads fine for me without the python-librtmp. I can choose quality now without any problem!!!

Will be testing whether it will work with live playlists from UStream or not. Thank you again!
Reply With Quote