RTSP Demuxer
Materials
Supported EVB x 1
SD Card
Example
This example demonstrates on how to use a demuxer on the AmebaPro2 board to process an MP4 file from an SD card and stream its content over RTSP (Real-Time Streaming Protocol).
Open the example in File -> Examples -> AmebaMultimedia -> DemuxerRTSP
First, you can choose whether to loop the MP4 file during streaming. If looping is enabled, the stream will play continuously without stopping.
Next, fill in the ssid with your WiFi network SSID and pass with the network password.
Finally, specify the name of the MP4 file you want to stream via RTSP. It is recommended to use an MP4 file recorded with the AmebaPro2 board.
Compile the code and upload it to Ameba.
After pressing the Reset button, wait for the Ameba Pro 2 board to connect to the WiFi network. The board’s IP address and network port number for RTSP will be shown in the Serial Monitor.
On a computer connected to the same WiFi network, open VLC media player, and go to FileFileMedia -> Open Network Stream`
Since RTSP is used as the streaming protocol, key in rtsp://{IPaddress}:{port} as the Network URL in VLC media player, replacing {IPaddress} with the IP address of your Ameba board, and {port} with the RTSP port shown in Serial Monitor. The default RTSP port number is 554.
Next, click Play to start RTSP streaming.
To pause the streaming:
Enter the command pause to pause the stream using Serial Monitor.
To resume the streaming:
Enter the command resume to resume the stream using Serial Monitor.