Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 09-29-2013, 04:56 AM
StreamRecorder StreamRecorder is offline
Super Moderator
 
Join Date: Oct 2011
Posts: 53
StreamRecorder is on a distinguished road
Default

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.
Reply With Quote
  #2  
Old 09-29-2013, 11:05 AM
chap chap is offline
Senior Member
 
Join Date: Feb 2011
Location: Ukraine
Posts: 1,165
chap is on a distinguished road
Default

Re: download lower quality stream from ustream


example link UStream live
Reply With Quote
  #3  
Old 09-29-2013, 12:33 PM
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 chap View Post
example link UStream live
PMed the link. Thanks
Reply With Quote
  #4  
Old 09-30-2013, 05:38 AM
dublin dublin is offline
Junior Member
 
Join Date: Jan 2013
Posts: 29
dublin is on a distinguished road
Default

Re: download lower quality stream from ustream


Quote:
Originally Posted by StreamRecorder View Post
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
Reply With Quote
  #5  
Old 10-03-2013, 09: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
  #6  
Old 11-28-2013, 05:38 PM
Rancher Rancher is offline
Junior Member
 
Join Date: Nov 2012
Posts: 29
Rancher is on a distinguished road
Default

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?
Reply With Quote
Reply Post New Thread
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 10:32 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons