11 votes

Raspivid: 'ES_OUT_SET_(GROUP_)PCR is called too late' & stream keeps freezing

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-...
guest's user avatar
  • 111
4 votes
Accepted

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

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/...
Pedro Lopes's user avatar
4 votes
Accepted

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

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 ...
Hydranix's user avatar
  • 226
3 votes
Accepted

Unable to stream live on Youtube using Raspberry Pi Zero W using ffmpeg

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 ...
Paul's user avatar
  • 171
3 votes

Is it possible to change video resolution while recording?

It's not possible without stopping the recording and restarting it with new parameters and a new output file.
Dougie's user avatar
  • 5,311
3 votes
Accepted

Raspivid: 'ES_OUT_SET_(GROUP_)PCR is called too late' & stream keeps freezing

Some tests on my pi showed that this message vanishes when you set -fps to 50 or above.
AWhiteKnight's user avatar
3 votes

Raspivid multicast UDP streaming

I have tried to do this a few times but never gotten the results I wanted. Just recently I revisited it and found this works to multicast directly from raspivid. raspivid -a 12 -a "ras2" -t ...
shawn's user avatar
  • 31
3 votes
Accepted

popen() vs netcat

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 ...
Dmitry Grigoryev's user avatar
2 votes

FFMPEG Raspberry Pi to Facebook Live Stream

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 ...
Santa77's user avatar
  • 21
2 votes

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

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 ...
goobering's user avatar
  • 10.7k
2 votes

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

As suggested by Goldilocks, a USB Webcam will run through the CPU, whereas the dedicated port does not. Raspberry Pi Essentials, page 42
tlhIngan's user avatar
  • 3,372
2 votes
Accepted

Compile Raspivid from userland

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 ...
Dave Jones's user avatar
  • 3,978
2 votes

YouTube Stream and Display Date and Time on the stream

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.
Dirk's user avatar
  • 3,551
2 votes

Fast pictures with PiCam and Java

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 ...
JMY1000's user avatar
  • 121
2 votes

raspivid doesn't include b-frames

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.
Black Glix's user avatar
1 vote

How to improve "motion" framerate, or feed "raspivid" h264 stream into "motion"?

My digging for how to split video streams, especially with different resolutions, led me to MMAL C library used by Pi: http://www.jvcref.com/files/PI/documentation/html/index.html AFAIU, it gives you ...
Ivan Koshelev's user avatar
1 vote
Accepted

Video Distortion using PiCamera 2.0, but raspistill is fine

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 ...
Gavin's user avatar
  • 21
1 vote

FFMPEG Raspivid Videos are shorter than they are supposed to be

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 ...
Dmitry Grigoryev's user avatar
1 vote

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

Question Let me summarize your project. You have two cameras, one day camera, another, night camera. You have one PIR sensor, connected to Rpi which gets alerted if a naughty cat comes in. If it is ...
tlfong01's user avatar
  • 4,675
1 vote

Raspivid: 'ES_OUT_SET_(GROUP_)PCR is called too late' & stream keeps freezing

This should be the accepted answer. Use the same value for raspivid -fps and cvlc --h263-fps= to avoid vlc reading more/less frames than raspivid delivers.
Wolf's user avatar
  • 101
1 vote

What will happen with 2 AV signals

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.
CoderMike's user avatar
  • 6,982
1 vote

How to add audio as an input for ffmpeg capturing?

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 ...
Shreyansh's user avatar
  • 171
1 vote

Developing custom effects for raspivid?

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 ...
JeffThompson's user avatar
1 vote
Accepted

Developing custom effects for raspivid?

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.
flakeshake's user avatar
  • 6,235
1 vote

How to set the camera sensor mode with V4L2

I ran into this same problem and it was relatively simple to add support for it to the V4L2 API, so I did. v4l2-ctl --set-ctrl=sensor_mode=2 I submitted my patch but it was rejected because it might ...
Malvineous's user avatar
  • 1,884
1 vote
Accepted

How to set the camera sensor mode with V4L2

Official word is that sensor mode selection is not possible through V4L2, because the API does not offer the appropriate control. See this Raspberry PI forum answer.
Pedro Lopes's user avatar
1 vote

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

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 ...
goobering's user avatar
  • 10.7k
1 vote

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

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/...
Mykel Stone's user avatar
1 vote

Creating high quality video/audio pi stream

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/...
Jakob Vendegna's user avatar
1 vote
Accepted

How to tell raspivid capturing/paused state?

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 ...
goobering's user avatar
  • 10.7k

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