mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.72k stars 2.93k forks source link

Feature Request: Add commandline option to only play only videos, ignore filetype instead of requiring to use `autoload.lua` or `blacklist.lua` #15350

Open zDEFz opened 4 days ago

zDEFz commented 4 days ago

mpv Information

mpv v0.39.0 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
 built on Nov  8 2024 00:20:12
libplacebo version: v7.349.0 (v7.349.0-15-g756220c3)
FFmpeg version: n7.1
FFmpeg library versions:
   libavcodec      61.19.100
   libavdevice     61.3.100
   libavfilter     10.4.100
   libavformat     61.7.100
   libavutil       59.39.100
   libswresample   5.3.100
   libswscale      8.3.100

Other Information

- Linux version:
Arch Linux
- Kernel Version:
6.12.0-2
- GPU Model:
24:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 33 [Radeon Pro W7500] [1002:7489]
2f:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21 [Radeon RX 6950 XT] [1002:73a5] (rev c0)
- Mesa/GPU Driver Version:
OpenGL version string: 4.6 (Compatibility Profile) Mesa 25.0.0-devel (git-73d513c5be)

- Window Manager and Version: `sway version 1.10-dev-53123760 (Nov 18 2024, branch 'master')` 
- Source of mpv: upstream
- Latest known working version: -
- Issue started after the following happened: -

Reproduction Steps

1 mpv --no-config --log-file=output.txt <video folder> 2 Wait till the current file has played and the next start

Expected Behavior

After the current video is finished, the next video starts

Actual Behavior

After the current video finishes, a cover art from the current video appears, and then the next video starts

Additional Info

1

I found out that I can make use of https://github.com/occivink/mpv-scripts#blacklist-extensionslua

2

I found out that I can make use of https://github.com/mpv-player/mpv/blob/master/TOOLS/lua/autoload.lua

Log File

[output.txt](https://github.com/user-attachments/files/17852540/output.txt)

Sample Files

No response

I carefully read all instruction and confirm that I did the following:

This may be a duplicate of #2595

CrendKing commented 3 days ago

The functionality of autoload.lua already exists with the --autocreate-playlist option.

guidocella commented 3 days ago

--directory-filter-types=video

zDEFz commented 3 days ago

The functionality of autoload.lua already exists with the --autocreate-playlist option.

Not quite sure why this is at demuxer section

--directory-filter-types=video

I am happy that I asked in GitHub. I did plow through the documentation and man file for hours and came back with nothing.