vzhd1701 / gridplayer

Play videos side-by-side
GNU General Public License v3.0
1.2k stars 92 forks source link

Disable H.264 loop deblocking filter, disable video post-processing post treatment level and disable GNU TLS or choose the fastet TLS encryption priorities and disable video deinterlacing #158

Open trimechee opened 1 year ago

trimechee commented 1 year ago

Hello, to make the media player even more faster and more energy and battery efficient and to avoid the noise of the fans during this hot summer, I prefer disable options which are not useful to me because I play videos in HD and I don't need any filter and video post processing and video encryption and deinterlacing .....

so it will be great if our beloved GirdPlayer makes options or shows us how to disable these vlc palyer options in GridPlayer:

1- option to Disable H.264 loop deblocking filter or option to choose the option "all" instead of option "none" for option "inhibit H.264 loop deblocking filter"

2-option to disable "video post-processing post processing level" and choose the value "0" for video post-processing to deactivate the "video post-processing" option

3-option to disable GNU TLS or choose the fastet TLS encryption priorities: i tested and if we choose the option "advanced settings / GNU TLS / TLS encryption priorities / performance (priority to fast encryptions)", we can apparently disable video encryption , we don't need encryption to play public videos and encryption uses battery and energy so we hope GridPlayer will give us an option or command to disable encryption completely or choose encryption "performance (priority to fast encryption)",

4-completely disable automatic video deinterlacing

Thank you very much !

LiberiFatali commented 1 year ago

@trimechee do you know the corresponding parameters in VLC? (They should be here: https://wiki.videolan.org/VLC_command-line_help/)

We can pass VLC params in Settings.

trimechee commented 1 year ago

Hello @LiberiFatali , awesome !! Thank you so much 🥇 :)

Personally the command lines scares me and i think they are very complicated and complex that"s why I prefer to avoid them, and I do not know the corresponding parameters in vlc of these optionss, but the great Mr @vzhd1701 showed me how to do and showed me the command that allows you to increase the network cache ....

I will try to find the desired orders in the document you are sent, thank you very much @LiberiFatali !

A question please, if we want to put several command line in Gridplayer, we must separate command lines by a space?

trimechee commented 1 year ago

Hello @LiberiFatali , I looked in the document you so kindly sent me and I found this but I don't know what to put exactly because there are values like "integer" and "string" and I don't really know what to put ...can you help me please ?

--deinterlace={0 (Off), -1 (Automatic), 1 (On)} Deinterlace Deinterlace --deinterlace-mode={auto,discard,blend,mean,bob,linear,x,yadif,yadif2x,phosphor,ivtc} Deinterlace mode Deinterlace method to use for video processing. -V, --vout={any,direct3d11,direct3d9,glwin32,gl,directdraw,wingdi,caca,vdummy,vmem,flaschen,yuv,vdummy,none} Video output module This is the the video output method used by VLC. The default behavior is to automatically select the best method available. --video-filter= Video filter module This adds post-processing filters to enhance the picture quality, for instance deinterlacing, or distort the video. --video-splitter= Video splitter module This adds video splitters like clone or wall

Allow non specification compliant speedup tricks. Faster but error-prone. --avcodec-skiploopfilter={0 (None), 1 (Non-ref), 2 (Bidir), 3 (Non-key), 4 (All)} Skip the loop filter for H.264 decoding Skipping the loop filter (aka deblocking) usually has a detrimental effect on quality. However it provides a big speedup for high definition streams. --avcodec-debug= Debug mask Set FFmpeg debug mask --avcodec-codec= Codec name Internal libavcodec codec name --avcodec-hw={any,d3d11va,dxva2,none} Hardware decoding This allows hardware decoding when available. --avcodec-threads= Threads Number of threads used for decoding, 0 meaning auto --avcodec-options= Advanced options

GNU TLS transport layer security (gnutls) --gnutls-system-trust, --no-gnutls-system-trust Use system trust database (default enabled) Trust the root certificates of Certificate Authorities stored in the operating system trust database to authenticate TLS sessions. --gnutls-dir-trust= Trust directory Trust directory --gnutls-priorities={PERFORMANCE,NORMAL,SECURE128,SECURE256,EXPORT} TLS cipher priorities Ciphers, key exchange methods, hash functions and compression methods can be selected. Refer to GNU TLS documentation for detailed syntax.

