mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 05:12:09 +00:00
f11735c97b
When configured in constant bitrate mode, the muxer computes timing information using the configured bitrate and the byte counter (now = bytes sent / byterate). When an application changes the bitrate in CBR mode during playback, the relationship between bytes sent and bitrate is no longer valid so new timing values will be off by the ratio of the old bitrate to the new bitrate. Furthermore, it will upset the way that padding is generated. pad_stream() works by trying to fit the byte counter to now * byterate. The result is that when decreasing bitrate, the muxer stalls, waiting until the byte counter is in agreement with now * byterate. Also, when increasing bitrate, the padding will spike in volume until the byte counter fits with now * byterate. If the byte counter is scaled by the ratio of new bitrate / old bitrate when adjusting bitrate, then padding is generated in a way that applications would more likely expect. One detail this change doesn't yet address is whether the next PCR will match up optimally with the previous PCR right after the byte counter is scaled. In that case, some correction may be necessary. Also, perhaps the user should be prevented from changing from bitrate=0 to bitrate=nonzero during playback since it's not straightforward how to scale the byte counter in that case. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7158> |
||
---|---|---|
.. | ||
accurip | ||
adpcmdec | ||
adpcmenc | ||
aiff | ||
asfmux | ||
audiobuffersplit | ||
audiofxbad | ||
audiolatency | ||
audiomixmatrix | ||
audiovisualizers | ||
autoconvert | ||
bayer | ||
camerabin2 | ||
codecalpha | ||
codectimestamper | ||
coloreffects | ||
debugutils | ||
dvbsubenc | ||
dvbsuboverlay | ||
dvdspu | ||
faceoverlay | ||
festival | ||
fieldanalysis | ||
freeverb | ||
frei0r | ||
gaudieffects | ||
gdp | ||
geometrictransform | ||
id3tag | ||
insertbin | ||
inter | ||
interlace | ||
ivfparse | ||
ivtc | ||
jp2kdecimator | ||
jpegformat | ||
librfb | ||
midi | ||
mpegdemux | ||
mpegpsmux | ||
mpegtsdemux | ||
mpegtsmux | ||
mse | ||
mxf | ||
netsim | ||
onvif | ||
pcapparse | ||
pnm | ||
proxy | ||
rawparse | ||
removesilence | ||
rist | ||
rtmp2 | ||
rtp | ||
sdp | ||
segmentclip | ||
siren | ||
smooth | ||
speed | ||
subenc | ||
switchbin | ||
timecode | ||
transcode | ||
unixfd | ||
videofilters | ||
videoframe_audiolevel | ||
videoparsers | ||
videosignal | ||
vmnc | ||
y4m | ||
meson.build |