Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please improve functional integration with third-party extensions #14411

Closed
zhouxinghong opened this issue Jun 22, 2024 · 2 comments
Closed

Please improve functional integration with third-party extensions #14411

zhouxinghong opened this issue Jun 22, 2024 · 2 comments

Comments

@zhouxinghong
Copy link

Expected behavior of the wanted feature

Friend! Hello, I accidentally found out today that I can use the following command line mode to play video and the speed is faster than (mpv xxxxx) command format to play video content, that's why I ask you for this feature request, and I hope you can further improve it.
The command is as follows:
yt-dlp -f bestvideo+bestaudio "https://www.youtube.com/watch?v=y6oMutwJQCw" -o - | "F:\tool\Player\mpv.exe" -
Although this mode can be very high speed video playback, but there is a problem that needs to be solved, that is, in the process of playing the video, it is not possible to locate the video through the mpv client, such as fast forward, rewind and other functional operations, so I hope that you can support this way of playing the video and improve this function.
image

MPV is a very good video player software, thanks to all of you who keep contributing to the MPV project!🎉👍🏆🌹

Alternative behavior of the wanted feature

mpv -f bestvideo+bestaudio "https://www.youtube.com/watch?v=y6oMutwJQCw"

Log File

C:\WINDOWS\system32>yt-dlp -f bestvideo+bestaudio "https://www.youtube.com/watch?v=y6oMutwJQCw" -o - | "F:\tool\Player\mpv.exe" -
[youtube] Extracting URL: https://www.youtube.com/watch?v=y6oMutwJQCw
[youtube] y6oMutwJQCw: Downloading webpage
[youtube] y6oMutwJQCw: Downloading ios player API JSON
[youtube] y6oMutwJQCw: Downloading m3u8 information
[info] y6oMutwJQCw: Downloading 1 format(s): 315+258
[download] Destination: -
Input #0, matroska,webm, from 'https://rr5---sn-oguelnze.googlevideo.com/videoplayback?expire=1719076614&ei=prJ2ZuzgFayA2roPgKeysAc&ip=95.85.94.80&id=o-AFBXb_Jpa2Vva0uSHqoTGb8rFQsMpDi6VCx34dOH2gWq&itag=315&aitags=133%2C134%2C135%2C136%2C160%2C242%2C243%2C244%2C247%2C278%2C298%2C299%2C302%2C303%2C308%2C315%2C394%2C395%2C396%2C397%2C398%2C399%2C400%2C401&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=xb&mm=31%2C26&mn=sn-oguelnze%2Csn-npoldn7y&ms=au%2Conr&mv=m&mvi=5&pl=24&initcwndbps=3232500&bui=AbKP-1OcFtCWlBs8FEpka-BX9fcWOF4mvCuic92KiQyPsTezJxKFYOd-PjvwDCg6yJT7UcYn8evalHCo&spc=UWF9fzVTYCjad0SWMd149Dq8Ovm0OBTXN8JISqNMrEcVbVghwQZYNhXwCW8j&vprv=1&svpuc=1&mime=video%2Fwebm&ns=4Tz9Qxk45kzGjBbLJo3GFsIQ&rqh=1&gir=yes&clen=5004916807&dur=1503.249&lmt=1712377863019563&mt=1719054539&fvip=4&keepalive=yes&c=WEB&sefc=1&txp=4432434&n=UpWAdEGgvWh8bA&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cxpc%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&sig=AJfQdSswRQIgLYgTcYqyLzgxxOzzKl_GCHttNJ7ctIPoRNat3IikEWYCIQCWfkW_-R_r3G7tP9KVnz4tlyYS4-GxDyD5QPSX1-Y2kw%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AHlkHjAwRQIhAPve6wB2ImF1iMAkhZH4SYQteWLBTYUlX3qf9BSm6_yXAiB806F957uXw8I1vAd4FG_7lKNdvXMBfLYsY05Tr8uTfg%3D%3D':
  Metadata:
    encoder         : google/video-file
  Duration: 00:25:03.25, start: 0.000000, bitrate: 26635 kb/s
  Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv, bt709), 2160x3840, SAR 1:1 DAR 9:16, 60 fps, 60 tbr, 1k tbn (default)
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'https://rr5---sn-oguelnze.googlevideo.com/videoplayback?expire=1719076614&ei=prJ2ZuzgFayA2roPgKeysAc&ip=95.85.94.80&id=o-AFBXb_Jpa2Vva0uSHqoTGb8rFQsMpDi6VCx34dOH2gWq&itag=258&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=xb&mm=31%2C26&mn=sn-oguelnze%2Csn-npoldn7y&ms=au%2Conr&mv=m&mvi=5&pl=24&initcwndbps=3232500&bui=AbKP-1OcFtCWlBs8FEpka-BX9fcWOF4mvCuic92KiQyPsTezJxKFYOd-PjvwDCg6yJT7UcYn8evalHCo&spc=UWF9fzVTYCjad0SWMd149Dq8Ovm0OBTXN8JISqNMrEcVbVghwQZYNhXwCW8j&vprv=1&svpuc=1&mime=audio%2Fmp4&ns=4Tz9Qxk45kzGjBbLJo3GFsIQ&rqh=1&gir=yes&clen=72900704&dur=1503.701&lmt=1703058811780795&mt=1719054539&fvip=4&keepalive=yes&c=WEB&sefc=1&txp=5432434&n=UpWAdEGgvWh8bA&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&sig=AJfQdSswRAIgaWTf2vzTgB0Dyhrru5y00c8yaX7fuGYN6RQD4YMmIJECICUsL-1OGYSUYQL-cEuo8NOQnKnPzkW_7v8mMa-y-Dzj&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AHlkHjAwRQIhAPve6wB2ImF1iMAkhZH4SYQteWLBTYUlX3qf9BSm6_yXAiB806F957uXw8I1vAd4FG_7lKNdvXMBfLYsY05Tr8uTfg%3D%3D':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6mp41
    creation_time   : 2023-12-20T07:41:32.000000Z
  Duration: 00:25:03.70, start: 0.000000, bitrate: 387 kb/s
  Stream #1:0[0x1](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 386 kb/s (default)
      Metadata:
        creation_time   : 2023-12-20T07:41:32.000000Z
        handler_name    : ISO Media file produced by Google Inc.
        vendor_id       : [0][0][0][0]
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
Output #0, matroska, to 'pipe:':
  Metadata:
    encoder         : Lavf61.3.104
  Stream #0:0(eng): Video: vp9 (Profile 0) (VP90 / 0x30395056), yuv420p(tv, bt709), 2160x3840 [SAR 1:1 DAR 9:16], q=2-31, 60 fps, 60 tbr, 1k tbn (default)
  Stream #0:1(und): Audio: aac (LC) ([255][0][0][0] / 0x00FF), 48000 Hz, 5.1, fltp, 386 kb/s (default)
      Metadata:
        creation_time   : 2023-12-20T07:41:32.000000Z
        handler_name    : ISO Media file produced by Google Inc.
        vendor_id       : [0][0][0][0]
