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 08-09-2017, 03:11 AM
chanc chanc is offline
Senior Member
 
Join Date: Sep 2012
Posts: 115
chanc is on a distinguished road
Default

help with the m3u8 link from nbc


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
ffmpeg2.jpg

Is there anyway to get this video downloaded ?
Thanks in advance!
Reply With Quote
  #2  
Old 08-09-2017, 03:48 AM
hjjj259999 hjjj259999 is offline
Member
 
Join Date: Jul 2017
Posts: 52
hjjj259999 is on a distinguished road
Default

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
Reply With Quote
  #3  
Old 08-09-2017, 09:38 AM
chanc chanc is offline
Senior Member
 
Join Date: Sep 2012
Posts: 115
chanc is on a distinguished road
Default

Re: help with the m3u8 link from nbc


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
ffmpeg3.jpg

Could you be patient enough to teach me more about this ?
thank you very much!!
Reply With Quote
  #4  
Old 08-09-2017, 10:25 AM
hjjj259999 hjjj259999 is offline
Member
 
Join Date: Jul 2017
Posts: 52
hjjj259999 is on a distinguished road
Default

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
Reply With Quote
  #5  
Old 08-09-2017, 07:00 PM
chanc chanc is offline
Senior Member
 
Join Date: Sep 2012
Posts: 115
chanc is on a distinguished road
Default

Re: help with the m3u8 link from nbc


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

ffmpeg4.jpg
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 !
Reply With Quote
  #6  
Old 08-09-2017, 11:15 PM
surya987 surya987 is offline
Senior Member
 
Join Date: May 2014
Location: India
Posts: 280
surya987 is on a distinguished road
Default

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

Reply With Quote
  #7  
Old 08-10-2017, 02:03 AM
chanc chanc is offline
Senior Member
 
Join Date: Sep 2012
Posts: 115
chanc is on a distinguished road
Default

Re: help with the m3u8 link from nbc


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.
ffmpeg8.jpg

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 !!

Last edited by chanc : 08-10-2017 at 02:14 AM. Reason: correcting
Reply With Quote
  #8  
Old 08-10-2017, 03:01 AM
hjjj259999 hjjj259999 is offline
Member
 
Join Date: Jul 2017
Posts: 52
hjjj259999 is on a distinguished road
Default

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
Reply With Quote
  #9  
Old 08-10-2017, 04:57 AM
surya987 surya987 is offline
Senior Member
 
Join Date: May 2014
Location: India
Posts: 280
surya987 is on a distinguished road
Default

Re: help with the m3u8 link from nbc


Quote:
Originally Posted by hjjj259999 View Post
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..??????.
Reply With Quote
  #10  
Old 08-10-2017, 06:14 AM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

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
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 07:21 PM.


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