chanc
08-09-2017, 02:11 AM
When I am trying to download shows from nbc, take the following link as an example
https://www.nbc.com/today/video/today-aug-08-2017/3545906
I get an m3u8 link from the console
That is
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
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
480
Is there anyway to get this video downloaded ?
Thanks in advance!
hjjj259999
08-09-2017, 02:48 AM
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
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=37091d2c6398c07e0a65bb6e60869ca4 c56487e18d315cb278935d6584b4033f -c copy oooo.mp4
chanc
08-09-2017, 08:38 AM
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
481
Could you be patient enough to teach me more about this ?
thank you very much!!
hjjj259999
08-09-2017, 09:25 AM
I do not understand,
"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"
This address you want to re-crawl, because there is a time period
Replace with new ones
chanc
08-09-2017, 06:00 PM
Thank you very much for you kindness!
I re-crawled, and then used the code to download this time ,
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=21b5342b2ca3521cbde6abcb98b28d01 c351f04a8933f54af7d3939bfdd7c51c" -c copy today_170808.mp4
and got a different result than the previous attempts
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
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=6a3587706fc94f1483398007a93ba165 1b405d14d31da4485309f7f3343d8374" -c copy -bsf:a aac_adtstoasc output.mp4
https://image.prntscr.com/image/5fH3uDUvSRWrDIbQLZblbA.png
https://image.prntscr.com/image/WD1WSwZBSfyMkisop3v3sA.png
chanc
08-10-2017, 01:03 AM
Thank you very much for your help!
with the 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=29e7c07c8f45c6b0dabfa60819508a02 092a49b05d243e05e3791a3e0966f748" -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.
483
and then I change the code into the following
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=29e7c07c8f45c6b0dabfa60819508a02 092a49b05d243e05e3791a3e0966f748" -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
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=a5f13890c6f702e5c2f63f99a291f503 eaff2f6e772bd914ecc00b0c19ffd886" -c copy ou1tput.mp4
there's noise
“-bsf:a aac_adtstoasc” Removed
surya987
08-10-2017, 03:57 AM
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=a5f13890c6f702e5c2f63f99a291f503 eaff2f6e772bd914ecc00b0c19ffd886" -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
All this works in a simpler way for me. If you save file as .flv you can even watch video when it is downloading.
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=a5f13890c6f702e5c2f63f99a291f503 eaff2f6e772bd914ecc00b0c19ffd886" -c:v copy -c:a aac ou1tput.flv
chanc
08-10-2017, 06:18 AM
@hjjj259999
@surya987
@j_cool
Thank all of you very much for your kind help.
Now that I have upgraded my ffmpeg to the latest version of ffmpeg-20170807-1bef008-win64-static, I found all your ways are working now!
Sadly for me , whenever I tried, it stopped after I got several seconds or minutes of the video downloaded. The longest video I got lasted last no more than 15 minutes!
Is there a way to make sure that the whole video can be downloaded smoothly ?
hjjj259999
08-10-2017, 09:30 AM
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..??????.
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=6a3587706fc94f1483398007a93ba165 1b405d14d31da4485309f7f3343d8374" -c copy -bsf:a aac_adtstoasc output.mp4
After downloading, there is no sound
-bsf: a aac_adtstoasc removed, download down a sound
In my case here is this
tienhinhconcho2018
08-10-2017, 10:46 PM
Bá??n tin ICT 29/07: Bphone 2 lá»™ cá??u h?¬nh tá?§m trung, thiá??t ká?? kh??c biệt so vá»›i Bphone 1
Má»™t nguồn tin ná»™i bá»™ từ nh?* m??y lá??p r??p linh kiện tá??i Bá??c Ninh cho hay Ä‘??y l?* bá??ng má??ch cá»§a chiá??c Bphone 2 sá??p Ä‘?°á»?c ra má??t. Bphone 2017 sá»? há»?u m?*n h?¬nh IPS 5,5 inch độ ph??n giá??i 1. Vá?*y việc s??p nhá?*p Bkis vá»›i Bkav Ä‘?? l?*m á??nh h?°á»?ng c?? dá??u hiệu x??m phá??m nghi??m trá»?ng Ä‘á??n an ninh quốc gia, song song d??ng tr??i ph?©p t?*i sá??n nh?* n?°á»›c cho việc kinh dinh c?? nh??n. D??ng ng?°á»?i tá??p ná?*p Ä‘á??n tham gia.
Ở Nhá?*t c?? c?´ng ty chuy??n sá??n xuá??t smartphone cho tien 2usd nam 1963 (http://tienquocte.net/2-usd-1963) ng?°á»?i gi?*. bá»?a nay, 8/8, tr?°á»›c sá»± chứng kiá??n cá»§a khoá??ng 2. Vá»›i việc xuá??t hiện h?*ng loá??t nhá»?ng tin t?°á»?ng.#, h?¬nh á??nh, thá?*m ch?* cá?? clip vá»? BPhone 2, c?? thá»? thá??y chừng nh?° Bkav Ä‘ang bá??t Ä‘á?§u chiá??n dịch truyá»?n th?´ng cá»§a há»? ngay tr?°á»›c thá»?i Ä‘iá»?m má?«u Ä‘iện thoá??i n?*y Ä‘?°á»?c cho ra má??t. So Bphone vá»›i iPhone 6. Theo anh n?*y, Bphone n??n Ä‘?°á»?c Ä‘á?·t gi?? thá??p, sau Ä‘?? tÄ?ng dá?§n, d?? c?? thá»? sá?? lá»— đối vá»›i sá??n phá?©m Ä‘á?§u tay nh?°ng lá??i th?*nh c?´ng vá»? má?·t th?°??ng hiệu, gi?*nh Ä‘?°á»?c sá»± tin t?°á»?ng.# cá»§a kh??ch h?*ng. Vá»›i con chip 625 n?*y th?¬ chiá??c Bphone c?©ng Ä‘?°á»?c trang bị ká??t nối 4G.
https://tienquocte.net/2-usd-1963 (https://tienquocte.net/2-usd-1963)
vBulletin® , Copyright ©2000-2025, Jelsoft Enterprises Ltd.