[Resolved] ffmpeg web video maximum bitrate inconsistency

Developers forum for Univeral Media Server-related development (only for programmers)
Locked
Casper
Posts: 32
Joined: Wed Jul 24, 2013 10:20 pm

[Resolved] ffmpeg web video maximum bitrate inconsistency

Post by Casper »

I noticed with ffmpeg web video that the -maxrate parameter doesn't reflect the maximum bandwidth value specified in the UI.

Maximum bandwidth 5Mb/s ---> maxrate 1000000
Maximum bandwidth 10Mb/s ---> maxrate 4000000
Maximum bandwidth 50Mb/s ---> maxrate 24000000

Is this there any logic behind this?
User avatar
DeFlanko
Posts: 724
Joined: Thu Jun 21, 2012 3:43 am
Location: San Pedro, CA
Contact:

Re: 3.0.0.b1 ffmpeg web video maximum bitrate inconsistency

Post by DeFlanko »

Are you using the latest build?

If so and you utilized the Configuration wizard, i would think its because of these settings. (Automatic settings...)

Image
Casper
Posts: 32
Joined: Wed Jul 24, 2013 10:20 pm

Re: 3.0.0.b1 ffmpeg web video maximum bitrate inconsistency

Post by Casper »

Using the 3.0.0.b1 release, not the latest build.

In my tests maxrate is independent of the transcoding quality.
ExSport
Posts: 595
Joined: Wed Oct 10, 2012 1:57 am

Re: 3.0.0.b1 ffmpeg web video maximum bitrate inconsistency

Post by ExSport »

What I remember the formula is something like:

Code: Select all

(Max_bitrate divided by 2) - Audio_Bitrate
[/size]
Division by 2 is used because UMS caches 2seconds of data and sends it to renderer so sent data are twice the counted bitrate.

Code: Select all

Maximum bandwidth 10Mb/s ---> maxrate 4000000  ----> (4Mbit video + 1Mbit audio) *2  = 10Mbit limit
Maximum bandwidth 50Mb/s ---> maxrate 24000000 ----> (24Mbit video + 1Mbit audio) *2 = 50Mbit limit
Casper
Posts: 32
Joined: Wed Jul 24, 2013 10:20 pm

Re: [Resolved] ffmpeg web video maximum bitrate inconsistenc

Post by Casper »

Thank you. This explains why I was having problems with CustomFFmpegOptions.
Locked