Press [q] to stop, [?] for help
[vost#0:0/copy @ 0000023fc33bbb00] Error submitting a packet to the muxer: Broken pipe
    Last message repeated 1 times
[out#0/matroska @ 0000023fc3338cc0] Error muxing a packet
[out#0/matroska @ 0000023fc3338cc0] Task finished with error code: -32 (Broken pipe)
[out#0/matroska @ 0000023fc3338cc0] Terminating thread with return code -32 (Broken pipe)
[out#0/matroska @ 0000023fc3338cc0] Error writing trailer: Broken pipe
[out#0/matroska @ 0000023fc3338cc0] Error closing file: Broken pipe
[out#0/matroska @ 0000023fc3338cc0] video:168313KiB audio:2227KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.010898%
size=  170558KiB time=00:00:47.18 bitrate=29612.7kbits/s speed=0.743x
Conversion failed!


ERROR: ffmpeg exited with code 4294967264

Sample Files

No response

@zhouxinghong
Copy link
Author

Windows 10 19044

C:\WINDOWS\system32>mpv --version
mpv v0.38.0-512-gbab9b2cf Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
built on Jun 20 2024 14:28:45
libplacebo version: v7.349.0 (v7.349.0-rc1-3-g1fd3c7b-dirty)
FFmpeg version: N-115967-g35df214a7
FFmpeg library versions:
libavutil 59.24.103
libavcodec 61.8.100
libavformat 61.3.104
libswscale 8.2.100
libavfilter 10.2.102
libswresample 5.2.100

yt-dlp Latest nightly version

Source of mpv: https://sourceforge.net/projects/mpv-player-windows/files/

Introduced in version: Video specs are Vertical 4K 60 FPS https://www.youtube.com/watch?v=y6oMutwJQCw

@guidocella
Copy link
Contributor

yt-dlp can't seek in streams. You can try to use HLS as suggested in #8655 (comment)

@mpv-player mpv-player locked and limited conversation to collaborators Jun 22, 2024
@kasper93 kasper93 converted this issue into discussion #14413 Jun 22, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

2 participants