VideoHelp Forum
+ Reply to Thread
Results 1 to 11 of 11
Thread
  1. Hello friends, first of all sorry for my English, I'm using google translator, because I'm Brazilian.

    I would very much like your help.

    So, I'm trying to download videos from two online tv streaming sites, but to no avail. The site doesn't have a drm, but I still can't download the stream. The link that takes me to the .m3u8 file gives me "access denied" I tried several ways with youtube-dl, and I also tried with m3u8x, but I can't do it at all. The idm can download the .ts file for 1 min as soon as I start the video, it uses the same url as the .m3u8 file but youtube-dl and m3u8 cannot access the file to download it.

    I don't understand much, but I can learn, if someone is willing to help me. I look forward to returning, thank you very much!

    The site is this one: https://multicanais.com/assistir-viva-online-hd-24h-no-ar/
    Quote Quote  
  2. Code:
    youtube-dl --add-header "referer: https://esporteone.com/player/canais.php?canal=VIVASD" "https://live.netcanais.com/VIVASD/video.m3u8"
    discord=notaghost9997
    Quote Quote  
  3. you are welcome MarcosJeevs and google translator work fine for you!
    Quote Quote  
  4. Originally Posted by notaghost View Post
    Code:
    youtube-dl --add-header "referer: https://esporteone.com/player/canais.php?canal=VIVASD" "https://live.netcanais.com/VIVASD/video.m3u8"
    Hello friend, thank you so much it worked! There is only one problem, the file starts to download, and in less than 3 seconds, it freezes. I don't know what happens, but it crashes and doesn't download anything else. After a few seconds or minutes it starts to download the other segments
    but it displays the error "HTTP error 403 Forbidden"

    Is there any way around this? The same command works perfectly on another site, without any access denied error.

    Code:
    c:\youtube-dl>youtube-dl --add-header "referer: https://esporteone.com/player/canais.php?canal=VIVASD" "https://live.netcanais.com/VIVASD/video.m3u8" --verbose
    [debug] System config: []
    [debug] User config: []
    [debug] Custom config: []
    [debug] Command-line args: ['--add-header', 'referer: https://esporteone.com/player/canais.php?canal=VIVASD', 'https://live.netcanais.com/VIVASD/video.m3u8', '--verbose']
    [debug] Adding header from command line option referer: https://esporteone.com/player/canais.php?canal=VIVASD
    [debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
    [debug] youtube-dl version 2021.01.03
    [debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
    [debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1
    [debug] Proxy map: {}
    [generic] video: Requesting header
    [generic] video: Downloading m3u8 information
    [debug] Default format spec: bestvideo+bestaudio/best
    [debug] Invoking downloader on 'https://live.netcanais.com/VIVASD/video.m3u8'
    [download] Destination: video-video.mp4
    [debug] ffmpeg command line: ffmpeg -y -loglevel verbose -headers "Cookie: __cfduid=d806c11932d51123a1eb0e862e15de91b1609833444
    referer:  https://esporteone.com/player/canais.php?canal=VIVASD
    Accept-Language: en-us,en;q=0.5
    User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3568.0 Safari/537.36
    Accept-Encoding: gzip, deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    " -i "https://live.netcanais.com/VIVASD/video.m3u8" -c copy -f mp4 "file:video-video.mp4.part"
    ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
      built with gcc 10.2.1 (GCC) 20200726
      configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
      libavutil      56. 51.100 / 56. 51.100
      libavcodec     58. 91.100 / 58. 91.100
      libavformat    58. 45.100 / 58. 45.100
      libavdevice    58. 10.100 / 58. 10.100
      libavfilter     7. 85.100 /  7. 85.100
      libswscale      5.  7.100 /  5.  7.100
      libswresample   3.  7.100 /  3.  7.100
      libpostproc    55.  7.100 / 55.  7.100
    [tcp @ 00000254a3cf13c0] Starting connection attempt to 172.67.72.84 port 443
    [tcp @ 00000254a3cf13c0] Successfully connected to 172.67.72.84 port 443
    [tls @ 00000254a3cf1180] Error in the pull function.
    [hls @ 00000254a3ced040] Skip ('#EXT-X-VERSION:3')
    [hls @ 00000254a3ced040] Skip ('#EXT-X-PROGRAM-DATE-TIME:2021-01-05T07:55:37Z')
    [tls @ 00000254a3cf1180] The specified session has been invalidated for some reason.
        Last message repeated 1 times
    [hls @ 00000254a3ced040] HLS request for url 'https://live.netcanais.com/VIVASD/2021/01/05/07/57/12-05000.ts', offset 0, playlist 0
    [hls @ 00000254a3ced040] Opening 'https://live.netcanais.com/VIVASD/2021/01/05/07/57/12-05000.ts' for reading
    [tcp @ 00000254a42a2d80] Starting connection attempt to 172.67.72.84 port 443
    [tcp @ 00000254a42a2d80] Successfully connected to 172.67.72.84 port 443
    [hls @ 00000254a3ced040] HLS request for url 'https://live.netcanais.com/VIVASD/2021/01/05/07/57/17-05000.ts', offset 0, playlist 0
    [hls @ 00000254a3ced040] Opening 'https://live.netcanais.com/VIVASD/2021/01/05/07/57/17-05000.ts' for reading
    [tcp @ 00000254a4555180] Starting connection attempt to 172.67.72.84 port 443
    [tcp @ 00000254a4555180] Successfully connected to 172.67.72.84 port 443
    [NULL @ 00000254a42a03c0] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000254a46de380] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000254a46de380] Reinit context to 640x368, pix_fmt: yuv420p
    Input #0, hls, from 'https://live.netcanais.com/VIVASD/video.m3u8':
      Duration: N/A, start: 79690.121944, bitrate: N/A
      Program 0
        Metadata:
          variant_bitrate : 0
        Stream #0:0: Video: h264 (High), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(left), 640x360 (640x368) [SAR 1:1 DAR 16:9], 30 tbr, 90k tbn, 60 tbc
        Metadata:
          variant_bitrate : 0
        Stream #0:1: Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
        Metadata:
          variant_bitrate : 0
    Output #0, mp4, to 'file:video-video.mp4.part':
      Metadata:
        encoder         : Lavf58.45.100
        Stream #0:0: Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 640x360 (0x0) [SAR 1:1 DAR 16:9], q=2-31, 30 tbr, 90k tbn, 90k tbc
        Metadata:
          variant_bitrate : 0
        Stream #0:1: Audio: aac (HE-AAC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp
        Metadata:
          variant_bitrate : 0
    Stream mapping:
      Stream #0:0 -> #0:0 (copy)
      Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    Automatically inserted bitstream filter 'aac_adtstoasc'; args=''
    [hls @ 00000254a3ced040] HLS request for url 'https://live.netcanais.com/VIVASD/2021/01/05/07/57/22-05000.ts', offset 0, playlist 0
    [https @ 00000254a4362a40] Opening 'https://live.netcanais.com/VIVASD/2021/01/05/07/57/22-05000.ts' for reading
    [tcp @ 00000254a472d7c0] Starting connection attempt to 172.67.72.84 port 443ts/s speed=9.07x
    [tcp @ 00000254a472d7c0] Successfully connected to 172.67.72.84 port 443
    [hls @ 00000254a3ced040] Skip ('#EXT-X-VERSION:3')
    [hls @ 00000254a3ced040] Skip ('#EXT-X-PROGRAM-DATE-TIME:2021-01-05T07:55:37Z')
    [https @ 00000254a47a9240] Opening 'https://live.netcanais.com/VIVASD/video.m3u8' for reading
    [AVIOContext @ 00000254a4efa640] Statistics: 1091 bytes read, 0 seeks
    [tcp @ 00000254a3cf3780] Starting connection attempt to 104.26.7.188 port 443
    [tcp @ 00000254a3cf3780] Successfully connected to 104.26.7.188 port 443
    [hls @ 00000254a3ced040] Skip ('#EXT-X-VERSION:3')
    [hls @ 00000254a3ced040] Skip ('#EXT-X-PROGRAM-DATE-TIME:2021-01-05T08:02:22Z')
    [hls @ 00000254a3ced040] skipping 59 segments ahead, expired from playlists
    [hls @ 00000254a3ced040] HLS request for url 'https://live.netcanais.com/VIVASD/2021/01/05/08/02/22-05000.ts', offset 0, playlist 0
    [https @ 00000254a4362a40] Opening 'https://live.netcanais.com/VIVASD/2021/01/05/08/02/22-05000.ts' for reading
    [AVIOContext @ 00000254a4397f40] Statistics: 1236288 bytes read, 0 seeks
    [hls @ 00000254a3ced040] Opening 'https://live.netcanais.com/VIVASD/2021/01/05/08/02/22-05000.ts' for reading
    [tcp @ 00000254a4d69840] Starting connection attempt to 104.26.7.188 port 443
    [tcp @ 00000254a4d69840] Successfully connected to 104.26.7.188 port 443
    [https @ 00000254a3cf3840] HTTP error 403 Forbidden
    [hls @ 00000254a3ced040] Failed to open segment 20638 of playlist 0
    [hls @ 00000254a3ced040] HLS request for url 'https://live.netcanais.com/VIVASD/2021/01/05/08/02/27-05000.ts', offset 0, playlist 0
    Quote Quote  
  5. Originally Posted by lomero View Post
    you are welcome MarcosJeevs and google translator work fine for you!

    I'm glad it works. Thanks! : D
    Quote Quote  
  6. Originally Posted by Cylustech View Post
    This is an easy passage that explains how to download m3u8 to mp4. If it is hard for you to read the words, the images of each step are quite helpful.

    Thank you very much, I'll see if it works for me.
    Quote Quote  
  7. yes confirmed. notaghost string at post#2 not work.
    Quote Quote  
  8. Originally Posted by lomero View Post
    yes confirmed. notaghost string at post#2 not work.
    It works fine here. After 30 minutes I aborted the download and viewed the file. Here you can see the video streaming from youtube-dl to vlc (rather than saving to a file) with the same referer and url:

    Code:
    youtube-dl --add-header "referer: https://esporteone.com/player/canais.php?canal=VIVASD" "https://live.netcanais.com/VIVASD/video.m3u8" -o - | "G:\Program Files\VideoLAN\VLC\vlc.exe" -
    Image
    [Attachment 56634 - Click to enlarge]
    Quote Quote  
  9. strange. for me start but after some second all stopped. here my cmd window message:
    Code:
    D:\streaming_video\youtube-dl>youtube-dl --add-header "referer: https:
    //esporteone.com/player/canais.php?canal=VIVASD" "https://live.netcanais.com/VIV
    ASD/video.m3u8"
    [generic] video: Requesting header
    [generic] video: Downloading m3u8 information
    [download] Destination: video-video.mp4
    ffmpeg version 2021-01-01-git-63505fc60a-essentials_build-www.gyan.dev Copyright
     (c) 2000-2021 the FFmpeg developers
      built with gcc 10.2.0 (Rev5, Built by MSYS2 project)
      configuration: --enable-gpl --enable-version3 --enable-static --disable-w32thr
    eads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --e
    nable-libxml2 --enable-gmp --enable-lzma --enable-zlib --enable-libsrt --enable-
    libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable
    -libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg
    --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --enabl
    e-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm -
    -enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va
    --enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt --enable-libo
    pencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --e
    nable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --ena
    ble-libvorbis --enable-librubberband
      libavutil      56. 62.100 / 56. 62.100
      libavcodec     58.115.102 / 58.115.102
      libavformat    58. 65.100 / 58. 65.100
      libavdevice    58. 11.103 / 58. 11.103
      libavfilter     7. 94.100 /  7. 94.100
      libswscale      5.  8.100 /  5.  8.100
      libswresample   3.  8.100 /  3.  8.100
      libpostproc    55.  8.100 / 55.  8.100
    [tls @ 0000000000599140] Error in the pull function.
    [hls @ 0000000000594800] Skip ('#EXT-X-VERSION:3')
    [hls @ 0000000000594800] Skip ('#EXT-X-PROGRAM-DATE-TIME:2021-01-05T16:47:19Z')
    [tls @ 0000000000599140] The specified session has been invalidated for some rea
    son.
        Last message repeated 1 times
    [hls @ 0000000000594800] Opening 'https://live.netcanais.com/VIVASD/2021/01/05/1
    6/48/54-05000.ts' for reading
    [hls @ 0000000000594800] Opening 'https://live.netcanais.com/VIVASD/2021/01/05/1
    6/48/59-05000.ts' for reading
    [NULL @ 000000000324af80] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000000035c1a00] non-existing SPS 0 referenced in buffering period
    Input #0, hls, from 'https://live.netcanais.com/VIVASD/video.m3u8':
      Duration: N/A, start: 16148.136422, bitrate: N/A
      Program 0
        Metadata:
          variant_bitrate : 0
        Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 640x360 [
    SAR 1:1 DAR 16:9], 30 tbr, 90k tbn, 60 tbc
        Metadata:
          variant_bitrate : 0
        Stream #0:1: Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo,
     fltp
        Metadata:
          variant_bitrate : 0
    Output #0, mp4, to 'file:video-video.mp4.part':
      Metadata:
        encoder         : Lavf58.65.100
        Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x360 [SAR 1
    :1 DAR 16:9], q=2-31, 30 tbr, 90k tbn, 90k tbc
        Metadata:
          variant_bitrate : 0
        Stream #0:1: Audio: aac (HE-AAC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp
    
        Metadata:
          variant_bitrate : 0
    Stream mapping:
      Stream #0:0 -> #0:0 (copy)
      Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    frame=    0 fps=0.0 q=-1.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=
    frame=   38 fps=0.0 q=-1.0 size=       0kB time=00:00:01.21 bitrate=   0.3kbits/
    frame=   95 fps= 56 q=-1.0 size=     256kB time=00:00:03.15 bitrate= 664.2kbits/
    [hls @ 0000000000594800] Skip ('#EXT-X-VERSION:3')
    [hls @ 0000000000594800] Skip ('#EXT-X-PROGRAM-DATE-TIME:2021-01-05T16:47:24Z')
    Quote Quote  
  10. Originally Posted by jagabo View Post
    Originally Posted by lomero View Post
    yes confirmed. notaghost string at post#2 not work.
    It works fine here. After 30 minutes I aborted the download and viewed the file. Here you can see the video streaming from youtube-dl to vlc (rather than saving to a file) with the same referer and url:

    Code:
    youtube-dl --add-header "referer: https://esporteone.com/player/canais.php?canal=VIVASD" "https://live.netcanais.com/VIVASD/video.m3u8" -o - | "G:\Program Files\VideoLAN\VLC\vlc.exe" -
    Image
    [Attachment 56634 - Click to enlarge]
    Here the same problem occurred, after a few seconds the transmission hangs, even using VLC.
    Quote Quote  
  11. Can anyone download it? I believe that the owner moved the link and now even using the "referer" command does not work

    Code:
    youtube-dl --add-header "referer: https://esporteone.com/player/canais.php?canal=VIVASD" "https://live.netcanais.com/VIVASD/video.m3u8" --verbose
    [debug] System config: []
    [debug] User config: []
    [debug] Custom config: []
    [debug] Command-line args: ['--add-header', 'referer: https://esporteone.com/player/canais.php?canal=VIVASD', 'https://live.netcanais.com/VIVASD/video.m3u8', '--verbose']
    [debug] Adding header from command line option referer: https://esporteone.com/player/canais.php?canal=VIVASD
    [debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
    [debug] youtube-dl version 2020.12.26
    [debug] Python version 3.9.0 (CPython) - Windows-10-10.0.19041-SP0
    [debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1
    [debug] Proxy map: {}
    [generic] video: Requesting header
    WARNING: Could not send HEAD request to https://live.netcanais.com/VIVASD/video.m3u8: <urlopen error [WinError 10061] 
    No connections could be made because the target machine actively refused them>
    [generic] video: Downloading webpage
    ERROR: Unable to download webpage: <urlopen error [WinError 10061] 
    No connections could be made because the target machine actively refused them> (caused by URLError(ConnectionRefusedError(10061, '
    No connections could be made because the target machine actively refused them', None, 10061, None)))
      File "c:\users\uchiha\appdata\local\programs\python\python39\lib\site-packages\youtube_dl\extractor\common.py", line 632, in _request_webpage
        return self._downloader.urlopen(url_or_request)
      File "c:\users\uchiha\appdata\local\programs\python\python39\lib\site-packages\youtube_dl\YoutubeDL.py", line 2248, in urlopen
        return self._opener.open(req, timeout=self._socket_timeout)
      File "c:\users\uchiha\appdata\local\programs\python\python39\lib\urllib\request.py", line 517, in open
        response = self._open(req, data)
      File "c:\users\uchiha\appdata\local\programs\python\python39\lib\urllib\request.py", line 534, in _open
        result = self._call_chain(self.handle_open, protocol, protocol +
      File "c:\users\uchiha\appdata\local\programs\python\python39\lib\urllib\request.py", line 494, in _call_chain
        result = func(*args)
      File "c:\users\uchiha\appdata\local\programs\python\python39\lib\site-packages\youtube_dl\utils.py", line 2734, in https_open
        return self.do_open(functools.partial(
      File "c:\users\uchiha\appdata\local\programs\python\python39\lib\urllib\request.py", line 1345, in do_open
        raise URLError(err)
    Quote Quote  



Similar Threads

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