PDA

View Full Version : curl rtmp


enda
05-01-2014, 02:44 PM
How do I download rtmp videos from http://www.tg4.ie/en/player/tg4-player.html using curl

which is available by clicking

Download RTMP, SSH2, SSL, SSPI Version

on

http://www.paehl.com/open_source/?CURL_7.36.0 (via http://curl.haxx.se/download.html)

peterpan
05-01-2014, 10:57 PM
Do you have to use curl? If not, you can try downloading it using ffmpeg instead...

Download Command

ffmpeg -i "http://tg4-lh.akamaihd.net/IdiBeo1_1200_tg4@118693?videoId=2539098496001&lineUpId=&pubId=1290862567001&playerId=1364138050001&affiliateId=&v=3.3.0&fp=WIN%2011,9,900,117&r=CBOCY&g=YLHBMNKDQNYV" -c copy out9.flv

Play Command
ffplay -i "http://tg4-lh.akamaihd.net/IdiBeo1_1200_tg4@118693?videoId=2539098496001&lineUpId=&pubId=1290862567001&playerId=1364138050001&affiliateId=&v=3.3.0&fp=WIN%2011,9,900,117&r=CBOCY&g=YLHBMNKDQNYV"

http://i.imgur.com/aAGZ5sw.png

BUT if you must use curl... then try this...

curl "http://tg4-lh.akamaihd.net/IdiBeo1_1200_tg4@118693?videoId=2539098496001&lineUpId=&pubId=1290862567001&playerId=1364138050001&affiliateId=&v=3.3.0&fp=WIN%2011,9,900,117&r=CBOCY&g=YLHBMNKDQNYV" -k -O

enda
05-02-2014, 01:33 PM
Thanks very much.

The 'LIVE STREAM' is the only video on the page which does not use rtmp. How do you download one of the videos in the 2x4 grid below the LIVE STREAM?

enda
05-02-2014, 03:12 PM
You can use http for those too;

http://tgfour.brightcove.com.edgesuite.net/rtmp_uds/1290862567001/201405/3028/1290862567001_3530473347001_WCL031481.mp4?playerId =1364138050001&lineupId=&affiliateId=&pubId=1290862567001&videoId=3530417353001



Thanks. How did you get this URL?

peterpan
05-02-2014, 08:13 PM
He just concatenated a couple of strings ;)

You can also use rtmpdump to get the code...

rtmpdump -r "rtmp://cp156323.edgefcs.net:1935/ondemand" -a "ondemand?videoId=3530417353001&lineUpId=&pubId=1290862567001&playerId=1364138050001&affiliateId=" -f "WIN 11,9,900,117" -W "http://admin.brightcove.com/viewer/us20140416.1645/federatedVideoUI/BrightcovePlayer.swf" -p "http://www.tg4.ie/en/player/tg4-player.html" -y "mp4:videos/1290862567001/201405/3028/1290862567001_3530473347001_WCL031481.mp4?videoId= 3530417353001&lineUpId=&pubId=1290862567001&playerId=1364138050001&affiliateId=" -o "output.flv"

Cheers!

enda
05-06-2014, 01:37 PM
Thanks.

How do you get the string:

http://tgfour.brightcove.com.edgesuite.net/rtmp_uds/

This is the preferred way since I want to download over HTTP, unless curl can download a RTMP URL using a HTTP/S proxy.

Also is it possible to download over HTTP for the video at http://www.rte.ie/player/ie/show/10274556/

enda
05-07-2014, 01:47 PM
Also this URL is from http://www.tg4.ie/en/player/tg4-player.html

rtmp://cp201884.edgefcs.net/ondemand/mp4:videos/1290862567001/1290862567001_3426600466001_WCL027080.mp4

The text in bold can be used to form:

http://tgfour.brightcove.com.edgesuite.net/rtmp_uds/1290862567001/1290862567001_3426600466001_WCL027080.mp4

