Skip to main content

8.4 Multimedia Class

Video Encoding/Decoding

[Question]
  • When decoding the rtsp video stream on the development board, the following error occurs:
    image-20220728110439753
[Answer]
  • The rtsp stream pushed by the streaming server needs to include PPS and SPS 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 the PPS and SPS 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 and SPS information.