Has anyone ever played live justin.tv or ustream with VLC?

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
dr_always
Blank Cone
Blank Cone
Posts: 37
Joined: 07 Oct 2011 00:46

Has anyone ever played live justin.tv or ustream with VLC?

Postby dr_always » 12 Oct 2011 23:06

I would really like to watch my favorite justin.tv streams with VLC. I've looked through many threads on this forum and stream-recorder.com and still can't get this accomplished. I've tried several rtmp/url sniffers and can't piece together a rtmp url that will play in VLC. I even surrendered my alliance with VLC and tried SMPlayer because I read it is more susceptible to rtmp streams.

The closest I can seem to get to my goal is playing this rtmp url in SMPlayer, which works perfectly:

Code: Select all

rtmp://npsaflivefs.fplive.net:1935/npsaflive-live/stream50
This working (only in SMP) rtmp was extracted from this webpage:

Code: Select all

http://www.windowsintowonderland.org/live/live3.htm
When I use Wireshark or Nettransport to sniff the http windowsintowonderland... url I easily see how the working rtmp npsaflivefs.fplive...stream50 url is compiled. I mimic this procedure with a sniffer and this justin.tv stream and the resulting rtmp url is:
rtmp://199.9.255.48/app/jtv_ZeBfWTN9E29_L6b9
which doesnt play in either SMPlayer or VLC. I've altered this justin.tv rtmp url in many different ways and no go.

Has anyone ever played a live justin.tv stream with VLC? Or ustream? If so, please don't pass up this topic and share your superior knowledge.

dr_always
Blank Cone
Blank Cone
Posts: 37
Joined: 07 Oct 2011 00:46

Re: Has anyone ever played live justin.tv or ustream with VL

Postby dr_always » 14 Oct 2011 00:19

Nobody who browses this forum regularly? I know Jean-Baptiste has played live justin/ustream/seeon with VLC. I think he should feel obligated to share the knowledge with his loyal followers! Who's with me!

dr_always
Blank Cone
Blank Cone
Posts: 37
Joined: 07 Oct 2011 00:46

Re: Has anyone ever played live justin.tv or ustream with VL

Postby dr_always » 23 Oct 2011 05:15

Here's to one last try with this topic.

ghoto
New Cone
New Cone
Posts: 2
Joined: 26 Oct 2011 13:11

Re: Has anyone ever played live justin.tv or ustream with VL

Postby ghoto » 26 Oct 2011 13:22

I've also look at this issue. But I haven't got any result yet.]
What I've realized is that the FLV player ask on the fly for a XML formatted file that contains all the streams for the channel.

Here I took the response from the server for a random channel

Code: Select all

