FAQ  •  Register  •  Login

Ustream URL Converter

<<

piscui

Streaming enthusiast

Posts: 31

Joined: Sun Jan 08, 2012 5:37 am

Location: Toronto, Canada

Post Sat Jan 14, 2012 6:47 am

Ustream URL Converter

I figured out a way to retrieve the live stream information from Ustream URLs. Please note this is an ultra quick-and-dirty thing I made for myself and I figured why not share it with everyone. Let me know if you see any issues.

http://piscui.webear.net/ustream.php

You would enter the channel's URL (such as http://www.ustream.tv/nasahdtv), and it will return the stream's source URL along with all the parameters necessary to make it work on Serviio - just copy/paste it. For your convenience I've also included the channel's title and thumbnail image.

I hope you find it useful.
Cheers.
<<

jhb50

DLNA master

Posts: 2234

Joined: Thu Jun 30, 2011 9:32 pm

Post Sat Jan 14, 2012 3:56 pm

Re: Ustream URL Converter

This is great. Thank you.

I tried it on the nasa link'

http://www.ustream.tv/channel/nasa-hd-tv

and it returned

rtmp://ustreamvip.fc.llnwd.net/ustreamvip playpath=ustreamvip_llnw_live_1_90331614 swfUrl=http://static-cdn1.ustream.tv/swf/live/viewer.rsl:96.swf swfVfy=1 live=1

which pasted in serviio as a live feed works great and ffmpeg-i returns
  Code:
Input #0, flv, from 'rtmp://ustreamvip.fc.llnwd.net/ustreamvip playpath=ustreamv
ip_llnw_live_1_90331614 swfUrl=http://static-cdn1.ustream.tv/swf/live/viewer.rsl
:96.swf swfVfy=1 live=1':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: h264 (Baseline), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1
4.99 tbr, 1k tbn, 29.97 tbc
    Stream #0:1: Audio: aac, 44100 Hz, stereo, s16


but running rtmpdump returns an error. Any idea why?

  Code:
C:\Users\John>rtmpdump -r "rtmp://ustreamvip.fc.llnwd.net/ustreamvip playpath=us
treamvip_llnw_live_1_90331614 swfUrl=http://static-cdn1.ustream.tv/swf/live/view
er.rsl:96.swf swfVfy=1 live=1" -o D:/dump.mp4
RTMPDump 2.4 git-6230845 2011-9-25
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: client signature does not match!
INFO: Connected...
ERROR: rtmp server sent error
ERROR: rtmp server requested close


I'd like to be able to verify links with rtmpdump on my pc rather than having to set them up on serviio each time when testing.
<<

piscui

Streaming enthusiast

Posts: 31

Joined: Sun Jan 08, 2012 5:37 am

Location: Toronto, Canada

Post Sat Jan 14, 2012 5:17 pm

Re: Ustream URL Converter

Honestly I haven't tried rtmpdump much, but I believe some of the parameters are handled differently. I always test the streams with "ffmpeg -i"; if it works there then it will work on Serviio (at least in my experience so far that has been the case 100% of the time).
<<

ritzzen

Streaming enthusiast

Posts: 27

Joined: Mon Nov 28, 2011 5:04 pm

Post Sun Jan 22, 2012 6:33 am

Re: Ustream URL Converter

Any clue what this means?

C:\Program Files (x86)\Serviio\lib>ffmpeg -i rtmp://flash76.ustream.tv:1935/ustr
eamVideo/1758650/ playpath=streams/live swfUrl=http://static-cdn1.ustream.tv/swf
/live/viewer.rsl:96.swf swfVfy=1 live=1
ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers
built on Dec 13 2011 20:46:11 with gcc 4.4.2
configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='
-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enab
le-pthreads --target-os=mingw32 --cross-prefix=i686-mingw32- --pkg-config=pkg-co
nfig
libavutil 51. 32. 0 / 51. 32. 0
libavcodec 53. 42. 0 / 53. 42. 0
libavformat 53. 24. 0 / 53. 24. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 53. 0 / 2. 53. 0
libswscale 2. 1. 0 / 2. 1. 0
Closing connection: NetStream.Play.Failed
rtmp://flash76.ustream.tv:1935/ustreamVideo/1758650/: Operation not permitted

C:\Program Files (x86)\Serviio\lib>
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 11953

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Jan 22, 2012 12:21 pm

Re: Ustream URL Converter

jhb50 wrote:I'd like to be able to verify links with rtmpdump on my pc rather than having to set them up on serviio each time when testing.

You can do it with ffmpeg. it includes librtmp, same as rtmpdump (they are both just command line tools inoking the lib functionlity). So you should be able to do something like this:

  Code:
ffmpeg -i "rtmp:/xxxxxxx" -vcodec copy -acodec copy -f mpegts d:\out.mpg
<<

ritzzen

Streaming enthusiast

Posts: 27

Joined: Mon Nov 28, 2011 5:04 pm

Post Tue Jan 24, 2012 3:23 pm

Re: Ustream URL Converter

Hi Picsui,

This is an amazing Ustream URL generator, do you have something similar for justin.tv?

Thanks

Ritz
<<

jt323bd

Serviio newbie

Posts: 14

Joined: Tue Dec 06, 2011 10:17 pm

Post Sun Jan 29, 2012 5:48 pm

Re: Ustream URL Converter

Does anybody have a way for sniffing justin.tv?

I'm trying to find this streams URL...
http://www.justin.tv/specbrn4#/w/2531739296/3
<<

piscui

Streaming enthusiast

Posts: 31

Joined: Sun Jan 08, 2012 5:37 am

Location: Toronto, Canada

Post Sun Jan 29, 2012 6:59 pm

Re: Ustream URL Converter

I'll see if I can come up with something for jtv (it was a bit tricky last time I checked). Will post here if successful.
<<

HansMayer

Serviio newbie

Posts: 1

Joined: Sun Mar 04, 2012 5:24 pm

Post Sun Mar 04, 2012 5:29 pm

Re: Ustream URL Converter

jhb50 wrote:
  Code:
C:\Users\John>rtmpdump -r "rtmp://ustreamvip.fc.llnwd.net/ustreamvip playpath=us
treamvip_llnw_live_1_90331614 swfUrl=http://static-cdn1.ustream.tv/swf/live/view
er.rsl:96.swf swfVfy=1 live=1" -o D:/dump.mp4
RTMPDump 2.4 git-6230845 2011-9-25
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: client signature does not match!
INFO: Connected...
ERROR: rtmp server sent error
ERROR: rtmp server requested close


I'd like to be able to verify links with rtmpdump on my pc rather than having to set them up on serviio each time when testing.

swfUrl, swfVfy and live don't look like rtmpdump arguments to me. How about
  Code:
rtmpdump -r rtmp://ustreamvip.fc.llnwd.net/ustreamvip playpath=ustreamvip_llnw_live_1_90331614 -W http://static-cdn1.ustream.tv/swf/live/viewer.rsl:96.swf -v -o D:/dump.mp4

?
<<

jhb50

DLNA master

Posts: 2234

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Mar 04, 2012 8:02 pm

Re: Ustream URL Converter

Yes, I've since learned that the params are different for ffmpeg and ffplay.
I now use it all the time.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 11953

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Mar 09, 2012 1:24 pm

Re: Ustream URL Converter

rtmpdump is just a wrapper for librtmp and has a slightly different set of arguments (just names). FFmpeg doesn't have its own parameters for librtmp, instead is passes parameters the way the library expects. Check manual of rtmpdump and librtmp.
<<

grolschie

DLNA master

Posts: 559

Joined: Tue Jun 28, 2011 4:02 am

Post Thu Apr 12, 2012 9:22 am

Re: Ustream URL Converter

Hello. Has anyone figured out how to play livestream.com streams? e.g.
http://www.livestream.com/satluxtv
http://www.livestream.com/mykonoslive

Thanks.
<<

jhb50

DLNA master

Posts: 2234

Joined: Thu Jun 30, 2011 9:32 pm

Post Thu Apr 12, 2012 2:02 pm

Re: Ustream URL Converter

Your question has nothing to do with USTREAM but the answer is that you need to sniff the stream when playing the link on your pc to get the correct rtmp parameters to form the full rtmp link.
<<

tye3333

Serviio newbie

Posts: 1

Joined: Fri Apr 13, 2012 5:50 am

Post Fri Apr 13, 2012 6:11 am

Re: Ustream URL Converter

Hi guys,

After working away all week now on Serviio trying to get internet streaming working, reading posts AND trying 20+ programs, i need to ask some questions.

