AHCSRC element

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

AHCSRC element

alex_malishev
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.
Reply | Threaded
Open this post in threaded view
|

Re: AHCSRC element

Justin Kim
Hello,

Please, see inline comment.

Thanks,
Justin

On Jul 14, 2016, at 3:26 PM, alex_malishev <[hidden email]> wrote:

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;

ahcsrc provides “device-orientation” property (0-360 degree).

2) preview size;

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.


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.


If some logs are attached, it can help to see what happens in the pipeline. 


Thanks.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/AHCSRC-element-tp4678674.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: AHCSRC element

alex_malishev
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.
Reply | Threaded
Open this post in threaded view
|

Re: AHCSRC element

Justin Kim
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
On Jul 18, 2016, at 5:19 PM, alex_malishev <[hidden email]> wrote:

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.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/AHCSRC-element-tp4678674p4678726.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: AHCSRC element

jeromehuang
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