Re: [FFmpeg-devel] [PATCH 2/2] avformat/mpegtsenc: fix flushing of audio packets

2019-09-02 Thread Marton Balint
On Wed, 28 Aug 2019, Marton Balint wrote: On Wed, 28 Aug 2019, Andreas Håkon wrote: Hi Marton, ‐‐‐ Original Message ‐‐‐ On Tuesday, 27 de August de 2019 23:33, Marton Balint wrote: > Please, note that the main problem at time with the mpegts muxer is that all PES packets a

Re: [FFmpeg-devel] [PATCH 2/2] avformat/mpegtsenc: fix flushing of audio packets

2019-08-28 Thread Marton Balint
On Wed, 28 Aug 2019, Andreas Håkon wrote: Hi Marton, ‐‐‐ Original Message ‐‐‐ On Tuesday, 27 de August de 2019 23:33, Marton Balint wrote: > Please, note that the main problem at time with the mpegts muxer is that all PES packets are > written sequentially. And this generates a l

Re: [FFmpeg-devel] [PATCH 2/2] avformat/mpegtsenc: fix flushing of audio packets

2019-08-28 Thread Andreas Håkon
Hi Marton, ‐‐‐ Original Message ‐‐‐ On Tuesday, 27 de August de 2019 23:33, Marton Balint wrote: > > Please, note that the main problem at time with the mpegts muxer is that > > all PES packets are > > written sequentially. And this generates a lot of problems when the video > > PES p

Re: [FFmpeg-devel] [PATCH 2/2] avformat/mpegtsenc: fix flushing of audio packets

2019-08-27 Thread Marton Balint
On Tue, 27 Aug 2019, Andreas Håkon wrote: Hi Marton, ‐‐‐ Original Message ‐‐‐ On Tuesday, 27 de August de 2019 9:34, Marton Balint wrote: Fixes DTS < PCR errors with this command line: ./ffmpeg -loglevel verbose -y -f lavfi -i \ "testsrc=s=64x64:d=20,split=2[out0][tmp1];[tmp1]vfl

Re: [FFmpeg-devel] [PATCH 2/2] avformat/mpegtsenc: fix flushing of audio packets

2019-08-27 Thread Andreas Håkon
Hi Marton, ‐‐‐ Original Message ‐‐‐ On Tuesday, 27 de August de 2019 9:34, Marton Balint wrote: > Fixes DTS < PCR errors with this command line: > > ./ffmpeg -loglevel verbose -y -f lavfi -i \ > "testsrc=s=64x64:d=20,split=2[out0][tmp1];[tmp1]vflip[out1];sine=d=20,asetnsamples=1000[out2

[FFmpeg-devel] [PATCH 2/2] avformat/mpegtsenc: fix flushing of audio packets

2019-08-27 Thread Marton Balint
7d097a0fc57f0fa8385962a539c657c2f40b5ed0 had the same purpose as 3700f655c55e2001b57215210b957b169d66b50f but the former is much simpler, so let's remove the latter. Unfortunately both checks were wrong, because in order to make sure DTS > PCR we have to give us some headroom, so instead of using