A
A
Alexander Belyakov2015-01-02 17:17:19
Nginx
Alexander Belyakov, 2015-01-02 17:17:19

How to segment the incoming video stream?

How to segment an incoming 1920x1080 video stream into 9 video streams, the format of each of them is 640x360. Streaming is carried out by using a streaming server implemented on the basis of linux + nginx + rtmp-module. Those. in other words, you need to turn a large incoming stream into 9 outgoing streams, as if cutting it with a 3 by 3 grid

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Makridenkov, 2016-01-07
@parce56

I wonder what problem you are solving?
You can do this (example commands), the idea is to run 9 ffmpeg and stream to the outgoing rtmp-module:

ffmpeg -i rtmp://input_1920 -filter_complex "[0:v]crop=640:360:0:0" -f flv -ar 44100 -y rtmp://out_1
ffmpeg -i rtmp://input_1920 -filter_complex "[0:v]crop=640:360:640:0" -f flv -ar 44100 -y rtmp://out_2
...

A
artanets1, 2015-01-02
@artanets1

Vlc knows how to split the picture like this, with a wall filter, but then I don’t know how to send it to the network further.
maybe this video will help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question