[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
/mpv/ - advanced media player
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 111
Thread images: 12
File: mpv_alto.png (240 KB, 512x512) Image search: [Google]
mpv_alto.png
240 KB, 512x512
> Download links for mpv.
- https://mpv.srsfckn.biz/mpv-i686-latest.7z
- https://mpv.srsfckn.biz/mpv-x86_64-latest.7z
- https://bitbucket.org/rorgoroth/mpv-for-windows/downloads

> Download links for baka-mplayer, the best mpv based gui player.
- http://bakamplayer.u8sand.net/Baka.MPlayer.32-bit.zip
- http://bakamplayer.u8sand.net/Baka.MPlayer.64-bit.zip

> Download link for youtube-dl.
- https://yt-dl.org/downloads/latest/youtube-dl.exe

> Useful lua scripts for mpv.
- https://github.com/argon-/mpv-stats
- https://github.com/kevinlekiller/mpv_scripts/tree/master/autospeed
- https://github.com/kevinlekiller/mpv_scripts/tree/master/autospeedwin

> Sharpen pixel shaders.
- https://github.com/mpv-player/mpv/wiki/User-Scripts#pixel-shaders

> High configuration, needs a good graphic card.
vo=opengl-hq:scale=ewa_lanczossharp:cscale=ewa_lanczossoft:scale-antiring=0.8:cscale-antiring=0.9


> Nnedi3 configuration, needs a very good graphic card.
vo=opengl-hq:scale=ewa_lanczossharp:cscale=ewa_lanczossoft:prescale=nnedi3:nnedi3-neurons=64:scale-antiring=0.8:cscale-antiring=0.9
>>
What are your geometry & autofit settings?
mine are
autofit-larger=40%
geometry= 5%:85%
>>
Since they removed extrastereo, how can I enable it using lavfi? It was a great feature.
>>
File: 1447174711274.png (347 B, 1920x1080) Image search: [Google]
1447174711274.png
347 B, 1920x1080
Some OC...
>>
File: 1435947691340.png (69 KB, 1920x1080) Image search: [Google]
1435947691340.png
69 KB, 1920x1080
>>51910528
>>
File: 1427548320522.png (89 KB, 1920x1080) Image search: [Google]
1427548320522.png
89 KB, 1920x1080
>>51910541
>>
>>51910117
fuck off, windows pleb
>>
Seems image viewers are obsolete now.
[extension.jpg]
pause

[extension.png]
pause

[extension.gif]
loop-file=inf

[extension.webm]
loop-file=inf
>>
>>51910475
autofit="40%"
geometry="50%:50%"
>>
File: 1450350658165.png (109 KB, 1920x1080) Image search: [Google]
1450350658165.png
109 KB, 1920x1080
>>51910541
>>
>>51910596
lel, not schway enough tho
what does mpv even mean?
>>
>>51910596
Font?
>>
Meme Player for Virgins

also share you LUA shit pls
>>
>>51910607
no idea, I always assumed media player v.. as in 5 because 1 and 2 were so trash this is like v5.

>>51910613
segoe ui print
>>
>>51910596
>>51910547
>>51910541
>>51910528
>logo already done
>well, lets make the wallpaper then
/g/
>>
>>51910588
Interesting.
Why do you set it to start in the middle of the screen?
You don't use it for youtube and other video sites?
>>
>>51910628
>>segoe ui print
Thanks, this kills the Comic Sans.
>>
>>51910652
mpv has it's own workspace here
>>
>>51910691
I envy you.
How do I set it so when I watch youtube it uses 360p ?
It always uses 720p.
>>
>>51910704
ytdl-format="bestvideo+bestaudio/best"
ytdl="yes"

That's my ytdl config as example. Just replace the format part with your desired settings (check ytdl manpages for formats).
>>
>>51910774
>That's my ytdl config as example.
*That's the ytdl part of my mpv config as example.
>>
Retard here; how do I use the configs posted by OP?
>>
>>51910585
This is neat.
>>
>>51910821
Put them into your retarded mpv.conf file.
>>
My first LUA steps.
Hit r to mark (a)
Hit r to mark (b) and convert a-b to opus.
ss = 0
function record_set()
ss = mp.get_property_number("time-pos")
end

function record_go()
local f = string.format("mpv-rec_%s-%s.opus", os.date("%Y%m%d%H%M%S"), mp.get_property('filename'))
local t = mp.get_property_number('time-pos') - ss + 1
local p = mp.get_property('path')
local e = io.popen(string.format('ffmpeg -loglevel 0 -i "%s" -ss %d -t %d -vn -ar 48000 -ac 2 -c:a libopus -b:a 192k "%s" &', p, ss, t, f))
e:close()
end

recording = false
function record()
if recording then
record_go()
recording = false
mp.command('show_text "◾ Recording"')
else
record_set()
recording = true
mp.command('show_text "● Recording"')
end
end

mp.add_key_binding("r", "Record", record)
>>
>>51910921
Just change the ffmpeg part if you want to create mp3, webm, whatever.
>>
File: SVhzqHu.jpg (525 KB, 842x1280) Image search: [Google]
SVhzqHu.jpg
525 KB, 842x1280
>>51910921
Neat.
Where does it get saved?
Also where to learn ffmpeg like you senpai?
>>
>>51910921
192k opus?
Are you retarded?
>>
>>51911059
>where to learn ffmpeg like you senpai?
man ffmpeg
>>
>>51911112
?
>>
>>51911274
He's probably just going to spout some bullshit about opus being "transparent" at some bitrate slightly lower than that and accuse you of wasting bits.
>>
>>51910921
Works fine as far as I could see. Cool stuff.

>>51911274
What that guy probably means is that 192kbps Opus files is extremely overkill. Opus is usually transparent somewhere between 96kbps to 128kbps depending on the file. So doing 192kbps opus is basically like creating 480kbps MP3 files.
>>
>>51911059
>Where does it get saved?
Same directory as the video file.
>>
>>51911455
And if it was stream?
>>
File: anime.png (107 KB, 1920x1080) Image search: [Google]
anime.png
107 KB, 1920x1080
Can someone show me an mpv setup similar to pic related?

I mostly watch several different currently airing shows a day, so Kodi doesn't really work for me, MPC-HC is a meme player and only works on Windows (I'm on Arch GNU/Linux).

