Skip to content

shepardm7/RTSP-react-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steps to follow before running the app (the below steps are done on a Windows machine using WAMP):

  1. Download ffmpeg, extract it and add it to PATH
  2. Install WAMP Server, create a folder called 'live' in the 'www' directory
  3. 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.
  4. 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```
  5. 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.
  6. Make sure WAMP is running along with all its services.
  7. Now you can run the app.

About

A simple app that displays a live stream

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published