You are not logged in.

#1 2014-04-09 03:33:33

EvanPurkhiser
Member
From: San Francisco
Registered: 2010-08-17
Posts: 225
Website

[Solved] Making mpv look pretty on the terminal again?

Hey guys, bit of a visual question about making MPVs console output look nice.

You used to be able to have the console output look like this (botttom left).

Bummer is the nice looking (aligned) --msgmodule formatting was removed back in december and (I can't find the specific commit) but the msgmodules are no longer colored.

Is there anyway to make mpv show pretty colored console output again like in the screenshot?

Last edited by EvanPurkhiser (2014-04-12 21:09:22)

Offline

#2 2014-04-09 04:18:35

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,095
Website

Re: [Solved] Making mpv look pretty on the terminal again?

I'm not actually completely sure about this one, but looking through mpv's --list-options and manpage, it seems that you can set custom status and playback strings. I imagine that it would be possible to use tabs ('\t') and ANSI color escapes to format the output to your liking. Have you given this a shot?

(P.S., if you do, post your results, I was unaware of the --msgmodule formatting and I quite like how that screenshot looks)

All the best,

-HG

Offline

#3 2014-04-09 04:24:30

EvanPurkhiser
Member
From: San Francisco
Registered: 2010-08-17
Posts: 225
Website

Re: [Solved] Making mpv look pretty on the terminal again?

Thanks, I gave the "status-msg" option a try, but it only affects the 'statusline' module.

Unfortunately it looks like this really has been removed which is too bad, I'm also quite fond of how it looked before sad Here's another screenshot to make you yearn for the previous look.

I'm thinking about posting up a issue on the GitHub tracker to find out why it was removed and if there's any chance we can get it back to it's previous form.

Offline

#4 2014-04-09 04:31:35

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,095
Website

Re: [Solved] Making mpv look pretty on the terminal again?

EvanPurkhiser wrote:

Thanks, I gave the "status-msg" option a try, but it only affects the 'statusline' module.

Ahh, bummer.

I'm thinking about posting up a issue on the GitHub tracker to find out why it was removed and if there's any chance we can get it back to it's previous form.

I'd recommend doing so. At the very least, it will become more obvious why it was removed; and, perhaps, something to replace it may come to fruition. I would happily support such an effort if it would not clutter or slow down the project over-all.

All the best,

-HG

Offline

#5 2014-04-09 04:43:14

EvanPurkhiser
Member
From: San Francisco
Registered: 2010-08-17
Posts: 225
Website

Re: [Solved] Making mpv look pretty on the terminal again?

I opened up an issue here. Feel free to throw a supporting comment in smile

Offline

#6 2014-04-09 04:49:07

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,095
Website

Re: [Solved] Making mpv look pretty on the terminal again?

EvanPurkhiser wrote:

I opened up an issue here. Feel free to throw a supporting comment in smile

Done.

All the best,

-HG

Offline

#7 2014-04-10 08:20:21

EvanPurkhiser
Member
From: San Francisco
Registered: 2010-08-17
Posts: 225
Website

Re: [Solved] Making mpv look pretty on the terminal again?

I actually ended up writing a little patch for this here. It looks like this. Hopefully I can get this upstream!

Last edited by EvanPurkhiser (2014-04-11 08:45:12)

Offline

#8 2014-04-10 08:37:29

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] Making mpv look pretty on the terminal again?

That's pretty sweet: thanks!


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2014-04-12 10:40:48

EvanPurkhiser
Member
From: San Francisco
Registered: 2010-08-17
Posts: 225
Website

Re: [Solved] Making mpv look pretty on the terminal again?

Woohoo! My patch was merged into upstream. I hope everyone can enjoy pretty-printed mpv console output now smile

Install mpv-git from the AUR to grab the changes now.

Offline

#10 2014-04-12 19:08:13

Kolibry
Member
Registered: 2012-12-20
Posts: 110

Re: [Solved] Making mpv look pretty on the terminal again?

You're amazing, thanks for sharing with the community smile


Asus 1225B - 11,6" -  AMD E-60 Dual Core 1,3Ghz - 4 Go RAM - Disque dur SSD 128 Go -  Radeon HD6290
ArchLinux Openbox - My Github

Offline

#11 2014-04-12 19:38:51

sekret
Member
Registered: 2013-07-22
Posts: 290

Re: [Solved] Making mpv look pretty on the terminal again?

That's why I love open source software!

Offline

#12 2014-04-12 19:52:25

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,095
Website

Re: [Solved] Making mpv look pretty on the terminal again?

Congrats on the merge, I think the result is quite nice. And, as a further celebration, perhaps you should add [Solved] to the beginning of the thread title? tongue

All the best,

-HG

Offline

#13 2014-04-12 22:20:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Making mpv look pretty on the terminal again?

I think this is OT, but the topic seems already solved so ... ;P

I've noticed that when launching from st, mpv-git has the status line

AV: 00:00:00 / 02:50:59 (0%) A-V: -0.000

flickering, while mpv from the repos is fine.
Can somebody please give me a hand with where to start git bisecting? I'd like to know what code went into the release i.e. should I pick March 29th code and see if it's OK?
Either I'm doing it very wrong, or it's been broken for a at least month.

Offline

#14 2014-04-12 23:09:50

EvanPurkhiser
Member
From: San Francisco
Registered: 2010-08-17
Posts: 225
Website

Re: [Solved] Making mpv look pretty on the terminal again?

I'm seeing the same flickering issue in mpv with st. I built from March 29th and it looks like it's still flickering. You could try bisecting from the 0.3.7 tagged commit 2758bc462dea70cea41096dd69b865f1f1f6564e to HEAD. There are about 700 commits between those two though :x

Last edited by EvanPurkhiser (2014-04-12 23:10:05)

Offline

#15 2014-04-14 02:22:19

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Making mpv look pretty on the terminal again?

According to https://github.com/mpv-player/mpv/releases the number of commits didn't change for some time. Version 0.3 has been released  4 months ago and it says '733 commits to master since this release' for every release since 0.3.

I've picked code from early March and I still get the flickering status line.
Either I'm doing it wrong or the releases differ from the master branch in a major way.

Offline

#16 2014-04-14 02:25:36

EvanPurkhiser
Member
From: San Francisco
Registered: 2010-08-17
Posts: 225
Website

Re: [Solved] Making mpv look pretty on the terminal again?

Whoops, I didn't even notice that!

Maybe because of the way mpv is built vs how mpv-git is built? [Here's the PKGBUILD diff](https://gist.github.com/EvanPurkhiser/10611502)

Offline

#17 2014-04-14 14:44:02

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Making mpv look pretty on the terminal again?

Nah, I've been using the stock mpv PKGBUILD too.
I'll open a bug report upstream and add it to my 'fix this later' list as I have no idea how to approach it, I need some tips / handholding.

Offline

Board footer

Powered by FluxBB