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

help with the m3u8 link from nbc

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

chanc 08-09-2017 02:11 AM

help with the m3u8 link from nbc


 
1 Attachment(s)
When I am trying to download shows from nbc, take the following link as an example
https://www.nbc.com/today/video/toda...8-2017/3545906
I get an m3u8 link from the console
That is
https://nbcmpx-vh.akamaihd.net/i/vid...il/master.m3u8

But when I use this link to ffmpeg with a code like this :
ffmpeg -i "https://nbcmpx-vh.akamaihd.net/i/video/1000/467/170704_3545906_Today___Aug_08__2017_,25,40,18,12,7 ,4,2,00.mp4.csmil/master.m3u8" -c copy today_170808.mp4
Attachment 480

Is there anyway to get this video downloaded ?
Thanks in advance!

hjjj259999 08-09-2017 02:48 AM

Re: help with the m3u8 link from nbc


 
Code:

ffmpeg -user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36" -i "https://nbcmpx-vh.akamaihd.net/i/video/1000/467/170704_3545906_Today___Aug_08__2017_,25,40,18,12,7,4,2,00.mp4.csmil/master.m3u8?hdnea=st=1502268142~exp=1502280772~acl=/i/video/1000/467/170704_3545906_Today___Aug_08__2017_*~id=45ae9ff6-b9b2-49a7-b70f-af0727e1ae82~hmac=37091d2c6398c07e0a65bb6e60869ca4c56487e18d315cb278935d6584b4033f" -c copy today_170808.mp4

Code:

ffmpeg -user_agent 'curl/7.51.0' -i https://nbcmpx-vh.akamaihd.net/i/video/1000/467/170704_3545906_Today___Aug_08__2017_,25,40,18,12,7,4,2,00.mp4.csmil/master.m3u8?hdnea=st=1502268142~exp=1502280772~acl=/i/video/1000/467/170704_3545906_Today___Aug_08__2017_*~id=45ae9ff6-b9b2-49a7-b70f-af0727e1ae82~hmac=37091d2c6398c07e0a65bb6e60869ca4c56487e18d315cb278935d6584b4033f -c copy oooo.mp4

chanc 08-09-2017 08:38 AM

Re: help with the m3u8 link from nbc


 
1 Attachment(s)
thanks for your kind help!
But please forgive me for my foolishness.

I have no idea about the part of -user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36" in the code. It seems to be connected with the browser ?

So I just copy your code directly and apply it to the ffmepg as the follows:
For the first time ,I used.<code>ffmpeg -user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36" -i "https://nbcmpx-vh.akamaihd.net/i/video/1000/467/170704_3545906_Today___Aug_08__2017_,25,40,18,12,7 ,4,2,00.mp4.csmil/master.m3u8?hdnea=st=1502268142~exp=1502280772~acl =/i/video/1000/467/170704_3545906_Today___Aug_08__2017_*~id=45ae9ff6-b9b2-49a7-b70f-af0727e1ae82~hmac=37091d2c6398c07e0a65bb6e60869ca4 c56487e18d315cb278935d6584b4033f" -c copy today_170808.mp4</code>

For the 2nd time , I used <code>ffmpeg -user-agent "Mozilla/5.0" -i "https://nbcmpx-vh.akamaihd.net/i/video/1000/467/170704_3545906_Today___Aug_08__2017_,25,40,18,12,7 ,4,2,00.mp4.csmil/master.m3u8?hdnea=st=1502268142~exp=1502280772~acl =/i/video/1000/467/170704_3545906_Today___Aug_08__2017_*~id=45ae9ff6-b9b2-49a7-b70f-af0727e1ae82~hmac=37091d2c6398c07e0a65bb6e60869ca4 c56487e18d315cb278935d6584b4033f" -c copy today_170808.mp4</code>

