Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
help with the m3u8 link from nbcWhen 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! |
#2
|
|||
|
|||
Re: help with the m3u8 link from nbcCode:
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 |
#3
|
|||
|
|||
Re: help with the m3u8 link from nbcthanks 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!! |
#4
|
|||
|
|||
Re: help with the m3u8 link from nbcI 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 |
#5
|
|||
|
|||
Re: help with the m3u8 link from nbcThank 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 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 ! |
#6
|
|||
|
|||
Re: help with the m3u8 link from nbcCode:
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 |
#7
|
|||
|
|||
Re: help with the m3u8 link from nbcThank 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 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 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 |
#8
|
|||
|
|||
Re: help with the m3u8 link from nbcCode:
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 |
#9
|
|||
|
|||
Re: help with the m3u8 link from nbcQuote:
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..??????. |
#10
|
|||
|
|||
Re: help with the m3u8 link from nbcAll 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 |
Tags: m3u8 |
Thread Tools | |
Display Modes | |
|
|