SSL Decrypt on youtube-dl

Issues related to applications and software problems and general support
User avatar
TrevorH
Forum Moderator
Posts: 29112
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: SSL Decrypt on youtube-dl

Post by TrevorH » 2020/07/01 11:12:28

Still works for me though I only gave it the first 3 of your urls.

You started this thread saying you were on a CentOS 8 system and then subsequent posts seem to say you are on CentOS 7. Which is it?

Code: Select all

[trevor@centos8 ~]$ youtube-dl -f best --write-sub --sub-lang en --sub-format srt https://www.viki.com/videos/1145089v-love-o2o-episode-21  https://www.viki.com/videos/1145090v-love-o2o-episode-22 https://www.viki.com/videos/1145091v-love-o2o-episode-23
[viki] 1145089v: Downloading video JSON
[viki] 1145089v: Downloading video streams JSON
[info] Writing video subtitles to: Love O2O - Episode 21-1145089v.en.srt
[download] Destination: Love O2O - Episode 21-1145089v.mp4
[download] 100% of 227.26MiB in 00:20
[viki] 1145090v: Downloading video JSON
[viki] 1145090v: Downloading video streams JSON
[info] Writing video subtitles to: Love O2O - Episode 22-1145090v.en.srt
[download] Destination: Love O2O - Episode 22-1145090v.mp4
[download] 100% of 246.66MiB in 00:18
[viki] 1145091v: Downloading video JSON
[viki] 1145091v: Downloading video streams JSON
[info] Writing video subtitles to: Love O2O - Episode 23-1145091v.en.srt
[download] Destination: Love O2O - Episode 23-1145091v.mp4
[download] 100% of 216.35MiB in 00:15
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

amir385276
Posts: 50
Joined: 2019/08/09 20:54:52

Re: SSL Decrypt on youtube-dl

Post by amir385276 » 2020/07/01 11:50:40

Hi TrevorH

I think maybe the centos 8 have some bugs and then reinstall centos 7

but in this two VPS i have some issue with youtube-dl centos7 and centos 8

""""""""""""""
# youtube-dl -f best --write-sub --sub-format srt --sub-lang en --verbose https://www.viki.com/videos/1153869v-go ... episode-21 https://www.viki.com/videos/1153870v-go ... episode-22 https://www.viki.com/videos/1153871v-go ... episode-23 https://www.viki.com/videos/1153872v-go ... episode-24 https://www.viki.com/videos/1153873v-go ... episode-25 https://www.viki.com/videos/1153874v-go ... episode-26 https://www.viki.com/videos/1153875v-go ... episode-27 https://www.viki.com/videos/1153876v-go ... episode-28 https://www.viki.com/videos/1153877v-go ... episode-29 https://www.viki.com/videos/1153878v-go ... episode-30 https://www.viki.com/videos/1153879v-go ... episode-31 https://www.viki.com/videos/1153880v-go ... episode-32 https://www.viki.com/videos/1153881v-go ... episode-33 https://www.viki.com/videos/1153882v-go ... episode-34 https://www.viki.com/videos/1153883v-go ... episode-35 https://www.viki.com/videos/1153884v-go ... episode-36 https://www.viki.com/videos/1155109v-go ... episode-37 https://www.viki.com/videos/1155110v-go ... episode-38 https://www.viki.com/videos/1153887v-go ... episode-39 https://www.viki.com/videos/1153888v-go ... episode-40
[debug] System config: ['--prefer-free-formats']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-f', 'best', '--write-sub', '--sub-format', 'srt', '--sub-lang', 'en', '--verbose', 'https://www.viki.com/videos/1153869v-go ... episode-21', 'https://www.viki.com/videos/1153870v-go ... episode-22', 'https://www.viki.com/videos/1153871v-go ... episode-23', 'https://www.viki.com/videos/1153872v-go ... episode-24', 'https://www.viki.com/videos/1153873v-go ... episode-25', 'https://www.viki.com/videos/1153874v-go ... episode-26', 'https://www.viki.com/videos/1153875v-go ... episode-27', 'https://www.viki.com/videos/1153876v-go ... episode-28', 'https://www.viki.com/videos/1153877v-go ... episode-29', 'https://www.viki.com/videos/1153878v-go ... episode-30', 'https://www.viki.com/videos/1153879v-go ... episode-31', 'https://www.viki.com/videos/1153880v-go ... episode-32', 'https://www.viki.com/videos/1153881v-go ... episode-33', 'https://www.viki.com/videos/1153882v-go ... episode-34', 'https://www.viki.com/videos/1153883v-go ... episode-35', 'https://www.viki.com/videos/1153884v-go ... episode-36', 'https://www.viki.com/videos/1155109v-go ... episode-37', 'https://www.viki.com/videos/1155110v-go ... episode-38', 'https://www.viki.com/videos/1153887v-go ... episode-39', 'https://www.viki.com/videos/1153888v-go ... episode-40']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.06.06
[debug] Python version 3.6.8 (CPython) - Linux-3.10.0-1127.13.1.el7.x86_64-x86_64-with-centos-7.8.2003-Core
[debug] exe versions: ffmpeg 3.4.7, ffprobe 3.4.7
[debug] Proxy map: {}
[viki] 1153869v: Downloading video JSON
[viki] 1153869v: Downloading video streams JSON
[info] Writing video subtitles to: Go Go Squid! - Episode 21-1153869v.en.srt
[debug] Invoking downloader on 'https://v4.viki.io/1153869v/1153869v_hi ... 85b39b58bf'
[download] Go Go Squid! - Episode 21-1153869v.mp4 has already been downloaded
[download] 100% of 199.25MiB
[viki] 1153870v: Downloading video JSON
[viki] 1153870v: Downloading video streams JSON
[info] Writing video subtitles to: Go Go Squid! - Episode 22-1153870v.en.srt
[debug] Invoking downloader on 'https://v4.viki.io/1153870v/1153870v_hi ... 6d6416329e'
[download] Go Go Squid! - Episode 22-1153870v.mp4 has already been downloaded
[download] 100% of 210.45MiB

***************************************
[download] Resuming download at byte 82809467
[download] Destination: Go Go Squid! - Episode 39-1153887v.mp4
[download] 50.4% of 262.33MiB at 1017.88KiB/s ETA 02:10ERROR: unable to download video data: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2334)
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 1925, in process_info
success = dl(filename, info_dict)
File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 1864, in dl
return fd.download(name, info)
File "/usr/lib/python3.6/site-packages/youtube_dl/downloader/common.py", line 366, in download
return self.real_download(filename, info_dict)
File "/usr/lib/python3.6/site-packages/youtube_dl/downloader/http.py", line 342, in real_download
return download()
File "/usr/lib/python3.6/site-packages/youtube_dl/downloader/http.py", line 230, in download
data_block = ctx.data.read(block_size if data_len is None else min(block_size, data_len - byte_counter))
File "/usr/lib64/python3.6/http/client.py", line 459, in read
n = self.readinto(b)
File "/usr/lib64/python3.6/http/client.py", line 503, in readinto
n = self.fp.readinto(b)
File "/usr/lib64/python3.6/socket.py", line 586, in readinto
return self._sock.recv_into(b)
File "/usr/lib64/python3.6/ssl.py", line 968, in recv_into
return self.read(nbytes, buffer)
File "/usr/lib64/python3.6/ssl.py", line 830, in read
return self._sslobj.read(len, buffer)
File "/usr/lib64/python3.6/ssl.py", line 587, in read
v = self._sslobj.read(len, buffer)
ssl.SSLError: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2334)

##

amir385276
Posts: 50
Joined: 2019/08/09 20:54:52

Re: SSL Decrypt on youtube-dl

