GithubHelp home page GithubHelp logo

Comments (12)

hubblec4 avatar hubblec4 commented on May 24, 2024

mpvMatroska is not able to read playlist files like .m3u files.

When such a file is loading, there is no EBML header and mpvMatroska is not used.

I can imagine that after the second file from the list is loaded, that's when mpvMatroska comes into play.

from mpvmatroska.

magnilens avatar magnilens commented on May 24, 2024

This seems to be more general than just the playlist. While I had a video playing, I went to choose another video to play. Either using playlist menu or the next/previous item buttons. The results were the same, the top bar lagged behind on displaying the title.

from mpvmatroska.

hubblec4 avatar hubblec4 commented on May 24, 2024

I will look into it tonight, and hope I can reproduce it.

The top bar of uosc has an option for the title, and I'm not sure if I should use generally the alternate title.
I realized that for mkv's with multiple editions: the edition name is always one edition behind.

Is the title in the mpv window correct?

from mpvmatroska.

hubblec4 avatar hubblec4 commented on May 24, 2024

I can confirm that something going wrong.

I load 6 mkv's per drag&drop to mpv, all seems fine. But after changing to the next playlist file the name of this entry is changed. Really weird.
But the mpv main window title is correct.

from mpvmatroska.

magnilens avatar magnilens commented on May 24, 2024

The top bar of uosc has an option for the title, and I'm not sure if I should use generally the alternate title.

Are you using the primary title by default or the alternate title? The uosc documentation says the top bar can switch between the title and alternate title if it's been setup. But nothing seems to happen for me. I can't tell if that's because I didn't set anything up or the file has no alternate title.

Is the title in the mpv window correct?

The title remains correct, but that one can be disabled by setting border=no in mpv.conf

from mpvmatroska.

hubblec4 avatar hubblec4 commented on May 24, 2024

Are you using the primary title by default or the alternate title?

Currently only the "normal" title is used.

The title remains correct, but that one can be disabled by setting border=no in mpv.conf

OK, good to know. And yes I know of disabling, but I don't do that.

I have to figure out why uosc changes the names of the playlist entries.

from mpvmatroska.

hubblec4 avatar hubblec4 commented on May 24, 2024

It seems this is an uosc issue.

I have made a very simple script to check what uosc does when the title is changed.

local mp = require "mp"

local counter = 1

mp.register_event("file-loaded", function()
	mp.set_property("force-media-title", tostring(counter))
	
	counter = counter +1
end)

With this script the same issue happens.

from mpvmatroska.

magnilens avatar magnilens commented on May 24, 2024

It seems this is an uosc issue.

That may be. But, without mpvMatroska, uosc displays the title from the currently playing file. Maybe you should look at a different point for the script to change the title?

from mpvmatroska.

hubblec4 avatar hubblec4 commented on May 24, 2024

But with this small test script (and without mpvMatroska) the issue occurs also.
It is not an mpvMatroska issue.
The point when the media-title is change seems to be irrelevant.

The best would be to open an issue in the uosc project..

from mpvmatroska.

hubblec4 avatar hubblec4 commented on May 24, 2024

For the moment you can decide which fix you prefer.

Open the matroskaplayback.lua file in a text editor and search for the line:

mp.set_property("force-media-title", title)

With this line you have correct media-titles in the Top-Bar of uosc and the mpv main window, but the playlist entries gets weird names after changing a file.

You can change this line to:

mp.set_property("file-local-options/force-media-title", title)

Now the playlist entries are no longer changed, but the Top-Bar now also don't change the name longer.

from mpvmatroska.

magnilens avatar magnilens commented on May 24, 2024

Now the playlist entries are no longer changed, but the Top-Bar now also don't change the name longer.

Works satisfactory with linear files. But if there are input files for ordered chapters, the results are interesting. The title of the input file sometimes comes up first. Then it changes to the title of the first linked file. Other times, it just shows the title of the linked file and doesn't change again.

from mpvmatroska.

hubblec4 avatar hubblec4 commented on May 24, 2024

OK. But I guess it is an mpv issue, and we have to wait for a fix.

I use this line mp.set_property("force-media-title", title) to get a correct media-title. But I know the playlist entries then no longer correct, but I load ever only one file(a single mkv or main_menu.mkv with the content of many files).

from mpvmatroska.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.