I just ran into an actual non-fabricated real life issue playing back some anime with VLC. Apparently something was lacking in the sub engine that made the video playback for one part of a show not work. I'm now trying to think of a better way to watch anime, but losing this playlist functionality would kill me. In addition to watching things in large playlists, I often switch up the order, so I'm not really sure how mpv would be able to replicate this. Anyone got ideas? Pics of something similar would help as well.
>>
>>51911485
Then ffmpeg will quit itself and do nothing.
>>51911355
Seems sane. Changed to 128. Thanks.
>>
>>51911544
>Then ffmpeg will quit itself and do nothing
That's not good.
Any way around that?
I watch a lot of files over FTP/HTTP with mpv.
>>
>>51911541
mpv got some nice flags and keybinds to manage playlists, just man mpv. It's a long read, but after that, you feel the real power of mpv.
>>
>>51911568
How will opening the files initially work, though? they are all in separate folders. Will I have to type the full path of each file?
>>
>>51911593
I use ranger to browse and launch videos with mpv.
Not sure how good it will be for you, try it out.
>>
>>51911593
mpv supports playlist files:

> --playlist=<filename>
> Play files according to a playlist file (Supports some common formats. If no format is detected, it will be treated as list of files, separated by newline characters. Note that XML playlist formats are not supported.)
>>
>>51911770
I have ranger but then I have the same problem as with kodi.. Everything is in a different folder so I'll have to navigate around a bunch. The way it is now with VLC there's seamless playback between the episodes.
>>
>>51911841
How do I make those files in the first place? I do save my vlc playlists to a file sometimes just in case I have to close vlc before I finish, but if I have to use vlc to make playlist files for mpv then I'd rather just watch in vlc.
>>
>>51911857
Use emacs, one video file per line:
Boku_no_Pico.mkv
K_On_01_[480p].avi
...
>>
>>51911878
i-is it okay if I use vim instead?

