ShareSpark

 

Author Topic: How to use youtube-dl (ytdl) or its forks  (Read 990 times)

0 Members and 1 Guest are viewing this topic.

Offline honey01

  • Topic Author
  • Legend
  • Legend Member
  • *
  • Thanked: 949
  • Reputation: 338
  • Activity:
    0.2%
  • Join Date: Sep 2019
  • Posts: 1995
How to use youtube-dl (ytdl) or its forks
« on: April 24, 2021, 09:06:55 AM »
So I helped someone learn howto use it.. aab itna type kiya hai to backup rakh lete hain yahan  :lol:

ytdl You are not allowed to view links. Register or Login ; You are not allowed to view links. Register or Login
ffmpeg You are not allowed to view links. Register or Login ; You are not allowed to view links. Register or Login

All you have to do is download the ytdl exe and place ffmpeg exe in the same folder so as to mux audio - video streams (if they are separate)
How to run~

Code: You are not allowed to view links. Register or Login
youtube-dl.exe paste_link
and press enter.. it will grab the highest quality version.

This ytdl fork called yt dlp has support for many indian vod's _ zee star sony voot mxplayer disc+ You are not allowed to view links. Register or Login

Download process is the same. And as for quality selection~


Quote
jaise yeh link hai You are not allowed to view links. Register or Login

esko sw mein daal kar end mein (-F) without bracket likh dena aur enter maar dena

mujhe saath mein (--no-check-certificate) bhi likhna hota hai cause meri windows kafi purani hai aur ssl certificate ki error aati hai

to meri command bani

yt-dlp_x86 --no-check-certificate You are not allowed to view links. Register or Login -F

es big F se sab format show hoga

ab yeh pic dekho.. tumhe video aur audio ki format id copy karni hogi



720p ki id hai ---> dash-high-4
aur audio ki --> dash-high-5

audio 3 bar show ho raha hai.. lekin yeh dual audio nahi hai to sab same hi hai.
par mere pc par yahaan wali "dash" stream hi download hoti hai par hls wali nahi (dunno why)
so main dash wali note karta hoon

yahan par command bana

yt-dlp_x86 --no-check-certificate You are not allowed to view links. Register or Login -f dash-high-4+dash-high-5

es baar chota f
aur pehle video id compulsory hai aur baad mein audio id. ulta karoge to nahi hoga.
yaani -f video_id+audio_id (without space in the ids.. par f ke baad space hai)

bas ab 720p dl ho jayega aur end mein mux.
yeh ids change hoti rehti hai.. so tumhe har baar dekhna hoga.
shayd ek show ki episodes mein same ho.. maine zyada dekha nahi.
ek baar chalana aa jaye to time nahi lagta... par kaam bahut boring hai lol.
so koi rip mil jaye to badia :D

Aur haan agar bech mein net band ho jaye to baad mein auto resume ho jana chaiye.
nahi to upar wali commands notepad mein save karke rakh lo.. aur dubara chala dena.. utna data bach jana chaiye... old se hi resume hoga
 
The following users thanked this post: Dɛ乂τɛя, KyoGo, TrueMate, REZ, DonSeenu, 185vvs, K͡m͡3͡3͡4͡, forumaks

Offline DonSeenu

  • Team SSX
  • Hero Member
  • *
  • Thanked: 1633
  • Reputation: 110
  • Activity:
    0%
  • Join Date: Apr 2020
  • Location: India
  • Age: Age
  • Posts: 345
  • Gender: Male
Re: How to use youtube-dl (ytdl) or its forks
« Reply #1 on: April 24, 2021, 04:05:51 PM »
is this work on Zee5 ??
 

Offline honey01

  • Topic Author
  • Legend
  • Legend Member
  • *
  • Thanked: 949
  • Reputation: 338
  • Activity:
    0.2%
  • Join Date: Sep 2019
  • Posts: 1995
Re: How to use youtube-dl (ytdl) or its forks
« Reply #2 on: April 24, 2021, 04:56:37 PM »
yes yt-dlp added support for zee5 shows in mid march.


Quote
[zee5] Add Show Extractor by Ashish and pukkandan


try & see..
 

Offline Dɛ乂τɛя

  • Global Moderator
  • Special Member
  • *
  • Thanked: 1545
  • Reputation: 235
  • Activity:
    0%
  • Join Date: Sep 2019
  • Location: Israel
  • Posts: 682
  • Gender: Male
Re: How to use youtube-dl (ytdl) or its forks
« Reply #3 on: April 25, 2021, 11:49:17 PM »
it is working fine with zee5 and MX but sonyliv says 'DRM protected' and discoveryplus says 'only registered allowed' .
messeged you on Discord You are not allowed to view links. Register or Login
:race:
 

Offline honey01

  • Topic Author
  • Legend
  • Legend Member
  • *
  • Thanked: 949
  • Reputation: 338
  • Activity:
    0.2%
  • Join Date: Sep 2019
  • Posts: 1995
Re: How to use youtube-dl (ytdl) or its forks
« Reply #4 on: April 26, 2021, 01:24:42 PM »
^ Such apps wont help you bypass DRM or get paid content for free.

sonyliv~ I assume simple sass bahu stuff is DRM free.. but I may be wrong.

discoveryplus ~ from what I read, some of their content is free to watch without any account and that works. If you have a paid account.. ytdl has option to work with the browser cookies you provide (check their github for documentation)

If you still want to grab DRM'ed content.. I heard about trick... provided you know how to crack DRM. But you have to grab the python source version & not the exe

goto -- youtube_dl/extractor/common.py

and change --

def is_drm_protected(element):
   return element.find(_add_ns('ContentProtection')) is not None

to --

def is_drm_protected(element):
   return False

---

This will let you grab DRM'ed file. But a new problem will arrive.
Since ffmpeg cant process the file.. it will delete it as soon as the download finishes.

So use

-k

or

--keep-fragment

switches.. depending on the vod you are working with.
Once you have downloaded the DRM'ed file.. now you are on you own  :whistle:
 

Offline honey01

  • Topic Author
  • Legend
  • Legend Member
  • *
  • Thanked: 949
  • Reputation: 338
  • Activity:
    0.2%
  • Join Date: Sep 2019
  • Posts: 1995
Re: How to use youtube-dl (ytdl) or its forks
« Reply #5 on: April 26, 2021, 01:29:13 PM »
Howto use aria2 to speed up downloads

You are not allowed to view links. Register or Login ; You are not allowed to view links. Register or Login

Grab the exe and place it in the same folder.

now learn these 2 commands~

--external-downloader COMMAND       
--external-downloader-args ARGS

Sample~

Code: You are not allowed to view links. Register or Login
yt-dlp_x86 --external-downloader aria2c --external-downloader-args "-x 2" hxxps://www.youtube.com/watch?v=569iuSDDvbs -f 18
-f 18 = 360p avc with 96kbps audio muxed already. Youtube ids dont change.. so you may commit those to your memory.
The -x 2 here will try to make 2 connections to speed things up.

---

Code: You are not allowed to view links. Register or Login
yt-dlp_x86 --external-downloader aria2c --external-downloader-args "-x 8" hxxps://www.youtube.com/watch?v=4kqCCU6lNno
This will try to grab the best version with 8 connections.

More switches can be found in their documentation
« Last Edit: April 26, 2021, 01:31:16 PM by honey01 »
 

Offline honey01

  • Topic Author
  • Legend
  • Legend Member
  • *
  • Thanked: 949
  • Reputation: 338
  • Activity:
    0.2%
  • Join Date: Sep 2019
  • Posts: 1995
Re: How to use youtube-dl (ytdl) or its forks
« Reply #6 on: May 11, 2021, 01:18:24 PM »
You are not allowed to view links. Register or Login
<snip>

If you still want to grab DRM'ed content.. I heard about trick... provided you know how to crack DRM. But you have to grab the python source version & not the exe

goto -- youtube_dl/extractor/common.py

and change --

def is_drm_protected(element):
   return element.find(_add_ns('ContentProtection')) is not None

to --

def is_drm_protected(element):
   return False

---

This will let you grab DRM'ed file. But a new problem will arrive.
Since ffmpeg cant process the file.. it will delete it as soon as the download finishes.

So use

-k

or

--keep-fragment

switches.. depending on the vod you are working with.
Once you have downloaded the DRM'ed file.. now you are on you own  :whistle:



Apparently its more easy in yt-dlp itself.
No need to get python source.. just use this flag

Code: You are not allowed to view links. Register or Login
--allow-unplayable-formats
 

Tags:
 

SimplePortal 2.3.7 © 2008-2024, SimplePortal