Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtmpdump trouble with livestream:original #4040

Closed
ghostwords opened this issue Oct 26, 2014 · 2 comments
Closed

rtmpdump trouble with livestream:original #4040

ghostwords opened this issue Oct 26, 2014 · 2 comments

Comments

@ghostwords
Copy link

@ghostwords ghostwords commented Oct 26, 2014

Downloading a livestream.com (original/old site) video fails with "rtmpdump exited with code 1". However, I was able to download the video by using rtmpdump directly after playing around with its parameters. Specifically, the problem might be an unwanted ".mp4" ending in the Playpath, leading to a "NetStream.Play.StreamNotFound" error in rtmpdump.

youtube-dl version 2014.10.25
RTMPDump v2.4

This worked:

rtmpdump -r "rtmp://extondemand.livestream.com:80/ondemand" -W "http://static.livestream.com/chromelessPlayer/v21/playerapi.swf?hash=5uetk&v=0803&classid=D27CDB6E-AE6D-11cf-96B8-444553540000&jsEnabled=false&wmode=opaque" -y "trans/dv15/mogulus-user-files/chta3m/2014/10/20/33672b8f-fffe-4c85-82fd-49511de5f8d0" -o out.flv

This failed:

youtube-dl -v 'http://www.livestream.com/ta3m/video?clipId=pla_52897632-8001-4f83-9ea0-c0641c7002f9'