Also if I'm typing full paths to files this is still much slower than VLC. I can just right click my window and hit add file and then go find what I want in anime/nameofanime
>>
>>51911895
If you use a good(tm) text editor, you can just drag a video file into an open text file, and it will insert the video file's path. Not sure if pleb editors like emacs or vim can do that though. But maybe they have an "insert path" command.
>>
>>51911895
you can try the autoload script, it's in the repo
>>
>>51911917
well shit that wouldn't be too far off from what I do now.. interesting

>>51911934
what's it do exactly?
>>
>>51911917
neither vim nor geany will let me drag a file right on to them..

maybe the issue is thunar though
>>
>>51911940
it automatically loads next file in directory after the playback ends, like mpc-hc
>>
find PATH/HERE -iregex '.*avi\|.*flv\|.*mkv\|.*mp4\|.*webm' > playlist.pls
>>
>>51911954
ah.. that's not very useful again. I'm pulling things from several different directories as I frequently watch a single episode of many shows in a row
>>
>>51911963
put I just want a single episode from several different directories
>>
>>51911965
https://github.com/nezumisama/mpvmenu/blob/master/mpvmenu
this could be modified to append files to playlist
>>
>>51911981
mpv --loop-file=inf https://www.youtube.com/watch?v=qb_hqexKkw8 
>>
>>51912055
>embed in code tags
MOOOOT!
>>
Seems music players are obsolete now.
https://paste.teknik.io/2566
>>
>>51912069
>MOOOOT!
literally who?
>>
>>51912148
Our Founding Father.
>>
>>51912158
wooosh
>>
>>51910585
mpv can play music.
mpv can play videos.
mpv can show photos.
mpv can show moving photos.

What's next?
>>
>>51912124
>https://paste.teknik.io/2566
>equalizer

Into the trash.
>>
>>51912206
retard spotted
>>
>>51912193
Just recently I discovered that mpv is able to play tracked music (.mod, .it, etc). Just the quality doesnt sound right compared to xmp or using a real tracker.
>>
>>51910512
/r/ing solution
>>
>>51910117
post this in the OP faggot

https://github.com/mpv-player/mpv/wiki/User-Scripts
>>
Is there any way to force mpv to save youtube media it plays? Something like
mpv url | savefile
?
>>
>>51912868
input.conf
ctrl+s run youtube-dl "${path}"; show_text "Saving ${media-title}" 
>>
>>51912909
>>51912909
MORE LIKE THIS
>>
>>51912909
How would one do a keybind for toggle between 3 shaders?
>>
does anybody have an issue with mpv+twitchtv/youtube where the video will pause but audio keeps playing? Doesn't seem to happen with local content
>>
>>51912966
no, update your youtube-dl or try livestreamer?
>>
>>51912976
they're updated. I believe it happens with livestreamer too. It doesn't happen with vlc
>>
Is there a way to select a precise frame in a video? And maybe have mpv display which frame I'm at? (in terminal is fine)
>>
>>51912976
are you using intel graphics or something else?
>>
>>51913006
also, sorry this happens on linux, not windows
>>
>>51912909
I meant that, rather than downloading files to cache or whatever it does, make it download files into the folder you are located at.
>>
>>51913030
that's what it does
>>
>>51912193
>>51912256
My fucking notepad can do those things. This is not the initial point of mpv.
>>
File: 1443610275365.png (11 KB, 500x500) Image search: [Google]
1443610275365.png
11 KB, 500x500
>>51913144
Are you a wizard?
>>
>>51913036
Ah, thanks.
>>
File: 1445893269965.gif (459 KB, 472x357) Image search: [Google]
1445893269965.gif
459 KB, 472x357
holy shit, I just realized that if I open a .torrent with mpv it automatically starts the download in qbitorrent, scans the title, searches TVdb, adds the series to my Sonarr and then moves the file to my plex server once it's done.
>>
>>51913222
mpv is a wizard
>>
>>51913222
you're lying to be honest family
>>
File: 1422197437694.png (13 KB, 500x500) Image search: [Google]
1422197437694.png
13 KB, 500x500
>>51913222
thats bullshit but i believe it
>>
>>51913295
No shit but you could actually stream torrents using aria2 piped to mpv directly or simply play the incomplete file.
>>
>shift+dragging youtube links into mpv makes a playlist that you can skip through or automatically play through
magic!
>>
>>51913702
IS THIS ANOTHER LIE
>>
Why do I have framedrops with this video here around 2:08 and 3:03?
https://www.youtube.com/watch?v=MGyaR2sSBkA

