11
December
2020
Firefox video reproduction for a weak PC
10:18

Firefox video reproduction for a weak PC

11 December 2020 10:18

For a colleague, he made a home computer from the written off equipment of the organization (motherboard on 865 chipset, socket 775) and modernized the PC for little money. Due to weak performance, it was required to optimize the viewing program settings for video playback.

Video

https://www.youtube.com/watch?v=HcQJzFzZfVI

Background

An Intel Cele processor was installed on the office computerron 2.5 ГГц и жесткий диск IDE. Оперативная память 2 Гбайт. Все веб страницы открывались долго и медленно - наблюдалась 100% загрузка компьютера при просмотре WWW. Заменил процессор на Intel Pentium 4 с сокетом 775, частотой 3.2 ГГц, с поддержкой технологии HyperThreaDing (price 300 rubles - $ 4.1), an IDE hard drive 80 GB replaced with a solid -state SSD 120 GB (price 1750 rubles - $ 23.9). After that, watching the web began to be patient - without pauses to output to the content screen.

However, reproduction with YouTube did not satisfy me. The built -in video card in a PC in Windows 7 is defined as "Standard VGA Graphic Adapter". The external graphics card on the motherboard GA-8I865GVMK-775 is not broken up. There are only free PCI slots, but video cards are not available for them for a long time. Therefore, the modernization of a video card is impossible. Next, I am trying to improve the operation of the PC with the settings of the system and the Internet browser.
computer

Why did I choose a Firefox browser?

Comparison of two browsers - Google Chrome и Mozilla Firefox на столь слабом ПК при воспроизведении видео Youtube показало небольшое преимущество FireFox по числу пропущенных кадров (определял на глаз). Также, браузер FireFox славится возможностями тонкой настройки при помощи about:config. Поэтому за основу был взят Firefox. The latest version 83.0 (32-bit) was used.
Mozilla Firefox

Firefox setting for smooth video playback

I go to the essence of the settings.

  1. In the system, I set a 24 -bit color depth.
    1. Installed DirectX for Windows 7 https: // www.microsoft.com/ru-RU/download/details.aSPX? ID = 34429
    1. Installed k-lite codec pack StandarD https://www.codecguide.com/download_kl.htm
  2. In the K-Lite Codec P configurationack (Пуск - K-Lite Codec Pack - Configuration - LAV Video) в разделе "Hardware Acceleration" выбрал пункт DXVA2 (naTive) and retained changes (OK). The number of flows has chosen 2 (equals the maximum number of flows that this processor supports).
    Settingsk-lite codec pack
  3. I launched the Firefox browser. In the settings menu - performance - "if possible use hardware acceleration" .
    performance
  4. Entered the settings ABOUT: Config
  5. Changed the following parameters:
    * layers.acceleration.force-enabled = trUE
    config3

    Note: on some PC it is better to leave the default value: Layers.acceleration.force-enabled=faLSE, if the processor load is below with it.

    * layers.gpu-process.force-enabled = trUE

    • media.hardware-video-decoding.enabled = trUE (by default)
    • media.hardware-video-decoding.failed = faLse
      config4
    • media.hardware-video-decoding.force-enaBled
      config5

Comparison "before" and "after"

The loading of the processor decreased from 100% to 20%. The loss of personnel has become noticeably smaller.
video
The maximum video resolution, which goes with small jerks without large braking - 480p, rather smooth playback - 240p or mode "Picture in the picture.

Addition of April 2021. About H.264, VP9 and Webm formats

If when playing a video on YouTube, especially in the FullHD resolution, there is a reduced frame rate, a possible reason is the lack of hardware decoding by the WebM codec video card (used by default). To disconnect Webm and switch to the Standard Codec H.264 (MP4), you must use the Mozill Extensiona Firefox https: //addons.mozilla.org/ru/firefox/addon/enhanced-h264ify/. As a rule, the H.264 codec can lose even old graphics cards of 10 years ago.

Recommendation for choosing a processor and video card

Comparison of several PC configurations showed that YouTube video requires support for SSE4 instructions and Single Co performancere (на одно ядро) не менее 2000 в тесте GeekBench 3.

At the same time, the “game” video card intended for 3D cannot cope with FullHD reproduction for three reasons:

    1. A significant part of the video decoding is performed on the nuclei of the central processor . See comparison http://cpuboss.com/cpus/Intel-Pentium-G840-vs-AMD-Phenom-II-X3-710 - на моём опыте процессор Pentium G840 с видеокартой nVidia 430 при загрузке в 30% справляется с видео 1920x1080, тогда как AMD Phenom-II-X3-710 No.
  1. The processor requires support for instructions to accelerate the processing of multimedia - SSE4, SSE4.1 and SSE4.2 .
    The processors are suitable:
    • Intel from the generation "nahalem" - Core i3-530 и выше - с 2012 года, "Sandy Bridge" Pentium G620T...G870, CorE i3 2100 and above.
    • AMD FX-4100 ... FX-8100 ("Bulldozer")
    • AMD FX-4300 ... FX-9590 ("PIledriver")
    • A4-4000 ... A10-6800K ("PIledriver")
    • Athlon X4 - Any ("PIledriver")
    • Ryzen - any (architectures "zen", "zen+", "zen2", etc.).
    1. The video card requires support for hardware decoding video H.264 - NVIDIa Pure Video (4 поколения и выше) или AMD Avivo. Подойдут видеокарты начиная с nVidia Geforce GT 240, GeForce GT 220 и GeForce 210/G210 (архитектуры "Tesla 2.0"), GT 520 / GT 610 и GT 530 / GT 620, GT 440 / GT 630 (архитектуры "Fermi") и nVidia Geforce серий 600 / 700 (архитектуры "Kepler"), or AMD with support UVD начиная с некоторых моделей серии HD 2000 - AMD Radeon HD 2400, HD 2600 и HD 2900 XT, последующих серий AMD Radeon **HD 3000 - HD 8000* и выше, кодовые названия Radeon RX 200...800 и более новые, Radeon RX Vega**, Radeon RX 5000/6000 и более свежие. Видеокарты среднего уровня nVidia GTX 750 / GTX 750Ti и более новые также могут помочь слабому процессору воспроизвести видео FullHD (2K).
  2. Or, if the video card built into the processor (IGPU) is used, the same requirements as the external ones are presented to it. Suitable Intel GMA X4500 and above, Intel HD GDraphics "Ironlake" поколения выше или равное 5.75 (то есть новее 2010 года), Intel HD 2000 (встроен в поколение процессоров Intel "Sandy Bridge") и AMD Radeon RX Vega 3 (видеокарты, встроенные в ядра Athlon 240GE, AMD Athlon 3000G и AMD Ryzen 3 3200G - 2019 г. и новее).
    1. Chipset Drivers and Driver of the video card should support hardware acceleration of the video. For example, Linux Debian will need to install special packages (Read more about VA drives and VPAU-drivers in Debian).

    Sources:

*https: // comp-security.net/Какие процессоры поддерживают SSE 4.1 и SSE 4.2/

*http: //www.u-sm.ru/obzoryi-i-stati/na-chto-sposoben-geforce-gt-440ss-uznaem-na-primere-dvuh-kartochek-ot-otac-destroyer-i-thunder.htmL.


Note:

  • In the heading of the article used video see youain - Wiz Khalifa feat. Charlie Puth (Boyce Avenue feat. Bea Miller).
    All rights are observed.


Related publications