I used your program here to find the URL for the videos on Ustream and it works 80% of the time BUT on some videos the URL seems to change? is that right that Ustream change there URL's? could this program be an add-on to Serviio so you add the channel URL into Serviio and it finds the current video URL and load it in.

i then went on to try and play other Flash videos with NO luck. i cant find the RTMP to any videos using URL sooper or wireshark, and the fue times i have found a RTMP it hasent worked useing RTMPdump. even if i Could find the video URL that worked and could play on Serviio, how long would that URL work before been changed to something new?

One thing i wanted to watch on my PS3 through Serviio is the Formula 1 (http://theskystream.webs.com/skysportsf1.htm) but could not find any way to do that.

This program you have made is Really good, but i would be cool if it could work with other web pages and be apart of Serviio - i find Serviio a good program especially seens its only 0.xx But sadly i wont be making the switch from PS3 MS just yet :(

Tye
<<

jhb50

DLNA master

Posts: 2234

Joined: Thu Jun 30, 2011 9:32 pm

Post Fri Apr 13, 2012 1:23 pm

Re: Ustream URL Converter

You could write a USTREAM plugin to do that. That's how to make anything part of Serviio.
<<

prmadmax

Streaming enthusiast

Posts: 32

Joined: Sun May 20, 2012 7:50 am

Location: Rye, UK

Post Fri Jun 08, 2012 7:48 am

Re: Ustream URL Converter

piscui wrote:I figured out a way to retrieve the live stream information from Ustream URLs. Please note this is an ultra quick-and-dirty thing I made for myself and I figured why not share it with everyone. Let me know if you see any issues.

http://piscui.webear.net/ustream.php


Hi,

Is this still working? I just tried and got: Error: Unable to determine channel ID.

http://piscui.webear.net/ustream.php?ur ... 2Fnasahdtv

EDIT: This is working now...still curious about my question below.

Also, I was wondering if anyone had been able to write a plugin to do this?
Regards, MadMax
Serviio Beta Tester

Sony Bravia KDL-22EX320 | Xbox 360 | Samsung UE32D5000
Synology DS1512+ / 3GB Ram / 5x 3TB WD Red Edition HDDs with 4.2 firmware running Patters Serviio package for Synology NAS
<<

Simba

Serviio newbie

Posts: 2

Joined: Wed Jul 25, 2012 12:27 pm

Post Thu Jul 26, 2012 12:22 pm

Re: Ustream URL Converter

I am trying these, but am getting an error "Not a live feed". Where am I going wrong?

http://www.ustream.tv/KTNKENYALIVE

http://www.ustream.tv/channel/k24tvlive

http://www.ustream.tv/channel/classic105-kenya
<<

zowie

DLNA master

Posts: 261

Joined: Sun Apr 08, 2012 8:23 am

Location: Italy

Post Thu Jul 26, 2012 8:15 pm

Re: Ustream URL Converter

<<

xs2inattar

DLNA master

Posts: 143

Joined: Sun Jun 24, 2012 5:49 pm

Post Fri Jul 27, 2012 10:21 pm

Re: Ustream URL Converter

prmadmax wrote:
piscui wrote:I figured out a way to retrieve the live stream information from Ustream URLs. Please note this is an ultra quick-and-dirty thing I made for myself and I figured why not share it with everyone. Let me know if you see any issues.

http://piscui.webear.net/ustream.php


Hi,

Is this still working? I just tried and got: Error: Unable to determine channel ID.

http://piscui.webear.net/ustream.php?ur ... 2Fnasahdtv

EDIT: This is working now...still curious about my question below.

Also, I was wondering if anyone had been able to write a plugin to do this?


Can you please share the code you wrote for extracting the stream fro ustream. It would be much better if this can be converted to a plugin. Please share your code i will try and convert it to a plugin.
<<

piscui

Streaming enthusiast

Posts: 31

Joined: Sun Jan 08, 2012 5:37 am

Location: Toronto, Canada

Post Sat Jul 28, 2012 2:34 am

Re: Ustream URL Converter

I have updated the code to reflect some changes Ustream made resulting in some inaccurate stream generation.

I've also open sourced it so we can hopefully see a plugin soon :)
https://github.com/piscui/ustream-to-ffmpeg
Next

Return to Video streams

Who is online

Users browsing this forum: No registered users and 8 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.