Verbose output:

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://www.livestream.com/ta3m/video?clipId=pla_52897632-8001-4f83-9ea0-c0641c7002f9']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.10.25
[debug] Python version 2.7.3 - Linux-3.2.0-67-generic-pae-i686-with-Ubuntu-12.04-precise
[debug] Proxy map: {}
[livestream:original] pla_52897632-8001-4f83-9ea0-c0641c7002f9: Downloading XML
[debug] Invoking downloader on u'rtmp://extondemand.livestream.com/ondemand'
[download] Destination: Live Show Mon Oct 20 2014 06 -35 -37 PM-pla_52897632-8001-4f83-9ea0-c0641c7002f9.flv
[debug] rtmpdump command line: rtmpdump --verbose -r rtmp://extondemand.livestream.com/ondemand -o 'Live Show Mon Oct 20 2014 06 -35 -37 PM-pla_52897632-8001-4f83-9ea0-c0641c7002f9.flv.part' --playpath mp4:trans/dv15/mogulus-user-files/chta3m/2014/10/20/33672b8f-fffe-4c85-82fd-49511de5f8d0.mp4 --resume --skip 1
[rtmpdump] RTMPDump v2.4
[rtmpdump] (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
[rtmpdump] DEBUG: Parsing...
[rtmpdump] DEBUG: Parsed protocol: 0
[rtmpdump] DEBUG: Parsed host    : extondemand.livestream.com
[rtmpdump] DEBUG: Parsed app     : ondemand
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Protocol : RTMP
[rtmpdump] DEBUG: Hostname : extondemand.livestream.com
[rtmpdump] DEBUG: Port     : 1935
[rtmpdump] DEBUG: Playpath : mp4:trans/dv15/mogulus-user-files/chta3m/2014/10/20/33672b8f-fffe-4c85-82fd-49511de5f8d0.mp4
[rtmpdump] DEBUG: tcUrl    : rtmp://extondemand.livestream.com:1935/ondemand
[rtmpdump] DEBUG: app      : ondemand
[rtmpdump] DEBUG: live     : no
[rtmpdump] DEBUG: timeout  : 30 sec
[rtmpdump] DEBUG: Setting buffer time to: 36000000ms
[rtmpdump] Connecting ...
[rtmpdump] DEBUG: RTMP_Connect1, ... connected, handshaking
[rtmpdump] DEBUG: HandShake: Type Answer   : 03
[rtmpdump] DEBUG: HandShake: Server Uptime : 225870836
[rtmpdump] DEBUG: HandShake: FMS Version   : 4.5.2.1
[rtmpdump] DEBUG: HandShake: Handshaking finished....
[rtmpdump] DEBUG: RTMP_Connect1, handshaked
[rtmpdump] DEBUG: Invoking connect
[rtmpdump] INFO: Connected...
[rtmpdump] DEBUG: HandleServerBW: server BW = 1250000
[rtmpdump] DEBUG: HandleClientBW: client BW = 1250000 2
[rtmpdump] DEBUG: HandleChangeChunkSize, received: chunk size change to 4096
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 240 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name:             fmsVer, STRING:  FMS/4,5,2,524>
[rtmpdump] DEBUG: Property: <Name:       capabilities, NUMBER:  127.00>
[rtmpdump] DEBUG: Property: <Name:               mode, NUMBER:  1.00>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name:              level, STRING:  status>
[rtmpdump] DEBUG: Property: <Name:               code, STRING:  NetConnection.Connect.Success>
[rtmpdump] DEBUG: Property: <Name:        description, STRING:  Connection succeeded.>
[rtmpdump] DEBUG: Property: <Name:     objectEncoding, NUMBER:  0.00>
[rtmpdump] DEBUG: Property: <Name:               data, OBJECT>
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name:            version, STRING:  4,5,2,524>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_result>
[rtmpdump] DEBUG: HandleInvoke, received result for method call <connect>
[rtmpdump] DEBUG: sending ctrl. type: 0x0003
[rtmpdump] DEBUG: Invoking createStream
[rtmpdump] DEBUG: HandleCtrl, received ctrl. type: 26, len: 3
[rtmpdump] DEBUG: HandleCtrl, SWFVerification ping received: 
[rtmpdump] ERROR: HandleCtrl: Ignoring SWFVerification request, use --swfVfy!
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 21 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <onBWDone>
[rtmpdump] DEBUG: Invoking _checkbw
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 29 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_result>
[rtmpdump] DEBUG: HandleInvoke, received result for method call <createStream>
[rtmpdump] DEBUG: SendPlay, seekTime=0, stopTime=0, sending play: mp4:trans/dv15/mogulus-user-files/chta3m/2014/10/20/33672b8f-fffe-4c85-82fd-49511de5f8d0.mp4
[rtmpdump] DEBUG: Invoking play
[rtmpdump] DEBUG: sending ctrl. type: 0x0003
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 10275 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_onbwcheck>
[rtmpdump] DEBUG: Invoking _result
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 57 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <onBWDone>
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 40 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_onbwdone>
[rtmpdump] DEBUG: HandleChangeChunkSize, received: chunk size change to 4096
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 337 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name:              level, STRING:  error>
[rtmpdump] DEBUG: Property: <Name:               code, STRING:  NetStream.Play.StreamNotFound>
[rtmpdump] DEBUG: Property: <Name:        description, STRING:  Failed to play trans/dv15/mogulus-user-files/chta3m/2014/10/20/33672b8f-fffe-4c85-82fd-49511de5f8d0.mp4; stream not found.>
[rtmpdump] DEBUG: Property: <Name:            details, STRING:  trans/dv15/mogulus-user-files/chta3m/2014/10/20/33672b8f-fffe-4c85-82fd-49511de5f8d0.mp4>
[rtmpdump] DEBUG: Property: <Name:           clientid, STRING:  rAA-A2BA>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <onStatus>
[rtmpdump] DEBUG: HandleInvoke, onStatus: NetStream.Play.StreamNotFound
[rtmpdump] ERROR: Closing connection: NetStream.Play.StreamNotFound
[rtmpdump] DEBUG: Closing connection.
[rtmpdump] 0 bytes
[rtmpdump] RTMPDump v2.4
[rtmpdump] (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
[rtmpdump] DEBUG: Parsing...
[rtmpdump] DEBUG: Parsed protocol: 0
[rtmpdump] DEBUG: Parsed host    : extondemand.livestream.com
[rtmpdump] DEBUG: Parsed app     : ondemand
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Protocol : RTMP
[rtmpdump] DEBUG: Hostname : extondemand.livestream.com
[rtmpdump] DEBUG: Port     : 1935
[rtmpdump] DEBUG: Playpath : mp4:trans/dv15/mogulus-user-files/chta3m/2014/10/20/33672b8f-fffe-4c85-82fd-49511de5f8d0.mp4
[rtmpdump] DEBUG: tcUrl    : rtmp://extondemand.livestream.com:1935/ondemand
[rtmpdump] DEBUG: app      : ondemand
[rtmpdump] DEBUG: live     : no
[rtmpdump] DEBUG: timeout  : 30 sec
[rtmpdump] DEBUG: Failed to get last keyframe.
[rtmpdump] DEBUG: Closing connection.
ERROR: rtmpdump exited with code 1
@phihag
Copy link
Contributor

@phihag phihag commented Oct 26, 2014

Thanks for the report! How did you find the player URL? I've hardcoded it for now, but I suspect it may change.

@phihag phihag closed this in 83855f3 Oct 26, 2014
@ghostwords
Copy link
Author

@ghostwords ghostwords commented Oct 26, 2014

I just searched for examples of rtmpdump used with livestream.com; got the parameters off some forum post. Heh, sorry, that's all I got.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.