Page 2 of 4

Re: SSL Decrypt on youtube-dl

Posted: 2020/06/28 20:39:15
by amir385276
my VPS is centos 7

downgrade

#### rpm -q youtube-dl openssl

youtube-dl-2020.03.24-1.el7.noarch
openssl-1.0.2k-19.el7.x86_64

how to update youtube-dl and openssl

pip and yum don't working

Thanks

Re: SSL Decrypt on youtube-dl

Posted: 2020/06/29 22:05:38
by gerry666uk
But the URL shown for the video (test case) is NOT youtube?
Do you get the same error with a genuine youtube video?

Re: SSL Decrypt on youtube-dl

Posted: 2020/06/30 21:01:10
by amir385276
Hi again

i have a issue only with viki.com
i try to remove and install youtube-dl and openssl with git commands but there is issue

the other sites working great

Thanks

Re: SSL Decrypt on youtube-dl

Posted: 2020/06/30 21:03:42
by amir385276
openssl installing with this
# https://www.openssl.org/source/gitrepo.html

youtube-dl with
sudo pip3 install --upgrade youtube-dl

everybody can help me

Re: SSL Decrypt on youtube-dl

Posted: 2020/06/30 23:06:43
by amir385276
I try to install openssl but i have a error on test
### wget https://www.openssl.org/source/old/1.1. ... .1f.tar.gz
### cd openssl-1.1.1f.tar.gz
### tar -zxvf openssl-1.1.1f.tar.gz
### ./config
************
### make
************
### make test
make depend && make _tests
make[1]: Entering directory `/root/openssl-1.1.1f'
make[1]: Leaving directory `/root/openssl-1.1.1f'
make[1]: Entering directory `/root/openssl-1.1.1f'
( cd test; \
mkdir -p test-runs; \
SRCTOP=../. \
BLDTOP=../. \
RESULT_D=test-runs \
PERL="/usr/bin/perl" \
EXE_EXT= \
OPENSSL_ENGINES=`cd .././engines 2>/dev/null && pwd` \
OPENSSL_DEBUG_MEMORY=on \
/usr/bin/perl .././test/run_tests.pl )
Can't locate Test/Harness.pm in @INC (@INC contains: /root/openssl-1.1.1f/test/../util/perl /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at .././test/run_tests.pl line 112.
BEGIN failed--compilation aborted at .././test/run_tests.pl line 112.
make[1]: *** [_tests] Error 2
make[1]: Leaving directory `/root/openssl-1.1.1f'
make: *** [tests] Error 2

why do it that???
and how to fix it

Re: SSL Decrypt on youtube-dl

Posted: 2020/06/30 23:57:02
by TrevorH
Please don't. You will break your system, possibly beyond repair and requiring reinstallation.

Re: SSL Decrypt on youtube-dl

Posted: 2020/07/01 09:41:28
by amir385276
I'm so angry

why there is conflict between openssl and viki.com
??????????????????????????????

Re: SSL Decrypt on youtube-dl

Posted: 2020/07/01 09:44:54
by amir385276
Hi TrevorH

please help me to doing that correctly

first###### remove safe and perfectly the youtube-dl and openssl any version is exist
second########## reinstall safe and completely youtube-dl and openssl

then test it again and if issue is exist
i know ?!

Re: SSL Decrypt on youtube-dl

Posted: 2020/07/01 09:47:46
by TrevorH
There isn't. It works for me.

Please remove the source build you've done for youtube-dl and then purge any config files it may have left behind and then install the copy from the EPEL yum repository using yum install youtube-dl

As you can see below, it works here

Code: Select all

[trevor@trevor4 tmp]$ youtube-dl -f best --write-sub --sub-lang en https://www.viki.com/videos/1145090v-love-o2o-episode-22
[viki] 1145090v: Downloading video JSON
[viki] 1145090v: Downloading video streams JSON
[info] Writing video subtitles to: Love O2O - Episode 22-1145090v.en.vtt
[download] Destination: Love O2O - Episode 22-1145090v.mp4
[download] 100% of 246.66MiB in 00:17

Re: SSL Decrypt on youtube-dl

Posted: 2020/07/01 11:03:57
by amir385276
Hi TrevorH

you words is correct
if one video wanna to download
if i command to download more than one show me the ssl decrypt
# youtube-dl -f best --write-sub --sub-lang en --sub-format srt https://www.viki.com/videos/1145089v-lo ... episode-21 https://www.viki.com/videos/1145090v-lo ... episode-22 https://www.viki.com/videos/1145091v-lo ... episode-23 https://www.viki.com/videos/1145092v-lo ... episode-24 https://www.viki.com/videos/1145093v-lo ... episode-25 https://www.viki.com/videos/1145094v-lo ... episode-26 https://www.viki.com/videos/1145095v-lo ... episode-27 https://www.viki.com/videos/1145096v-lo ... episode-28 https://www.viki.com/videos/1145097v-lo ... episode-29 https://www.viki.com/videos/1145098v-lo ... episode-30
[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] 0.2% of 227.26MiB at 989.46KiB/s ETA 03:54ERROR: unable to download video data: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2334)

like up