1) You only need the “-re” option if you are doing static VOD to live.
2) You are using audio and video codecs without specifying anything. libx264 will, by default deliver CRF 23. Never use CRF. Always use bitrate.
3) You should have no need to reencode the content.
You will need to authenticate your encoder with Wowza Streaming Engine and Wowza Streaming Cloud. Here are a few examples.
Passthrough if you trust the source content.
ffmpeg -i https://mnmedias.api.telequebec.tv/m3u8/29880.m3u8 -codec copy -f flv "rtmp://127.0.0.1:1935/live/myStream flashver=FMLE/3.0\20(compatible;\20FMSc/1.0) live=true pubUser=live pubPasswd=live"
Below is an article that we found regarding how to use FFmpeg. While it focuses on VOD content the same concept applies for live.
https://videoblerg.wordpress.com/2017/11/10/ffmpeg-and-how-to-use-it-wrong/
The command line below would be useful start for encoding content that you do not trust.
ffmpeg -i https://mnmedias.api.telequebec.tv/m3u8/29880.m3u8 -pix_fmt yuv420p -vsync 1 -vcodec libx264 -r 23.976 -threads 0 -b:v: 1024k -bufsize 1216k -maxrate 1280k -preset medium -profile:v high -tune film -g 48 -x264opts no-scenecut -acodec aac -b:a 192k -ac 2 -ar 48000 -af "aresample=async=1:min_hard_comp=0.100000:first_pts=0" -f flv "rtmp://127.0.0.1:1935/live/myStream flashver=FMLE/3.0\20(compatible;\20FMSc/1.0) live=true pubUser=live pubPasswd=live"