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

Trying to sniff URL for TG4 website

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

mseoige 09-07-2015 05:05 PM

Trying to sniff URL for TG4 website


 
I used to use Elmedia Player to download videos from tg4.ie with ease, but they have since changed their site architecture and it doesn't work anymore.

I downloaded Wireshark and started trying to learn to locate the actual stream URL using that but so far I haven't had any luck when following the guides I have found on the subject. I am somewhat of a noob at this, but from what I gather from my brief experimentation, I don't think this site uses RTMP. I think I identified one packet that had the video ID number but that didn't really seem to help me in attaining the full URL.

If anyone has any insight into the workings of this site and can suggest a clear method for obtaining and downloading streams from this site, I'd greatly appreciate it. As a sample, I'm trying to download this movie:
http://www.tg4.ie/ga/player/baile/?pid=4456415974001

It looks to me like the actual URL is:
http://c.brightcove.com/services/mob...290862567 001
But when I try to navigate there it tells me it's unavailable.

biezom 09-07-2015 07:37 PM

Re: Trying to sniff URL for TG4 website


 
hi

Code:

livestreamer "hlsvariant://http://c.brightcove.com/services/mobile/streaming/index/master.m3u8?videoId=4456415974001&pubId=1290862567001" best -o videos.ts
or
Code:

ffmpeg -i "http://c.brightcove.com/services/mobile/streaming/index/master.m3u8?videoId=4456415974001&pubId=1290862567001" -c copy video.ts
and with .mp4 format
Code:

ffmpeg -i "http://c.brightcove.com/services/mobile/streaming/index/master.m3u8?videoId=4456415974001&pubId=1290862567001" -absf aac_adtstoasc  -c copy video.mp4

mseoige 09-08-2015 11:48 AM

Re: Trying to sniff URL for TG4 website


 
Thanks,

Ok, this is no doubt a stupid question, but what do I do with those links? If I click the link as it is, it doesn't go anywhere. And what is the stuff before and after each link, i.e. the "ffmpeg -i" and "-absf aac_adtstoasc -c copy video.mp4"?

biezom 09-08-2015 12:44 PM

Re: Trying to sniff URL for TG4 website


 
Quote:

Originally Posted by mseoige (Post 79674)
Thanks,

Ok, this is no doubt a stupid question, but what do I do with those links? If I click the link as it is, it doesn't go anywhere. And what is the stuff before and after each link, i.e. the "ffmpeg -i" and "-absf aac_adtstoasc -c copy video.mp4"?

ffmpeg and livestreamer two software work in command line with command prompt


Moet 09-08-2015 01:52 PM

Re: Trying to sniff URL for TG4 website


 
You can also use the firefox plugin "video dowload helper" to capture this stream. I tested it yesterday and it works fine.

mseoige 09-09-2015 10:53 PM

Re: Trying to sniff URL for TG4 website


 
Unfortunately I'm on a Mac so I don't think I can use either of those two command line applications (I'll look to see if they have a Mac version but I'll be surprised if they do). As for Video Downloadhelper, I tried that and it doesn't really work very well for me. I tried it on both Firefox and Chrome and neither seems to produce a full file. At a certain point it stops recording to the first file and starts on another file, so the video ends up broken up into little pieces, sometimes discarding one of the sections for some reason. Even if it worked it would be a little cumbersome, since you have to actually watch the whole video for it to capture the stream. The nice thing about Elmedia Player is/was that you can cue the download and then it just captures it regardless of whether you're watching it or not. It's a shame it no longer works for this site.

biezom 09-09-2015 11:44 PM

Re: Trying to sniff URL for TG4 website


 
Quote:

Originally Posted by mseoige (Post 79711)
Unfortunately I'm on a Mac so I don't think I can use either of those two command line applications (I'll look to see if they have a Mac version but I'll be surprised if they do). As for Video Downloadhelper, I tried that and it doesn't really work very well for me. I tried it on both Firefox and Chrome and neither seems to produce a full file. At a certain point it stops recording to the first file and starts on another file, so the video ends up broken up into little pieces, sometimes discarding one of the sections for some reason. Even if it worked it would be a little cumbersome, since you have to actually watch the whole video for it to capture the stream. The nice thing about Elmedia Player is/was that you can cue the download and then it just captures it regardless of whether you're watching it or not. It's a shame it no longer works for this site.

livestreamer works on Mac OS

http://docs.livestreamer.io/install....ther-platforms


Code:

easy_install -U livestreamer

stinkfoot 09-10-2015 12:33 AM

Re: Trying to sniff URL for TG4 website


 
yes also supporting mobile when setting agent
Code:

http://tgfour-a.akamaihd.net/rtmp_uds/1290862567001/201509/3932/1290862567001_4456536310001_4456415974001.mp4

mseoige 09-10-2015 11:32 AM

Re: Trying to sniff URL for TG4 website


 
Thanks to everyone for their help so far. I am getting closer. Livestreamer worked for me to capture the link given by the first responder. The problem I'm having now is extrapolating this process to the other videos. I used Wireshark to get this address, for instance:

/services/mobile/streaming/index/rendition.m3u8?assetId=4445774836001&pubId=1290862 567001&videoId=4445730444001

Which I added to the http://c.brightcove.com to get

http://c.brightcove.com/services/mob...=4445730444001

I tried this with the same livestreamer format given above, changing a few things in the address to look more like the original link you provided (I changed rendition to master and removed everything from the & onward) and livestreamer returns a 404 error. I tried the link as it was as well and it said there were no streams found.

biezom 09-10-2015 12:56 PM

Re: Trying to sniff URL for TG4 website


 
Quote:

Originally Posted by mseoige (Post 79721)
Thanks to everyone for their help so far. I am getting closer. Livestreamer worked for me to capture the link given by the first responder. The problem I'm having now is extrapolating this process to the other videos. I used Wireshark to get this address, for instance:

/services/mobile/streaming/index/rendition.m3u8?assetId=4445774836001&pubId=1290862 567001&videoId=4445730444001

Which I added to the http://c.brightcove.com to get

http://c.brightcove.com/services/mob...=4445730444001

I tried this with the same livestreamer format given above, changing a few things in the address to look more like the original link you provided (I changed rendition to master and removed everything from the & onward) and livestreamer returns a 404 error. I tried the link as it was as well and it said there were no streams found.


Code:

http://c.brightcove.com/services/mobile/streaming/index/master.m3u8?videoId=4445730444001&pubId=1290862567001
>>>>>>
Code:

#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=240000,RESOLUTION=280x152
http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=4445774836001&pubId=1290862567001&videoId=4445730444001
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=440000,RESOLUTION=280x152
http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=4445785974001&pubId=1290862567001&videoId=4445730444001
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1197000,RESOLUTION=672x368
http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=4445808933001&pubId=1290862567001&videoId=4445730444001

with in red the link that you found

for rendition.m3u8 use livestreamer "hls://http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8............"

for master.m3u8 use livestreamer "hlsvariant://http://c.brightcove.com/services/mobile/streaming/index/master.m3u8.......

Code:

livestreamer "hlsvariant://http://c.brightcove.com/services/mobile/streaming/index/master.m3u8?videoId=4445730444001&pubId=1290862567001" best -o video2.ts

or

Code:

https://tgfour-a.akamaihd.net/rtmp_uds/1290862567001/201508/1002/1290862567001_4445801088001_4445730444001.mp4


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