Home > OS >  Issue with playing Ant Media Server VODs on macOS after recording on Windows
Issue with playing Ant Media Server VODs on macOS after recording on Windows

Time:01-04

In Ant Media Server after recording stream on Windows using API, the VOD plays fine on Windows. But when playing the same VOD on macOS using Quick Time Player v10.5, the video freezes after some seconds and audio continues. VODs playback with Quick Time Player is fine for recordings made on macOS.

How can I overcome this and is it an expected behaviour!

CodePudding user response:

TL;DR;

Transcode the video with ffmpeg after recording or add at least one adaptive bitrate on the Ant Media Server side.

This is a known issue in quick time player. This problem also exists for MacOS/iOS and Safari. Let me tell the cause of the problem and offer a solution.

Problem:

The resolution may be changed in WebRTC sessions according to the network conditions so that the resolution of the recording is being changed to lower or higher resolution.

Most of the players and browsers can handle that. On the other hand, Safari and Quick Time Player cannot handle resolution changes and the problem you mention appear.

Solution:

Transcoding the stream into a specific resolution with ffmpeg or using adaptive bitrate on the server side resolves this issue. Typical ffmpeg command is sufficient

ffmpeg -i INPUT.mp4 OUTPUT.mp4

A. Oguz
antmedia.io

  •  Tags:  
  • Related