mseoige
09-07-2015, 05:05 PM
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/mobile/streaming/index/master.m3u8?videoId=4456415974001&pubId=1290862567001
But when I try to navigate there it tells me it's unavailable.
biezom
09-07-2015, 07:37 PM
hi
livestreamer "hlsvariant://http://c.brightcove.com/services/mobile/streaming/index/master.m3u8?videoId=4456415974001&pubId=1290862567001" best -o videos.ts
or
ffmpeg -i "http://c.brightcove.com/services/mobile/streaming/index/master.m3u8?videoId=4456415974001&pubId=1290862567001" -c copy video.ts
and with .mp4 format
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
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
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
http://i.imgur.com/ZQjoJPm.png
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
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
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.html#other-platforms
easy_install -U livestreamer
stinkfoot
09-10-2015, 12:33 AM
yes also supporting mobile when setting agent
http://tgfour-a.akamaihd.net/rtmp_uds/1290862567001/201509/3932/1290862567001_4456536310001_4456415974001.mp4
mseoige
09-10-2015, 11:32 AM
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=1290862567001&videoId=4445730444001
Which I added to the http://c.brightcove.com to get
http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=4445774836001&pubId=1290862567001&videoId=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
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=1290862567001&videoId=4445730444001
Which I added to the http://c.brightcove.com to get
http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=4445774836001&pubId=1290862567001&videoId=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.
http://c.brightcove.com/services/mobile/streaming/index/master.m3u8?videoId=4445730444001&pubId=1290862567001
>>>>>>
#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.......
livestreamer "hlsvariant://http://c.brightcove.com/services/mobile/streaming/index/master.m3u8?videoId=4445730444001&pubId=1290862567001" best -o video2.ts
or
https://tgfour-a.akamaihd.net/rtmp_uds/1290862567001/201508/1002/1290862567001_4445801088001_4445730444001.mp4
mseoige
09-10-2015, 04:13 PM
Ok, now I'm very confused. I compared what I was using before character by character to what you just gave me and the video IDs were different. Not sure why.. I just tried this with another video and it seems to be working, so who knows.
By the way, what are you using to get that akamaihd.net address?
biezom
09-11-2015, 12:00 AM
Ok, now I'm very confused. I compared what I was using before character by character to what you just gave me and the video IDs were different. Not sure why.. I just tried this with another video and it seems to be working, so who knows.
By the way, what are you using to get that akamaihd.net address?
to find direct link
http://stream-recorder.com/forum/showpost.php?p=79442&postcount=5
mseoige
09-14-2015, 03:47 AM
Thanks! That's way easier than the stream capture method. You guys are very helpful.
vBulletin® , Copyright ©2000-2025, Jelsoft Enterprises Ltd.