Re: [FFmpeg-devel] [PATCH v3 1/3] ffmpeg: set the encoding framerate when the output is CFR

2017-03-17 Thread Tobias Rapp

On 14.03.2017 13:43, Tobias Rapp wrote:

On 11.03.2017 16:07, Michael Niedermayer wrote:

On Tue, Mar 07, 2017 at 03:39:17PM +0100, Tobias Rapp wrote:

From: Anton Khirnov 

(cherry picked from Libav commit
d10102d23c9467d4eb84f58e0cd12be284b982f6)

Signed-off-by: Tobias Rapp 
---
 ffmpeg.c | 2 ++
 1 file changed, 2 insertions(+)


maybe ok
is there some testcase or something for this ?


I used some additional av_log() calls in different encoder init
functions during testing.


Pushed.

Thanks,
Tobias

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


Re: [FFmpeg-devel] [PATCH v3 1/3] ffmpeg: set the encoding framerate when the output is CFR

2017-03-14 Thread Tobias Rapp

On 11.03.2017 16:07, Michael Niedermayer wrote:

On Tue, Mar 07, 2017 at 03:39:17PM +0100, Tobias Rapp wrote:

From: Anton Khirnov 

(cherry picked from Libav commit d10102d23c9467d4eb84f58e0cd12be284b982f6)

Signed-off-by: Tobias Rapp 
---
 ffmpeg.c | 2 ++
 1 file changed, 2 insertions(+)


maybe ok
is there some testcase or something for this ?


I used some additional av_log() calls in different encoder init 
functions during testing.


Regards,
Tobias

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


Re: [FFmpeg-devel] [PATCH v3 1/3] ffmpeg: set the encoding framerate when the output is CFR

2017-03-11 Thread Michael Niedermayer
On Tue, Mar 07, 2017 at 03:39:17PM +0100, Tobias Rapp wrote:
> From: Anton Khirnov 
> 
> (cherry picked from Libav commit d10102d23c9467d4eb84f58e0cd12be284b982f6)
> 
> Signed-off-by: Tobias Rapp 
> ---
>  ffmpeg.c | 2 ++
>  1 file changed, 2 insertions(+)

maybe ok
is there some testcase or something for this ?

[...]
-- 
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The greatest way to live with honor in this world is to be what we pretend
to be. -- Socrates


signature.asc
Description: Digital signature
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


[FFmpeg-devel] [PATCH v3 1/3] ffmpeg: set the encoding framerate when the output is CFR

2017-03-07 Thread Tobias Rapp
From: Anton Khirnov 

(cherry picked from Libav commit d10102d23c9467d4eb84f58e0cd12be284b982f6)

Signed-off-by: Tobias Rapp 
---
 ffmpeg.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ffmpeg.c b/ffmpeg.c
index 79c91ff..4117b64 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3309,6 +3309,8 @@ static int init_output_stream_encode(OutputStream *ost)
 enc_ctx->bits_per_raw_sample = FFMIN(dec_ctx->bits_per_raw_sample,
  
av_pix_fmt_desc_get(enc_ctx->pix_fmt)->comp[0].depth);
 
+enc_ctx->framerate = ost->frame_rate;
+
 ost->st->avg_frame_rate = ost->frame_rate;
 
 if (!dec_ctx ||
-- 
2.7.4


___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel