MPV - script for faster playback speed

Moderator: BarryK

Post Reply
don570
Posts: 624
Joined: Sat Nov 21, 2020 4:43 pm
Has thanked: 5 times
Been thanked: 98 times

MPV - script for faster playback speed

Post by don570 »

Download available in posting by BarryK post at bottom of page
If MPV is desired to play with the normal speed then double click on your media files
and they will open automatically.

To obtain a faster playback speed using MPV use the following code
This useful for long podcasts.

Code: Select all

Exec=mpv --speed=1.4 --player-operation-mode=pseudo-gui -- %U

I put together a package so a right click menu is available to quickly load the file and start it playing.

screenshot-mpv5.png
screenshot-mpv5.png (41.55 KiB) Viewed 546 times
Last edited by don570 on Fri Jun 30, 2023 6:52 pm, edited 2 times in total.
User avatar
BarryK
Posts: 2273
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 93 times
Been thanked: 564 times

Re: MPV - fast playback speed

Post by BarryK »

The contents of the /root folder and the post-install script break rox mime handling.

All that you need in the pet is just one file, mpv-fast.desktop
NOTHING ELSE.

The pkgget package installer reads the "MimeType=" field in 'mpv-fast.desktop' and automatically creates all the entries in the right-click menu.

What PKGget actually does is create files under /etc/xdg/rox.sourceforge.net/OpenWith (hidden files).

/root/.config/rox.sourceforge.net/OpenWith is not used for mime handling.

Note, the entry created in the right-click menu is "mpv-fast" and that is taken from the first word in the "Name=" field in mpv-fast.desktop

Fixed pet attached...

Attachments
mpv_fast-0.35-easy.pet
(1.52 KiB) Downloaded 41 times
User avatar
bugnaw333
Posts: 232
Joined: Wed Jul 20, 2022 11:04 pm
Location: Cebu, Philippines
Has thanked: 348 times
Been thanked: 33 times

Re: MPV - fast playback speed

Post by bugnaw333 »

need password?

Attachments
Screenshot(26).png
Screenshot(26).png (133.34 KiB) Viewed 498 times
User avatar
BarryK
Posts: 2273
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 93 times
Been thanked: 564 times

Re: MPV - fast playback speed

Post by BarryK »

bugnaw333 wrote: Thu Jun 29, 2023 1:15 pm

need password?

How on earth are you getting that?

/usr/sbin/petget will only do that if you run it as a non-root user.

Download the pet, then in rox filer, click on the pet to install it.

don570
Posts: 624
Joined: Sat Nov 21, 2020 4:43 pm
Has thanked: 5 times
Been thanked: 98 times

Re: MPV - fast playback speed

Post by don570 »

BarryK pet worked correctly for me.

I suggest that instead of term 'Video Player'
use 'Media Player' or 'Multimedia Player'
__________________________-----

User avatar
BarryK
Posts: 2273
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 93 times
Been thanked: 564 times

Re: MPV - fast playback speed

Post by BarryK »

See my blog post, fixed an old bug when uninstall a package:

https://bkhome.org/news/202306/very-old ... fixed.html

...removes the right-click file associations when uninstall.

That fix is in Easy 5.4.5.

Post Reply

Return to “EasyOS”