[FFmpeg-devel] [PATCH] Fix wrong time_base bug

2021-03-15 Thread Donough Liu
Set time_base to inv of frame rate is only valid when input video have fixed frame rate. Signed-off-by: Donough Liu --- doc/examples/transcoding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/examples/transcoding.c b/doc/examples/transcoding.c index 5aff08c135..49ae32

Re: [FFmpeg-devel] [PATCH] Fix wrong time_base bug

2021-03-14 Thread Donough Liu
But using framerate to calculate time_base is also an error, you can try transcoding this video: https://drive.google.com/file/d/1bOV90UP61GbSAyzgsfzBZAOU_9feLPpm/view?usp=sharing On Sun, Mar 14, 2021 at 7:14 PM Anton Khirnov wrote: > Quoting Donough Liu (2021-03-12 18:47:09) > > Set time_base t

Re: [FFmpeg-devel] [PATCH] Fix wrong time_base bug

2021-03-14 Thread Anton Khirnov
Quoting Donough Liu (2021-03-12 18:47:09) > Set time_base to inv of frame rate is only valid when input video have fixed > frame rate. > > Signed-off-by: Donough Liu > --- > doc/examples/transcoding.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/doc/examples/transco

[FFmpeg-devel] [PATCH] Fix wrong time_base bug

2021-03-12 Thread Donough Liu
Set time_base to inv of frame rate is only valid when input video have fixed frame rate. Signed-off-by: Donough Liu --- doc/examples/transcoding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/examples/transcoding.c b/doc/examples/transcoding.c index 5aff08c135..d6fed6

[FFmpeg-devel] [PATCH] Fix wrong time_base bug

2021-03-12 Thread ldm0
From: ldm0 Set time_base to inv of frame rate is only valid when input video have fixed frame rate. Signed-off-by: ldm0 --- doc/examples/transcoding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/examples/transcoding.c b/doc/examples/transcoding.c index 5aff08c135..