AND for the 3rd time, <code>ffmpeg -i "https://nbcmpx-vh.akamaihd.net/i/video/1000/467/170704_3545906_Today___Aug_08__2017_,25,40,18,12,7 ,4,2,00.mp4.csmil/master.m3u8?hdnea=st=1502268142~exp=1502280772~acl =/i/video/1000/467/170704_3545906_Today___Aug_08__2017_*~id=45ae9ff6-b9b2-49a7-b70f-af0727e1ae82~hmac=37091d2c6398c07e0a65bb6e60869ca4 c56487e18d315cb278935d6584b4033f" -c copy today_170808.mp4</code>

ALL the three attempts gave me the same result
Attachment 481

Could you be patient enough to teach me more about this ?
thank you very much!!

hjjj259999 08-09-2017 09:25 AM

Re: help with the m3u8 link from nbc


 
I do not understand,



Code:

"https://nbcmpx-vh.akamaihd.net/i/video/1000/467/170704_3545906_Today___Aug_08__2017_,25,40,18,12,7,4,2,00.mp4.csmil/master.m3u8?hdnea=st=1502268142~exp=1502280772~acl=/i/video/1000/467/170704_3545906_Today___Aug_08__2017_*~id=45ae9ff6-b9b2-49a7-b70f-af0727e1ae82~hmac=37091d2c6398c07e0a65bb6e60869ca4c56487e18d315cb278935d6584b4033f"

This address you want to re-crawl, because there is a time period


Replace with new ones

chanc 08-09-2017 06:00 PM

Re: help with the m3u8 link from nbc


 
1 Attachment(s)
Thank you very much for you kindness!

I re-crawled, and then used the code to download this time ,

Code:

ffmpeg -user-agent "Mozilla/5.0" -i "https://nbcmpx-vh.akamaihd.net/i/video/1000/467/170704_3545906_Today___Aug_08__2017_,25,40,18,12,7,4,2,00.mp4.csmil/master.m3u8?hdnea=st=1502322576~exp=1502335206~acl=/i/video/1000/467/170704_3545906_Today___Aug_08__2017_*~id=00137e73-b5b4-4f38-8080-1a2f7ebfd8a8~hmac=21b5342b2ca3521cbde6abcb98b28d01c351f04a8933f54af7d3939bfdd7c51c" -c copy today_170808.mp4
and got a different result than the previous attempts

Attachment 482
Apparently , the code works!
But I have some other things to fix before I am able to get this video down.
How do I fix the problem mentioned which is in red in the prompt ?
Thank you !

surya987 08-09-2017 10:15 PM

Re: help with the m3u8 link from nbc


 
Code:

ffmpeg -protocol_whitelist "file,http,https,crypto,tcp,tls" -user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36"  -i "https://nbcmpxvh.akamaihd.net/i/video/1000/467/170704_3545906_Today___Aug_08__2017_,25,40,18,12,7,4,2,00.mp4.csmil/master.m3u8?hdnea=st=1502337817~exp=1502350447~acl=/i/video/1000/467/170704_3545906_Today___Aug_08__2017_*~id=c5cc5724-6fba-4df9-ae8a-a64042069b74~hmac=6a3587706fc94f1483398007a93ba1651b405d14d31da4485309f7f3343d8374" -c copy -bsf:a aac_adtstoasc output.mp4


chanc 08-10-2017 01:03 AM

Re: help with the m3u8 link from nbc


 
1 Attachment(s)
Thank you very much for your help!
with the code
Code:

ffmpeg -protocol_whitelist "file,http,https,crypto,tcp,tls" -user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36"  -i "https://nbcmpx-vh.akamaihd.net/i/video/1000/467/170704_3545906_Today___Aug_08__2017_,25,40,18,12,7,4,2,00.mp4.csmil/master.m3u8?hdnea=st=1502345377~exp=1502358007~acl=/i/video/1000/467/170704_3545906_Today___Aug_08__2017_*~id=af0f96a4-d764-44e9-aab7-b667508c847b~hmac=29e7c07c8f45c6b0dabfa60819508a02092a49b05d243e05e3791a3e0966f748" -c copy -bsf:a aac_adtstoasc today_170808.mp4
I get something downloaded finally!
BUT unfortunately, the file with a suffix .mp4 can not be played and the process of downloading stopped in the middle.
Attachment 483