yet this does not work. Do you know the reason behind this?, or have a workaround.

Thanks.

blimey
05-07-2014, 03:05 PM
Brightcove won't process a http url unless it has all (or most) of the params included at the end of the url. Like;

?playerId=1364138050001&lineupId=&affiliateId=&pubId=1290862567001&videoId=3426600466001


Most of them don't change (for a given client/domain), except perhaps "videoId=", so you can just append the same params to the end of the url (after .mp4).
So, in this case;

http://tg4.uds.ak.o.brightcove.com.edgesuite.net/1290862567001/1290862567001_3426600466001_WCL027080.mp4?playerId =1364138050001&lineupId=&affiliateId=&pubId=1290862567001&videoId=3426600466001


On the other hand, the rtmp url you provided;

rtmp://cp201884.edgefcs.net/ondemand/mp4:videos/1290862567001/1290862567001_3426600466001_WCL027080.mp4

Will download as simple rtmp, without any (special) parameters. So, it may just be easier to use rtmp.

enda
05-08-2014, 12:51 PM
Many thanks.

http://tg4.uds.ak.o.brightcove.com.edgesuite.net/1290862567001/1290862567001_3426600466001_WCL027080.mp4

downloaded just fine. The problem was not the params but that prepended URL was


http://tg4.uds.ak.o.brightcove.com.edgesuite.net/

instead of

http://tgfour.brightcove.com.edgesuite.net/rtmp_uds/


How do you get the string above:

http://tg4.uds.ak.o.brightcove.com.edgesuite.net/

I want to download over HTTP, unless curl can download a RTMP URL using a HTTP/S proxy.

Is it possible to download over HTTP for the video at http://www.rte.ie/player/ie/show/10274556/

enda
05-12-2014, 03:22 PM
I want to download over HTTP, unless curl can download a RTMP URL using a HTTP/S proxy.

Is it possible to download over HTTP for the video at

http://www.rte.ie/player/ie/show/10276570/

enda
07-17-2014, 02:58 PM
The interface on the website changed. How do I get the rtmp URL for the following video:

http://www.tg4.tv/share.php?p=3680660664001&t=Nuacht%20TG4%2017-193%20&i=http://tgfour.brightcove.com.edgesuite.net/pd/1290862567001/201407/3977/1290862567001_3680783708001_NUACHTTG42014193-1-4-vs.jpg?pubId=1290862567001&d=M%C3%B3rimeachta%C3%AD%20an%20lae%20%C3%B3%20Aon ad%20Nuachta%20TG4.

Thanks.

peterpan
07-17-2014, 03:10 PM
Not sure if this is the video you want...when you open the page several videos are listed there!!!

rtmpdump -r "rtmp://cp156323.edgefcs.net:1935/ondemand" -a "ondemand?videoId=3680660664001&lineUpId=&pubId=1290862567001&playerId=3400194480001&affiliateId=" -f "WIN 13,0,0,214" -W "http://admin.brightcove.com/viewer/us20140716.1307/federatedVideoUI/BrightcovePlayer.swf" -p "http://www.tg4.tv/share.php?p=3680660664001&t=Nuacht%20TG4%2017-193%20&i=http://tgfour.brightcove.com.edgesuite.net/pd/1290862567001/201407/3977/1290862567001_3680783708001_NUACHTTG42014193-1-4-vs.jpg?pubId=1290862567001&d=M%C3%B3rimeachta%C3%AD%20an%20lae%20%C3%B3%20Aon ad%20Nuachta%20TG4" -y "mp4:videos/1290862567001/201407/3977/1290862567001_3680783779001_NUACHTTG42014193-1-4.mp4?videoId=3680660664001&lineUpId=&pubId=1290862567001&playerId=3400194480001&affiliateId=" -o "2014-07-17_02-04-45_1290862567001_3680783779001_NUACHTTG42014193-1-4.flv"

enda
07-17-2014, 03:25 PM
Yes, it is. Thanks.

