2025年4月26日 星期六

How to use 'yt-dlp' to download a specific version of a video file

yt-dlp is a powerful linux command that I use often to download Youtube video files.

By default yt-dlp will download the video file with the highest quality/resolution. This has posed some problems for me as my computer is a bit out-dated (Intel i5-7400 CPU) and slightly sluggish in playing videos with resolution higher than 4K (3840x2160). As 4K Youtube videos are more more common nowadays, I often need to find a way to download a lower resolution version of the 4K videos. 4K video Downloader is good solution but it allows only a few downloads for free.

To download a specific version of a Youtube video file using yt-dlp is actually not very difficult. The process involves listing the available formats (on a monitor) and then choosing the desired one with specific command. But before that, you need to ensure that "ffmpeg" is installed on your computer for merging video and audio files.

For Arch or Arch-based Distros, you can use this command to check the presence of ffmpeg,:

ffmpeg -version

 The following shows that ffmpeg is present on my computer.

Steps to Download a Specific Version

1. List Available Formats

Use the command below to see all available formats for the video:

yt-dlp -F <video_url>


For example:  yt-dlp -F https://www.youtube.com/watch?v=5NY5M8KBQJ8

will give the following result, which shows a long list of available versions of the video to be downloaded:

 There are many ways to download Specific Format.

You may download by Format Code: e.g., 229  (from the above diagram), and then use the following command line to download:

 yt-dlp -f 229 <video_url>


You may also download it with a specific resolution (e.g., 720p):

yt-dlp -f "best[height=720]" <video_url>


If you are looking for the best MP4 format, you may use this command:

yt-dlp -f mp4 <video_url>


For best video and audio (requires Ffmpeg), you may use:

yt-dlp -f "bestvideo+bestaudio" <video_url>


Note, the above methods may sometimes result in getting videos without sound!


To play safe, I usually use the following command line which will combine Video and Audio with Specific Criteria:

yt-dlp -f "bv*[height=720]+ba" <video_url>

which will download the best 720p video with the best audio.

Here, bv* means best video, [height=720] filters for 720p, and +ba adds the best audio.
 

The following is what I used to download the 1080p version the 4K file:

[4K] 역사적인 한일 합동 공연, 말러 교향곡 제1번 '거인' ⧸ 정명훈 지휘 G. Mahler, Symphony No.1 'Titan' [5NY5M8KBQJ8].webm


yt-dlp -f "bv*[height=1080]+ba" https://www.youtube.com/watch?v=5NY5M8KBQJ8




2025年4月3日 星期四

WTT乒乓球賽事類別

WTT (世界乒乓球联会) 是国际乒联 (ITTF) 于2019年创立的一个组织,旨在举办一些商业化的乒乓球赛事。

WTT 所舉辦的重要乒乓球賽事包括 :  


1。 WTT Grand Smash(I 級)

- 目的:WTT 的最高榮譽賽事,類似網球的大滿貫。

- 每年赛事数量: 4

- 項目:單打,雙打和混合雙打。 

- 參與者:64 位單打球員,雙打24對,包括最高排名的球員和預選賽球員。

- 獎金:每次活動高達 300萬 美元,單打優勝者可獲約為 100,000 美元。 

- 積分:單打冠軍可得 2000 個排名分點。 

- 持續時間:10 天以上,包括資格回合。 

- 2025更新:固定了日期和場地(例如新加坡,中國,美國,歐洲),以增強全球吸引力。 

 

2。 WTT Finals(II 級) 

- 目的:為全年表現最好的球員而設。

- 每年赛事数量:2

- 項目:單打和混合雙打(在 2025 年起取代了男女雙打)。 

- 參與者:基於WTT系列排名的前16名單打球員和前8個混合雙打對。 

- 獎金:2025年增加到 $800,000 (+14.3%)。 

- 資格:結合了大粉碎,冠軍和競爭者係列賽事的結果。 

- 格式:小組階段,然後是淘汰賽半決賽。 

 

3。 WTT Champions 系列(III 級) 

- 目的:精英球員的獨家比賽。

- 每年赛事数量:8

- 項目:僅單打。

 - 參與者:全球前 32 名球員。 

- 獎金:最低 $500,000 每個事件。 

- 積分:單打冠軍 1000 分。 

- 2025擴展:增加到6個年度活動(從4個),重點關注單台,高生產廣播。 

 

4。 WTT Contenders 係列(IV&V 級) 分為兩個子層: 

 a)WTT Star Contender(IV 級) 

- 目的:作為精英球員和冒起新秀之間的橋樑。让一些新星有机会参加的传统意义上的乒乓球比赛。

- 每年赛事数量:6

- 項目:單打,雙打和混合雙打。 

- 參與者:48 位單打球員,雙打 24 對。 

- 獎金:每次活動 $275,000 (2025年+10%)。 

- 積分:單打冠軍的 600 分。 

 

b)WTT Contender(V 級)

 - 目的:中層排名的球員平台。 

- 每年赛事数量:14+

- 項目:灵活比赛形式,项目可以包括男单、女单、男双、女双和混双。 

- 獎金:每次活動 $ 85,000 (2025年+6.2%)。 

- 積分:單打冠軍 400 分。 

 

WTT支线系列赛

WTT支线系列赛是WTT在2022年推出的新赛事体系,是WTT关键的基础性赛事,位列WTT系列赛之下。为乒乓球新星、全球各大区域的突出选手,和要重返WTT系列赛的运动员为而設。

5。 WTT Feeder 系列(VI 級) 

- 目的:針對地區和不合格的球員的入門級層。

- 每年赛事数量:最多 60 次

- 項目:單打,雙打和混合雙打。

 - 參與者:向包括當地通配符在內的未排名或較低的球員開放。

 - 獎金:最低每次活動 $30,000 (2025年+34%)。 

- 積分:與較高級別相比,排名點更少。 

- 結構:具有多桌設置的7天事件。 

 

6。 WTT Youth Contender 系列 - 目的:開發未來的恆星(18歲以下/15歲)。 

- 項目:为初入乒坛的年轻球员(19岁以下)搭建了基础赛事体系,覆盖了U11、U13、U15、U17和U19年龄段。

- 每年赛事数量:最多 100 次

- 2025創新: - 青年粉碎:在比賽中首場得分,突然死亡的決勝局。 

- 新的合作夥伴關係(例如,Yinhe代替729作為官方球供應商)。