learn-video / mosaic-video

Generate mosaics from video inputs
Apache License 2.0
35 stars 6 forks source link

Feat/vod in loop #30

Closed luiscovelo closed 8 months ago

luiscovelo commented 8 months ago

Possible solution for #28.

In this solution we use a -stream_loop with value in -1, meaning that video will stay in loop whole time.

For this, it's necessary to add a new field into Media struct to inform if video must be in loop or not.

See the video below, where we use 2 small video in looping while others streams has generating normally.

Demo.

mauricioabreu commented 8 months ago

Great work!

Regarding the example, I believe it's unnecessary to include a QR code. The QR code would simply be embedded in the MP4 video, which isn't needed.

luiscovelo commented 8 months ago

@mauricioabreu,

I had added for only demo and need to add a test for new flag.

I'll maintain only subscribe video for use example, it could be?

mauricioabreu commented 8 months ago

@luiscovelo yes, that works! Thank you!!