enda
07-24-2014, 03:08 PM
For this video

http://www.tg4.tv/share.php?p=3680660664001&t=Nuacht%20TG4%2017-193%20&i=http://tgfour.brightcove.com.edgesuite.net/pd/1290862567001/201407/3977/1290862567001_3680783708001_NUACHTTG42014193-1-4-vs.jpg?pubId=1290862567001&d=M%C3%B3rimeachta%C3%AD%20an%20lae%20%C3%B3%20Aon ad%20Nuachta%20TG4


I can see the URL for the image of it here:

http://tgfour.brightcove.com.edgesuite.net/pd/1290862567001/201407/3977/1290862567001_3680783708001_NUACHTTG42014193-1-4-vs.jpg

I know the video is at:

http://tgfour.brightcove.com.edgesuite.net/rtmp_uds/1290862567001/201407/3977/1290862567001_3680783779001_NUACHTTG42014193-1-4.mp4


The only difference is 3680783708001 in the former and 3680783779001 in the latter, do you know the reason for this, and how to obtain the latter?


Also, can you show me the rtmpdump command for http://www.tg4.tv/share.php?p=3688009308001&t=Timpeall%20na%20T%C3%ADre%2012-28&i=http://tgfour.brightcove.com.edgesuite.net/pd/1290862567001/201407/3047/1290862567001_3688757520001_vs-53cd2e32e4b0ba23df947d30-672293882001.jpg?pubId=1290862567001&d=Achoimre%20ar%20chuid%20de%20mh%C3%B3rsc%C3%A9al ta%20na%20seachtaine%20mar%20a%20craoladh%20ar%20N uacht%20TG4 please?

Is there a way of obtaining the rtmpdump command as in

rtmpdump -r "rtmp://cp156323.edgefcs.net:1935/ondemand" -a "ondemand?videoId=3680660664001&lineUpId=&pubId=1290862567001&playerId=3400194480001&affiliateId=" -f "WIN 13,0,0,214" -W "http://admin.brightcove.com/viewer/us20140716.1307/federatedVideoUI/BrightcovePlayer.swf" -p "http://www.tg4.tv/share.php?p=3680660664001&t=Nuacht%20TG4%2017-193%20&i=http://tgfour.brightcove.com.edgesuite.net/pd/1290862567001/201407/3977/1290862567001_3680783708001_NUACHTTG42014193-1-4-vs.jpg?pubId=1290862567001&d=M%C3%B3rimeachta%C3%AD%20an%20lae%20%C3%B3%20Aon ad%20Nuachta%20TG4" -y "mp4:videos/1290862567001/201407/3977/1290862567001_3680783779001_NUACHTTG42014193-1-4.mp4?videoId=3680660664001&lineUpId=&pubId=1290862567001&playerId=3400194480001&affiliateId=" -o "2014-07-17_02-04-45_1290862567001_3680783779001_NUACHTTG42014193-1-4.flv"

without admin rights in Windows?

enda
07-31-2014, 01:18 PM
Is there a way of obtaining the rtmpdump command as in

rtmpdump -r "rtmp://cp156323.edgefcs.net:1935/ondemand" -a "ondemand?videoId=3680660664001&lineUpId=&pubId=1290862567001&playerId=3400194480001&affiliateId=" -f "WIN 13,0,0,214" -W "http://admin.brightcove.com/viewer/us20140716.1307/federatedVideoUI/BrightcovePlayer.swf" -p "http://www.tg4.tv/share.php?p=3680660664001&t=Nuacht%20TG4%2017-193%20&i=http://tgfour.brightcove.com.edgesuite.net/pd/1290862567001/201407/3977/1290862567001_3680783708001_NUACHTTG42014193-1-4-vs.jpg?pubId=1290862567001&d=M%C3%B3rimeachta%C3%AD%20an%20lae%20%C3%B3%20Aon ad%20Nuachta%20TG4" -y "mp4:videos/1290862567001/201407/3977/1290862567001_3680783779001_NUACHTTG42014193-1-4.mp4?videoId=3680660664001&lineUpId=&pubId=1290862567001&playerId=3400194480001&affiliateId=" -o "2014-07-17_02-04-45_1290862567001_3680783779001_NUACHTTG42014193-1-4.flv"

