The `dec_ctx->time_base` was incorrectly default set by avcodec_open2(), while
`enc_ctx->time_base` was derived from `dec_ctx->framerate`. This mismatch could
cause incorrect video duration in the output.
This patch corrects the issue by adjusting the `enc_ctx->time_base` calculation
to accoun
From: Jack Lau
The `dec_ctx->time_base` was incorrectly default set by avcodec_open2(), while
`enc_ctx->time_base` was derived from `dec_ctx->framerate`. This mismatch could
cause incorrect video duration in the output.
This patch corrects the issue by adjusting the `enc_ctx->time_base` calcul
---
libavformat/hls.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/hls.c b/libavformat/hls.c
index 3bdc1bc848..c2130bb883 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -1993,7 +1993,7 @@ static int hls_read_header(AVFormatContext *s)
return r
Increase the default buffer size to match more modern encoding scenarios.
---
libavformat/mpegenc.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c
index 6b6763c30f..2b3b98b894 100644
--- a/libavformat/mpegenc.c
+++ b/libavform
fix ticket: 10786
parse the SPS from extradata and get profile_compatibility, tier, constraints
which was been hard code before.
HEVC CODECS Attribute reference to: ISO/IEC14496-15
Signed-off-by: Jack Lau
---
libavformat/hlsenc.c | 41 ++---
1 file changed, 3
fix ticket: 10786
parse the SPS from extradata and get profile_compatibility, tier, constraints
which was been hard code before.
HEVC CODECS Attribute reference to: ISO/IEC14496-15
Signed-off-by: Jack Lau
---
libavformat/hlsenc.c | 38 +++---
1 file changed, 35 i
fix ticket: 10786
parse the SPS from extradata and get profile_compatibility, tier, constraints
which was been hard code before.
HEVC CODECS Attribute reference to: ISO/IEC14496-15
Signed-off-by: Jack Lau
---
libavformat/hlsenc.c | 37 ++---
1 file changed, 34 in
fix ticket: 10786
parse the SPS from extradata and get profile_compatibility, tier, constraints
which was been hard code before.
HEVC CODECS Attribute reference to: ISO/IEC14496-15
Signed-off-by: Jack Lau
---
libavformat/hlsenc.c | 38 +++---
1 file changed, 35 i
fix ticket: 11316
add set_hevc_codec_str function refer to hlsenc.c but do some necessary changes
Signed-off-by: Jack Lau
---
libavformat/dashenc.c | 81 +++
1 file changed, 81 insertions(+)
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index
The previous code sets the bitrate to be calculated only when duration>0.5,
which is obviously not general enough.
In some scenarios, we may need to set hls_time<0.5, then the generated segments
are all <0.5. At this time, because the bitrate is not calculated, max_bitrate
is empty, and ff_hls_
10 matches
Mail list logo