Re: [FFmpeg-devel] [PATCH] libavformat/matroskaenc.c: Add option to set timecodescale

2021-01-13 Thread James Almer
On 1/13/2021 4:58 PM, Thierry Foucu wrote: HI Lynne On Wed, Jan 13, 2021 at 10:30 AM Lynne wrote: Jan 13, 2021, 18:46 by tfo...@gmail.com: By default the time code scale in a MKV file in millisecond. With this option we can set the time code scale to microsecond or nanoseconds for very high

Re: [FFmpeg-devel] [PATCH] libavformat/matroskaenc.c: Add option to set timecodescale

2021-01-13 Thread Lynne
Jan 13, 2021, 20:58 by tfo...@gmail.com: > HI Lynne > > On Wed, Jan 13, 2021 at 10:30 AM Lynne <> d...@lynne.ee> > wrote: > >> Jan 13, 2021, 18:46 by >> tfo...@gmail.com>> : >> >> > By default the time code scale in a MKV file in millisecond. With this >> > option we can set the time code scale to

Re: [FFmpeg-devel] [PATCH] libavformat/matroskaenc.c: Add option to set timecodescale

2021-01-13 Thread James Almer
On 1/13/2021 5:50 PM, Thierry Foucu wrote: a note with this change: If we set the timecodescale to microsecond, and we encode a 30 fps video, the duration of each frame are then 3 us. In this case, (int16_t)cluster_time != cluster_time Will almost every time faile and we will need to create a

Re: [FFmpeg-devel] [PATCH] libavformat/matroskaenc.c: Add option to set timecodescale

2021-01-13 Thread Thierry Foucu
a note with this change: If we set the timecodescale to microsecond, and we encode a 30 fps video, the duration of each frame are then 3 us. In this case, (int16_t)cluster_time != cluster_time Will almost every time faile and we will need to create a new block per frame (it seems to me at least

Re: [FFmpeg-devel] [PATCH] libavformat/matroskaenc.c: Add option to set timecodescale

2021-01-13 Thread Thierry Foucu
HI Lynne On Wed, Jan 13, 2021 at 10:30 AM Lynne wrote: > Jan 13, 2021, 18:46 by tfo...@gmail.com: > > > By default the time code scale in a MKV file in millisecond. With this > > option we can set the time code scale to microsecond or nanoseconds for > > very high frame rate. > > --- > > libavf

Re: [FFmpeg-devel] [PATCH] libavformat/matroskaenc.c: Add option to set timecodescale

2021-01-13 Thread James Almer
On 1/13/2021 2:46 PM, Thierry Foucu wrote: By default the time code scale in a MKV file in millisecond. With this option we can set the time code scale to microsecond or nanoseconds for very high frame rate. --- libavformat/matroskaenc.c | 11 +++ 1 file changed, 7 insertions(+), 4 del

Re: [FFmpeg-devel] [PATCH] libavformat/matroskaenc.c: Add option to set timecodescale

2021-01-13 Thread Lynne
Jan 13, 2021, 18:46 by tfo...@gmail.com: > By default the time code scale in a MKV file in millisecond. With this > option we can set the time code scale to microsecond or nanoseconds for > very high frame rate. > --- > libavformat/matroskaenc.c | 11 +++ > 1 file changed, 7 insertions(+)

[FFmpeg-devel] [PATCH] libavformat/matroskaenc.c: Add option to set timecodescale

2021-01-13 Thread Thierry Foucu
By default the time code scale in a MKV file in millisecond. With this option we can set the time code scale to microsecond or nanoseconds for very high frame rate. --- libavformat/matroskaenc.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/libavformat/matroskaenc