rtmpdump not working with dailymotion
Hi. Since about last week, dailymotion gives rtmpe:// links instead of HTTP links, but rtmpdump seems unable to handle them. Steps to reproduce: 1. Get a dailymotion page, and grep for the URL: curl -s http://www.dailymotion.com/video/xnqokq_nisemonogatari-ep01-remplacement_sho... | grep 'addVariable.*hqURL' > hqurl 2. Edit hqurl, keep only the part between hqURL and hd720URL, unescape. The reslut looks like that: http://www.dailymotion.com/cdn/H264-848x480/video/xnqokq.mp4?cell=secure-vod&auth=1327156245-97fa5df4c0ab51ed84edbc9a6c2b1f3d 3. Get the file, it is a simple text file holding an URL: curl http://www.dailymotion.com/cdn/H264-848x480/video/xnqokq.mp4[...] rtmpe://vod-02.dailymotion.com/video/mp4:470/678/39876074:mp4_h264_aac_hq.mp4?auth=1326990735-585a75e52b1a4f7fb0ffbe07376b4122 4. Use rtmpdump: rtmpdump -o blah.mp4 -r rtmpe://vod-02... Result: RTMPDump v2.4 (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL Connecting ... WARNING: Trying different position for server digest! INFO: Connected... ERROR: Closing connection: NetStream.Play.Failed And blah.mp4 is empty. Any idea on how to fix that? Regards, -- Nicolas George
On Thu, 19 Jan 2012 16:52:53 +0100, Nicolas George wrote:
Hi.
Since about last week, dailymotion gives rtmpe:// links instead of HTTP links, but rtmpdump seems unable to handle them.
use rtmpsuck. with rtmpsuck and a tor exitnodes {fr} i get: RTMP Proxy Server v2.4 (c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL Streaming on rtmp://0.0.0.0:1935 Processing connect app: video?auth=1327012331-4222a8bdbce948e428628e8a78ee7f72 flashVer: WIN 11,1,102,55 swfUrl: http://static1.dmcdn.net/flash/dmplayerv4/dmplayer-prod.swf.v27ca447c438f160... tcUrl: rtmpe://vod-02.dailymotion.com:1935/video?auth=1327012331-4222a8bdbce948e428628e8a78ee7f72 pageUrl: http://www.dailymotion.com/dybex#videoId=xnqokq WARNING: Trying different position for server digest! ERROR: Handshake failed Closing connection... done! Playpath: mp4:470/678/39876074:mp4_h264_aac_hq.mp4?auth=1327012331-4222a8bdbce948e428628e8a78ee7f72 Saving as: 39876074_mp4_h264_aac_hq.mp4 ERROR: RTMP_ReadPacket, failed to read RTMP packet header ERROR: RTMP_ReadPacket, failed to read RTMP packet header Closing connection... done! your rtmpdump command should look like this: rtmpdump -r "rtmpe://vod-02.dailymotion.com:1935/video" -a "video?auth=1327012792-aa06be573c175b50e64c1eabc25c5f4a" -f "WIN 11,1,102,55" -W "http://static1.dmcdn.net/flash/dmplayerv4/dmplayer-prod.swf.v27ca447c438f160..." -p "http://www.dailymotion.com/video/xnqokq_nisemonogatari-ep01-remplacement_sho..." -y "mp4:470/678/39876074:mp4_h264_aac_hq.mp4?auth=1327012792-aa06be573c175b50e64c1eabc25c5f4a" -o 39876074_mp4_h264_aac_hq.flv but it dont work for me, i also cant watch the video in my browser (i can see the ads), probably due to not being in france and the video being country blocked. try replacing the auth part with a new auth key and running that command line. -compn
Le decadi 30 nivôse, an CCXX, compn a écrit :
use rtmpsuck. with rtmpsuck and a tor exitnodes {fr} i get:
I would be interested in the exact procedure to use it. Is there any documentation somewhere?
your rtmpdump command should look like this:
rtmpdump -r "rtmpe://vod-02.dailymotion.com:1935/video" -a "video?auth=1327012792-aa06be573c175b50e64c1eabc25c5f4a" -f "WIN 11,1,102,55" -W "http://static1.dmcdn.net/flash/dmplayerv4/dmplayer-prod.swf.v27ca447c438f160..." -p "http://www.dailymotion.com/video/xnqokq_nisemonogatari-ep01-remplacement_sho..." -y "mp4:470/678/39876074:mp4_h264_aac_hq.mp4?auth=1327012792-aa06be573c175b50e64c1eabc25c5f4a" -o 39876074_mp4_h264_aac_hq.flv
Thanks, that worked for me (using a fresh auth key). But there is another problem now: the transfer keeps being interrupted after a few percents, and restarts at an earlier point. That makes the overall progress slow as hell: the SD version could be finished, but the HD720p version seems to make no progress at all. It seems I can reduce the phenomenon by overloading my Internet link (with scp /dev/urandom), so I guess it is related to the download speed. Is there a way to get rtmpdump to adapt the bitrate by itself? Or to set the amount of overlap when reconnecting (it seems to be ~60 seconds)? Regards, -- Nicolas George
On Thu, 19 Jan 2012 23:26:31 +0100, Nicolas George wrote:
Le decadi 30 nivôse, an CCXX, compn a écrit :
use rtmpsuck. with rtmpsuck and a tor exitnodes {fr} i get:
I would be interested in the exact procedure to use it. Is there any documentation somewhere?
depends what os you are using. for linux/bsd, read the README in rtmp source dir. for windows, you might have to use rtmpexplorer frontend because it has the port capture dll.
your rtmpdump command should look like this:
rtmpdump -r "rtmpe://vod-02.dailymotion.com:1935/video" -a "video?auth=1327012792-aa06be573c175b50e64c1eabc25c5f4a" -f "WIN 11,1,102,55" -W "http://static1.dmcdn.net/flash/dmplayerv4/dmplayer-prod.swf.v27ca447c438f160..." -p "http://www.dailymotion.com/video/xnqokq_nisemonogatari-ep01-remplacement_sho..." -y "mp4:470/678/39876074:mp4_h264_aac_hq.mp4?auth=1327012792-aa06be573c175b50e64c1eabc25c5f4a" -o 39876074_mp4_h264_aac_hq.flv
Thanks, that worked for me (using a fresh auth key).
But there is another problem now: the transfer keeps being interrupted after a few percents, and restarts at an earlier point. That makes the overall progress slow as hell: the SD version could be finished, but the HD720p version seems to make no progress at all.
It seems I can reduce the phenomenon by overloading my Internet link (with scp /dev/urandom), so I guess it is related to the download speed.
Is there a way to get rtmpdump to adapt the bitrate by itself?
Or to set the amount of overlap when reconnecting (it seems to be ~60 seconds)?
no clue. btw arent there easier (and non re-encoded) ways to get vostfr rips? like usenet or torrents? -compn
Le decadi 30 nivôse, an CCXX, compn a écrit :
depends what os you are using.
for linux/bsd, read the README in rtmp source dir.
Got it, thanks.
no clue.
I found "trickle", but strace shows me it is not a deconnecr/reconnect. That's curious.
btw arent there easier (and non re-encoded) ways to get vostfr rips? like usenet or torrents?
Possibly, but those are not fansub that someone put on dailymotion: it is the official version from the French publisher. It's just that watching them with flash in a browser is just out of the question. Furthermore, as a matter of principle I like my tools to work: this was the video that showed me the problem, but I am pretty sure there are other. Anyway, thanks for the help. Regards, -- Nicolas George
participants (2)
-
compn -
Nicolas George