Aleksoid1978 / MPC-BE

MPC-BE – универсальный проигрыватель аудио и видеофайлов для операционной системы Windows.
GNU General Public License v3.0
2.37k stars 93 forks source link

supporting the --get-url parameter #627

Closed zhouxinghong closed 1 week ago

zhouxinghong commented 1 week ago

Hello, friend! Can MPC-BE consider supporting the --get-url parameter carried by yt-dlp? Because MPC-BE currently supports yt-dlp, I hope MPC-BE can further support the --get-url parameter. If MPC-BE can support this parameter, then MPC-BE can play videos through the yt-dlp command in some special usage scenarios, for example:

yt-dlp  --get-url "https://delivery-node-4v7xw79skptjyuek.voe-network.net/engine/hls2-c/01/12746/7vyydxsxakmv_,n,.urlset/index-v1-a1.m3u8?t=T40xY9VtguhRKAgdEixLXo4gG5lHJ-LRCfvpQU1nsF0&s=1731736546&e=14400&f=63732950&node=delivery-node-ecsrwgqtckkzri1b.voe-network.net&i=141.11&sp=2500&asn=207907" | vlc.exe -

In this way, MPC-BE can be used by users with different needs in a wider range of fields.

zhouxinghong commented 1 week ago

Thank you very much for providing a very excellent and efficient media tool for users around the world! 🍦🏆👍😜

v0lt commented 1 week ago

Can MPC-BE consider supporting the --get-url parameter carried by yt-dlp?

Why is this necessary?

zhouxinghong commented 1 week ago

Why is this necessary?

The advantages of doing so are as follows:

  1. It allows MPC-BE to meet the needs of more users;

  2. since yt-dlp is very fast at parsing live streams, it will be helpful to use MPC-BE to watch live streams smoothly and stably on low-speed networks.

  3. VLC also supports the following syntax:

    yt-dlp --get-url “https://delivery-node-4v7xw79skptjyuek.voe-network.net/engine/hls2-c/01/12746/7vyydxsxakmv_,n,.urlset/index-v1-a1.m3u8?t=T40xY9VtguhRKAgdEixLXo4gG5lHJ-LRCfvpQU1nsF0&s=1731736546&e=14400&f=63732950&node=delivery-node-ecsrwgqtckkzri1b.voe-network.net&i=141.11&sp=2500&asn=207907” | vlc.exe -

....

v0lt commented 1 week ago
  1. It allows MPC-BE to meet the needs of more users; ...

What is the "--get-url" parameter for? What does it do?

zhouxinghong commented 1 week ago

What is the "--get-url" parameter for? What does it do?

This is not officially explained.