Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > Video stream recording
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 09-07-2015, 06:05 PM
mseoige mseoige is offline
Junior Member
 
Join Date: Sep 2015
Posts: 6
mseoige is on a distinguished road
Default

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.
Reply With Quote
  #2  
Old 09-07-2015, 08:37 PM
biezom biezom is offline
Senior Member
 
Join Date: Sep 2014
Posts: 1,025
biezom is on a distinguished road
Default

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
Reply With Quote
  #3  
Old 09-08-2015, 12:48 PM
mseoige mseoige is offline
Junior Member
 
Join Date: Sep 2015
Posts: 6
mseoige is on a distinguished road
Default

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"?
Reply With Quote
  #4  
Old 09-08-2015, 01:44 PM
biezom biezom is offline
Senior Member
 
Join Date: Sep 2014
Posts: 1,025
biezom is on a distinguished road
Default

Re: Trying to sniff URL for TG4 website


Quote:
Originally Posted by mseoige View Post
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

Reply With Quote
  #5  
Old 09-08-2015, 02:52 PM
Moet Moet is offline
Member
 
Join Date: Sep 2015
Posts: 35
Moet is on a distinguished road
Default

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.
Reply With Quote
  #6  
Old 09-09-2015, 11:53 PM
mseoige mseoige is offline
Junior Member
 
Join Date: Sep 2015
Posts: 6
mseoige is on a distinguished road
Default

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.
Reply With Quote
  #7  
Old 09-10-2015, 12:44 AM
biezom biezom is offline
Senior Member
 
Join Date: Sep 2014
Posts: 1,025
biezom is on a distinguished road
Default

Re: Trying to sniff URL for TG4 website


Quote:
Originally Posted by mseoige View Post
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
Reply With Quote
  #8  
Old 09-10-2015, 01:33 AM
stinkfoot stinkfoot is offline
Fodder Ildelugtende
 
Join Date: Feb 2015
Posts: 132
stinkfoot is on a distinguished road
Default

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
Reply With Quote
  #9  
Old 09-10-2015, 12:32 PM
mseoige mseoige is offline
Junior Member
 
Join Date: Sep 2015
Posts: 6
mseoige is on a distinguished road
Default

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.
Reply With Quote
  #10  
Old 09-10-2015, 01:56 PM
biezom biezom is offline
Senior Member
 
Join Date: Sep 2014
Posts: 1,025
biezom is on a distinguished road
Default

Re: Trying to sniff URL for TG4 website


Quote:
Originally Posted by mseoige View Post
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

Last edited by biezom : 09-11-2015 at 12:57 AM. Reason: bad direct link
Reply With Quote
Reply Post New Thread
Tags:



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 06:48 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons