gstreamer

Playing RTSP with python-gstreamer

断了今生、忘了曾经 提交于 2019-11-26 16:19:09
问题 I use gstreamer for playing RTSP stream from IP cameras (like Axis.) I use a command line like this: gst-launch-0.10 rtspsrc location=rtsp://192.168.0.127/axis-media/media.amp latency=0 ! decodebin ! autovideosink and it work fine. I want to control it with a gui in pygtk so I use the gstreamer python bindings. I've wrote this piece of code: [...] self.player = gst.Pipeline("player") source = gst.element_factory_make("rtspsrc", "source") source.set_property("location", "rtsp://192.168.0.127

MediaCodec and Camera: colorspaces don't match

試著忘記壹切 提交于 2019-11-26 14:16:29
I have been trying to get H264 encoding to work with input captured by the camera on an Android tablet using the new low-level MediaCodec . I have gone through some difficulties with this, since the MediaCodecAPI is poorly documented, but I've gotten something to work at last. I'm setting up the camera as follows: Camera.Parameters parameters = mCamera.getParameters(); parameters.setPreviewFormat(ImageFormat.YV12); // <1> parameters.setPreviewFpsRange(4000,60000); parameters.setPreviewSize(640, 480); mCamera.setParameters(parameters); For the encoding part, I'm instantiating the MediaCodec

How to open a GStreamer pipeline from OpenCV with VideoWriter

久未见 提交于 2019-11-26 12:43:47
问题 I am capturing video frames with OpenCV VideoCapture. The capturing works fine as I am able to use the frames like this: cv::VideoCapture cap(\"v4l2src device=/dev/video1 ! videoscale ! videorate ! video/x-raw, width=640, height=360, framerate=30/1 ! videoconvert ! appsink\"); cv::imshow(\"feed\", frame); I would also like to send the stream over the network and here is where I am stuck. Somehow I am failing in the appsrc pipeline part. I want to encode the stream to jpeg and send it vie udp.

MediaCodec and Camera: colorspaces don&#39;t match

雨燕双飞 提交于 2019-11-26 03:51:29
问题 I have been trying to get H264 encoding to work with input captured by the camera on an Android tablet using the new low-level MediaCodec. I have gone through some difficulties with this, since the MediaCodecAPI is poorly documented, but I\'ve gotten something to work at last. I\'m setting up the camera as follows: Camera.Parameters parameters = mCamera.getParameters(); parameters.setPreviewFormat(ImageFormat.YV12); // <1> parameters.setPreviewFpsRange(4000,60000); parameters.setPreviewSize