SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2015-07-03 19:25:02

Nili
#! Die Hard
From: 127.0.0.1
Registered: 2013-03-20
Posts: 811
Website

I Switched from mplayer2 to mpv

I do not understand why i waste so much time passing from mplayer2 to mpv? I keept faithful to mplayer2 since long time although there were some deficiencies in the config: brigntess +-, zoom panscan +- which never worked on my setup.

Just installed mpv, spent some time config it, I am surprised with new settings from mpv that did not work before on mplayer2.

I will immediately begin to build under my system preferences (this is my start) ~/.config/mpv/mpv.conf

geometry=50%:50%                                   # resize window in case it's larger than W%xH% of the screen

osd-level=3                                        # enable osd and display --osd-status-msg on interaction

border=no                                          # no window title bar

msg-module                                         # prepend module name to log messages

msg-color                                          # color log messages on terminal

vo=x11,directfb                                    # vo declares the video output mode as the framebuffer device

ao=alsa                                            # audio output

osc=yes                                            # disable the on screen controller (osc)

autofit-larger=90%x90%                             # don't allow a new window to have a size larger than 90% of the screen size

screenshot-format=png                              # scrot format

screenshot-png-compression=8                       # captured image compression

screenshot-png-filter=5                            # scrot filter

screenshot-template='~/Pictures/scrot/%F (%P) %n'  # scrot saved destination

Since i am keeping my system to bare minimum, mpv It is the only one to offer me quality over quantity in comparison with other video player. Infact Parole offer less libraries/packages compared to mpv but on this case have ignored my instinct regarding keep it less and clean.

So i am happy for the choice i made although with delay.

Edit: settings have been found on github pages.

Anyone else happy with mpv?

Last edited by Nili (2015-07-03 19:27:30)


# Debian GNU/Linux 8:8.2 (netinst/stable)
# Packages Installed: 541
# Linux debian 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u4 (2015-09-19) i686 GNU/Linux
# Startup finished in 2.850s (kernel) + 6.473s (userspace) = 9.324s

Offline

Help fund CrunchBang, donate to the project!

#2 2015-07-03 19:43:53

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: I Switched from mplayer2 to mpv

I use mpv regularly, although I haven't tried any configuration  :8


BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator smile

Offline

#3 2015-07-03 19:47:03

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: I Switched from mplayer2 to mpv

Not in the repos.  sad

But there is this: » mpv ftw! <- bad link | Fixed -> » mpv ftw!


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#4 2015-07-03 19:59:01

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: I Switched from mplayer2 to mpv

Sector11 wrote:

Not in the repos.  sad
...

deb-multimedia wink


BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator smile

Offline

#5 2015-07-03 20:01:49

Nili
#! Die Hard
From: 127.0.0.1
Registered: 2013-03-20
Posts: 811
Website

Re: I Switched from mplayer2 to mpv

Installed via debian packages

ah, I realized now it is not wheezy repo, perhaps they'll put any time later.

S11 your link "Bad request.".


# Debian GNU/Linux 8:8.2 (netinst/stable)
# Packages Installed: 541
# Linux debian 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u4 (2015-09-19) i686 GNU/Linux
# Startup finished in 2.850s (kernel) + 6.473s (userspace) = 9.324s

Offline

#6 2015-07-03 20:26:50

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: I Switched from mplayer2 to mpv

