In the Flash Media Encoder control screen you can select what video and audio codecs to use.
For the FME video codec, ensure to use H.264 or VP6.
For the FME audio codec, ensure to use AAC or MP3.
Make sure that 'Stream to Flash Media Server' is checked. You should set the publish FMS destination to be that of your NGMS listening instance.
FMS URL: rtmp://[NGMS HOST]:1935/app
Stream URL: mystream
The actual RTMP stream name and URL does not matter if you are only streaming one source instance.
Start a listening NGMS instance to receive the RTMP stream from FME on port 1935. This example will distribute the stream via RTSP, RTMP, HTTP Live, and TS/HTTP.
Any client device should be able to connect to view your live web cam at the URL http://[NGMS HOST]:8080/live