I know that I can get Wowza to stream to clients via port 80. However, I’d like to be able to push a stream to Wowza via port 80. Specifically, using ffmpeg to do the encoding.
What I’m currently doing is:
ffmpeg -i ‘udp://localhost:5000?fifo_size=1000000&overrun_nonfatal=1’ -crf 30 -preset ultrafast -acodec aac -strict experimental -ar 44100 -ac 2 -b:a 96k -vcodec libx264 -r 25 -b:v 700k -f flv ‘rtmp://wowza/live/cam0’
I have tried:
ffmpeg -i ‘udp://localhost:5000?fifo_size=1000000&overrun_nonfatal=1’ -crf 30 -preset ultrafast -acodec aac -strict experimental -ar 44100 -ac 2 -b:a 96k -vcodec libx264 -r 25 -b:v 700k -f flv ‘rtmp://wowza:80/live/cam0’
but that gives me:
Input #0, mpegts, from ‘udp://localhost:5000?fifo_size=1000000&overrun_nonfatal=1’:
Duration: N/A, start: 40876.855822, bitrate: 8224 kb/s
Program 1
Stream #0:0[0x44]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 8000 kb/s, 32.36 fps, 30 tbr, 90k tbn, 59.94 tbc
Stream #0:1[0x45]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16, 224 kb/s
rtmp://68.188.36.162:80/live/cam0: Input/output error
I’ve also tried:
ffmpeg -i ‘udp://localhost:5000?fifo_size=1000000&overrun_nonfatal=1’ -crf 30 -preset ultrafast -acodec aac -strict experimental -ar 44100 -ac 2 -b:a 96k -vcodec libx264 -r 25 -b:v 700k -f flv ‘http://wowza:80/live/cam0’
but it gives me:
Output #0, flv, to ‘http://68.188.36.162:80/live/cam0’:
Metadata:
encoder : Lavf54.15.104
Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=-1–1, 700 kb/s, 1k tbn, 25 tbc
Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo, flt, 96 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video -> libx264)
Stream #0:1 -> #0:1 (mp2 -> aac)
Press [q] to stop, [?] for help
[mpeg2video @ 0x269f780] warning: first frame is no keyframe
Have I overlooked something here? I’ve check that VHost.xml contains “80,554,1935” and that port 80 is showing as being successfully bound in the access log.