I happens on GNU/Linux and Windows. Can anyone reproduce it?

The exact file is the 4k version of the above youtube video.
sha1 sum below to be sure you have the same file as I do if you want to test:
user@host ~/Videos $ sha1sum Star\ Wars\ Battlefront\ Real\ Life\ Mod\ -\ 4K\ 60FPS-MGyaR2sSBkA.webm 
dbb94055ee876dd4347b554381071a63843156e1 Star Wars Battlefront Real Life Mod - 4K 60FPS-MGyaR2sSBkA.webm
>>
Streamlined config when?
>>
>>51915555
bump
>>
>>51915555
>>51917139
help me with this please >>51914312
>>
>>51910475

autofit-smaller=0x720
autofit-larger=1280x720
>>
How can I get MPV working on Yellow Dog Linux?
>>
Why isn't there a default preset ui that allows changing of quality.

>muh command line
>muh customization

Offering a simple gui config shouldn't remove the ability to use text based config.
>>
>>51917672
https://github.com/haasnhoff/mpvconfigurator

Try using Google fucking retard?
>>
File: 1424277061945.png (128 KB, 1446x1165) Image search: [Google]
1424277061945.png
128 KB, 1446x1165
>>51911059
>>
File: Capture.png (618 KB, 1281x753) Image search: [Google]
Capture.png
618 KB, 1281x753
How is this any better?
>>
>>51918131
>I always use default settings, and never read the manuals. Also, I think real 3d women are ugly, does that make me a homosexual? Please respond.
>>
>>51917690
>4 months ago
Lots of things have changed. From release to release, many options change.

Why not have an official version that keeps uptodate with the official change?
>>
Can't create my own script, not sure if it works or not. I'm new to lua btw had learning it just so I can make mpv do as I command.

But I need help already, the next code is not working. I don't know if it's me or mpv not loading my script. I put my "script.lua" file, on /.config/mpv/scripts folder.
function lastChapterSeen(event_quit)
io.open("~/Code/Lua/test.txt", "w")
chapterNum = mp.get_property_number(time-remaining)
io.write(chapterNum)
end

mp.register_event("stop", lastChapterSeen)
>>
>>51918718
Just quit mpv using SHIFT+q. It will resume the next time you start.
>>
>>51918718
Lua does not expand '~'. That's the shell doing.
>>
>>51919026
oh that's really nice thanks

>>51919075
do you think a complete path will make it work? :3 even with >>51919026's advice I still want to learn, maybe in the future I'll use it Idk
>>
>>51919163
>do you think a complete path will make it work?
No, the code is still wrong
To write to a file you do like this
file = io.open("test.txt", "w")
file:write("Stuff to write")
file:close()
>>
>>51919163
http://lua-users.org/wiki/OsLibraryTutorial
os.getenv() should do it
>>
>>51912909
what if I used "open with" to open the video?
>>
>>51920177
You press ctrl+s
Or you could just add a youtube-dl option for open with
>>
>>51920196
>Or you could just add a youtube-dl option for open with
fuck why didn't I think of that
>>
When you talk about mpv, does it all apply to both the linux and windows versions?
>>
>>51910596
use comic sans and replace "meme with "maymay"
Thread replies: 111
Thread images: 12

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.