From bb10db6bdb7d78ded3da39ba6cb590833bb4a32e Mon Sep 17 00:00:00 2001 From: Hidenori Matsubayashi Date: Mon, 23 Aug 2021 10:07:19 +0900 Subject: [PATCH] Update README: add description about customization of videoconvert element (#38) --- packages/camera/README.md | 10 ++++++++++ packages/video_player/README.md | 11 ++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/packages/camera/README.md b/packages/camera/README.md index 2072a75..5d5da50 100644 --- a/packages/camera/README.md +++ b/packages/camera/README.md @@ -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: diff --git a/packages/video_player/README.md b/packages/video_player/README.md index 4fbee3f..9e685e2 100644 --- a/packages/video_player/README.md +++ b/packages/video_player/README.md @@ -12,7 +12,7 @@ This plugin uses [GStreamer](https://gstreamer.freedesktop.org/) internally. $ sudo apt install libglib2.0-dev $ sudo apt install libgstreamer1.0-dev # Install as needed. -$ sudo apt libgstreamer-plugins-base1.0-dev \ +$ sudo apt install libgstreamer-plugins-base1.0-dev \ gstreamer1.0-plugins-base gstreamer1.0-plugins-good \ gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav ``` @@ -35,3 +35,12 @@ Import `video_player` in your Dart code: ```dart import 'package:video_player/video_player.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: +playbin uri= video-sink="videoconvert ! video/x-raw,format=RGBA ! fakesink" + +#### e.g. customization for i.MX 8M platforms: +playbin uri= video-sink="imxvideoconvert_g2d ! video/x-raw,format=RGBA ! fakesink"