# Recorded files get choppy playback

**URL:** <https://community.wowza.com/t/recorded-files-get-choppy-playback/96747>\
**Category:** Wowza Streaming Engine\
**Created:** [December 16, 2023, 2:20pm UTC](https://community.wowza.com/t/recorded-files-get-choppy-playback/96747 "2023-12-16T14:20:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nguyen\_Ha](https://avatars.discourse-cdn.com/v4/letter/n/97f17d/32.png) [@Nguyen\_Ha](https://community.wowza.com/u/Nguyen_Ha)\
**Post date:** [December 16, 2023, 2:20pm UTC](https://community.wowza.com/t/recorded-files-get-choppy-playback/96747/1 "2023-12-16T14:20:38Z")

</div>

Hello everyone, I’ve just installed the newest version 4.8.26+4 and tried to restream and record my IP cam stream (RTSP H265 / AAC). There is no sound in the HLS playback with VLC, codec info as below

 ![2023-12-16_205029](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/2X/d/de4a035084da4925531eda2386feb182bdacc03a.jpeg)

The recorded file playback has sound but in very choppy quality. No rewind or forward play, just like a corrupted file

 ![2023-12-16_211113](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/2X/f/f9f16914bca1038f6b08cd2e4622e9b3d5ea68d0.jpeg)

There is no hint in the logs except these lines

```
2023-12-16 20:40:16 ICT comment server INFO 200 - [live/_definst_/cam6.stream] LiveStreamRecorderMP4.stopRecording() filename=/usr/local/WowzaStreamingEngine/content/cam6.stream_2023-12-16-20.38.02.244-ICT_0.mp4 - - - 767.113 - - - - - - - - - - - - - - - - - - - - - - - - -
2023-12-16 20:40:16 ICT comment server WARN 200 - QTWriterUtils.writeMOOVAtom[/usr/local/WowzaStreamingEngine/content/cam6.stream_2023-12-16-20.38.02.244-ICT_0.mp4]: File duration requires 64-bit atom structures. File may not play properly in QuickTime for Windows. - - - 767.121 -       

```

What’s the problem here?

---

<div class="post-metadata">

**Author:** ![Nguyen\_Ha](https://avatars.discourse-cdn.com/v4/letter/n/97f17d/32.png) [@Nguyen\_Ha](https://community.wowza.com/u/Nguyen_Ha)\
**Post date:** [December 17, 2023, 12:49pm UTC](https://community.wowza.com/t/recorded-files-get-choppy-playback/96747/2 "2023-12-17T12:49:21Z")

</div>

I forgot to mention I’m using Hikvision cameras after reading this post. Is there any specific problem with their codec and Wowza?

[http://community.wowza.com/t/hikvision-cameras-and-wowza/43990/6](http://community.wowza.com/t/hikvision-cameras-and-wowza/43990/6)

---

<div class="post-metadata">

**Author:** ![Nguyen\_Ha](https://avatars.discourse-cdn.com/v4/letter/n/97f17d/32.png) [@Nguyen\_Ha](https://community.wowza.com/u/Nguyen_Ha)\
**Post date:** [December 17, 2023, 1:45pm UTC](https://community.wowza.com/t/recorded-files-get-choppy-playback/96747/3 "2023-12-17T13:45:09Z")

</div>

It’s weird that ffmpeg bring me better files, no choppy, able to rewind

Here is the ffprobe outputs of my 2 record files

Wowza Record

```
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'content/cam6.stream_1.mp4':
  Metadata:
    major_brand : f4v
    minor_version : 0
    compatible_brands: isommp42m4v
    creation_time : 2023-12-17T13:31:57.000000Z
  Duration: 11:38:20.62, start: 0.000000, bitrate: 2 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc, bt709), 1920x1080, 823 kb/s, 13.08 fps, 25 tbr, 90k tbn, 50 tbc (default)
    Metadata:
      creation_time : 2023-12-17T13:31:57.000000Z
      handler_name : WowzaStreamingEngine
      encoder : WowzaStreamingEngine
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 16000 Hz, mono, fltp, 25 kb/s (default)
    Metadata:
      creation_time : 2023-12-17T13:31:57.000000Z
      handler_name : WowzaStreamingEngine

```

FFMPEG record

```
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'content/cam6.ff.mp4':
  Metadata:
    major_brand : isom
    minor_version : 512
    compatible_brands: isomiso2avc1mp41
    title : HIK Media Server V4.72.109
    encoder : Lavf57.83.100
    comment : HIK Media Server Session Description : standard
  Duration: 00:01:13.41, start: 0.000000, bitrate: 1981 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 1920x1080, 1916 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      handler_name : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 16000 Hz, mono, fltp, 76 kb/s (default)
    Metadata:
      handler_name : SoundHandler

```

It seems like Wowza did not record at the correct framerate (25fps) and got data loss

---

<div class="post-metadata">

**Author:** ![Nguyen\_Ha](https://avatars.discourse-cdn.com/v4/letter/n/97f17d/32.png) [@Nguyen\_Ha](https://community.wowza.com/u/Nguyen_Ha)\
**Post date:** [December 17, 2023, 2:14pm UTC](https://community.wowza.com/t/recorded-files-get-choppy-playback/96747/4 "2023-12-17T14:14:15Z")

</div>

Finally, I found these error logs about RTP/AVSyncMethod

```
WARN server comment 2023-12-17 19:38:04 - - - - - 426.976 - - - - - - - - RTPDePacketizerBase.Waiting for RTCP packet. See docs for (Application.xml: RTP/AVSyncMethod and RTP/MaxRTCPWaitTime).
WARN server comment 2023-12-17 19:38:08 - - - - - 430.776 - - - - - - - - RTCPHandler.isTimeSyncReady: Hit MaxRTCPWaitTime synchronizing on system clock.

```

and following exlaination in this thread, i changed the RTP/AVSyncMethod property to the **systemclock** and the AV streams seem to be synced correctly and I was able to view the stream.

[http://community.wowza.com/t/impact-of-using-rtp-avsyncmethod-systemclock-versus-senderreport/37126/3](http://community.wowza.com/t/impact-of-using-rtp-avsyncmethod-systemclock-versus-senderreport/37126/3)

Thank you, community.
