[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

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

[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