Re: [FFmpeg-devel] [PATCH v3 2/3] avformat/mpegtsenc: make first_pcr sync with the first valid dts

2020-10-26 Thread lance . lmwang
On Mon, Oct 26, 2020 at 09:13:08PM +0100, Marton Balint wrote: > > > On Mon, 26 Oct 2020, lance.lmw...@gmail.com wrote: > > > From: Limin Wang > > > > now first_pts assume dts will start from zero, if it's not true(copyts is > > enable), > > too many null packet will be inserted for cbr outpu

Re: [FFmpeg-devel] [PATCH v3 2/3] avformat/mpegtsenc: make first_pcr sync with the first valid dts

2020-10-26 Thread Marton Balint
On Mon, 26 Oct 2020, lance.lmw...@gmail.com wrote: From: Limin Wang now first_pts assume dts will start from zero, if it's not true(copyts is enable), too many null packet will be inserted for cbr output. Please test with below command, you'll get huge test.ts without the patch: ./ffmpeg -

[FFmpeg-devel] [PATCH v3 2/3] avformat/mpegtsenc: make first_pcr sync with the first valid dts

2020-10-26 Thread lance . lmwang
From: Limin Wang now first_pts assume dts will start from zero, if it's not true(copyts is enable), too many null packet will be inserted for cbr output. Please test with below command, you'll get huge test.ts without the patch: ./ffmpeg -y -copyts -i ../fate-suite/mpegts/loewe.ts -c:v libx264