| 
									
										
										
										
											2020-09-09 17:05:08 -07:00
										 |  |  | # Playwright and FFMPEG
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-09-14 15:12:35 -07:00
										 |  |  | Playwright requires FFMPEG to produce screncast and bundles FFMPEG binaries for Mac , Linux and Windows. | 
					
						
							| 
									
										
										
										
											2020-09-09 17:05:08 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | ## Configuration
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | We compile `libvpx` and `ffmpeg` only. Their source versions and build | 
					
						
							|  |  |  | configurations are defined in [`//browser_patches/ffmpeg/CONFIG.sh`](./CONFIG.sh). | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-09-14 15:12:35 -07:00
										 |  |  | ## Building `ffmpeg-linux`
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Compilation scripts are based on: | 
					
						
							|  |  |  | - https://trac.ffmpeg.org/wiki/CompilationGuide/Generic | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Prerequisites: | 
					
						
							|  |  |  | - Mac or Linux | 
					
						
							|  |  |  | - Docker | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Building: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | ~/playwright$ ./browser_patches/ffmpeg/build.sh --linux | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-09-09 17:05:08 -07:00
										 |  |  | ## Building `ffmpeg-mac`
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-09-14 15:12:35 -07:00
										 |  |  | Compilation scripts are based on: | 
					
						
							| 
									
										
										
										
											2020-09-09 17:05:08 -07:00
										 |  |  | - https://trac.ffmpeg.org/wiki/CompilationGuide/Generic | 
					
						
							|  |  |  | - https://trac.ffmpeg.org/wiki/CompilationGuide/macOS | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Prerequisites: | 
					
						
							|  |  |  | - Mac | 
					
						
							|  |  |  | - xcode command line tools: `xcode-select --install` | 
					
						
							|  |  |  | - [homebrew](https://brew.sh/) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Building: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | ~/playwright$ ./browser_patches/ffmpeg/build.sh --mac | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## Building `ffmpeg-win*`
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Cross-compilation scripts are based on: | 
					
						
							|  |  |  | - https://trac.ffmpeg.org/wiki/CompilationGuide/Generic | 
					
						
							|  |  |  | - https://trac.ffmpeg.org/wiki/CompilationGuide/CrossCompilingForWindows | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Prerequisites: | 
					
						
							|  |  |  | - Mac or Linux | 
					
						
							|  |  |  | - [Docker](https://www.docker.com/) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Building: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | ~/playwright$ ./browser_patches/ffmpeg/build.sh --cross-compile-win64 | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 |