mpv is the best video player ATM on Linux. You can even write/use your own GLSL pixel shaders (in an up-to-date version compiled from git, don't know about jessie).

Here's my config. Here's my input.conf.

Here's a couple of interesting mpv scripts: mpv-plugin-xrandr, mpv-stats, osdb-mpv (automatic subtitle downloader).

There's also mpvhq by haasn which has super-duper-videophile gimmicks. Much of his work is getting (and mostly is) merged into the mainstream mpv project.

Last edited by twoion (2015-07-03 20:27:24)


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

#7 2015-07-03 21:14:05

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: I Switched from mplayer2 to mpv

Nili wrote:

S11 your link "Bad request.".

Fixed -> » mpv ftw!


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#8 2015-07-03 21:16:06

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: I Switched from mplayer2 to mpv

damo wrote:
Sector11 wrote:

Not in the repos.  sad
...

deb-multimedia wink

That explains it ... I don't have deb-multimedia in any install.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#9 2015-07-03 21:19:10

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: I Switched from mplayer2 to mpv

twoion said a bunch of really nice things about mpv --- now I gotta add deb-multimedia I guess. and try it out.

Stay tuned for the noob thread:  HUH ...mpv.... how do I ... lol lol lol


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#10 2015-07-03 21:22:30

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: I Switched from mplayer2 to mpv

@Nili -- add hardware decoding to your configuration:

hwdec=vaapi

You will also need gstreamer1.0-vaapi wink

Offline

#11 2015-07-03 22:57:21

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: I Switched from mplayer2 to mpv

Don't forget to use my Bash completion for the mpv command line. Because it doesn't has one by default. Mine is the most popular on the market right now btw smile

Download a Debian package, just re-built today for Debian Jessie/Hydrogen!

Using  git2deb script (after installing required packages as explained in the README), you can also just build it by yourself:

./git2deb https://github.com/2ion/mpv-bash-completion.git debian

See this thread for more info on git2deb.

Last edited by twoion (2015-07-03 22:57:39)


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

#12 2015-07-04 04:34:15

ohnonot
...again
Registered: 2012-05-22
Posts: 2,205

Re: I Switched from mplayer2 to mpv

Nili wrote:

Anyone else happy with mpv?

why am i for sure!
+1 for sharing config files.
at least on my part, mpv's capabilities are still largely unexplored. only yesterday i found out it has a "remember playback position" feature, like smplayer...

Offline

#13 2015-07-04 08:09:57

Nili
#! Die Hard
From: 127.0.0.1
Registered: 2013-03-20
Posts: 811
Website

Re: I Switched from mplayer2 to mpv

Many thanks HoaC, also twoion for wonderful scripts. I'll check one by one.... DAMN AWESOME!

mpv the best thing, the right thing.

ohnonot, me too discovered yesterday when i was doing some tests. Just great you know smile


I am trying to setup "mpv-stats" already put it at ~/.config/mpv/scripts/
but not show any stats when i press "i", also tried to change path on .mpv/scripts/ still not show any video info.

also made a folder "lua-settings" within "stats.conf"

font=Sans
font_size=9
font_color=262626
border_size=0.5
border_color=FFFFFF
alpha=70
duration=5
debug=yes

on "input.conf" there is a keybind like

i script_binding stats

still nothing info shown... neutral

when i open a video via terminal

nili@corejess:~$ mpv /home/nili/Videos/TOPCATS/150413_TopCats_Prelims_WEB_2014-Akamai-5000k.mp4
     input: Command 'script_binding' not found.
     input: Command was defined at /home/nili/.config/mpv/input.conf:38.
   cplayer: Playing: /home/nili/Videos/TOPCATS/150413_TopCats_Prelims_WEB_2014-Akamai-5000k.mp4
   cplayer: [stream] Video (+) --vid=1 (*) (h264)
   cplayer: [stream] Audio (+) --aid=1 --alang=und (*) (aac)
   cplayer: File tags:
   cplayer:  major_brand: isom
   cplayer:  minor_version: 1
   cplayer:  compatible_brands: isom
   cplayer:  creation_time: 2015-04-27 05:44:26
   cplayer: AO: [alsa] 48000Hz stereo 2ch float
   cplayer: VO: [x11] 1280x720 => 1280x720 yuv420p
statusline: AV: 00:00:00 / 00:01:12 (0%) A-V: -0.000
   cplayer: 
   cplayer: 
   cplayer: Exiting... (Quit)

I should perhaps read better to understand more clearly, first attempt on my part just poor. Any direction please? read me shows how to but I shall not stand out making it sad

Last edited by Nili (2015-07-04 09:13:02)


# Debian GNU/Linux 8:8.2 (netinst/stable)
# Packages Installed: 541
# Linux debian 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u4 (2015-09-19) i686 GNU/Linux
# Startup finished in 2.850s (kernel) + 6.473s (userspace) = 9.324s

Offline

#14 2015-07-04 10:42:30

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: I Switched from mplayer2 to mpv

It may be that the mpv version in jessie is too old to accomodate scripts and configurations based on the current release (0.9.2) hmm Same for the error you're seeing.

Maybe: delete the setting and let the script bind itself to 'i' (it will). Possible you'll encounter another error:

[stats] 
[stats] stack traceback:
[stats]         /home/joj/.mpv/scripts/stats.lua:51: in main chunk
[stats]         [C]: in ?
[stats]         [C]: in ?
[stats] Lua error: /home/joj/.mpv/scripts/stats.lua:51: attempt to index local 'options' (a boolean value)

which means you will have change the line

options.read_options(o)

to

read_options(o)

Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

#15 2015-07-04 13:36:25

Nili
#! Die Hard
From: 127.0.0.1
Registered: 2013-03-20
Posts: 811
Website

Re: I Switched from mplayer2 to mpv

Thank you twoion, maybe i must wait for the "0.9.2-1" am on jessie stable "0.6.2-2" currently, All my efforts failed to reach the goal.

Tried changing the line to "read_options(o)" but still "i" not show any info also changed to another format instead of "i"...

but, I'll wait anyway... during this time I will experiment with other things, there are many interesting settings to check smile

Found this post

there is a keybind config

i      show_text "File: ${filename}\n|\n| Video Resolution: ${width} x ${height} (display size: ${dwidth} x ${dheight})\n| Window Scale: ${window-scale}\n| Aspect Ratio: ${video-aspect}\n|\n| Audio Bitrate: ${audio-bitrate}\n| Video Bitrate: ${video-bitrate}\n| FPS: ${estimated-vf-fps} (estimated)\n| FPS: ${fps} (container specified)\n|\n| Video Codec: ${video-codec}"

Now once i press "i" all the nerds info are shown.

Thanks Argon

Last edited by Nili (2015-07-04 14:13:47)


# Debian GNU/Linux 8:8.2 (netinst/stable)
# Packages Installed: 541
# Linux debian 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u4 (2015-09-19) i686 GNU/Linux
# Startup finished in 2.850s (kernel) + 6.473s (userspace) = 9.324s

Offline

#16 2015-07-04 16:01:21

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: I Switched from mplayer2 to mpv

^ I don't even know if that version supports scripts. Try loading the script explicitly using the --script $PATH option. If that doesn't work it means there is no support for scripts at all...


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

#17 2015-07-04 16:10:29

Nili
#! Die Hard
From: 127.0.0.1
Registered: 2013-03-20
Posts: 811
Website

Re: I Switched from mplayer2 to mpv

Already tried several times twoion, unsuccessfully sad

Argon github says:

Usage

Place stats.lua in your ~/.config/mpv/scripts/ or ~/.mpv/scripts/ folder to autoload the script. Alternatively load it with --script=<path>

so i did, but output show same errors as ^above. For now i am using the other method that works pretty fine when I press the "i".

Perhaps the old jessie version doesn't support scripts. However I received a temporary solution. So my question is [HALF SOLVED].


# Debian GNU/Linux 8:8.2 (netinst/stable)
# Packages Installed: 541
# Linux debian 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u4 (2015-09-19) i686 GNU/Linux
# Startup finished in 2.850s (kernel) + 6.473s (userspace) = 9.324s

Offline

#18 2015-07-04 18:55:18

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: I Switched from mplayer2 to mpv

Yes, despite having versioned 'releases' mpv keeps changing rapidly, it can have more than 100 new changes per week. Debian's release model is not really an advantage here. sid and stretch offer I think the best deal here. deb-multimedia also doesn't have the 0.9.x series yet.


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

#19 2015-07-05 06:01:53

ohnonot
...again
Registered: 2012-05-22
Posts: 2,205

Re: I Switched from mplayer2 to mpv

Nili,
mpv is under rapid development and 0.6.2 won't do you much good.

---

twoion wrote:

Here's a couple of interesting mpv scripts: osdb-mpv (automatic subtitle downloader).

twoion,
i tried this script yesterday on archlinux - it works once for each video, and only downloading 1 subtitle, although it has an option

script-opts=osdb-numSubtitles=100

so if that happens to be the wrong subtitle, i have to download a better one manually anyway.
...and even when it works, it throws this error:

      osdb: 
      osdb: stack traceback:
      osdb: 	[C]: in function 'error'
      osdb: 	/usr/share/lua/5.2/xmlrpc/http.lua:41: in function 'call'
      osdb: 	/home/mus/.config/mpv/scripts/osdb-rpc.lua:23: in function 'login'(*)
      osdb: 	/home/mus/.config/mpv/scripts/osdb.lua:106: in function 'fn'
      osdb: 	mp.defaults:185: in function 'fn'
      osdb: 	mp.defaults:42: in function 'handler'
      osdb: 	mp.defaults:316: in function 'handler'
      osdb: 	mp.defaults:418: in function 'call_event_handlers'
      osdb: 	mp.defaults:454: in function 'dispatch_events'
      osdb: 	mp.defaults:411: in function <mp.defaults:410>
      osdb: 	[C]: in ?
      osdb: 	[C]: in ?
      osdb: Lua error: /usr/share/lua/5.2/xmlrpc/http.lua:41: unknown error
      osdb: 

(*) does it require login somewhere?

i have mpv 0.9.2, and according to the github page for the osdb plugin, i installed all dependencies in their lua5.2 versions.

have you an idea what might be amiss?

Offline

#20 2015-07-05 07:47:23

Nili
#! Die Hard
From: 127.0.0.1
Registered: 2013-03-20
Posts: 811
Website

Re: I Switched from mplayer2 to mpv

Just amazing to read the mpv updating status, Awesome!

I am patient and waiting for the version 0.9.2 to reach Debian Stable.


# Debian GNU/Linux 8:8.2 (netinst/stable)
# Packages Installed: 541
# Linux debian 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u4 (2015-09-19) i686 GNU/Linux
# Startup finished in 2.850s (kernel) + 6.473s (userspace) = 9.324s

Offline

#21 2015-07-05 10:27:23

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: I Switched from mplayer2 to mpv

Nili wrote:

I am patient and waiting for the version 0.9.2 to reach Debian Stable.

That's not going to happen except maybe in jessie-backports.

You can backport it yourself, it's pretty easy:
https://wiki.debian.org/SimpleBackportCreation

Let me know if you have any problems, I can do it myself but I'll have to set up a jessie container in my Arch system.

Offline

#22 2015-07-05 12:54:40

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: I Switched from mplayer2 to mpv

ohnonot wrote:

Nili,
mpv is under rapid development and 0.6.2 won't do you much good.

---

twoion wrote:

Here's a couple of interesting mpv scripts: osdb-mpv (automatic subtitle downloader).

twoion,
i tried this script yesterday on archlinux - it works once for each video, and only downloading 1 subtitle, although it has an option

script-opts=osdb-numSubtitles=100

so if that happens to be the wrong subtitle, i have to download a better one manually anyway.
...and even when it works, it throws this error:

      osdb: 
      osdb: stack traceback:
      osdb: 	[C]: in function 'error'
      osdb: 	/usr/share/lua/5.2/xmlrpc/http.lua:41: in function 'call'
      osdb: 	/home/mus/.config/mpv/scripts/osdb-rpc.lua:23: in function 'login'(*)
      osdb: 	/home/mus/.config/mpv/scripts/osdb.lua:106: in function 'fn'
      osdb: 	mp.defaults:185: in function 'fn'
      osdb: 	mp.defaults:42: in function 'handler'
      osdb: 	mp.defaults:316: in function 'handler'
      osdb: 	mp.defaults:418: in function 'call_event_handlers'
      osdb: 	mp.defaults:454: in function 'dispatch_events'
      osdb: 	mp.defaults:411: in function <mp.defaults:410>
      osdb: 	[C]: in ?
      osdb: 	[C]: in ?
      osdb: Lua error: /usr/share/lua/5.2/xmlrpc/http.lua:41: unknown error
      osdb: 

(*) does it require login somewhere?

i have mpv 0.9.2, and according to the github page for the osdb plugin, i installed all dependencies in their lua5.2 versions.

have you an idea what might be amiss?

In the code, you have to insert a user name and password.

osdb.LOGIN = ''
osdb.PASSWORD = ''

Last edited by twoion (2015-07-05 12:56:05)


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

#23 2015-07-05 14:05:34

Nili
#! Die Hard
From: 127.0.0.1
Registered: 2013-03-20
Posts: 811
Website

Re: I Switched from mplayer2 to mpv

Head_on_a_Stick wrote:

That's not going to happen except maybe in jessie-backports.

You can backport it yourself, it's pretty easy:
https://wiki.debian.org/SimpleBackportCreation

Let me know if you have any problems, I can do it myself but I'll have to set up a jessie container in my Arch system.

One day it will happen sooner or later shall reach jessie stable. I do not want to put other backports except Iceweasel on my sourcelist.
Even now mpv (old version) run pretty fine on my all media files. Cosmetic things i am let to expect some without rush.

Thank you very much for personal help, always appreciate your effort.

Kindly regards,
Nili


# Debian GNU/Linux 8:8.2 (netinst/stable)
# Packages Installed: 541
# Linux debian 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u4 (2015-09-19) i686 GNU/Linux
# Startup finished in 2.850s (kernel) + 6.473s (userspace) = 9.324s

Offline

#24 2015-07-05 14:11:50

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: I Switched from mplayer2 to mpv

Nili wrote:

One day it will happen sooner or later shall reach jessie stable

No, it won't.

The whole point of Debian *Stable* is that no new packages are added during the lifecycle of the release -- only bug fixes and security updates are added.

See the "Using Debian" link in my signature wink

Offline

Be excellent to each other!

#25 2015-07-05 15:15:08

Nili
#! Die Hard
From: 127.0.0.1
Registered: 2013-03-20
Posts: 811
Website

Re: I Switched from mplayer2 to mpv

Head_on_a_Stick wrote:

No, it won't.

The whole point of Debian *Stable* is that no new packages are added during the lifecycle of the release -- only bug fixes and security updates are added.

See the "Using Debian" link in my signature wink

Then I am not informed properly about Stable, I'll look your signature link smile Stable for me is something new because I spent lots of time on testing year ago. However i'll stick with stable and I will consider backports of apps sometimes soon.

Thanks for clarification of stable Head_on_a_Stick.


# Debian GNU/Linux 8:8.2 (netinst/stable)
# Packages Installed: 541
# Linux debian 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u4 (2015-09-19) i686 GNU/Linux
# Startup finished in 2.850s (kernel) + 6.473s (userspace) = 9.324s

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo