8

Use the --h264-fps option to suggest input stream fps to VLC. raspivid -o - -t 0 -n -w 600 -h 400 -fps 15 -rot 180 | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264 --h264-fps=15


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


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 ...


3

My rep is too low to comment. Have you tried lowering the video size, say starting at 320x240? I've streamed video from a Zero W before but never at the resolution you're using. That video size could require up to 15MB/s, see RaspiCam documentation. Even at modest bitrates I've had the camera lock up and/or the Pi crashes and needs power cycling. I suspect ...


3

It's not possible without stopping the recording and restarting it with new parameters and a new output file.


3

I bet it has to do with buffering you're doing on streams. man popen has this line Note that output popen() streams are block buffered by default. You'll have to increase the buffer size to something more respectable than the default block size (which can be as small as 256 bytes) using setvbuf. AFAIK nc increases the buffer size to 8K.


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

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 ...


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.


2

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


1

I'm not sure how I fixed it, but it's fixed. I shut down, unplugged everything, let it sit for a few minutes, plugged everything back in again (including the camera) and started it up. Then it worked. I suspect the camera ribbon was not fully connected or something like that.


1

For capturing audio, first, add a microphone module or a camera with an inbuilt microphone. I have already answered a similar question - https://raspberrypi.stackexchange.com/a/66491/60723 Follow the instructions, Note that those instructions are for USB camera but audio streaming will work for you if you are using a separate microphone module. If you are ...


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

I'd take a look at the picam library. It provides direct access to the camera, as the native MMAL library is used without any external dependencies or processes or wrappers. It's still based loosely on the raspistill, but unlike JRPicam, doesn't wrap the native process, and therefore has much better performance. Do note however that this does not use the ...


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

Try the annotate (-a) option, for example: raspivid -a 12 Shows date and time. There are also options to change the formatting of date and time. See camera documentation for detailed information.


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

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 ...


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