Update README: add description about customization of videoconvert element (#38)

This commit is contained in:
Hidenori Matsubayashi
2021-08-23 10:07:19 +09:00
committed by GitHub
parent 7057f871e2
commit bb10db6bdb
2 changed files with 20 additions and 1 deletions
+10
View File
@@ -33,6 +33,16 @@ Import `camera` in your Dart code:
import 'package:camera/camera.dart';
```
### Customize for your target devices
If you this plugin on your target devices, you will need to customize the pipeline in the source file.So, replace the `videoconvert` element with a H/W accelerated element of your target device to perform well.
#### default:
camerabin viewfinder-sink="videoconvert ! video/x-raw,format=RGBA ! fakesink"
#### e.g. customization for i.MX 8M platforms:
camerabin viewfinder-sink="imxvideoconvert_g2d ! video/x-raw,format=RGBA ! fakesink"
## Troubleshooting
If you get the following error: