-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video problem #9
Comments
Could you get the 1080 x 720 UDP stream working? |
The UDP from the example gives this output: gst-launch-1.0 -v v4l2src device=/dev/video1 num-buffers=-1 ! video/x-raw, width=1280, height=720, framerate=30/1 ! videoconvert ! jpegenc ! rtpjpegpay ! udpsink host=192.168.1.54 port=5200 but on VLC i the streaming did not start... The streaming to desktop command on the page gives this output: gst-launch-1.0 v4l2src device=/dev/video1 ! video/x-raw, width=640, height=480, framerate=30/1 ! videoconvert ! autovideosink |
when we tryed the opencv script it gives this: [ WARN:0] global /home/pi/opencv/modules/videoio/src/cap_gstreamer.cpp (2076) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src0 reported: Failed to allocate required memory. |
Several things come into play here. You only have a small amount of RAM on board. You probably don't have enough memory to record video. Remember that mp4, flv or mkv are all h264 encoded. This compression is too demanding for the BananaPi zero, especially if you run it via OpenCV. We just managed to record a simple avi with this pipeline.
I think you'll have to adjust your expectations. P.S. Your UDP test failed because you use the wrong receiver pipeline.
Receiver (connected to 192.168.178.29 !)
|
whit the metioned pipline i get gst-launch-1.0 -v v4l2src device=/dev/video1 num-buffers=-1 ! video/x-raw, width=1280, height=720, framerate=15/1 ! videoconvert ! jpegenc ! avimux ! filesink location=video.avi there's a way to boot on CLI and increase the swap memory? |
I don't think so. |
the raspberry pi zero has 512mb of ram but it can work as a videcamera... |
Indeed. Your problem is the lack of proper video software tailored to the hardware. The BananaPi only has a forum; several enthusiastic Linux programmers are trying to build extensions. You end up with several operating systems, all more or less doing something, but (usually) without any solid foundation or documentation. It is the case with many boards, such as the Orange Pi, Rock Pi, and VIM3, not just the Banana Pi. I'm sure the Banana PI will eventually be able to handle HD video over WiFi. You will have to develop your own GPU driver software at a very low level |
hello,
We have been trying to initialize your module in 1080p and 720p but its failing , either for lack of ram or incorrect frame size, please help us with the correct settings when we are opening a video in opencv. i would like to record 1080p video on it , failing that atleast 720p
but only video we could record was at 640x480 , please also suggest the libraries that we need to install to make this happen
The text was updated successfully, but these errors were encountered: