Closed StacktraceException closed 3 years ago
Would you please comment more, on what configs do work for this?
@glubsy what was the issue that made the "hwdec" special case important? Might we just as easily not touch this property at all?
My understanding of the mpv documentation is that hardware decoding is not very reliable and should be avoided if possible.
I don't remember why I did not add a key-binding to toggle hardware acceleration, but I'll look into it right now and report back.
Alright, I think I remember now: the default mpv key-binding should already work to toggle hardware acceleration. It's ctrl+h
by default, as mentioned in the link I posted above.
If I recall correctly, there were some issues with hardware decoding, hence why it falls back to disabling hwdec when toggled on.
The script should restore the value to what it was, if that value got changed at all.
I suppose you could comment out the line mp.set_property("hwdec", "no")
if you want to keep hwdec active no matter what.
@StacktraceException Sounds like they're incompatible I'll have a play around and possibly extend that OSD message to mention the combo to toggle it back on...then again I'm not even certain hwdec being disabled here is the issue as the vr conversion in real-time is pretty slow (particularly moving the 'head' position) even on the most powerful machines, hence the reason the script starts the video at a very low resolution.
You're not certain? I am. Of course I tested it before writing. Did you? pt., 16 lip 2021, 19:48 użytkownik DepFA @.***> napisał:
@StacktraceException https://github.com/StacktraceException Sounds like they're incompatible I'll have a play around and possibly extend that OSD message to mention the combo to toggle it back on...then again I'm not even certain hwdec being disabled here is the issue as the vr conversion in real-time is pretty slow (particularly moving the 'head' position) even on the most powerful machines, hence the reason the script starts the video at a very low resolution.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dfaker/VR-reversal/issues/6#issuecomment-881615806, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOSWAAFQBGCKY3DKQTDQFYDTYBWHVANCNFSM437VZJUQ .
@StacktraceException Not at the time of writing, hence the reason I'm not certain, and it seems it's not:
As stated by @glubsy the vr reversal filters are incompatible with the hwdec being turned on, at least for 'd3d11va' on this windows build of mpv, when I toggle hwdec on with ctrl+h
the vr-revesal filters twitch off.
@StacktraceException Do you get an indication that another hw decoder is being used when you toggle the hdcec on with ctrl+h
? My suspicion would be that togging on hwdec on all platforms is incompatible with the filter and the configuration introduced by @glubsy is correct - if not please let us know what hw filter it indicates is in use when vr-reversal is working for you.
Sorry, I don't have much time lately for these kind of things. This is what my mpv.conf was like (maybe without the higher quality filters for example) back then (not finished nor updated much), (and sorry. had to use windows as a short term measure). RTX 3060 laptop GPU.
[default]
zestaw. cct.
video-output-levels=full target-prim=dci-p3 target-trc=gamma2.6
imited.. kurwa mac.
whitepoint with the same correlated daylight temperature as D63 but greener.[5] Blue is the same as in BT.709.
trzeba inne srypty co sa do zdjec? usun jesli nie dziala..
wolny by w ogole coskolwiek sie dalo ogladac..
lost
tak niewiecej niz rgba16? a mocno spowalnia
d3d11va-zero-copy=yes d3d11-feature-level=12_1
sometimes bad artifacts (see skiploopfilter for available skip values)."
linuxowego chyba..
backends." -- na windosiwe probuje uzyc nvdec-cuda ccct domyslnie z conajmniej m.in. tym co tu napisalem
wyjscie oblusguje hdr. (sprawdzilem).
sie film i nie chodzilo o zbuferowanie go na pasku mpv.
rozdzielczości (bezstratniej).
wgraly nei nadpisaly cct, dzialalo wtedy bez opcji hwdec , z nia nie sprawdzalem hwdec=nvdec
@.***=d3d11va fullscreen=yes opengl-pbo
source video size is huge (e.g. so called "4K" video). On other drivers it might be slower or cause latency issues.
save-position-on-quit
co ma w inputconf np alt+0 mi dziala.. loop pause=no
jessczez sie laduje. chociaz chyba to czasami powduje ze sie zacina gdy sie seekuje ta gdzie sie nie loaded jeszcze
alang=pl,en slang=pol,pl,eng,en sub-color="#b3ff00"
sub-codepage=UTF-8,auto
hwdec-codecs=all hwdec-extra-frames=256
sub-auto=all
subauto=fuzzy ładuje wszystkei zaiwerająde nawę otwieranego pliku. sub-file-paths-append=srt sub-file-paths-append=sub sub-file-paths-append=subs sub-file-paths-append=subtitles
user-agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36"
ytdl-format='bestvideo[height<=?14400][fps<=?60]+bestaudio/best'
cache=yes
demuxer-max-bytes=10000M demuxer-max-back-bytes=10000M
ajakakowliek część nie załaduje.
itd) rfozny maja efekt, ogolnie polecane sa czesciej pewne do pewnych sytuacji...)
video-sync=display-resample
this translates to --opengl-swapinterval=1. For Vulkan, it translates to --vulkan-swap-mode=fifo (or fifo-relaxed). interpolation
idle, such as a screen saver. The threads of the process are preempted by the threads of any process running in a higher priority class. This priority class is inherited by child processes.
idle|belownormal|normal|abovenormal|high|realtime priority=realtime
actually interlaced., .. jesli bedzie interlace mialo to sam wlaczasz z ctrl-d lub D lub d (w kolejnosci od najl. bo masz (s)krypty)
potem "2" pokazuje timin gi), ale gd ysie wylczy to pokazuje ze inne zuzywaja nagle 50%.. czyli najl by wszystyko ppwylaczac xd ale i tak 120fps..
interpolation blend-subtitles=no hdr-compute-peak=yes tone-mapping=mobius
lepsza jakosc z wyzszymi i czasami tez co ciekawe wydajnosc
uzywac bez a nie wspomina o lavfi-aresample override-display-fps=120
can ruin video playback. no-border msg-color screenshot-format=png
media, the lavrresample audio filter will be inserted into the audio filter layer to compensate for the difference.... wiec to na chuj. nic dodatkowcyh daych nie ma z tego.
procesor zacina sie calosc az wyjebuje odtwarzanie ad-lavc-threads=4
keep-open # keep the player open when a file's end is reached msg-module # prepend module name to log messages term-playing-msg="${media-title}"
https://mpv.io/manual/stable/#property-expansion . #############
#############
--osd-status-msg on interaction
(${percent-pos}%)}${?frame-drop-count:${!frame-drop-count==0: Dropped: ${frame-drop-count}}}\n${?chapter:Chapter: ${chapter}}'
osd-font='Noto Serif'
osd-font-size=11 osd-color='#FFB3FF00' # ARGB format osd-border-color='#00000000' # ARGB format, 00 = transparent
progress bar osd-bar-align-y=0 # progress bar y alignment (-1 top, 0 centered, 1 bottom) osd-border-size=2 # size for osd text and progress bar osd-bar-h=2 # height of osd bar as a fractional percentage of your screen height osd-bar-w=100
cursor-autohide=1 # ilosc ms. osd-duration=5000 # hide the osd after x ms, 100ms = 1/10, pelna liczba klatek czyli 6 bo 60fps.
odhalasowywania.. # można dać na 0, ale wtedy nie pokazuje nic napisow czy cos zrobilo jak np d na deinterlace…
image-display-duration=inf
loop-file=inf
to na plikach beztsratnych bez clipping cct jest... lavfi-earwax tez ciekawy ze uszy mnie cierpia od tego ,. nie sprawdzalem tych binaural i irs cct nie dzialaja nie wko,mpiloiwane hcyba cct
zajebisty przehcodzi tak fajbnue ze ma sie ciarki jak asmr od ucha do ucha w sumie by do tych filmow to wlaczyc volume-max=1000
--profile=eye-cancer
[eye-cancer] sharpen=5
On Thu, 22 Jul 2021 at 21:30, DepFA @.***> wrote:
@StacktraceException https://github.com/StacktraceException Not at the time of writing, hence the reason I'm not certain, and it seems it's not:
As stated by @glubsy https://github.com/glubsy the vr reversal filters are incompatible with the hwdec being turned on, at least for 'd3d11va' on this windows build of mpv, when I toggle hwdec on with ctrl+h the vr-revesal filters twitch off.
@StacktraceException https://github.com/StacktraceException Do you get an indication that another hw decoder is being used when you toggle the hdcec on with ctrl+h? My suspicion would be that togging on hwdec on all platforms is incompatible with the filter and the configuration introduced by @glubsy https://github.com/glubsy is correct - if not please let us know what hw filter it indicates is in use when vr-reversal is working for you.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dfaker/VR-reversal/issues/6#issuecomment-885177099, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOSWAAGLP2RSQK4NSY2S7X3TZBWVLANCNFSM437VZJUQ .
That makes it clear you're attempting to use hwdec=nvdec, unfortunately that doesn't let me tell if nvdec is compatible with the filter stack: During vr-revsersed playback does pressing ctrl+h
correctly switch back to nvdec and continue vr-reversed playback?
If so then I'll mention that ctrl+h
to restore hwdec in exceptional situations in the help screen; otherwise if the filter stack is incompatible and it reverts to side-by-side playback then the script requires no change as the filters in use are incompatible with the hardware decoder.
As a side note I'd advise pressing y
a few times at the start of playback to see if that improves performance - paradoxically it's sometimes easier for the filter stack to render a larger output image than the default initial minimum.
Closing issue as it is believed hwdec is generally incompatible with the filter stack and it is uncertain if it would even be a performance improvement.
Even on 240p video quality, and this isnt old hardware.. ryzen 9 5950HS, 32GB ram ddr-3200... normally 8k 60fps is smooth. I went to edit the lua file and noted the workaround comment. mpv didn't even start then.
Please add this warning to front page. All the other features work great, I hope this gets solved somehow :)