Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

download lower quality stream from ustream

(http://stream-recorder.com/forum/showthread.php?t=16643)

StreamRecorder 09-29-2013 03:56 AM

download lower quality stream from ustream


 
When I try to download UStream live streams, I get HD versions only. rtmpsrv shows the same rtmpdump parameters for both HD and SD versions. Is there any way to download lower quality stream from UStream?

p.s.
I tried http://piscui.webear.net/ustream.php which shows a playlist URL only now and ffmpeg stops after downloading one segment. Sometimes when I relaunch the ffmpeg, it shows videos saying that it tries to detect what video quality is better for me thus not downloading any content itself.

I also tried the https://github.com/kenorb/UStream-recorder , but at the moment all its rtmpdump commands lead to downloading HD videos only.

chap 09-29-2013 10:05 AM

Re: download lower quality stream from ustream


 
example link UStream live

StreamRecorder 09-29-2013 11:33 AM

Re: download lower quality stream from ustream


 
Quote:

Originally Posted by chap (Post 63482)
example link UStream live

PMed the link. Thanks

dublin 09-30-2013 04:38 AM

Re: download lower quality stream from ustream


 
Quote:

Originally Posted by StreamRecorder (Post 63481)
Is there any way to download lower quality stream from UStream?

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

StreamRecorder 10-03-2013 08:19 AM

Re: download lower quality stream from ustream


 
Quote:

Originally Posted by dublin (Post 63490)
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!

Rancher 11-28-2013 04:38 PM

Re: download lower quality stream from ustream


 
I get the following error message:
Code:

Traceback (most recent call last):
  File "<string>", line 6, in <module>
  File "__main__.py", line 122, in <module>
zipimport.ZipImportError: can't find module '__main__Livestreamer__'

What could be the cause of it?


All times are GMT -6. The time now is 08:04 AM.