- Download ffmpeg, extract it and add it to PATH
- Install WAMP Server, create a folder called 'live' in the 'www' directory
- To prevent CORS issue with WAMP you must add the line - Header set Access-Control-Allow-Origin "*" in the httpd -vhosts.conf file and make sure the headers-module is installed.
- Now create a batch file with the following lines and save it
cd c:\wamp64\www\live set VIDSOURCE="rtsp://url" &:: put your url here set AUDIO_OPTS=-c:a aac -b:a 160000 -ac 2 set VIDEO_OPTS=-s 854x480 -c:v libx264 -b:v 800000 set OUTPUT_HLS=-hls_time 10 -hls_list_size 10 -start_number 1 ffmpeg -i %VIDSOURCE% -y %AUDIO_OPTS% %VIDEO_OPTS% %OUTPUT_HLS% mystream.m3u8 PAUSE```
- Run the batch file. If successfully done you should see some output in the command prompt and streaming files will begin getting created in the C:\wamp64\www\live directory.
- Make sure WAMP is running along with all its services.
- Now you can run the app.
-
Notifications
You must be signed in to change notification settings - Fork 0
shepardm7/RTSP-react-app
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
A simple app that displays a live stream
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published