<nodes> <live> <node>ams01-video8-2</node> <needed_info /> <play>jtv_zVFlpeOPoQEd2nOS</play> <meta_game>Diablo 2</meta_game> <bitrate>2648.0859375</bitrate> <broadcast_part>6</broadcast_part> <persistent>true</persistent> <video_height>1080</video_height> <token> 6e826be0105f62adfd789bfffb918c14cc23590b:{"swfDomains": ["justin.tv", "jtvx.com", "xarth.com", "twitchtv.com", "twitch.tv", "wdtinc.com", "imapweather.com", "facebook.com", "starcrafting.com"], "streamName": "jtv_zVFlpeOPoQEd2nOS", "expiration": 1319626541.675323, "server": "ams01-video8-2"} </token> <connect>rtmp://199.9.255.180/app</connect> <broadcast_id>1965584768</broadcast_id> <viewer_count>52</viewer_count> </live> <240p> <node>video84-1</node> <needed_info /> <play>jtv_bYEApjTFPsYlrsPa</play> <meta_game>Diablo 2</meta_game> <bitrate>384</bitrate> <broadcast_part>1</broadcast_part> <persistent>true</persistent> <video_height>240</video_height> <token> 5ff729565d2abc064a43dafc19f51c521d1c215c:{"swfDomains": ["justin.tv", "jtvx.com", "xarth.com", "twitchtv.com", "twitch.tv", "wdtinc.com", "imapweather.com", "facebook.com", "starcrafting.com"], "streamName": "jtv_bYEApjTFPsYlrsPa", "expiration": 1319626541.6999431, "server": "video84-1"} </token> <connect>rtmp://199.9.252.18/app</connect> <broadcast_id>1967048976</broadcast_id> <viewer_count>52</viewer_count> </240p> <360p> <node>ams01-video4-2</node> <needed_info /> <play>jtv_7Rn7YHChKI_9YkfJ</play> <meta_game>Diablo 2</meta_game> <bitrate>512</bitrate> <broadcast_part>1</broadcast_part> <persistent>true</persistent> <video_height>360</video_height> <token> b099ff0c9a52e638dc5a1de68738b31c7b61f8e5:{"swfDomains": ["justin.tv", "jtvx.com", "xarth.com", "twitchtv.com", "twitch.tv", "wdtinc.com", "imapweather.com", "facebook.com", "starcrafting.com"], "streamName": "jtv_7Rn7YHChKI_9YkfJ", "expiration": 1319626541.7148919, "server": "ams01-video4-2"} </token> <connect>rtmp://199.9.255.176/app</connect> <broadcast_id>1965634064</broadcast_id> <viewer_count>52</viewer_count> </360p> <480p> <node>ams01-video6-2</node> <needed_info /> <play>jtv_e9elRoWi9CwAE03l</play> <meta_game>Diablo 2</meta_game> <bitrate>768</bitrate> <broadcast_part>1</broadcast_part> <persistent>true</persistent> <video_height>480</video_height> <token> e9a9753918e8427623767f436c6578e657ac93dd:{"swfDomains": ["justin.tv", "jtvx.com", "xarth.com", "twitchtv.com", "twitch.tv", "wdtinc.com", "imapweaher.com", "facebook.com", "starcrafting.com"], "streamName": "jtv_e9elRoWi9CwAE03l", "expiration": 1319626541.729846, "server": "ams01-video6-2"} </token> <connect>rtmp://199.9.255.178/app</connect> <broadcast_id>1966949408</broadcast_id> <viewer_count>52</viewer_count> </480p> <720p> <node>ams01-video3-2</node> <needed_info /> <play>jtv_mWm70r0McufppccD</play> <meta_game>Diablo 2</meta_game> <bitrate>1500</bitrate> <broadcast_part>1</broadcast_part> <persistent>true</persistent> <video_height>720</video_height> <token> 568d8a08d2892d67a7618d9af9e0d7d27319e379:{"swfDomains": ["justin.tv", "jtvx.com", "xarth.com", "twitchtv.com", "twitch.tv", "wdtinc.com", "imapweather.com", "facebook.com", "starcrafting.com"], "streamName": "jtv_mWm70r0McufppccD", "expiration": 1319626541.7478039, "server": "ams01-video3-2"} </token> <connect>rtmp://199.9.255.175/app</connect> <broadcast_id>1966803520</broadcast_id> <viewer_count>52</viewer_count> </720p> <iphonehigh> <node>video48-1</node> <needed_info /> <play>jtv_DIipjOwUzTfBPnP8</play> <meta_game>Diablo 2</meta_game> <bitrate>100</bitrate> <broadcast_part>1</broadcast_part> <persistent>true</persistent> <video_height>226</video_height> <token>6b1e8dba80f114093b6a2b6693468f132c040cc0:{"swfDomains": ["justin.tv", "jtvx.com", "xarth.com", "twitchtv.com", "twitch.tv", "wdtinc.com", "imapweather.com", "facebook.com", "starcrafting.com"], "streamName": "jtv_DIipjOwUzTfBPnP8", "expiration": 1319626541.7704389, "server": "video48-1"} </token> <connect>rtmp://199.9.252.231/app</connect> <broadcast_id>1967142704</broadcast_id> <viewer_count>52</viewer_count> </iphonehigh> <iphonelow> <node>video41-1</node> <needed_info /> <play>jtv_B_Vwp3W_Uvbp1NnU</play> <meta_game>Diablo 2</meta_game> <bitrate>25</bitrate> <broadcast_part>1</broadcast_part> <persistent>true</persistent> <video_height>226</video_height> <token>0bad4a680e20f517365b966779d5e4053b37ba62:{"swfDomains": ["justin.tv", "jtvx.com", "xarth.com", "twitchtv.com", "twitch.tv", "wdtinc.com", "imapweather.com", "facebook.com", "starcrafting.com"], "streamName": "jtv_B_Vwp3W_Uvbp1NnU", "expiration": 1319626541.7846429, "server": "video41-1"} </token> <connect>rtmp://199.9.251.69/app</connect> <starved>true</starved> <broadcast_id>1967142688</broadcast_id> <viewer_count>52</viewer_count> </iphonelow> </nodes>
The flash player embed in the justin.tv webpage has chosen the 360p stream, so suddenly it has started a RTMP handshake with 199.9.255.176. After some messages exchanged, my pc has sent some of the information found in the token field.

So, seems that there is not a simple URL encode way to get with the channel by hand.

The question to me, it's still opened, since I don't understand the RTMP procotol, neither justin.tv mechanics.

ghoto
New Cone
New Cone
Posts: 2
Joined: 26 Oct 2011 13:11

Re: Has anyone ever played live justin.tv or ustream with VL

Postby ghoto » 26 Oct 2011 15:15

http://en.wikipedia.org/wiki/Real_Time_ ... cification

could help to translate the xml file justin.tv provides into a URL such that VLC can understand.

I can't try this out, but ... figuring the XML code above I would construct a URL like

rtmp://199.9.252.18/app/jtv_bYEApjTFPsYlrsPa?fmta-token=b099ff0c9a52e638dc5a1de68738b31c7b61f8e5&as=ams01-video4-2

for instance...

dr_always
Blank Cone
Blank Cone
Posts: 37
Joined: 07 Oct 2011 00:46

Re: Has anyone ever played live justin.tv or ustream with VL

Postby dr_always » 26 Oct 2011 16:48

I can't try this out, but ... figuring the XML code above I would construct a URL like

rtmp://199.9.252.18/app/jtv_bYEApjTFPsYlrsPa?fmta-token=b099ff0c9a52e638dc5a1de68738b31c7b61f8e5&as=ams01-video4-2

for instance...
I just tried that URL and it wouldn't play in VLC. RTMP urls seem to be of no good in VLC, I've never had one play. I've had one play with another media player but not with VLC. In this thread, VLC_help says there needs to be a .lua file written for justin.tv and placed into the VideoLAN\VLC\lua\playlist directory which would probably take me several months to learn to do since I'm not fluent in any programming languages yet. There looks to be .lua code written for 22 different video streaming sites and none of these are live video streaming like justin.tv is. Most of these sites don't even play when you paste their http URLs into VLC but a few do. Dailymotion videos play fine in VLC and after using the lua code edited by another forum member named Casketizer in this thread, Youtube videos now play fine as well. Youtube would not play for most VLC users before he edited and fixed the lua code.

I'm thinking about pming Casketizer and seeing if he would be up to editing the lua code for a justin.tv stream, if this is even possible with a live stream instead of the type on youtube and dailymotion. In the 2nd thread I linked in this post, he said he fixed the youtube lua in just a few minutes during his lunch break after never seeing a line of lua before! As sad as it may sound, having my favorite justin streams play in VLC player would make my life about 10x better heh.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Bing [Bot] and 26 guests