View Single Post
  #2  
Old 09-26-2012, 05:04 PM
NobodyHere NobodyHere is offline
Junior Member
 
Join Date: Jul 2012
Posts: 8
NobodyHere is on a distinguished road
Default

Re: How to translate Wireshark info into rtmpdump command?


Okay.

1. I started Wireshark.
2. Under Start, I selected my capture interface (eth0 for myself)
3. In the "Filter" field/box, I typed "rtmpt", and hit enter. You may need to use "rtmp", or "rtmpe" instead.
4. Went to my web browser, and started playing the video. I paused, and resumed, it several times.
5. I found those instances of the video being played, or paused, under the "Info" column on Wireshark. For this example, I used a "pauseRaw ()" event under the "Info" section.
6. I right clicked on that event, and chose "Follow TCP Stream".
7. I did a "Find" search in the "Follow TCP Stream" output window for "rtmp", or "play". It took me to the relevant section here.
Quote:
"................connect.?..........app...0035 4A/videos/encoded/KillerK..flashVer...LNX 11,2,202,238..swfUrl..Ohttp://a2.vikiassets.com/assets./vikiplayer-e61eac67f28f27fdf570431ec48ac230.swf..tcUrl..=rtmp ://fms.354a.edgecastcdn.net/00354A/videos/encoded/KillerK..fpad.....capabilities.@m........audioCode cs.@.........videoCodecs.@o.......
videoFunction.?.........pageUrl..@http://www.viki.com/channe.ls/5453-killer-k/videos/51483?id=51483..objectEncoding.@.................. .....&%..............&%................ ................_result.?..........fmsVer..
FMS/4,5,2,517..capabilities.@o........mode.?.......... ...level...status..code...NetConnection.Connect.Su ccess..description...Connection succeeded...objectEncoding.@.........data.......ve rsion...4,5,2,517.........
.........&%................onBWDone..........C.+0. .......createStream.@........B.....
.........................._result.@.........?..... ....+B..D.........play.............mp4:5837_Killer K_002_360p.mp4............@....................... ......................... ..................................onStatus........ .....level...status..code...NetStream.Play.Reset.. description..0Playing and resetting
8. Here is the code I used to successfully download the video. You can compare it to the above output to see what I used.
Quote:
rtmpdump -r rtmp://fms.354a.edgecastcdn.net/00354A/videos/encoded/KillerK -p 'http://www.viki.com/channe.ls/5453-killer-k/videos/51483?id=51483' -y mp4:5837_KillerK_002_360p.mp4 -a 00354A/videos/encoded/KillerK -f 'LNX 11,2,202,238' -s http://a2.vikiassets.com/assets./vik...1ec48ac230.swf -o /run/media/root/5837_KillerK_002_360p.mp4.flv
The only thing I did differently than what the man pages marked the parameters for was use the tcURL rtmp link with the "-r" parameter instead of the "-t" parameter.


Quote:
NAME
rtmpdump - RTMP streaming media client

SYNOPSIS
rtmpdump -r url [-n hostname] [-c port] [-l protocol] [-S hostort]
[-a app] [-t tcUrl] [-p pageUrl] [-s swfUrl] [-f flashVer] [-u auth]
[-C conndata] [-y playpath] [-Y] [-v] [-d subscription] [-e] [-k skip]
[-A start] [-B stop] [-b buffer] [-m timeout] [-T key] [-j JSON]
[-w swfHash] [-x swfSize] [-W swfUrl] [-X swfAge] [-o output] [-#] [-q]
[-V] [-z]
rtmpdump -h

BTW - You can simply switch out the 360p with 480p in the file-name. This doesn't work on some sites where video has multiple resolutions.
Reply With Quote