Stack Exchange Network

Stack Exchange network consists of 174 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

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

1
vote
0answers
30 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
43 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 ...
0
votes
0answers
19 views

Unable to connect to Necat UDP Stream

I have set up a tcp stream using netcat and sending footage from raspivid to it: ~ raspivid -n -t 0 -w 400 -h 500 -b 600000 -vf -o - | nc -lkv4 5010 RPi: 192.168.50.100 I can connect to this fine ...
1
vote
2answers
59 views

Developing custom effects for raspivid?

Has anyone created a custom effect for raspivid's -ifx option? From a quick look at the Github repo, it seems there is it might be run through the MMAL interface but I have no idea where to get ...
0
votes
0answers
694 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
215 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{...
0
votes
1answer
1k 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
0answers
30 views

Start recording in the middle of stream Raspberry Pi Camera

I am using this command to stream video: /opt/vc/bin/raspivid -t 0 -hf -fps 20 -o - | nc 192.168.*.* 5001 and I want to start recording when I run a script called startRecording.sh What should the ...
0
votes
1answer
355 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 ...
1
vote
2answers
172 views

Why does raspividyuv need sudo?

I'm running Arch Linux ARM on my RPi 1B. I'm trying to pipe raspividyuv's output to a program that I've written and it seems that I can't run raspividyuv without root privileges. raspivid works fine ...
4
votes
1answer
698 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 ...
2
votes
0answers
221 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) ...
0
votes
2answers
507 views

raspivid with awb off gives black image

I want to turn off auto white balance for my raspivid stream. However, when doing that, the image turns completely black. Why? And how do I fix this?
0
votes
1answer
36 views

Raspberry PI 3 + L298N Rapid changing action hangs up the Pi

I do some research in Robotic using several machine learning algorithm. I am using Raspi 3 with native camera module. I stack the Raspi with L298N Motor Driver. They are using separate power supply....
0
votes
1answer
661 views

How to set the camera sensor mode with V4L2

I'm referring to the modes listed here. When capturing video with raspivid, the -md option allows overriding the default mode selection heuristic. I need to find out how to achieve the same when ...
0
votes
1answer
5k views

What is the correct method for streaming video from the camera module to date? [closed]

I just started experimenting with a new Raspberry Pi 3 Model B with the latest Raspbian installed. I was looking for the best way to stream from the camera module and I have found different answers, ...
1
vote
0answers
436 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: ...
3
votes
0answers
122 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="...
0
votes
0answers
270 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
172 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 ...
2
votes
0answers
849 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 ...
6
votes
1answer
1k views

How to add audio as an input for ffmpeg capturing?

I've been lurking for a while now and I finally created an account because I'm stuck on this particular problem. I've got a raspberry pi 3 with a camera attached to it. I'm able to capture video as an ...
1
vote
0answers
197 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, ...
0
votes
1answer
473 views

Compile Raspivid from userland

I downloaded the userland repository from https://github.com/raspberrypi/userland and I wanted to compile just RaspiVid.c file. It's because I wanted to use the RaspiVid.c code in my project. But i ...
0
votes
1answer
205 views

Should I use raspivid for longer videos and do I need a spacious MicroSD?

Can I record a longer video (2h+) with raspivid and store it on a USB drive (100GB+) while using a small MicroSD card (8GB)? Specifications: Resolution 1080p Framerate 30fps Format h264 I am not ...
1
vote
1answer
2k views

How can I save the video recording from the camera module to an USB drive?

I know that I record by issuing the command raspivid -o filename.h264 -t 100000 (film for 100 seconds) but how do I specify the directory at witch I want to store the file? Usb is at dev/sdb1
1
vote
0answers
482 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/...
4
votes
1answer
2k views

FFMPEG Raspberry Pi to Facebook Live Stream

So I've been streaming video to YouTube just fine with the below command. I then wanted to do the same thing with Facebook on my page, and I get a strange Authorization error. On the Facebook side, ...
1
vote
1answer
711 views

