<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">Please, see inline comment.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Justin</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 14, 2016, at 3:26 PM, alex_malishev <<a href="mailto:aron_stoun1996@mail.ru" class="">aron_stoun1996@mail.ru</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi! I'm trying to develope camera app and i'm using ahcsrc element. Does<br class="">anybody know how can I set this properties for ahcsrc element:<br class="">1) camera orientation;<br class=""></div></div></blockquote><div><br class=""></div><div>ahcsrc provides “device-orientation” property (0-360 degree).</div><br class=""><blockquote type="cite" class=""><div class=""><div class="">2) preview size;<br class=""></div></div></blockquote><div><br class=""></div><div>The size is decided during caps negotiation so you should use ahcsrc with capfilter.</div><div style="widows: 1;">e.g <span style="widows: 1; background-color: rgb(255, 255, 255);" class=""><font size="2" class="">ahcsrc ! video/x-raw,width=(int)320,height=(int)240 ! ….</font></span></div><div style="widows: 1;"><br class=""></div><div style="widows: 1;"><font size="2" class=""><span style="background-color: rgb(255, 255, 255);" class="">However, the available size depends on android device.</span></font></div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><br class="">Also I want to save video from camera to file. I tried to do that like this:<br class="">data->pipeline = gst_parse_launch("ahcsrc name=ahc device=1 !<br class="">video/x-raw,format=(string)NV21 ! tee name=t ! queue ! glimagesink<br class="">name=vsink sync=false t. ! queue ! videoconvert ! x264enc ! mp4mux !<br class="">filesink location=\"/storage/sdcard0/Movies/test-camera.mp4\"", &error);<br class=""><br class="">The pipeline builds without any error, but video doesn't save and the camera<br class="">preview doesn't responding. <br class=""><br class=""></div></div></blockquote><div><br class=""></div><div>If some logs are attached, it can help to see what happens in the pipeline. </div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div class="">Thanks.<br class=""><br class=""><br class=""><br class="">--<br class="">View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/AHCSRC-element-tp4678674.html" class="">http://gstreamer-devel.966125.n4.nabble.com/AHCSRC-element-tp4678674.html</a><br class="">Sent from the GStreamer-devel mailing list archive at <a href="http://nabble.com" class="">Nabble.com</a>.<br class="">_______________________________________________<br class="">gstreamer-devel mailing list<br class=""><a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.freedesktop.org</a><br class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br class=""></div></div></blockquote></div><br class=""></div></body></html>