VideoHelp Forum




+ Reply to Thread
Results 1 to 12 of 12
  1. hi guys im new here
    I have a problem downloading this video
    I get this error

    HTTP error 403 Forbidden - Bad Token!!!


    this is the link to the site
    PHP Code:
    http://hakolkalul.nana10.co.il/Article/?ArticleID=1184319 

    PHP Code:
    >
    >
    ffmpeg -"http://nana10-hdv-il.ctedgecdn.net/Nana10-Vod/_definst_/amlst:mediaroot/nana10/media/iiscdn/2016/04/kalul130416full_,500,700,1000,1400,1800,.mp4/playlist.m3u8?ctoken=0703cd7872297fad6dfa08bc17ea4ae7a18832dddb26124d39e889082b3c6954" -c copy kalul130416full.ts
    [url=http://www.videohelp.com/software/ffmpeg]ffmpeg[/url] version N-76539-g480bad7 Copyright (c) 2000-2015 the FFmpeg developers
      
    built with gcc 5.2.0 (GCC)
      
    configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
      libavutil      55.  5.100 
    55.  5.100
      libavcodec     57. 15.100 
    57. 15.100
      libavformat    57. 14.100 
    57. 14.100
      libavdevice    57.  0.100 
    57.  0.100
      libavfilter     6. 15.100 
    /  6. 15.100
      libswscale      4.  0.100 
    /  4.  0.100
      libswresample   2.  0.101 
    /  2.  0.101
      libpostproc    54.  0.100 
    54.  0.100
    [http 050f61c0HTTP error 403 Forbidden Bad Token!!!
    [
    url]http://nana10-hdv-il.ctedgecdn.net/Nana10-Vod/_definst_/amlst:mediaroot/nana10/media/iiscdn/2016/04/kalul130416full_,500,700,1000,1400,1800,.mp4/playlist.m3u8?ctoken=0703cd7872297fad6dfa08bc17ea4ae7a18832dddb26124d39e889082b3c6954:[/url] Server returned 403 Forbidden (access denied)



    any help will be appreciated
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    You could try livestreamer and youtube-dl.
    Quote Quote  
  3. Thanks I promise i will try livestreamer and youtube-dl
    But before i try i really want to know if there is a way with ffmpeg
    Quote Quote  
  4. Hi tom-vin ,

    The issue is with the ctoken , unknown by ffmpeg .

    Livestreamer works very well .
    Example , you have to write the end of the link .
    Code:
    livestreamer "hlsvariant://http://nana10-hdv-uk.ctedgecdn.net/Nana10-Vod/_definst_/amlst:mediaroot/nana10/media/iiscdn/2016/04/kalul130416full_,500,700,1000,1400,1800,.mp4/playlist.m3u8?..." best
    Cheers .
    JE SUIS CHARLIE !!!
    Quote Quote  
  5. I tried and still
    Bad Token


    PHP Code:
    >>
    >
    livestreamer "hlsvariant://http://nana10-hdv-il.ctedgecdn.net/Nana10-Vod/_definst_/amlst:mediaroot/nana10/media/iiscdn/2016/04/kalul140416fulll_,500,700,1000,1400,1800,.mp4/playlist.m3u8?ctoken=28ced7911f66570cd0455f2a0e630ba2cfef0a50ee0bc602e19639eaaa268881" best -o 1111.ts
    [cli][infoFound matching plugin stream for URL hlsvariant://http://nana10-hdv-il.ctedgecdn.net/Nana10-Vod/_definst_/amlst:mediaroot/nana10/media/iiscdn/2016/04/kalul140416fulll_,500,700,1000,1400,1800,.mp4/playlist.m3u8?ctoken=28ced7911f66570cd0455f2a0e630ba2cfef0a50ee0bc602e19639eaaa268881
    errorUnable to open URLhttp://nana10-hdv-il.ctedgecdn.net/Nana10-Vod/_definst_/amlst:mediaroot/nana10/media/iiscdn/2016/04/kalul140416fulll_,500,700,1000,1400,1800,.mp4/playlist.m3u8?ctoken=28ced7911f66570cd0455f2a0e630ba2cfef0a50ee0bc602e19639eaaa268881 (403 Client Error: Forbidden - Bad Token!!!) 
    Last edited by tom-vin; 14th Apr 2016 at 12:27.
    Quote Quote  
  6. Member Emeritus
    Join Date
    May 2014
    Search PM
    Originally Posted by tom-vin View Post
    I tried and still
    Bad Token
    livestreamer works correctly. the token must have expired, request a new one.

    IDM also works if the video is played from the direct cast time webpage:

    http://vod.ch10.cloudvideoplatform.com/?UserId=45E4A9FB-FCE8-88BF-93CC-3650C39DDF28&GroupId=1036449
    Quote Quote  
  7. I do not think the token expired because I tried couple times with 3 different token's , and i even tried using the same token while the video play in the background on the web browser

    i tried IDM but it download all the TS files separate
    Quote Quote  
  8. Member Emeritus
    Join Date
    May 2014
    Search PM
    Originally Posted by tom-vin View Post
    I do not think the token expired because I tried couple times with 3 different token's , and i even tried using the same token while the video play in the background on the web browser
    Are you including all of the parameters, including ctoken, str and exp?

    h..p://nana10-hdv-uk.ctedgecdn.net/Nana10-Vod/_definst_/amlst:mediaroot/nana10/media/iiscdn/2016/04/kalul130416full_,500,700,1000,1400,1800,.mp4/playlist.m3u8?ctoken=0e7f28b8b545585e2031630c8ecd29143e11c16021d50bc89 7e18d64d01bcaa7&str=1460750754&exp=1460751954

    Get new ctoken, str, exp values:
    Code:
    http://vod.ch10.cloudvideoplatform.com/api/getlink/getflash?showID=1036449&userID=45E4A9FB-FCE8-88BF-93CC-3650C39DDF28
    Originally Posted by tom-vin View Post
    i tried IDM but it download all the TS files separate
    You IDM version is old, or you are not playing the video from the direct embed url referenced in my last post.
    Quote Quote  
  9. from my experience of several other sites you only need until the end of the ctoken code.
    but of course i tried the full parameters ctoken, str and exp
    i tried couple of times because it really bugs me why it doesn't work so i tried everything.

    about the idm it doesn't work for me yet i really hope there's another way
    Quote Quote  
  10. Member Emeritus
    Join Date
    May 2014
    Search PM
    Originally Posted by tom-vin View Post
    from my experience of several other sites you only need until the end of the ctoken code.
    Well in the case of this particular cdn provider (Cast Time) I have verified that all three parameters (ctoken, str and exp) are required or else the hls playlist/manifest will not download. Cookies must also be fully supported. Livestreamer and IDM support them. ffmpeg is much more limited in its support of cookies.

    You can also test the m3u8 playlist/manifest at https://www.hlsplayer.net/ (flash required).
    Without all three parameters being present and unexpired, the playlist/manifest will not download (token error) and the video will not play.

    Originally Posted by tom-vin View Post
    i really hope there's another way
    I have no other ideas, sorry.
    Quote Quote  
  11. OMG I dont understand (maybe you were right and the token expired)
    i tried again for the last time using Livestreamer
    and it's works

    thanks for all the help


    this is the code i used
    PHP Code:

    livestreamer 
    "hlsvariant://http://nana10-hdv-il.ctedgecdn.net/Nana10-Vod/_definst_/amlst:mediaroot/nana10/media/iiscdn/2016/04/zinor140416full_,500,700,1000,1400,1800,.mp4/playlist.m3u8?ctoken=a78819d97c46a9ee7a820903c21f39cd25251924faa270597df7106f3759f8f0&str=1460811033&exp=1460812233" best -o 1111.ts 
    Quote Quote  
  12. Member n8tvm's Avatar
    Join Date
    May 2002
    Location
    West Virginia, USA
    Search Comp PM
    I just downloaded it with Internet Download Manager.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!