and then I change the code into the following
Code:

ffmpeg -protocol_whitelist "file,http,https,crypto,tcp,tls" -user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36"  -i "https://nbcmpx-vh.akamaihd.net/i/video/1000/467/170704_3545906_Today___Aug_08__2017_,25,40,18,12,7,4,2,00.mp4.csmil/master.m3u8?hdnea=st=1502345377~exp=1502358007~acl=/i/video/1000/467/170704_3545906_Today___Aug_08__2017_*~id=af0f96a4-d764-44e9-aab7-b667508c847b~hmac=29e7c07c8f45c6b0dabfa60819508a02092a49b05d243e05e3791a3e0966f748" -c copy -bsf:a aac_adtstoasc today_170808.ts
THE file of .ts downloaded can be played ,but only with video , no audio!

What is the problem here ?
Thanks a million if I get further help !!

hjjj259999 08-10-2017 02:01 AM

Re: help with the m3u8 link from nbc


 
Code:

ffmpeg -protocol_whitelist "file,http,https,crypto,tcp,tls" -user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36"  -i "https://nbcmpx-vh.akamaihd.net/i/video/1000/467/170704_3545906_Today___Aug_08__2017_,25,40,18,12,7,4,2,00.mp4.csmil/master.m3u8?hdnea=st=1502351375~exp=1502364005~acl=/i/video/1000/467/170704_3545906_Today___Aug_08__2017_*~id=7819d6d4-426c-402f-bf69-8d2c4edb62ab~hmac=a5f13890c6f702e5c2f63f99a291f503eaff2f6e772bd914ecc00b0c19ffd886" -c copy ou1tput.mp4


there's noise

“-bsf:a aac_adtstoasc” Removed

surya987 08-10-2017 03:57 AM

Re: help with the m3u8 link from nbc


 
Quote:

Originally Posted by hjjj259999 (Post 93414)
Code:

ffmpeg -protocol_whitelist "file,http,https,crypto,tcp,tls" -user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36"  -i "https://nbcmpx-vh.akamaihd.net/i/video/1000/467/170704_3545906_Today___Aug_08__2017_,25,40,18,12,7,4,2,00.mp4.csmil/master.m3u8?hdnea=st=1502351375~exp=1502364005~acl=/i/video/1000/467/170704_3545906_Today___Aug_08__2017_*~id=7819d6d4-426c-402f-bf69-8d2c4edb62ab~hmac=a5f13890c6f702e5c2f63f99a291f503eaff2f6e772bd914ecc00b0c19ffd886" -c copy ou1tput.mp4


there's noise

“-bsf:a aac_adtstoasc” Removed

sorry to say but for me my code is working superfine.. i can play both Video+audio...

i dont know from your side.... and i you cant down a raw AAC stream wiothout using “-bsf:a aac_adtstoasc” filter.. did you tried to home yourself..??????.

j_cool 08-10-2017 05:14 AM

Re: help with the m3u8 link from nbc


 
All this works in a simpler way for me. If you save file as .flv you can even watch video when it is downloading.

Code:

ffmpeg -i "https://nbcmpx-vh.akamaihd.net/i/video/1000/467/170704_3545906_Today___Aug_08__2017_,25,40,18,12,7,4,2,00.mp4.csmil/master.m3u8?hdnea=st=1502351375~exp=1502364005~acl=/i/video/1000/467/170704_3545906_Today___Aug_08__2017_*~id=7819d6d4-426c-402f-bf69-8d2c4edb62ab~hmac=a5f13890c6f702e5c2f63f99a291f503eaff2f6e772bd914ecc00b0c19ffd886" -c:v copy -c:a aac ou1tput.flv


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