Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avformat/movenc: implement writing of the btrt box
This is utilized by various media ingests to figure out the bit rate of the content you are pushing towards it, so write it for video, audio and subtitle tracks in case at least one nonzero value is available. It is only mentioned for timed metadata sample descriptions in QTFF, so limit it only to ISOBMFF (MODE_MP4) mode. Updates the FATE tests which have their results changed due to the 20 extra bytes being written per track.
- Loading branch information
Showing
11 changed files
with
60 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
1461be24bed65c04aab21659d6e7a3e1 *tests/data/lavf-fate/lavf.av1.mp4 | ||
55956 tests/data/lavf-fate/lavf.av1.mp4 | ||
d6afef355cf1bcf1a71b9cfb98c32fba *tests/data/lavf-fate/lavf.av1.mp4 | ||
55976 tests/data/lavf-fate/lavf.av1.mp4 | ||
tests/data/lavf-fate/lavf.av1.mp4 CRC=0x7c27cc15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
6d158b25efe7391c803f6f61c7a80aa0 *tests/data/lavf-fate/lavf.h264.mp4 | ||
547908 tests/data/lavf-fate/lavf.h264.mp4 | ||
fe299ea5205b71a48281f917b1256a5d *tests/data/lavf-fate/lavf.h264.mp4 | ||
547928 tests/data/lavf-fate/lavf.h264.mp4 | ||
tests/data/lavf-fate/lavf.h264.mp4 CRC=0x9da2c999 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
ebca72c186a4f3ba9bb17d9cb5b74fef *tests/data/lavf/lavf.mp4 | ||
312457 tests/data/lavf/lavf.mp4 | ||
71c4ff2e747fe6f8169ff29244fe181d *tests/data/lavf/lavf.mp4 | ||
312477 tests/data/lavf/lavf.mp4 | ||
tests/data/lavf/lavf.mp4 CRC=0x9d9a638a | ||
9944512475d82d2d601f3c96101bdf9c *tests/data/lavf/lavf.mp4 | ||
321343 tests/data/lavf/lavf.mp4 | ||
3c5734ad6d05e4afc2ccefef1385e882 *tests/data/lavf/lavf.mp4 | ||
321363 tests/data/lavf/lavf.mp4 | ||
tests/data/lavf/lavf.mp4 CRC=0xe8130120 | ||
7b3e71f294901067046c09f03a426bdc *tests/data/lavf/lavf.mp4 | ||
312001 tests/data/lavf/lavf.mp4 | ||
07348e31d11d92396e1eedc48ea14802 *tests/data/lavf/lavf.mp4 | ||
312021 tests/data/lavf/lavf.mp4 | ||
tests/data/lavf/lavf.mp4 CRC=0x9d9a638a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
b4e8871c504a22c8c874c7e845b73da7 *tests/data/fate/vsynth1-mpeg4.mp4 | ||
540085 tests/data/fate/vsynth1-mpeg4.mp4 | ||
a7e57333c57e0f8a551374b063a41d9e *tests/data/fate/vsynth1-mpeg4.mp4 | ||
540105 tests/data/fate/vsynth1-mpeg4.mp4 | ||
f80ec173d37f2f91add031e95579a220 *tests/data/fate/vsynth1-mpeg4.out.rawvideo | ||
stddev: 7.97 PSNR: 30.10 MAXDIFF: 105 bytes: 7603200/ 7603200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
adbd883d1701beabd04522d003dafab6 *tests/data/fate/vsynth2-mpeg4.mp4 | ||
159310 tests/data/fate/vsynth2-mpeg4.mp4 | ||
b751a2d3b4e693ca39d4fafa0175fc9d *tests/data/fate/vsynth2-mpeg4.mp4 | ||
159330 tests/data/fate/vsynth2-mpeg4.mp4 | ||
2645405bc5350acc85ad72f3352f5135 *tests/data/fate/vsynth2-mpeg4.out.rawvideo | ||
stddev: 6.02 PSNR: 32.53 MAXDIFF: 89 bytes: 7603200/ 7603200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ddcff996543900496f0b374a2d5cae74 *tests/data/fate/vsynth3-mpeg4.mp4 | ||
26017 tests/data/fate/vsynth3-mpeg4.mp4 | ||
7ca3bbb8bed55d558346d258f5bea440 *tests/data/fate/vsynth3-mpeg4.mp4 | ||
26037 tests/data/fate/vsynth3-mpeg4.mp4 | ||
fc0d8c1e58d254031e6207dfcae8f867 *tests/data/fate/vsynth3-mpeg4.out.rawvideo | ||
stddev: 9.66 PSNR: 28.43 MAXDIFF: 79 bytes: 86700/ 86700 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
4a029747434d24d128b078a5e6aa1e88 *tests/data/fate/vsynth_lena-mpeg4.mp4 | ||
119722 tests/data/fate/vsynth_lena-mpeg4.mp4 | ||
a0d0edee19f6658d0e93d294e32a1a6f *tests/data/fate/vsynth_lena-mpeg4.mp4 | ||
119742 tests/data/fate/vsynth_lena-mpeg4.mp4 | ||
9a1e085d9e488c5ead0c940c9612a37a *tests/data/fate/vsynth_lena-mpeg4.out.rawvideo | ||
stddev: 5.34 PSNR: 33.57 MAXDIFF: 83 bytes: 7603200/ 7603200 |