Post by amir385276 » 2020/07/01 12:37:52

I decided to delete my VPS and everything
then install Centos 8 x64 from (https://www.centos.org/download/)
and then install youtube-dl and openssl with epel-release

I don't know which packages cause this issue but i know i'm so confused with new version of these packages

thanks TrevorH

User avatar
TrevorH
Forum Moderator
Posts: 29112
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: SSL Decrypt on youtube-dl

Post by TrevorH » 2020/07/01 12:42:22

Do not install anything from source. Everything you need is packaged and in the yum repos.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

amir385276
Posts: 50
Joined: 2019/08/09 20:54:52

Re: SSL Decrypt on youtube-dl

Post by amir385276 » 2020/07/01 12:56:03

Ok

I got it

Thanks TrevorH

it's long some time and i test it

Thanks

amir385276
Posts: 50
Joined: 2019/08/09 20:54:52

Re: SSL Decrypt on youtube-dl

Post by amir385276 » 2020/07/01 18:37:51

Hi again
I have a new fresh CentOS 8 x64
# hostnamectl
Static hostname: localhost.localdomain
Transient hostname: amniran.org
Icon name: computer-vm
Chassis: vm
Machine ID: 32f2a8b5ba8f46d7a01ae9a21fad469d
Boot ID: a1364ef9c52746e788aa73ddde35fcf4
Virtualization: vmware
Operating System: CentOS Linux 8 (Core)
CPE OS Name: cpe:/o:centos:centos:8
Kernel: Linux 4.18.0-193.el8.x86_64
Architecture: x86-64
#
and i want to update it just update
dnf update
# dnf install youtube-dl
Last metadata expiration check: 0:23:59 ago on Wed 01 Jul 2020 02:12:32 PM EDT.
No match for argument: youtube-dl
Error: Unable to find a match: youtube-dl

please help me t install youtube-dl or any packages you offer for me

Thanks

owl102
Posts: 377
Joined: 2014/06/10 19:13:41

Re: SSL Decrypt on youtube-dl

Post by owl102 » 2020/07/01 19:04:14

Do

Code: Select all

yum install epel-release
first.
German speaking forum for Fedora and CentOS: https://www.fedoraforum.de/

amir385276
Posts: 50
Joined: 2019/08/09 20:54:52

Re: SSL Decrypt on youtube-dl

Post by amir385276 » 2020/07/01 19:16:00

Yes i did

dnf install epel-release
then install youtube-dl

i wanna to test the viki.com

Thanks

amir385276
Posts: 50
Joined: 2019/08/09 20:54:52

Re: SSL Decrypt on youtube-dl

Post by amir385276 » 2020/07/01 19:27:31

on fresh centos 8
# youtube-dl -f best --write-sub --sub-format srt --sub-lang en https://www.viki.com/videos/1167643v-yo ... -episode-1
[viki] 1167643v: Downloading video JSON
[viki] 1167643v: Downloading video streams JSON
[info] Writing video subtitles to: You Are My Destiny - Episode 1-1167643v.en.srt
[download] Resuming download at byte 523264
[download] Destination: You Are My Destiny - Episode 1-1167643v.mp4
[download] 14.7% of 262.08MiB at 2.26MiB/s ETA 01:39ERROR: unable to download video data: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2354)
#
issue is alve
any different idea is IP ---- i think my IP baned with viki.com

amir385276
Posts: 50
Joined: 2019/08/09 20:54:52

Re: SSL Decrypt on youtube-dl

Post by amir385276 » 2020/07/01 19:30:19

or
i must be set the ssl connection time or retry options to high and more

i have no idea why?
the youtube-dl have a issue on viki.com but only working great on any other sites
see the pics
i.is.cc/11WrOoBO.jpg

thanks
Last edited by amir385276 on 2020/07/01 19:33:11, edited 1 time in total.

Post Reply

Return to “CentOS 8 - General Support”