Jump to content
  • 0

1080p Video in Ant VOD is actually 1800x1010


Ben Bowler
 Share

Question

Good morning,

We've been testing different resolutions and bitrates with AMS. One interesting thing we have found is that the "1080p" setting in the adaptive bitrate configuration actually returns a VOD file that is 1800x1010, not 1920x1080.

Is there a way to update this to be the correct resolution via an underlying config?

We need the full resolution for our post-processing pipeline.

Best.

Ben

 

 

1756233716_Screenshot2021-05-12at09_41_18.thumb.png.f344d6385a5fa3081b5c2f7efea304d7.png

Link to comment
Share on other sites

  • Answers 10
  • Created
  • Last Reply

Top Posters For This Question

10 answers to this question

Recommended Posts

  • 0

For more context, here is a sample recording trimmed from the original stream: https://www.dropbox.com/s/2nu79h7g4fefchw/RecordedStream2021-05-06T10_50_49.144Z-Trim%20for%20AMS.mp4?dl=0

And here are the details in ff-works that show the incorrect resolution:

 

 

 

195180818_Screenshot2021-05-12at10_47_11.thumb.png.d24a262e60843c84c04bec6fa5956a71.png

Link to comment
Share on other sites

  • 0

Hi Ben,

Have a good day. Thank you for the great question.

If you can use adaptive option, AMS is using default 1080p resolution like: 1920x1080 resolution.

If you disable adaptive options, MP4 records will record according to your stream resolution. Btw, I think it can be a good feature. I have added this issue in our issue tracking system: https://github.com/ant-media/Ant-Media-Server/issues/3259

Best Regards,

Selim

Link to comment
Share on other sites

  • 0

We need the adaptive options so is it possible to:

 - get the full quality recording event with adaptive settings enabled (I know this works for RTMP currently but not WebRTC)
 OR
 - get the 1080p VOD recording resolution fixed so that it is the correct resolution 1920x1080 not 1800x1010px

Can you repeat this bug? If you record a file with the adaptive 1080p setting enabled - what resolution is the recording for you?

 

Link to comment
Share on other sites

  • 0

Hi Ben,

Can you repeat this bug? If you record a file with the adaptive 1080p setting enabled - what resolution is the recording for you?

If you enable 1080p adaptive resolution, recording will be 1080p. You can check mp4 record resolution with FFprobe. 

Best Regards,
Selim

Link to comment
Share on other sites

  • 0

I can again repeat this issue today. When testing locally with Enterprise Edition 2.2.1 20201029_2042  streaming from WebRTC using the WebRTCAdapter.js library I get the following from ffprobe (and I've attached the file for you to look at) on the recording:

 Stream #0:1(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1800x1010, 578 kb/s, 15.17 fps, 20 tbr, 10240 tbn, 40 tbc (default)

 

The application on Ant is set up like so:

Visually playing back the file I can see that the quality starts out low and "steps up" after a few seconds it appears to be the correct quality and bandwidth supplied in the library.

RTMP ingest is irrelevant because from RTMP we receive the full quality vod file.

Is there a way to force SDP/WebRTC to respect a predefined resolution so that we get the full resolution recording at the other end? Similar to this unanswered question on Stack Overflow?

 

 

1670247189_Screenshot2021-05-20at15_39_28.thumb.png.f42685a15ea82d589e04e2152dabf056.png

RecordedStream2021-05-20T14_28_38.114Z.mp4

Link to comment
Share on other sites

  • 0

Hi Ben,

Have a good day.

Visually playing back the file I can see that the quality starts out low and "steps up" after a few seconds it appears to be the correct quality and bandwidth supplied in the library.

In the latest version(v2.3.2), clients watching compatible stream quality according to client bitrate value.

Is there a way to force SDP/WebRTC to respect a predefined resolution so that we get the full resolution recording at the other end?

I think WebRTC client can force it before the stream starts, but it needs some development for this issue. I have added a task for this issue https://github.com/ant-media/Ant-Media-Server/issues/3287

I hope, I could help you.

Best Regards,
Selim
Link to comment
Share on other sites

  • 0
Hi Ben,

I've discussed your questions with my colleagues and I've some updates.

>Visually playing back the file I can see that the quality starts out low and "steps up" after a few seconds it appears to be the correct quality and
>bandwidth supplied in the library.

For the 1920x1080p and  1800x1010 issue, Ant Media Server tries to fit the perfect aspect ratio otherwise DASH does not play the video due to different aspect ratios in the play list.  I think this is about that. 

Even if this is a default behavior, fortunately we can add a configuration parameter and server can behave accordingly. No worries about that. 

>Is there a way to force SDP/WebRTC to respect a predefined resolution so that we get the full resolution recording at the other end? Similar to this unanswered question on Stack Overflow?

Recently browsers does not allow to specify the encoder output. It changes accordingly network conditions. I mean resolution can increase/decrease while streaming. As far as I know, there are some options in the WebRTC W3C however browser did not implement yet. I can check again if it's implemented.

Best Regards,
Selim
Link to comment
Share on other sites

 Share

×
×
  • Create New...