Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

curl rtmp

(http://stream-recorder.com/forum/showthread.php?t=18237)

enda 05-01-2014 02:44 PM

curl rtmp


 
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

Re: curl rtmp


 
Do you have to use curl? If not, you can try downloading it using ffmpeg instead...

Download Command
Code:

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
Code:

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"


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

Code:

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

Re: curl rtmp


 
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

Re: curl rtmp


 
Quote:

Originally Posted by blimey (Post 67422)
You can use http for those too;
Code:

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

Re: curl rtmp


 
He just concatenated a couple of strings ;)

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

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

Re: curl rtmp


 
Thanks.

How do you get the string:

Code:

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

Re: curl rtmp


 
Also this URL is from http://www.tg4.ie/en/player/tg4-player.html

Code:

rtmp://cp201884.edgefcs.net/ondemand/mp4:videos/1290862567001/1290862567001_3426600466001_WCL027080.mp4
The text in bold can be used to form:

Code:

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

Re: curl rtmp


 
Brightcove won't process a http url unless it has all (or most) of the params included at the end of the url. Like;
Code:

?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;
Code:

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;
Code:

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

Re: curl rtmp


 
Many thanks.

Code:

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


Code:

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

Code:

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

How do you get the string above:

HTML Code:

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

Re: curl rtmp


 
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

Re: curl rtmp


 
The interface on the website changed. How do I get the rtmp URL for the following video:

http://www.tg4.tv/share.php?p=368066...0Nuachta%20TG4.

Thanks.

peterpan 07-17-2014 03:10 PM

Re: curl rtmp


 
Not sure if this is the video you want...when you open the page several videos are listed there!!!

Code:

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%20Aonad%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

Re: curl rtmp


 
Yes, it is. Thanks.

enda 07-24-2014 03:08 PM

Re: curl rtmp


 
For this video

http://www.tg4.tv/share.php?p=368066...0Nuachta%20TG4


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

Code:

http://tgfour.brightcove.com.edgesuite.net/pd/1290862567001/201407/3977/1290862567001_3680783708001_NUACHTTG42014193-1-4-vs.jpg
I know the video is at:

Code:

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=368800...20Nuacht%20TG4 please?

Is there a way of obtaining the rtmpdump command as in

Code:

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%20Aonad%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

Re: curl rtmp


 
Is there a way of obtaining the rtmpdump command as in

Code:

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%20Aonad%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

Re: curl rtmp


 
Is it possible to download this video over HTTP

http://www.tg4.tv/share.php?p=372065...20an%20domhain

From

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

the following should work

http://tgfour.brightcove.com.edgesui..._WCL031762.mp4

yet it doesn't.

blimey 08-11-2014 11:14 AM

Re: curl rtmp


 
Quote:

Originally Posted by enda (Post 69726)
Is it possible to download this video over HTTP

http://www.tg4.tv/share.php?p=372065...20an%20domhain

From

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

the following should work

http://tgfour.brightcove.com.edgesui..._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;
Code:

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

enda 08-11-2014 11:25 AM

Re: curl rtmp


 
Quote:

Originally Posted by blimey (Post 69730)
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;
Code:

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.edgesui..._WCL004593.mp4

enda 09-08-2014 10:12 AM

Re: curl rtmp


 
How do you download the video at:

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


The link http://tgfour.brightcove.com.edgesui...89363327-4.mp4 does not work.

Thanks.

hasomaso 09-08-2014 11:35 AM

Re: curl rtmp


 
use rtmpdumphelper+rtmpsrv

Code:

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%20na%20h%C3%89ireann%20idir%20Cill%20Chainnigh%20agus%20Tiobraid%20%C3%81rann%20a%20fheice%C3%A1il.%20Garry%20Mac%20Donncha%20a%20bheidh%20i%20mbun%20tr%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"
Code:

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%)


enda 09-08-2014 12:03 PM

@hasomaso


 
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.edgesui..._WCL031740.mp4 does not work, even though I can use links like it for similar videos.

P3T3 09-09-2014 02:36 PM

Re: @hasomaso


 
Quote:

Originally Posted by enda (Post 70373)
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.edgesui..._WCL031740.mp4 does not work, even though I can use links like it for similar videos.

ffmpeg -i http://tgfour.brightcove.com.edgesui..._WCL031740.mp4


All times are GMT -6. The time now is 03:35 PM.