1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-20 07:48:15 +02:00
FFmpeg/libavformat
Limin Wang 6f36eb0da7 avformat/mpegtsenc: make first_pcr sync with the first valid dts
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 -x264opts \
   nal-hrd=cbr:force-cfr=1 -b:v 3500k -minrate 3500k -maxrate 3500k -bufsize \
   1000k  -c:a mp2 -muxrate 4500k  -vframes 1000 test.ts

Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2020-10-27 18:18:24 +08:00
..
2020-10-03 21:50:59 +02:00
2019-12-12 19:25:33 +01:00
2020-10-25 23:44:26 +10:00
2020-10-25 23:44:26 +10:00
2019-12-12 19:25:33 +01:00
2020-10-06 00:01:35 +08:00
2020-10-06 00:01:27 +08:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2020-03-17 16:05:49 +01:00
2019-12-12 19:25:33 +01:00
2020-03-17 16:04:42 +01:00
2020-10-24 19:11:12 +02:00
2020-03-17 16:08:13 +01:00
2020-10-20 13:00:04 +02:00
2020-09-25 10:21:28 +02:00
2020-10-07 22:16:09 +02:00
2020-09-24 13:38:28 +02:00
2020-10-25 09:49:26 +01:00
2020-09-18 11:30:03 +02:00
2020-10-25 23:44:26 +10:00
2020-06-18 21:31:13 +02:00
2019-10-08 13:47:16 +08:00
2020-09-03 18:11:00 +02:00
2019-12-12 19:25:33 +01:00
2020-04-19 02:37:46 +02:00
2020-09-03 18:03:18 +02:00
2020-10-24 19:11:12 +02:00
2020-03-17 22:46:36 +01:00
2019-12-12 19:25:33 +01:00
2020-10-25 09:49:31 +01:00
2020-06-06 00:25:00 +02:00
2020-06-06 00:25:00 +02:00
2020-02-16 12:54:57 +01:00
2019-12-12 19:25:33 +01:00
2019-03-20 18:38:48 +01:00
2020-09-13 16:05:01 +02:00
2020-06-04 10:52:42 +02:00
2020-06-13 00:43:09 +02:00
2020-10-22 20:53:57 +08:00
2020-10-25 23:44:26 +10:00
2020-02-20 14:41:26 +01:00
2020-03-12 18:47:39 +01:00
2020-07-26 16:47:01 +02:00
2020-10-21 17:21:41 +02:00