LiberiFatali commented 1 year ago

Hello, to make the media player even more faster and more energy and battery efficient and to avoid the noise of the fans during this hot summer, I prefer disable options which are not useful to me because I play videos in HD and I don't need any filter and video post processing and video encryption and deinterlacing .....

so it will be great if our beloved GirdPlayer makes options or shows us how to disable these vlc palyer options in GridPlayer:

1- option to Disable H.264 loop deblocking filter or option to choose the option "all" instead of option "none" for option "inhibit H.264 loop deblocking filter"

2-option to disable "video post-processing post processing level" and choose the value "0" for video post-processing to deactivate the "video post-processing" option

3-option to disable GNU TLS or choose the fastet TLS encryption priorities: i tested and if we choose the option "advanced settings / GNU TLS / TLS encryption priorities / performance (priority to fast encryptions)", we can apparently disable video encryption , we don't need encryption to play public videos and encryption uses battery and energy so we hope GridPlayer will give us an option or command to disable encryption completely or choose encryption "performance (priority to fast encryption)",

4-completely disable automatic video deinterlacing

Thank you very much !

According to VLC command line documentation, they shoud be as follow:

  1. --avcodec-skiploopfilter=4
  2. --postproc-q=0
  3. --gnutls-priorities=PERFORMANCE
  4. --deinterlace=0

So you can put it like this: --avcodec-skiploopfilter=4 --postproc-q=0 --gnutls-priorities=PERFORMANCE --deinterlace=0

trimechee commented 1 year ago

@LiberiFatali MarvellousI awesome !! Thank you so much for your so precious and important help !

Without wanting to get bored, please i have another question would like to know if we can safely use this parameter

-no-gnutls-system-trust

to disable GNU TLS transport layer security (gnutls), I did not really understand the usefulness of this GNU TLS feature and therefore I would like to know if this option is necessary to read streaming videos from Russian sites for example ok. ru/video and rutube.ru please? and are there any security and malware risks if I completely disable this GNU TLS option in order to save battery?

LiberiFatali commented 1 year ago

TLS helps to encrypt the content, to prevent spying/modifying data when transmission.

From the documentation, --no-gnutls-system-trust means NOT "Trust the root certificates of Certificate Authorities stored in the operating system trust database to authenticate TLS sessions". Does this also disable GNU TLS? Does this parameter work?

Another question you should consider is the secret/sensitivity of streaming videos.

trimechee commented 1 year ago

Ohh that looks like an important and very sensitive setting, I think I won't turn it off....thanks :)

streaming videos are hosted in famous platforms and some sites use various uploaders which seem reliable to me despite the presence of many advertisements but which I block easily with ublock origin and i use quad9 dns that confirms to me that quad9 block crypto miners crypto jacking.... and the experimental version of ublock origin lite seems very promising because it will not require any lists and will also use less cpu memory energy....in any case, thank you for your great and generous help!

please another question, in the parameters of --gnutls-priorities, there are 4 values: {PERFORMANCE,NORMAL,SECURE128,SECURE256,EXPORT}, what does the "export" parameter mean please? I ask that because this option " export" is not present in the settings of vlc player and I would like to use the option which uses the little encryption and the least power and battery energy possible....

trimechee commented 1 year ago

For GNU TLS, i have tried "performance" option in "ace stream" which is peer2peer media player and i play a live sport video and the video was stored in the folder of network cache of "ace stream" player and i was able to play the video offline, but when the gnu tlm was "normal " or 'secure256"..... i wasn't able to play offline the video recorded in the cache folder....

LiberiFatali commented 1 year ago

Reference: gnutls

(Not from VLC, so it's not sure that VLC follows these)

  • "PERFORMANCE" means all the "secure" ciphersuites are enabled, limited to 128 bit ciphers and sorted by terms of speed performance.
  • "NORMAL" means all "secure" ciphersuites. The 256-bit ciphers are included as a fallback only. The ciphers are sorted by security margin.
  • "SECURE128" means all "secure" ciphersuites of security level 128-bit or more.
  • "SECURE192" means all "secure" ciphersuites of security level 192-bit or more.
  • "EXPORT" means all ciphersuites are enabled, including the low-security 40 bit ciphers.
trimechee commented 1 year ago

Ohhh very very interesting !! 🥇 Thank you so much for your precious help ! 💯