# Live recording file interrupt when going to next chunk

**URL:** <https://community.wowza.com/t/live-recording-file-interrupt-when-going-to-next-chunk/43488>\
**Category:** Wowza Streaming Engine\
**Tags:** server-administration\
**Created:** [February 4, 2015, 5:49pm UTC](https://community.wowza.com/t/live-recording-file-interrupt-when-going-to-next-chunk/43488 "2015-02-04T17:49:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrey\_Litvinov](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@Andrey\_Litvinov](https://community.wowza.com/u/Andrey_Litvinov)\
**Post date:** [February 4, 2015, 5:49pm UTC](https://community.wowza.com/t/live-recording-file-interrupt-when-going-to-next-chunk/43488/1 "2015-02-04T17:49:02Z")

</div>

Hi dear,

I use wowza pluging for record live stream. I use ffmpeg or another tools for making 1 file from chunks which i got from liverecord plugin (chunk is set to 20 sec). And I see issue that video interrupt, freeze on half second when it going to next chunk.

Is it possible to got incessant file? W/o any interruption between chunks?

Thanks

---

<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:** [February 4, 2015, 9:49am UTC](https://community.wowza.com/t/live-recording-file-interrupt-when-going-to-next-chunk/43488/2 "2015-02-04T09:49:58Z")

</div>

Hello there.

Please confirm that you are concatenating segmented recordings into a single file. And if so, are these segments from the same live stream?

If this is the case, and the segments are recorded from the same source stream, it should play back smoothly.

What version of FFmpeg are you using? And are you using the directions for [concatenating files found here](https://trac.ffmpeg.org/wiki/Concatenate)

Testing with FFmpeg version# 1.2.6-7:1.2-6-1-trusty1, following the FFmpeg tutorial provided above with 20 second segments, produced a smooth playback.

Kind regards,

Salvadore

---

<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:** [February 5, 2015, 8:12am UTC](https://community.wowza.com/t/live-recording-file-interrupt-when-going-to-next-chunk/43488/3 "2015-02-05T08:12:42Z")

</div>

Next thing to try would be to add this property to the container at the end of the **[install-dir]/conf/[application]/Application.xml** file:

```auto
<Property>
    <Name>liveStreamRecordStartOnKeyFrame</Name>
    <Value>true</Value>
    <Type>boolean</Type>
</Property>

```

That one change may fix the issue. If not you might have to try different fps / key-frame interval combinations.

Kind regards,

Salvadore

---

<div class="post-metadata">

**Author:** ![Andrey\_Litvinov](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@Andrey\_Litvinov](https://community.wowza.com/u/Andrey_Litvinov)\
**Post date:** [February 5, 2015, 1:58pm UTC](https://community.wowza.com/t/live-recording-file-interrupt-when-going-to-next-chunk/43488/4 "2015-02-05T13:58:37Z")

</div>

Hi Salvadore,

I used

ffmpeg version N-69531-g77f326d Copyright © 2000-2015 the FFmpeg developers

built with gcc 4.9.2 (GCC)

dir \> mylist.txt

# this is a comment

file ‘myStream\_t11\_2015-02-04-16.54.36.984-VLAT\_1.mp4’

file ‘myStream\_t11\_2015-02-04-16.54.36.984-VLAT\_2.mp4’

file ‘myStream\_t11\_2015-02-04-16.54.36.984-VLAT\_3.mp4’

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

I uploaded files here:

[https://yadi.sk/d/6d3Nj3g1eUWyY](https://yadi.sk/d/6d3Nj3g1eUWyY)

Or google drive:

[https://drive.google.com/file/d/0B9O7AGt9y2hxWE83TW41aldWdDQ/view?usp=sharing](https://drive.google.com/file/d/0B9O7AGt9y2hxWE83TW41aldWdDQ/view?usp=sharing)

it’s split by 20 sec and you can see problem first and second 20 sec.

1. 20 sec -screen freeze

2. 40 sec -screen jump

---

<div class="post-metadata">

**Author:** ![Andrey\_Litvinov](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@Andrey\_Litvinov](https://community.wowza.com/u/Andrey_Litvinov)\
**Post date:** [February 5, 2015, 2:46pm UTC](https://community.wowza.com/t/live-recording-file-interrupt-when-going-to-next-chunk/43488/5 "2015-02-05T14:46:07Z")

</div>

I added original file

[https://drive.google.com/file/d/0B9O7AGt9y2hxelVnX3FUTGRUcm8/view?usp=sharing](https://drive.google.com/file/d/0B9O7AGt9y2hxelVnX3FUTGRUcm8/view?usp=sharing)

I stream it to wowza via ffmpeg

~/bin/ffmpeg -re -i /usr/local/WowzaStreamingEngine-4.0.6/content/test1.mp4 -strict -2 -vcodec copy -acodec copy -f rtsp rtsp://10.0.2.15:1935/live/myStream

I have following setting in live record application:

![](http://s011.radikal.ru/i318/1502/c9/66340a1b4fd3.png)

---

<div class="post-metadata">

**Author:** ![Andrey\_Litvinov](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@Andrey\_Litvinov](https://community.wowza.com/u/Andrey_Litvinov)\
**Post date:** [February 9, 2015, 12:45pm UTC](https://community.wowza.com/t/live-recording-file-interrupt-when-going-to-next-chunk/43488/6 "2015-02-09T12:45:48Z")

</div>

> That one change may fix the issue. If not you might have to try different fps / key-frame interval combinations.

Hi Salvadore,

I used keyframe flag and also added -g 200 options to ffmpeg. Now It’s more good, but issue still exist.

Do you know any good settng for fps / key-frame interval?
