Can WCS broadcast an incoming http stream?

mbedial

Member
Hello,
I'd like to know if WCS is able to get a http stream and broadcastt it.
We'd use something like ffmpeg:
ffmpeg -re -i BigBuckBunny.mp4 -preset ultrafast -acodec aac -vcodec h264 -strict -2 -f flv rtmp://test1.flashphoner.com:1935/live/stream_ffmpeg
But instead of use a file, to use a stream http with this characteristics

Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 720x576 [SAR 64:45 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 129 kb/s
Output #0, mp4, to 'partido4.mp4':
Metadata:
encoder : Lavf58.22.100
Stream #0:0: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(progressive), 720x576 [SAR 64:45 DAR 16:9], q=2-31, 50 fps, 50 tbr, 90k tbn, 90k tbc
Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 129 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)

Stream #0:1 -> #0:1 (copy)

Thanks alot in advance
 

Max

Administrator
Staff member
Let me know if I'm wrong. You are going to store your mp4 files on a web server and you are going to injest such files to Flashphoner WCS and finally get published stream. For example source file is, https://mywebserver.com/storage/Bunny.mp4. WCS receives this file as a stream and then it can handle this as a regular stream.

Please check VOD + AWS S3 feature

If your file is located in the AWS S3 compatible storage, it will be captured by WCS using HTTP protocol.
 

Max

Administrator
Staff member
You may publish a stream by one of the following ways:
HTTP incoming stream is not supported. But you can capture HTTP stream by ffmpeg and then publish it to WCS as RTMP (or MPEG-TS/SRT) like this
Code:
ffmpeg -re -i https://server/source.m3u8 -preset ultrafast -acodec aac -vcodec h264 -strict -2 -f flv rtmp://wcs:1935/live/destination
 
Top