Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A stream from any participant is recorded to a separate file. The issue of record files futher processing is that publication of them does not begin at the same time.

Stream records synchronization

To allow streams merging, room streams are may be synchronized by the first stream published. To enable this feature set the following parameter in flashphoner.properties file

Code Block
languagebash
themeRDark
enable_empty_shift_writer=true

For example, if User1 participant started publishing stream at 00:00:10, and User2 participant did it at 00:00:55, then second participant will get 45 seconds of empty video (black screen and silence) at record beginning. So, stream record files User1.mp4 and User2.mp4 will be same in duration, and they can be merged. Besides, participants streams .

By default, stream records synchronization is disabled. In this case, to merge participant streams, they can be mixed while publishing.

...

2. Enable stream recording in Conference application

3. Enable stream records synchronization

Code Block
languagebash
themeRDark
enable_empty_shift_writer=true

Restart WCS.

3. Open Conference application. Enter user name Alice to "Login" field and click 'Join'. The streamd from user Alice will be published:

...

9. Video stream from Bob is published:

Merging synchronized stream records using ffmpeg

Stream Synchronized stream record files can be merged in chronological order using ffmpeg. To allow this,  when stream is created, stream timeshift relative to room creation time is specified on server side. Stream record files written by this way are merged with command (two participants example)

...