without admin rights in Windows?

enda
08-11-2014, 09:24 AM
Is it possible to download this video over HTTP

http://www.tg4.tv/share.php?p=3720654368001&t=Domhan%20an%20D%C3%BAlra%201-2&i=http://tgfour.brightcove.com.edgesuite.net/pd/1555966122001/201408/1063/1555966122001_3720664070001_WCL031762-vs.jpg?pubId=1555966122001&d=Foraois%20reoite%20an%20Taiga%20a%20chl%C3%BAda% C3%ADonn%20an%20chuid%20is%20m%C3%B3%20de%20Chr%C3 %ADoch%20Lochlann,%20An%20R%C3%BAis%20agus%20Meiri ce%C3%A1%20Thuaidh,%20a%20bheidh%20faoi%20chaibidi l%20ar%20an%20gcl%C3%A1r%20seo.%20Is%20sa%20bhfora ois%20seo%20at%C3%A1%20aon%20trian%20de%20chrainn% 20an%20domhain

From

mp4:videos/1555966122001/201408/1063/1555966122001_3720682789001_WCL031762.mp4

the following should work

http://tgfour.brightcove.com.edgesuite.net/rtmp_uds/1555966122001/201408/1063/1555966122001_3720682789001_WCL031762.mp4

yet it doesn't.

blimey
08-11-2014, 11:14 AM
Is it possible to download this video over HTTP

http://www.tg4.tv/share.php?p=3720654368001&t=Domhan%20an%20D%C3%BAlra%201-2&i=http://tgfour.brightcove.com.edgesuite.net/pd/1555966122001/201408/1063/1555966122001_3720664070001_WCL031762-vs.jpg?pubId=1555966122001&d=Foraois%20reoite%20an%20Taiga%20a%20chl%C3%BAda% C3%ADonn%20an%20chuid%20is%20m%C3%B3%20de%20Chr%C3 %ADoch%20Lochlann,%20An%20R%C3%BAis%20agus%20Meiri ce%C3%A1%20Thuaidh,%20a%20bheidh%20faoi%20chaibidi l%20ar%20an%20gcl%C3%A1r%20seo.%20Is%20sa%20bhfora ois%20seo%20at%C3%A1%20aon%20trian%20de%20chrainn% 20an%20domhain

From

mp4:videos/1555966122001/201408/1063/1555966122001_3720682789001_WCL031762.mp4

the following should work

http://tgfour.brightcove.com.edgesuite.net/rtmp_uds/1555966122001/201408/1063/1555966122001_3720682789001_WCL031762.mp4

yet it doesn't.

Is the problem just with that one video? It seems the mp4 file is genuinely not present on tgfour.brightcove. But the json data shows the geo-restrict setting on for this video. The flash player attempts to call hds (f4m), but with a 403 result. However, the hls (m3u8) does work;

http://c.brightcove.com/services/mobile/streaming/index/master.m3u8?videoId=3720654368001

enda
08-11-2014, 11:25 AM
Is the problem just with that one video? It seems the mp4 file is genuinely not present on tgfour.brightcove. But the json data shows the geo-restrict setting on for this video. The flash player attempts to call hds (f4m), but with a 403 result. However, the hls (m3u8) does work;

http://c.brightcove.com/services/mobile/streaming/index/master.m3u8?videoId=3720654368001


There are a few similar videos that don't work, however most do, like:

http://tgfour.brightcove.com.edgesuite.net/rtmp_uds/1290862567001/201408/903/1290862567001_3714639095001_WCL004593.mp4

enda
09-08-2014, 10:12 AM
How do you download the video at:

