Game Development Reference
In-Depth Information
Streaming video using the RTMP module
You can type in this line using the specific pipe for GStreamer. This does not use any
hardware and does not always work with RTMP.
# raspivid -t 9999999 -fps 25 -b 1500000 -o - |
gst-launch-1.0 -v fdsrc
! h264parse config-interval=1 ! flvmux
! rtmpsink location=\"rtmp://localhost/src/live live=1\"
The preferred method is using FFmpeg. It consumes about the same amount of
resources as GStreamer, but it is much more stable with the RTMP module.
# raspivid -t 999999 -fps 25 -b 1500000 -o - |
ffmpeg -i - -vcodec copy -an -f flv rtmp://localhost/src/live
Both these methods will stream full HD frames at a managed bitrate. If you pipe
( | is a system reserved character, used to pipe data from one software to another
using a memory stream) data from Raspivid to FFmpeg without any bitrate settings,
there is a considerable loss of frames and the CPU consumption goes near 100
percent. It is rarely worth the little bit of extra detail, but you can tune that
parameter to your liking.
This screenshot shows FFmpeg streaming video to nginx-rtmp .
 
Search WWH ::




Custom Search