| 
														
															@@ -456,7 +456,8 @@ namespace MediaBrowser.Controller.MediaEncoding 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             var isQsvEncoder = outputVideoCodec.IndexOf("qsv", StringComparison.OrdinalIgnoreCase) != -1; 
														 | 
														
														 | 
														
															             var isQsvEncoder = outputVideoCodec.IndexOf("qsv", StringComparison.OrdinalIgnoreCase) != -1; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             var isWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows); 
														 | 
														
														 | 
														
															             var isWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             var isLinux = RuntimeInformation.IsOSPlatform(OSPlatform.Linux); 
														 | 
														
														 | 
														
															             var isLinux = RuntimeInformation.IsOSPlatform(OSPlatform.Linux); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            var isMacOS = RuntimeInformation.IsOSPlatform(OSPlatform.OSX); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+             
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if (!IsCopyCodec(outputVideoCodec)) 
														 | 
														
														 | 
														
															             if (!IsCopyCodec(outputVideoCodec)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             { 
														 | 
														
														 | 
														
															             { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 if (state.IsVideoRequest 
														 | 
														
														 | 
														
															                 if (state.IsVideoRequest 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -511,6 +512,12 @@ namespace MediaBrowser.Controller.MediaEncoding 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         } 
														 | 
														
														 | 
														
															                         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     } 
														 | 
														
														 | 
														
															                     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 } 
														 | 
														
														 | 
														
															                 } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                if (state.IsVideoRequest 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    && string.Equals(encodingOptions.HardwareAccelerationType, "videotoolbox", StringComparison.OrdinalIgnoreCase)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    arg.Append("-hwaccel videotoolbox "); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															             arg.Append("-i ") 
														 | 
														
														 | 
														
															             arg.Append("-i ") 
														 |