8.4 Multimedia Class
Video Encoding/Decoding
[Question]- When decoding the rtsp video stream on the development board, the following error occurs:
-
The rtsp stream pushed by the streaming server needs to include
PPS
andSPS
parameter information. -
When using
ffmpeg
to stream open video files in formats such as.mp4
and.avi
, the-vbsf h264_mp4toannexb
option needs to be added to include thePPS
andSPS
information in the stream, for example:ffmpeg -re -stream_loop -1 -i xxx.mp4 -vcodec copy -vbsf h264_mp4toannexb -f rtsp rtsp://192.168.1.195:8554/h264_stream
-
Currently, the rtsp video stream only supports 1080p resolution.
-
Using VLC software for rtsp streaming is not supported because VLC software does not support adding
PPS
andSPS
information.