mpv-player / mpv

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

Playlist file in profile doesn't apply #13984

Open Piber0 opened 5 months ago

Piber0 commented 5 months ago

Important Information

Provide following Information:

If you're not using git master or the latest release, update. Releases are listed here: https://github.com/mpv-player/mpv/releases

Reproduction steps

  1. Add these lines to mpv.conf (in any order)
    
    [extension.mkv]
    brightness=-30

[extension.m3u8] hue=-50


3. Create a playlist file (here a .m3u8, but .m3u is also affected for example)
4. With a text editor, add a direct link (here an mkv) into the .m3u8 file and save it
5. Launch .m3u8 file into mpv

### Expected behavior
When I open the .m3u8 file (containing .mkv link), the hue filter should apply at -50 and the brightness at -30.

### Actual behavior
mpv recognizes both profiles, but only .mkv applies brightness at -30
And even if the .mkv profile doesn't exist, the .m3u8 profile doesn't apply.

### Log file

Z:>mpv --load-scripts=no playlist.m3u8 Auto-loading profile 'extension.m3u8' Auto-loading profile 'extension.mkv' Playing: output.mkv (+) Video --vid=1 () (h264 1920x1080 23.976fps) (+) Audio --aid=1 --alang=en () (eac3 6ch 48000Hz) Subs --sid=1 --slang=fr-CA (subrip) Subs --sid=2 --slang=fr-FR (subrip)



### Sample files

Sample files needed to reproduce this issue can be attached to the issue
(preferred), or be uploaded to https://0x0.st/ or similar sites.
(Only needed if the issue cannot be reproduced without it.)
Do not use garbage like "cloud storage", especially not Google Drive.
guidocella commented 5 months ago
[m3u8]
profile-cond=playlist_path:find('m3u8')
hue-50
Piber0 commented 5 months ago

It works, thank you. Last question: how do I make a profile for full blurays (BDMV structure) ? I tried [extension.m2ts] but without success.