# Streaming using chunks of videos

**URL:** <https://community.wowza.com/t/streaming-using-chunks-of-videos/45850>\
**Category:** Wowza Streaming Engine\
**Created:** [August 28, 2015, 4:04am UTC](https://community.wowza.com/t/streaming-using-chunks-of-videos/45850 "2015-08-28T04:04:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shubhank\_Gaur](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@Shubhank\_Gaur](https://community.wowza.com/u/Shubhank_Gaur)\
**Post date:** [August 28, 2015, 4:04am UTC](https://community.wowza.com/t/streaming-using-chunks-of-videos/45850/1 "2015-08-28T04:04:36Z")

</div>

I was wondering what would be the best way to stream to Wowza using RTMP using chunk of videos being uploaded to a server in real time (from a mobile or similar device)

One way I found was to process the chunks via ffmpeg and output it to a RTMP stream (wowza)

The ffmpeg docs for concat lists the following way

ffmpeg -f concat -i mylist.txt -c copy output

The mylist.txt file contains file like

file ‘/path/to/file1’

file ‘/path/to/file2’

file ‘/path/to/file3’

What I am looking is for a way to do this concat in a persistent way where the number of files can keep increasing, for example in livestreaming

I will be sending chunks of video (mp4 files) of 10 seconds each to my server and want to concat/stitch them together to output to a RTMP stream (for livestreaming)

If concat is not the proper way to do this, please suggest alternatives.

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [September 7, 2015, 12:43pm UTC](https://community.wowza.com/t/streaming-using-chunks-of-videos/45850/2 "2015-09-07T12:43:48Z")

</div>

Hi,

I assume this would be possible using ffmpeg(as you mentioned) in front of Wowza. If you want one of Wowza’s authorized consultants to help you find a solution, please post your request in the [Find a consultant](http://community.wowza.com/c/-/7)forum.

Regards,

Salvadore

---

<div class="post-metadata">

**Author:** ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)\
**Post date:** [September 24, 2015, 11:21pm UTC](https://community.wowza.com/t/streaming-using-chunks-of-videos/45850/3 "2015-09-24T23:21:15Z")

</div>

Hi,

According to the [FFMPEG info here](https://trac.ffmpeg.org/wiki/Concatenate) you may be able to loop the commands to buld the file lists and to create the persistence you require.

Then combine that with the [FFMPEG encoding command examples](https://www.wowza.com/docs/how-to-use-ffmpeg-with-wowza-media-server-mpeg-ts%28MPEG-TS%29) we have.

Daren

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [October 13, 2015, 6:47am UTC](https://community.wowza.com/t/streaming-using-chunks-of-videos/45850/4 "2015-10-13T06:47:26Z")

</div>

Thanks for updating this post. Please let us know if you need any assistance in the future.

Regards,

Salvadore

---

<div class="post-metadata">

**Author:** ![Shubhank\_Gaur](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@Shubhank\_Gaur](https://community.wowza.com/u/Shubhank_Gaur)\
**Post date:** [September 13, 2015, 8:44am UTC](https://community.wowza.com/t/streaming-using-chunks-of-videos/45850/5 "2015-09-13T08:44:44Z")

</div>

Won’t consultant thing be paid ? I was just looking for a general answer for a idea I have

The only thing I am not getting is how to concatenate the chunks on the fly or if I can send each individual chunk to the RTMP stream

---

<div class="post-metadata">

**Author:** ![Shubhank\_Gaur](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@Shubhank\_Gaur](https://community.wowza.com/u/Shubhank_Gaur)\
**Post date:** [September 23, 2015, 3:57am UTC](https://community.wowza.com/t/streaming-using-chunks-of-videos/45850/6 "2015-09-23T03:57:00Z")

</div>

Can someone please help me on this ☹

---

<div class="post-metadata">

**Author:** ![Shubhank\_Gaur](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@Shubhank\_Gaur](https://community.wowza.com/u/Shubhank_Gaur)\
**Post date:** [September 26, 2015, 4:09pm UTC](https://community.wowza.com/t/streaming-using-chunks-of-videos/45850/7 "2015-09-26T16:09:19Z")

</div>

> Hi,
> 
> According to the [FFMPEG info here](https://trac.ffmpeg.org/wiki/Concatenate) you may be able to loop the commands to buld the file lists and to create the persistence you require.
> 
> Then combine that with the [FFMPEG encoding command examples](https://www.wowza.com/docs/how-to-use-ffmpeg-with-wowza-media-server-mpeg-ts%28MPEG-TS%29) we have.
> 
> Daren

Thanks for the hint daren, looping seems to have done the trick, there is a slight stutter at the point of loop (10 seconds each) but working on fixing it now
