Re: [FFmpeg-devel] [PATCH 1/3] avformat/mpegtsenc: use total_size instead of avio_tell()

2020-10-21 Thread lance . lmwang
On Wed, Oct 21, 2020 at 11:39:10PM +0200, Marton Balint wrote: > > > On Wed, 21 Oct 2020, lance.lmw...@gmail.com wrote: > > > From: Limin Wang > > > > avio_tell() failed to get corrected data size in some condition. > > Please explain. E.g. avio_tell() fails to get the amount of data written

Re: [FFmpeg-devel] [PATCH 1/3] avformat/mpegtsenc: use total_size instead of avio_tell()

2020-10-21 Thread lance . lmwang
On Wed, Oct 21, 2020 at 11:39:10PM +0200, Marton Balint wrote: > > > On Wed, 21 Oct 2020, lance.lmw...@gmail.com wrote: > > > From: Limin Wang > > > > avio_tell() failed to get corrected data size in some condition. > > Please explain. E.g. avio_tell() fails to get the amount of data written

Re: [FFmpeg-devel] [PATCH 1/3] avformat/mpegtsenc: use total_size instead of avio_tell()

2020-10-21 Thread Marton Balint
On Wed, 21 Oct 2020, lance.lmw...@gmail.com wrote: From: Limin Wang avio_tell() failed to get corrected data size in some condition. Please explain. E.g. avio_tell() fails to get the amount of data written so far when the underlying IO context is flushed to segments. Please test with

[FFmpeg-devel] [PATCH 1/3] avformat/mpegtsenc: use total_size instead of avio_tell()

2020-10-21 Thread lance . lmwang
From: Limin Wang avio_tell() failed to get corrected data size in some condition. Please test with below command: $ ./ffmpeg -f lavfi -i testsrc=duration=100:size=vga -c:v libx264 -x264opts \ nal-hrd=cbr:force-cfr=1 -b:v 500k -minrate 500k -maxrate 500k -bufsize 500k \ -f hls -hls_time 10