Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
4

By stream I assume you mean over the network. I recently researched the same question (specifically, streaming over RTSP) and these are the best options out there: https://github.com/mpromonet/v4l2rtspserver https://www.linux-projects.org/uv4l/ RPi-Cam-Web-Interface on elinux.org I tried v4l2rtspserver first since it seemed the simplest. I'm happy with the ...


4

Use it with -n flag or --nopreview flag. Ie, your command should look like this. raspistill -w 640 -h 480 -n -q 5 -o /tmp/stream/pic.jpg -tl 100 -t 9999999 -th 0:0:0 & For more raspistill related options, check out this. Hope it helps.


4

You need to create a directory for and mount the filesystem on the USB drive. mkdir /mnt/usb mount /dev/sdb1 /mnt/usb Then you can specify the directory of where the USB drive is now mounted in the same command you issued before, like this: raspivid -o /mnt/usb/filename.h264 -t 100000


2

As suggested by Goldilocks, a USB Webcam will run through the CPU, whereas the dedicated port does not. Raspberry Pi Essentials, page 42


2

try to quote target url: cd /opt/vc/bin/ && sudo /opt/vc/bin/raspivid -o - -t 0 -fps 30 -h 720 -w 1280 -b 4000000 -rot 270 -vs | /root/ffmpeg/ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 120 -strict experimental -f flv "rtmp://rtmp-api.facebook.com:80/rtmp/*YOUR KEY HERE*"


2

From the Raspivid documentation page: --intra, -g Specify the intra refresh period (key frame rate/GoP) Sets the intra refresh period (GoP) rate for the recorded video. H264 video uses a complete frame (I-frame) every intra refresh period from which subsequent frames are based. This options specifies the numbers of frames between each I-...


2

It depends on if your ISP provides a public IP or not. If it's the case, you simply have to forward the relevant port (in this case, 8554) from your router. Even though, you're assigned IP dynamically each time you connect, you can make use of dynamic dns services like no-ip / dyndns. If your ISP doesn't provide a public IP and most of the ISPs do not. ...


2

Regarding the official answer on Raspberry Pi forum, it is not possible to include B-Frames into h264 stream since hardware encoder doesn't support it.


1

Some tests on my pi showed that this message vanishes when you set -fps to 50 or above.


1

The -framerate option before the -i basically tells ffmpeg to trust that the input framerate is what you tell it is, and not rely on frame timestamps. Obviusly, raspivid is not holding its part of the deal and doesn't provide steady 25 fps. Try to let ffmpeg find out the framerate on its own by specifying only the output framerate (-r 25 after the -i). If ...


1

You can’t combine 2 composite video outputs - you would just get a corrupted output. You would need some form of switcher to switch one or the other.


1

FWIW, @flakeshake is right that it's a closed source system, but it does seem possible to run your own GL shaders within the raspistill system by modifying and building your own version from the source files. It does also seem possible to use GL shaders elsewhere for faster image processing, such as this example which may be helpful to others.


1

The custom effects are part of the closed-source GPU firmware which only Raspberry Pi and Broadcom engineers can change. You can add further effects in post-processing (on the CPU) though.


1

Compiling raspivid (or any of the raspicam apps) requires a lot more than just RaspiVid.c. Have a look at the top of that file and you'll see it also uses stuff from RaspiCamControl, RaspiPreview, and RaspiCLI, not to mention all the libraries it requires. Honestly, you're best off taking the pain of compiling userland in its entirety once. Then you can ...


1

Should be fine. The sample values provided here on raspberrypi-spy.co.uk suggest a bitrate of around 115MB per minute for raspivid at its default settings (1920x1080, 30 fps). That would put your storage requirements at something like 13.8GB for two hours worth of footage. The primary bottleneck is likely to be the Pi's USB bus, as you've already noted, ...


1

I do not know if this is exactly what you need, but if VLC is not a requirement, there is a standard solution with WebRTC for UV4L. It can live stream both A/V to any browser in RealTime (< 150ms).


1

Using the same rPi? It depends on what you're using to capture the images for your photo booth. If I were in your shoes, I think I would consider using motioneyeos, found here: https://github.com/ccrisan/motioneyeos/wiki I would consider just buying another pi zero if needed, as it is an entire OS for the rPi, but would give you what you're after. The real ...


1

Per the comments below the question, when raspivid is started using both the keypress option (-k) and the verbose option (-v), the user is provided with an on-screen prompt which allows the user to distinguish between capturing/not capturing modes.


1

I think what you're encountering is the difference between the H.264 compression format, and the MP4 container format. Per this Wikipedia entry, linked from Mozilla's own support pages, Firefox supports MP4, but not H.264 without a container. The easiest eay to fix it is to encode everything as an MP4 (or another suitable container format). The information ...


1

So the issue turned out to be network managers network scanning behavior, by adding the BSSID (which is the MAC address of your router) into the network {} block within my /etc/wpa_supplicant/wpa_supplicant.conf. network { SSID="Blah" BSSID=aa:bb:cc:dd:ee:ff # other stuff } I investigated this because I noticed that my pings between the PI and ...


1

The -o option for raspivid is used to set the output path where you want to record a video but you never set it to anything and instead you try to redirect the stdout stream to a file. If you want really want to use stdout and pipe it into a file you can use the -o option with a dash. From the documentation: --output, -o Output filename <...


1

You can use picamera or pygame-camera Picamera is useful tool to take picture and capturing videos but you can't add on layers like buttons on preview in picamera , it stays top of everything on screen ,also you can only add images as a layer on camera preview however you can use pygame to preview camera and add some buttons or images on preview , but ...


1

I suppose this could be your answer. They do not simply pass the array, but either write it to file and read, or split to channels and pass them as arguments.


1

I've never seen this done myself, but there was some discussion a while back on the RPi camera forum about either trying to use the MMAL video splitter component with the camera's preview output, or attaching a renderer to both the video and preview ports. Quick high level overview of both raspivid and picamera: both use the MMAL API the MMAL API's camera ...


Only top voted, non community-wiki answers of a minimum length are eligible