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-...
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/...
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 ...
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 ...
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.
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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.
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 ...
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.
1
vote
Streaming video+audio from Pi4 to Pi4 via ethernet
Not sure I can give precise details but if I recall correctly pulseaudio is quite happy to convey audio generated on one device on a LAN to another one.
IIRC you will want to use paprefs to enable the ...
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 ...
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 ...
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 ...
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.
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 ...
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.
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 ...
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.
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 ...
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.
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 ...
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 ...
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/...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
raspivid × 69camera × 18
raspicam × 18
streaming-video × 14
ffmpeg × 10
pi-3 × 7
raspbian × 6
python × 5
video × 5
opencv × 3
youtube × 3
pi-4 × 2
ssh × 2
pi-3b+ × 2
audio × 2
pi-zero × 2
pi-zero-w × 2
motion × 2
picamera × 2
streaming × 2
gstreamer × 2
v4l2 × 2
h264 × 2
cvlc × 2
pi-2 × 1