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 01-29-2013, 09:12 AM
BoD BoD is offline
Junior Member
 
Join Date: Jan 2013
Posts: 5
BoD is on a distinguished road
Default

Trying to save ustream, sometimes the resulting file is empty


Hi!

I have followed the instructions on this page:
http://www.tech-juice.org/2012/05/20...annels-in-vlc/
to find the rtmp address of some ustream channels, and save a few seconds in a file.

Sometimes it works with no problem.
But sometimes, it seems I receive no data, and the resulting file is empty.

Here is an example that works:
Code:
$ rtmpdump -v -r "rtmp://ustreamlivefs.fplive.net/ustream1live-live/stream_live_1_1_13027422" -W "http://www.ustream.tv/flash/viewer.swf" --live -o ~/tmp/test.flv --stop 4
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: RTMP_HashSWF: couldn't contact swfurl http://www.ustream.tv/flash/viewer.swf (HTTP error 302)
Connecting ...
WARNING: HandShake: client signature does not match!
INFO: Connected...
Starting Live Stream
For duration: 4.000 sec
INFO: Metadata:
INFO:   author                
INFO:   copyright             
INFO:   description           
INFO:   keywords              
INFO:   rating                
INFO:   title                 
INFO:   presetname            Custom
INFO:   creationdate          Mon Jan 28 14:22:36 2013
INFO:   videodevice           XSplitBroadcaster
INFO:   framerate             30.00
INFO:   width                 1280.00
INFO:   height                720.00
INFO:   videocodecid          avc1
INFO:   avclevel              31.00
INFO:   avcprofile            100.00
INFO:   videodatarate         390.62
INFO:   videokeyframe_frequency0.10
INFO:   audiodevice           VHAudioCustom
INFO:   audiosamplerate       44100.00
INFO:   audiochannels         1.00
INFO:   audioinputvolume      100.00
INFO:   audiocodecid          mp4a
INFO:   audiodatarate         93.75
INFO:   bufferSize            1200k
INFO:   maxBitrate            1200k
INFO:   xsplitBroadcasterVersion1.3.0.85
INFO:   xsplitCoreVersion     1.2.1301.1501 Version 1.2
INFO:   xsplitGameSourceVersion1.1.1.26
INFO:   xsplitMediaLibVersion 2.0.0.195
1061.349 kB / 2.95 sec
Download complete

Here is an example that does NOT work:

Code:
$ rtmpdump -v -r "rtmp://ustreamlivefs.fplive.net/ustream1live-live/stream_live_1_1_2298576" -W "http://www.ustream.tv/flash/viewer.swf" --live -o ~/tmp/test.flv --stop 4
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: RTMP_HashSWF: couldn't contact swfurl http://www.ustream.tv/flash/viewer.swf (HTTP error 302)
Connecting ...
WARNING: HandShake: client signature does not match!
INFO: Connected...
Starting Live Stream
For duration: 4.000 sec
0.000 kB / 0.00 sec
Download complete
As you can see it downloaded 0 bytes.

Any idea what could be the problem?

Thanks a lot!
Reply With Quote
  #2  
Old 01-31-2013, 11:44 AM
BoD BoD is offline
Junior Member
 
Join Date: Jan 2013
Posts: 5
BoD is on a distinguished road
Default

Re: Trying to save ustream, sometimes the resulting file is empty


No clue?
Reply With Quote
  #3  
Old 01-31-2013, 01:40 PM
AmazingMatze AmazingMatze is offline
Member
 
Join Date: Sep 2011
Posts: 52
AmazingMatze is on a distinguished road
Default

Re: Trying to save ustream, sometimes the resulting file is empty


Quote:
ERROR: RTMP_HashSWF: couldn't contact swfurl http://www.ustream.tv/flash/viewer.swf (HTTP error 302)
What is the pageURL for the streams you cannot access?
Reply With Quote
  #4  
Old 01-31-2013, 04:08 PM
chap chap is offline
Senior Member
 
Join Date: Feb 2011
Location: Ukraine
Posts: 1,165
chap is on a distinguished road
Default

Re: Trying to save ustream, sometimes the resulting file is empty


Quote:
Originally Posted by BoD View Post
No clue?
try
Code:
rtmpdump -v -r "rtmp://ustreamlivefs.fplive.net/ustream1live-live/stream_live_1_1_2298576" -W "http://static-cdn1.ustream.tv/swf/live/viewer.rsl:368.swf" -y "stream_live_1_1_2298576" -o "live.flv"
Code:
>rtmpdump -v -r "rtmp://ustreamlive
fs.fplive.net/ustream1live-live/stream_live_1_1_2298576" -W "http://static-cdn1.
ustream.tv/swf/live/viewer.rsl:368.swf" -y "stream_live_1_1_2298576" -o "live_1.
flv"
RTMPDump v2.4-80-g5b6f677
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO:   framerate             30.00
INFO:   width                 512.00
INFO:   height                384.00
INFO:   videocodecid          avc1
INFO:   videodatarate         500.00
INFO:   videokeyframe_frequency120.00
INFO:   audiocodecid          mp4a
INFO:   audiosamplerate       44100.00
INFO:   audiochannels         2.00
INFO:   audiodatarate         96.00
1511.473 kB / 15.90 sec
-
Reply With Quote
  #5  
Old 02-01-2013, 05:02 AM
BoD BoD is offline
Junior Member
 
Join Date: Jan 2013
Posts: 5
BoD is on a distinguished road
Default

Re: Trying to save ustream, sometimes the resulting file is empty


Thanks a lot for your help!
I just tried your command, Chap, but it still does the same for me:

Code:
$ rtmpdump -v -r "rtmp://ustreamlivefs.fplive.net/ustream1live-live/stream_live_1_1_2298576" -W "http://static-cdn1.ustream.tv/swf/live/viewer.rsl:368.swf" -y "stream_live_1_1_2298576" -o ~/tmp/live.flv
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
0.000 kB / 0.00 sec
Download complete
It stays ~10 seconds after "Starting Live Stream" and then it stops with the rest of the message.

I realized there was a problem with the -W parameter, but I think it is not related to my issue since it works with other streams even with this warning.

I am wondering if maybe the stream is simply not available at times... Ustream indicates certain channels as "offline", but it is weird because the original page (http://www.ustream.tv/ffrc warning: video of cats ) is NOT "offline" right now, and I can watch the video in the broswer, so it must be something else...

Thanks again for your help.
Reply With Quote
  #6  
Old 02-01-2013, 09:45 AM
AmazingMatze AmazingMatze is offline
Member
 
Join Date: Sep 2011
Posts: 52
AmazingMatze is on a distinguished road
Default

Re: Trying to save ustream, sometimes the resulting file is empty


This one should do the trick...
Code:
rtmpdump -r "rtmp://flash51.xo.tcdn.ustream.tv:1935/ustreamCdn/flash57/2298576" -a "ustreamCdn/flash57/2298576" -f "WIN 11,5,502,146" -W "http://static-cdn1.ustream.tv/swf/live/viewer.rsl:369.swf" -p "http://www.ustream.tv/ffrc" -y "streams/live_1" -o "some_cats_here.flv
Accidentally deleted my previous post here.
Reply With Quote
  #7  
Old 02-01-2013, 09:48 AM
BoD BoD is offline
Junior Member
 
Join Date: Jan 2013
Posts: 5
BoD is on a distinguished road
Default

Re: Trying to save ustream, sometimes the resulting file is empty


Hey thanks for the reply. How did you get this url and parameters? I'm guessing using wireshark or something similar?
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:47 PM.


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