http://nasc.tg4.tv/1ojJXql


The link http://tgfour.brightcove.com.edgesuite.net/rtmp_uds/1555966122001/201409/579/1555966122001_3772204846001_214289363327-4.mp4 does not work.

Thanks.

hasomaso
09-08-2014, 11:35 AM
use rtmpdumphelper+rtmpsrv

rtmpdump -r "rtmp://cp166891.edgefcs.net:1935/ondemand" -a "ondemand?videoId=3772183997001&lineUpId=&pubId=1290862567001&playerId=3400194480001&affiliateId=" -f "WIN 14,0,0,176" -W "http://admin.brightcove.com/viewer/us20140807.1543/federatedVideoUI/BrightcovePlayer.swf" -p "http://www.tg4.tv/share.php?p=3772183997001&t=Cluiche%20Ceannais%20Iom%C3%A1na%20(P1)&i=http://tgfour.brightcove.com.edgesuite.net/pd/1555966122001/201409/2579/1555966122001_3772196675001_214289362327-4-vs.jpg?pubId=1555966122001&d=Deis%20eile%20Cluiche%20Ceannais%20Iom%C3%A1na%2 0na%20h%C3%89ireann%20idir%20Cill%20Chainnigh%20ag us%20Tiobraid%20%C3%81rann%20a%20fheice%C3%A1il.%2 0Garry%20Mac%20Donncha%20a%20bheidh%20i%20mbun%20t r%C3%A1chtaireachta.%20C%C3%A9%20a%20thabharfaidh% 20Corn%20Mhic%20C%C3%A1rthaigh%20leo?" -y "mp4:videos/1555966122001/201409/2579/1555966122001_3772222402001_214289362327-4.mp4?videoId=3772183997001&lineUpId=&pubId=1290862567001&playerId=3400194480001&affiliateId=" -o "output.flv"

RTMPDump v2.4 GIT-2014-03-02 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
WARNING: You haven't specified an output file (-o filename), using stdout
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO: duration 2413.95
INFO: moovPosition 48.00
INFO: width 672.00
INFO: height 402.00
INFO: videocodecid avc1
INFO: audiocodecid mp4a
INFO: avcprofile 77.00
INFO: avclevel 30.00
INFO: aacaot 2.00
INFO: videoframerate 25.00
INFO: audiosamplerate 44100.00
INFO: audiochannels 2.00
INFO: tags:
INFO: ┬Ūtoo Lavf53.24.2
INFO: trackinfo:
INFO: length 60348.00
INFO: timescale 25.00
INFO: language eng
INFO: sampledescription:
INFO: sampletype avc1
INFO: length 106455040.00
INFO: timescale 44100.00
INFO: language eng
INFO: sampledescription:
INFO: sampletype mp4a
13775.048 kB / 95.88 sec (3.9%)

http://i.imgur.com/IjZzbxk.png

enda
09-08-2014, 12:03 PM
Thanks very much. However I cannot use rtmpdump because it does not support a HTTP proxy. Is there another way to do download the file?

Also, I cannot download the video at http://nasc.tg4.tv/1rvxIYL, this link http://tgfour.brightcove.com.edgesuite.net/rtmp_uds/1555966122001/201409/1286/1555966122001_3761348282001_WCL031740.mp4 does not work, even though I can use links like it for similar videos.

P3T3
09-09-2014, 02:36 PM
Thanks very much. However I cannot use rtmpdump because it does not support a HTTP proxy. Is there another way to do download the file?

Also, I cannot download the video at http://nasc.tg4.tv/1rvxIYL, this link http://tgfour.brightcove.com.edgesuite.net/rtmp_uds/1555966122001/201409/1286/1555966122001_3761348282001_WCL031740.mp4 does not work, even though I can use links like it for similar videos.

ffmpeg -i http://tgfour.brightcove.com.edgesuite.net/rtmp_uds/1555966122001/201409/1286/1555966122001_3761348282001_WCL031740.mp4