How do I insert key frames at particular times with PiCamera?

How do I insert key frames in a Raspivid stream not just periodically, but also at particular times, e.g., 0, 15, 30 and 45 seconds of each minute ? I want to do this so that breaking the stream into ...
0
votes
1answer
2k views

Creating high quality video/audio pi stream

I have a question regarding creating a video/audio high quality stream using a raspberry pi. I'm getting married in 3 weeks, and my father who has lost the majority of his vision in one eye just had ...
3
votes
1answer
171 views

How to tell raspivid capturing/paused state?

raspivid has these options to cycle between capture and pause: -s, --signal : Cycle between capture and pause on Signal -k, --keypress : Cycle between capture and pause on ENTER Suppose I use ...
1
vote
1answer
447 views

raspivid h264 output can't be played by Firefox video player

If I record a video with raspivid, the output doesn't seem to be a perfectly valid video file. I can play it with mplayer, but Firefox's <video> tag can't play (although it's supposed to support ...
7
votes
1answer
3k views

Advantages of Raspberry Pi 15-pin MIPI camera interface (CSI) connector cameras above USB webcams?

What are advantages of cameras dedicated for Raspberry Pi (I mean those connected via dedicated camera connector and tape) above those usb webcams ? Is it just economy advantage (better value for ...
-2
votes
1answer
150 views

There is a problem with my python source [closed]

i received a lot of help to the Raspberry Pi study for yours thank you so much!! :) but there is a problem to me. i hope as follow 1. The record run 2. If the vibration sensor is detected during ...
3
votes
3answers
699 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 ...
1
vote
1answer
1k views

GStreamer H264 UDP stream from RPi Cam to Windows 7 Machine Hangs, “Network is Unreachable”?

I'm using gstreamer-1.0 to stream a live video feed from the Raspberry PI camera module to a Windows 7 machine. The pipeline on the PI is: raspivid -o - -t 0 -hf -w 800 -h 600 -b 1500000 -g 5 -awb ...
0
votes
1answer
419 views

How to record video with Raspicam on Raspberry Pi model B+?

When I run command: raspivid -t 15000 -o > test_vid.h264 Raspicam's red light stays on, but I only get file test_vid.h264 which size is 0 bytes. Ras Pi still works fine. I have googled that ...
1
vote
0answers
192 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
857 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
2answers
4k views

Creating GUI window visible above RPi Cam preview window

I'm trying to display a window using Tkinter above (topmost) to the preview window displayed when running raspivid, but I'm unable to do so. Python Code: from Tkinter import * root = Tk() root....
-1
votes
1answer
815 views

Accessing YUV data in openCV on the RPi [duplicate]

I came across thisquestion and answer which said how to get a numpy array from raspicam, using the PiYUVAnalysis class. I can output the array itself, But i do not know how to view the array as an ...
3
votes
1answer
532 views

Side by side camera module preview?

Is there any way to force raspivid or any other tool to display preview from camera (on hdmi display) side by side cloned, so it could be used in VR glasses?
3
votes
1answer
4k views

Don't show preview window for Raspistill?

I am using the following command to capture and write jpegs to a tmp directory which end up getting streamed over the network raspistill -w 640 -h 480 -q 5 -o /tmp/stream/pic.jpg -tl 100 -t 9999999 -...
0
votes
1answer
2k views

Access my camera from the outside

I have a Raspberry 2 with its camera module. I have it installed and it works pretty fine in my local network. When I execute : raspivid -o - -t 0 -n -w 600 -h 400 -fps 20 | cvlc -vvv stream:///dev/...
1
vote
1answer
616 views

Working cvlc A/V stream

I am able to get audio or video, but not both (I am relatively unfamiliar with the 5k lines of VLC options). /usr/bin/nohup /opt/vc/bin/raspivid -mm matrix -br 60 -co 10 --nopreview -qp 30 -b 200000 -...