OLD | NEW |
1 # Enabling hardware `<video>` decode codepaths on linux | 1 # Enabling hardware <video> decode codepaths on linux |
2 | 2 |
3 Hardware acceleration of video decode on Linux is | 3 Hardware acceleration of video decode on Linux is |
4 [unsupported](https://crbug.com/137247) in Chrome for user-facing builds. During | 4 [unsupported](https://crbug.com/137247) in Chrome for user-facing builds. During |
5 development (targeting other platforms) it can be useful to be able to trigger | 5 development (targeting other platforms) it can be useful to be able to trigger |
6 the code-paths used on HW-accelerated platforms (such as CrOS and win7) in a | 6 the code-paths used on HW-accelerated platforms (such as CrOS and win7) in a |
7 linux-based development environment. Here's one way to do so, with details based | 7 linux-based development environment. Here's one way to do so, with details based |
8 on a gprecise setup. | 8 on a gprecise setup. |
9 | 9 |
10 * Install pre-requisites: On Ubuntu Precise, at least, this includes: | 10 * Install pre-requisites: On Ubuntu Precise, at least, this includes: |
11 | 11 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 * `proprietary_codecs=1 ffmpeg_branding=Chrome` to allow Chrome to play | 52 * `proprietary_codecs=1 ffmpeg_branding=Chrome` to allow Chrome to play |
53 h.264 content, which is the only codec VAVDA knows about today. | 53 h.264 content, which is the only codec VAVDA knows about today. |
54 * Re-run gyp (`./build/gyp_chromium` or `gclient runhooks`) | 54 * Re-run gyp (`./build/gyp_chromium` or `gclient runhooks`) |
55 * Rebuild chrome | 55 * Rebuild chrome |
56 * Run chrome with `LD_LIBRARY_PATH=${HOME}/apps/libva/lib` in the environment, | 56 * Run chrome with `LD_LIBRARY_PATH=${HOME}/apps/libva/lib` in the environment, |
57 and with the `--no-sandbox` command line flag. | 57 and with the `--no-sandbox` command line flag. |
58 * If things don't work, a Debug build (to include D\*LOG's) with | 58 * If things don't work, a Debug build (to include D\*LOG's) with |
59 `--vmodule=*content/common/gpu/media/*=10,gpu_video*=1` might be | 59 `--vmodule=*content/common/gpu/media/*=10,gpu_video*=1` might be |
60 enlightening. | 60 enlightening. |
61 | 61 |
62 **NOTE THIS IS AN UNSUPPORTED CONFIGURATION AND LIKELY TO BE BROKEN AT ANY | 62 ** note |
63 POINT IN TIME** | 63 NOTE THIS IS AN UNSUPPORTED CONFIGURATION AND LIKELY TO BE BROKEN AT ANY |
| 64 POINT IN TIME |
| 65 ** |
64 | 66 |
65 This page is purely here to help developers targeting supported HW `<video>` | 67 This page is purely here to help developers targeting supported HW `<video>` |
66 decode platforms be more effective. Do not expect help if this setup fails to | 68 decode platforms be more effective. Do not expect help if this setup fails to |
67 work. | 69 work. |
OLD | NEW |