Hi! I'm trying to develope camera app and i'm using ahcsrc element. Does anybody know how can I set this properties for ahcsrc element:
1) camera orientation; 2) preview size; Also I want to save video from camera to file. I tried to do that like this: data->pipeline = gst_parse_launch("ahcsrc name=ahc device=1 ! video/x-raw,format=(string)NV21 ! tee name=t ! queue ! glimagesink name=vsink sync=false t. ! queue ! videoconvert ! x264enc ! mp4mux ! filesink location=\"/storage/sdcard0/Movies/test-camera.mp4\"", &error); The pipeline builds without any error, but video doesn't save and the camera preview doesn't responding. Thanks. |
Hello,
Please, see inline comment. Thanks, Justin
ahcsrc provides “device-orientation” property (0-360 degree).
The size is decided during caps negotiation so you should use ahcsrc with capfilter. e.g ahcsrc ! video/x-raw,width=(int)320,height=(int)240 ! …. However, the available size depends on android device.
If some logs are attached, it can help to see what happens in the pipeline.
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Thanks for your reply Justin!
I already tried to set "device-orientation" property but got "device-orientation property is not writable" in logs. For solving my problem I used "videoflip" element and rotated preview with it. Where can I find documentation for ahcsrc element? It's very difficult to work without documentation. Thanks, again. |
Hello, Sigh, I was wrong in previous mail. sorry device-orientation is a static field in Java so it is read-only property as you mentioned. We need to implement new function to connect with “setDisplayOrientation” in Camera class. (And also it has few writable properties). Regarding to document, sadly, there's no document currently. Thanks, Justin
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi, Justin
I'm running into a "device-orientation" issue as described above, may I ask if the above mentioned "setDisplayOrientation" hook up is already done somewhere? Thanks -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |