Questions tagged [raspivid]

the command line tool for capturing video with the Pi's camera module.

36 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
2answers
2k views

ffmpeg performance degrades over time

I am using a Pi Zero W with the Pi camera (noir) to stream live to Youtube using ffmpeg. The command line I am using is: raspivid -o - -t 0 -h 720 -w 1296 -fps 24 -b 6000000 | ./ffmpeg -ar 44100 -ac ...
3
votes
3answers
1k views

PiCam Not Working (At All)

As I recently bought the Picam, I tried capturing an image with : raspistill -v -o file.jpg But I got this error : "No data received from sensor. Check all connections, including the Sunny one on ...
2
votes
1answer
624 views

Raspbery camera, video stream at 3280x2464

According to this page Raspberry camera v2 can produce video stream with resolution of 3280x2464. However, all my tries with raspivid and gstreamer/v4l2 fails. Knows someone how to reach this video ...
2
votes
1answer
349 views

Take 5 images a second, triggered by motion sensor, switching between 2 cameras depending on time

I'm working on a project similar to a security camera with a Raspberry Pi NoIR Camera Module v2 and a FLIR Lepton 3.5 on a purethermal 2. I am somewhat new to this and am not sure how to proceed. ...
2
votes
0answers
498 views

Pi zero with Pi can video steaming stability issues

I wanted to setup my pi zero and pi camera as a rstp streaming cctv camera. I tried motion, but this ran the pi at 100% cpu utilisation and I didn't need motion capture as a I have a seperate (motion) ...
2
votes
0answers
195 views

Streaming video to a <video> tag

I have the Raspberry camera module, and I try to get the following setup to stream live video to a website: Html code: <video width="640" height="480" controls autoplay> <source src="...
2
votes
0answers
1k views

Live stream to Youtube - sound sync

I have Raspberry pi 3 model b. I stream video and sound (from dedicated camera + usb sound card) to Youtube by command: raspivid -o - -t 0 -vf -hf -fps 30 -b 600000 | ffmpeg -i pipe: -f alsa -ac 1 -i ...
1
vote
0answers
99 views

RGB888 as input to Raspberry Pi

I need to give RGB888 data coming from one of my hardware into a Raspberry Pi and should be able to see the video feed via a script just like raspivid. Methods to interface Pi to DPI is available. I ...
1
vote
0answers
246 views

Show/hide preview of Raspivid on runtime

Is there any possibility to hide/show preview of video on runtime? I know there is only signal event handler to pause recording but I don't see possibility to control behaviour of Raspivid via DBus or ...
1
vote
0answers
321 views

Audio/Video drift when streaming to Twitch using FFMpeg

I'm trying to build a Twitch streaming box to stream from an input device. Link to the project is: https://github.com/jimbobbennett/RaspberryPiTwitchStreamer My setup is: Raspberry Pi Model 3B+ ...
1
vote
0answers
159 views

Recent raspivid segmented filenaming does nog work properly

I updated to pi3B+ and got the most recent raspivid. In my old software I use raspivid -sg 6000 -wr 40 -sn 4 -o REC_%04d.h264" to produce a file named REC_0004.h264. The new version produces a ...
1
vote
0answers
565 views

How do I get rid of these weird video artifacts when using raspivid?

I've got a Raspberry Pi 3 B+ powered via NavoLabs POE Hat with an Arducam for capturing video. I'm using the following command to capture the video: raspivid -t 0 -w 1280 -h 720 -o - The video has ...
1
vote
0answers
2k views

How to stream low latency camera feed to RTMP server

Are there any optimizations or recommended techniques for streaming a camera feed from a raspberry pi to an RTMP server. Currently I get a 1-2 second lag when I run: raspivid -n -t 0 -w 1280 -h 720 -...
1
vote
0answers
502 views

How to wrap a H264 stream to a MP4 container

I have successfully streamed an h264 video over the local network with this command. raspivid -o - -t 0 -n -w 1280 -h 720 -vf -vs -fps 30 -b 3500000 | cvlc -vvv stream:///dev/stdin --sout '#rtp{...
1
vote
0answers
1k views

Night Mode with Rasperry Pi Zero Camera Module

I'm trying to take some pictures with the Raspberry Pi Zero and the optional camera module in pitch-black. I am wondering what the best options are to use when invoking raspivid. I have tried: ...
1
vote
0answers
352 views

Log Raspberry pi time according to GPU (i.e. using real time OS)

Using the below given script, I am able to log camera.timestamp and camera.frame.timestamp. These should ideally be same as they both query GPU System clock time. For example, for 30hz frame-rate, ...
1
vote
0answers
801 views

How would I measure performance of Motion vs raspivid?

I'm new-ish to programing, and a total n00b to RPIs. I have a RPI 3, with the raspicam V2, and I'm trying to figure out which app draws less resources, between Motion ( http://www.lavrsen.dk/foswiki/...
1
vote
0answers
328 views

Raspivid : start / stop with a buffer

Raspivid is straight forward: on start it records. Is there latency between CLI call at real start ? Is there a trick to record 5s before start ? (This would require buffering somehow 5s ?)
1
vote
0answers
1k views

Trying to use Raspivid into ffmpeg, says "failed to open segment"

I am trying to use raspivid as an input for ffmpeg I'm testing the {code from this question}(How can I stream H.264 video from the Raspberry Pi camera module via a web server?). Initially I was using ...
0
votes
0answers
57 views

Raspberry Pi is showing blank screen after reboot

I am using rpi 5mp camera with rpi 3. But using the raspistill or raspivid :- $ raspistill -o ~/Pictures/first_image.jpg threw the following error bash raspistill command not found Also using ...
0
votes
0answers
156 views

Cannot enable camera

I've been trying to enable the raspberry pi camera on my new pi 3B with no success. I've tried updating. I tried raspi-config on the commandline, enabled the camera and rebooted. These did not work. ...
0
votes
0answers
17 views

Random Raspivid failure: tvservice-client

In my application, I run raspivid from Python via subprocess, typically raspivid -t 10000 -o vid.avi. (This is a permanently running app in which an outside event triggers the recording.) Sometimes, ...
0
votes
0answers
25 views

HQ Camera with GPI Case

I have a Rbpi 4, 4gb with a HQ camera sensor on its way. I looked at the GPI case, very cool design. Could I use its buttons for camera purposes? Like code them to; turn on/off, shutter/record button? ...
0
votes
0answers
53 views

Is RPI B+ capable of ffmpeg raspivid and aac audio at speed 1x?

since a longtime I do livestream to youtube or twitch with 'copy' codec of raspivid (1280x720@25) and sound from /dev/zero Now I try to add an audio track from chinese usb mic. If I use copy audio ...
0
votes
0answers
165 views

raspivid equivalent for USB camera

I'm using a Raspberry Pi Camera Module in my project. I have Java code that creates a new process that starts raspivid and have it output the video feed to stdout. Java then reads that and processes ...
0
votes
0answers
154 views

Raspivid Overlay

I have been struggling for the past week to come up with a method to overlay text on a Raspivid preview. I have my raspberry pi connected via HDMI and simply want to overlay sensor data (in the form ...
0
votes
0answers
337 views

difference between raspivid/raspistill and raspiraw HW access

Are there are fundamental differences in the way raspivid/raspistill and raspiraw access the camera HW. Browsing the code they all seem similar and use mmal components to process/display the images. (...
0
votes
0answers
72 views

Check if Raspivid service is running?

I am creating a program the requires the following: Check if raspivid is currently running. Check if its running out of a services file. if it is running out of a specific file, determine which ...
0
votes
0answers
74 views

Raspistill option "--stats"

Is this option still available? I have been attempting to use it but I don't see any information on the preview or the final image. Command used: sudo raspistill -st -ISO 150 -ss 1500000 -e png -o ...
0
votes
0answers
95 views

Raspberry Pi 4 Camera video not working but image are

https://projects.raspberrypi.org/en/projects/getting-started-with-picamera/4 The error is persistent using the CLI raspivid -o Desktop/video.h264 and with python camera.start_preview() camera....
0
votes
0answers
61 views

Bad video recording quality

I am trying to record a video using raspivid but when I am playing the video has bad quality and shorter than it should be raspivid -t 30000 -o vid.h264
0
votes
1answer
7k views

Can't get OMXPlayer to display video

I am watching a tutorial on YouTube and literally following everything that he is doing.... I have recorded a video and now trying to play it using the omxplayer When i go to play my video using the ...
0
votes
1answer
1k views

Using Raspivid with a SSH tunnel

I can successfully stream using raspivid -o - -t 0 -w 640 -h 480 -fps 30 |cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8160}' :demux=h264 and I can view the stream in ...
0
votes
0answers
427 views

Raspivid fails only when used with gstreamer?

I have a Pi Zero running Raspbian Jessie and a pi camera. I've installed gstreamer with: sudo apt-get install gstreamer1.0 If I run: raspivid -w 1280 -h 720 -v -fps 10 -b 500000 -t 0 -o - | \ gst-...
0
votes
1answer
1k views

how does raspistill/raspivid display video without GUI?

I'm trying to capture video from raspberry pi camera using OpenCV and display it without using gtk or x11. I noticed that raspivid displays camera output without using any window, I wonder if it's ...
0
votes
1answer
267 views

Raspivid fails to stream to YouTube - 113 No route to host

I am trying to setup a YouTube livestream. I am using the official Pi cam. I am using this command: raspivid -o - -t 0 -vf -hf -fps 30 -b 6000000 | avconv -re -ar 44100 -ac 2 -acodec pcm_s16le -f ...