Update addMetadata method in Transformer/Muxer.java
This is to align the interface with Muxer/Muxer.java and then finally replace it. PiperOrigin-RevId: 625283725
This commit is contained in:
parent
236c341168
commit
794900bfb8
@ -36,7 +36,7 @@ public interface Muxer {
|
||||
TrackToken trackToken, ByteBuffer byteBuffer, MediaCodec.BufferInfo bufferInfo)
|
||||
throws IOException;
|
||||
|
||||
/** Adds metadata for the output file. */
|
||||
/** Adds {@linkplain Metadata.Entry metadata} about the output file. */
|
||||
void addMetadata(Metadata.Entry metadata);
|
||||
|
||||
/** Closes the file. */
|
||||
|
@ -25,8 +25,9 @@ format video:
|
||||
initializationData:
|
||||
data = length 29, hash 4746B5D9
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[Mp4Timestamp: creation time=3718109610, modification time=3718109610, timescale=1000]
|
||||
container metadata = entries=[TSSE: description=null: values=[Lavf58.45.100]]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=3718109610, modification time=3718109610, timescale=1000
|
||||
entry = TSSE: description=null: values=[Lavf58.45.100]
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 1582745311
|
||||
|
@ -13,7 +13,9 @@ format video:
|
||||
initializationData:
|
||||
data = length 30, hash 9DFD8D5
|
||||
data = length 9, hash FBADD682
|
||||
container metadata = entries=[TSSE: description=null: values=[Lavf60.3.100], Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
entry = TSSE: description=null: values=[Lavf60.3.100]
|
||||
sample:
|
||||
trackType = video
|
||||
dataHashCode = 1491581480
|
||||
|
@ -11,7 +11,9 @@ format audio:
|
||||
metadata = entries=[TSSE: description=null: values=[Lavf60.3.100], Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
initializationData:
|
||||
data = length 2, hash 5FF
|
||||
container metadata = entries=[TSSE: description=null: values=[Lavf60.3.100], Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
entry = TSSE: description=null: values=[Lavf60.3.100]
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = -620111888
|
||||
|
@ -13,7 +13,10 @@ format video:
|
||||
initializationData:
|
||||
data = length 29, hash 4746B5D9
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[TSSE: description=null: values=[Lavf56.1.0], xyz: latitude=40.68, longitude=-74.5, Mp4Timestamp: creation time=3547558895, modification time=3547558895, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=3547558895, modification time=3547558895, timescale=1000
|
||||
entry = TSSE: description=null: values=[Lavf56.1.0]
|
||||
entry = xyz: latitude=40.68, longitude=-74.5
|
||||
sample:
|
||||
trackType = video
|
||||
dataHashCode = -770308242
|
||||
|
@ -10,7 +10,10 @@ format audio:
|
||||
metadata = entries=[TSSE: description=null: values=[Lavf56.1.0], xyz: latitude=40.68, longitude=-74.5, Mp4Timestamp: creation time=3547558895, modification time=3547558895, timescale=1000]
|
||||
initializationData:
|
||||
data = length 2, hash 5F7
|
||||
container metadata = entries=[TSSE: description=null: values=[Lavf56.1.0], xyz: latitude=40.68, longitude=-74.5, Mp4Timestamp: creation time=3547558895, modification time=3547558895, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=3547558895, modification time=3547558895, timescale=1000
|
||||
entry = TSSE: description=null: values=[Lavf56.1.0]
|
||||
entry = xyz: latitude=40.68, longitude=-74.5
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 1205768497
|
||||
|
@ -25,8 +25,13 @@ format video:
|
||||
initializationData:
|
||||
data = length 29, hash 4746B5D9
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[TSSE: description=null: values=[Lavf56.1.0], xyz: latitude=40.68, longitude=-74.5, Mp4Timestamp: creation time=3547558895, modification time=3547558895, timescale=1000]
|
||||
container metadata = entries=[TSSE: description=null: values=[Lavf56.1.0], xyz: latitude=40.68, longitude=-74.5, Mp4Timestamp: creation time=3547558895, modification time=3547558895, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=3547558895, modification time=3547558895, timescale=1000
|
||||
entry = Mp4Timestamp: creation time=3547558895, modification time=3547558895, timescale=1000
|
||||
entry = TSSE: description=null: values=[Lavf56.1.0]
|
||||
entry = TSSE: description=null: values=[Lavf56.1.0]
|
||||
entry = xyz: latitude=40.68, longitude=-74.5
|
||||
entry = xyz: latitude=40.68, longitude=-74.5
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 1205768497
|
||||
|
@ -25,8 +25,13 @@ format video:
|
||||
initializationData:
|
||||
data = length 29, hash 4746B5D9
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[TSSE: description=null: values=[Lavf56.1.0], xyz: latitude=40.68, longitude=-74.5, Mp4Timestamp: creation time=3547558895, modification time=3547558895, timescale=1000]
|
||||
container metadata = entries=[TSSE: description=null: values=[Lavf56.1.0], xyz: latitude=40.68, longitude=-74.5, Mp4Timestamp: creation time=3547558895, modification time=3547558895, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=3547558895, modification time=3547558895, timescale=1000
|
||||
entry = Mp4Timestamp: creation time=3547558895, modification time=3547558895, timescale=1000
|
||||
entry = TSSE: description=null: values=[Lavf56.1.0]
|
||||
entry = TSSE: description=null: values=[Lavf56.1.0]
|
||||
entry = xyz: latitude=40.68, longitude=-74.5
|
||||
entry = xyz: latitude=40.68, longitude=-74.5
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 1205768497
|
||||
|
@ -26,8 +26,13 @@ format video:
|
||||
initializationData:
|
||||
data = length 29, hash 4746B5D9
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[TSSE: description=null: values=[Lavf56.1.0], xyz: latitude=40.68, longitude=-74.5, Mp4Timestamp: creation time=3547558895, modification time=3547558895, timescale=1000]
|
||||
container metadata = entries=[TSSE: description=null: values=[Lavf56.1.0], xyz: latitude=40.68, longitude=-74.5, Mp4Timestamp: creation time=3547558895, modification time=3547558895, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=3547558895, modification time=3547558895, timescale=1000
|
||||
entry = Mp4Timestamp: creation time=3547558895, modification time=3547558895, timescale=1000
|
||||
entry = TSSE: description=null: values=[Lavf56.1.0]
|
||||
entry = TSSE: description=null: values=[Lavf56.1.0]
|
||||
entry = xyz: latitude=40.68, longitude=-74.5
|
||||
entry = xyz: latitude=40.68, longitude=-74.5
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 1205768497
|
||||
|
@ -19,7 +19,10 @@ format video:
|
||||
initializationData:
|
||||
data = length 29, hash 4746B5D9
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[TSSE: description=null: values=[Lavf56.1.0], xyz: latitude=40.68, longitude=-74.5, Mp4Timestamp: creation time=3547558895, modification time=3547558895, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=3547558895, modification time=3547558895, timescale=1000
|
||||
entry = TSSE: description=null: values=[Lavf56.1.0]
|
||||
entry = xyz: latitude=40.68, longitude=-74.5
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 1742602241
|
||||
|
@ -19,7 +19,10 @@ format video:
|
||||
initializationData:
|
||||
data = length 29, hash 4746B5D9
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[TSSE: description=null: values=[Lavf56.1.0], xyz: latitude=40.68, longitude=-74.5, Mp4Timestamp: creation time=3547558895, modification time=3547558895, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=3547558895, modification time=3547558895, timescale=1000
|
||||
entry = TSSE: description=null: values=[Lavf56.1.0]
|
||||
entry = xyz: latitude=40.68, longitude=-74.5
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 1742602241
|
||||
|
@ -25,8 +25,9 @@ format video:
|
||||
initializationData:
|
||||
data = length 29, hash 4746B5D9
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[Mp4Timestamp: creation time=3718109610, modification time=3718109610, timescale=1000]
|
||||
container metadata = entries=[TSSE: description=null: values=[Lavf58.45.100]]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=3718109610, modification time=3718109610, timescale=1000
|
||||
entry = TSSE: description=null: values=[Lavf58.45.100]
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 1582745311
|
||||
|
@ -16,7 +16,8 @@ format video:
|
||||
initializationData:
|
||||
data = length 29, hash 4746B5D9
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[Mp4Timestamp: creation time=3718109610, modification time=3718109610, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=3718109610, modification time=3718109610, timescale=1000
|
||||
sample:
|
||||
trackType = video
|
||||
dataHashCode = -770308242
|
||||
|
@ -22,7 +22,8 @@ format video:
|
||||
initializationData:
|
||||
data = length 29, hash 4746B5D9
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[Mp4Timestamp: creation time=3718109610, modification time=3718109610, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=3718109610, modification time=3718109610, timescale=1000
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 1742602241
|
||||
|
@ -13,7 +13,13 @@ format video:
|
||||
initializationData:
|
||||
data = length 33, hash D3FB879D
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[mdta: key=com.android.version, value=10, mdta: key=com.android.video.temporal_layers_count, value=4, mdta: key=com.android.capture.fps, value=240.0, SlowMotion: segments=[Segment: startTimeMs=88, endTimeMs=879, speedDivisor=2, Segment: startTimeMs=1255, endTimeMs=1970, speedDivisor=8], smta: captureFrameRate=240.0, svcTemporalLayerCount=4, Mp4Timestamp: creation time=3686904890, modification time=3686904890, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=3686904890, modification time=3686904890, timescale=1000
|
||||
entry = SlowMotion: segments=[Segment: startTimeMs=88, endTimeMs=879, speedDivisor=2, Segment: startTimeMs=1255, endTimeMs=1970, speedDivisor=8]
|
||||
entry = mdta: key=com.android.capture.fps, value=240.0
|
||||
entry = mdta: key=com.android.version, value=10
|
||||
entry = mdta: key=com.android.video.temporal_layers_count, value=4
|
||||
entry = smta: captureFrameRate=240.0, svcTemporalLayerCount=4
|
||||
sample:
|
||||
trackType = video
|
||||
dataHashCode = 1949079733
|
||||
|
@ -20,8 +20,11 @@ format video:
|
||||
initializationData:
|
||||
data = length 29, hash 4746B5D9
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[xyz: latitude=40.68, longitude=-74.5, Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata = entries=[xyz: latitude=40.68, longitude=-74.5, Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
entry = xyz: latitude=40.68, longitude=-74.5
|
||||
entry = xyz: latitude=40.68, longitude=-74.5
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = -1438864202
|
||||
|
@ -19,7 +19,9 @@ format video:
|
||||
initializationData:
|
||||
data = length 29, hash 4746B5D9
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[xyz: latitude=40.68, longitude=-74.5, Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
entry = xyz: latitude=40.68, longitude=-74.5
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 1742602241
|
||||
|
@ -20,8 +20,11 @@ format video:
|
||||
initializationData:
|
||||
data = length 29, hash 4746B5D9
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[xyz: latitude=40.68, longitude=-74.5, Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata = entries=[xyz: latitude=40.68, longitude=-74.5, Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
entry = xyz: latitude=40.68, longitude=-74.5
|
||||
entry = xyz: latitude=40.68, longitude=-74.5
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 1742602241
|
||||
|
@ -29,8 +29,11 @@ format video:
|
||||
initializationData:
|
||||
data = length 31, hash 4B108214
|
||||
data = length 9, hash FBA158BB
|
||||
container metadata = entries=[TSSE: description=null: values=[Lavf58.76.100], Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata = entries=[TSSE: description=null: values=[Lavf58.76.100], Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
entry = TSSE: description=null: values=[Lavf58.76.100]
|
||||
entry = TSSE: description=null: values=[Lavf58.76.100]
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 620415738
|
||||
|
@ -29,8 +29,11 @@ format video:
|
||||
initializationData:
|
||||
data = length 31, hash 4B108214
|
||||
data = length 9, hash FBA158BB
|
||||
container metadata = entries=[TSSE: description=null: values=[Lavf58.76.100], Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata = entries=[TSSE: description=null: values=[Lavf58.76.100], Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
entry = TSSE: description=null: values=[Lavf58.76.100]
|
||||
entry = TSSE: description=null: values=[Lavf58.76.100]
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = -119592194
|
||||
|
@ -29,6 +29,9 @@ format video:
|
||||
initializationData:
|
||||
data = length 31, hash 4B108214
|
||||
data = length 9, hash FBA158BB
|
||||
container metadata = entries=[TSSE: description=null: values=[Lavf58.76.100], Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata = entries=[TSSE: description=null: values=[Lavf58.76.100], Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
entry = TSSE: description=null: values=[Lavf58.76.100]
|
||||
entry = TSSE: description=null: values=[Lavf58.76.100]
|
||||
released = true
|
||||
|
@ -29,8 +29,11 @@ format video:
|
||||
initializationData:
|
||||
data = length 31, hash 4B108214
|
||||
data = length 9, hash FBA158BB
|
||||
container metadata = entries=[TSSE: description=null: values=[Lavf58.76.100], Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata = entries=[TSSE: description=null: values=[Lavf58.76.100], Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
entry = TSSE: description=null: values=[Lavf58.76.100]
|
||||
entry = TSSE: description=null: values=[Lavf58.76.100]
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = -119592194
|
||||
|
@ -30,8 +30,11 @@ format video:
|
||||
initializationData:
|
||||
data = length 31, hash 4B108214
|
||||
data = length 9, hash FBA158BB
|
||||
container metadata = entries=[TSSE: description=null: values=[Lavf58.76.100], Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata = entries=[TSSE: description=null: values=[Lavf58.76.100], Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
entry = TSSE: description=null: values=[Lavf58.76.100]
|
||||
entry = TSSE: description=null: values=[Lavf58.76.100]
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = -119592194
|
||||
|
@ -22,8 +22,9 @@ format video:
|
||||
initializationData:
|
||||
data = length 34, hash 8D738018
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata = entries=[Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 215569108
|
||||
|
@ -22,8 +22,9 @@ format video:
|
||||
initializationData:
|
||||
data = length 34, hash 8D738018
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata = entries=[Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 1831484889
|
||||
|
@ -22,8 +22,9 @@ format video:
|
||||
initializationData:
|
||||
data = length 34, hash 8D738018
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata = entries=[Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 1831484889
|
||||
|
@ -22,8 +22,9 @@ format video:
|
||||
initializationData:
|
||||
data = length 34, hash 8D738018
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata = entries=[Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 1831484889
|
||||
|
@ -22,8 +22,9 @@ format video:
|
||||
initializationData:
|
||||
data = length 34, hash 8D738018
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata = entries=[Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 1831484889
|
||||
|
@ -22,8 +22,9 @@ format video:
|
||||
initializationData:
|
||||
data = length 34, hash 8D738018
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata = entries=[Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = -1687632261
|
||||
|
@ -21,7 +21,8 @@ format video:
|
||||
initializationData:
|
||||
data = length 34, hash 8D738018
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 1742602241
|
||||
|
@ -22,8 +22,9 @@ format video:
|
||||
initializationData:
|
||||
data = length 34, hash 8D738018
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata = entries=[Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 1742602241
|
||||
|
@ -21,7 +21,8 @@ format video:
|
||||
initializationData:
|
||||
data = length 34, hash 8D738018
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 1742602241
|
||||
|
@ -21,7 +21,8 @@ format video:
|
||||
initializationData:
|
||||
data = length 34, hash 8D738018
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 1742602241
|
||||
|
@ -21,7 +21,8 @@ format video:
|
||||
initializationData:
|
||||
data = length 34, hash 8D738018
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 1742602241
|
||||
|
@ -21,7 +21,8 @@ format video:
|
||||
initializationData:
|
||||
data = length 34, hash 8D738018
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 1742602241
|
||||
|
@ -21,7 +21,8 @@ format video:
|
||||
initializationData:
|
||||
data = length 34, hash 8D738018
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 1742602241
|
||||
|
@ -21,7 +21,8 @@ format video:
|
||||
initializationData:
|
||||
data = length 34, hash 8D738018
|
||||
data = length 10, hash 7A0D0F2B
|
||||
container metadata = entries=[Mp4Timestamp: creation time=0, modification time=0, timescale=1000]
|
||||
container metadata:
|
||||
entry = Mp4Timestamp: creation time=0, modification time=0, timescale=1000
|
||||
sample:
|
||||
trackType = audio
|
||||
dataHashCode = 1742602241
|
||||
|
@ -463,8 +463,8 @@ public class TransformerPauseResumeTest {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addMetadata(Metadata metadata) {
|
||||
wrappedMuxer.addMetadata(metadata);
|
||||
public void addMetadataEntry(Metadata.Entry metadataEntry) {
|
||||
wrappedMuxer.addMetadataEntry(metadataEntry);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -76,8 +76,8 @@ public final class DefaultMuxer implements Muxer {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addMetadata(Metadata metadata) {
|
||||
muxer.addMetadata(metadata);
|
||||
public void addMetadataEntry(Metadata.Entry metadataEntry) {
|
||||
muxer.addMetadataEntry(metadataEntry);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -188,13 +188,10 @@ import java.nio.ByteBuffer;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addMetadata(Metadata metadata) {
|
||||
for (int i = 0; i < metadata.length(); i++) {
|
||||
Metadata.Entry entry = metadata.get(i);
|
||||
if (entry instanceof Mp4LocationData) {
|
||||
public void addMetadataEntry(Metadata.Entry metadataEntry) {
|
||||
if (metadataEntry instanceof Mp4LocationData) {
|
||||
mediaMuxer.setLocation(
|
||||
((Mp4LocationData) entry).latitude, ((Mp4LocationData) entry).longitude);
|
||||
}
|
||||
((Mp4LocationData) metadataEntry).latitude, ((Mp4LocationData) metadataEntry).longitude);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -220,12 +220,9 @@ public final class InAppMuxer implements Muxer {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addMetadata(Metadata metadata) {
|
||||
for (int i = 0; i < metadata.length(); i++) {
|
||||
Metadata.Entry entry = metadata.get(i);
|
||||
if (Mp4Utils.isMetadataSupported(entry)) {
|
||||
metadataEntries.add(entry);
|
||||
}
|
||||
public void addMetadataEntry(Metadata.Entry metadataEntry) {
|
||||
if (Mp4Utils.isMetadataSupported(metadataEntry)) {
|
||||
metadataEntries.add(metadataEntry);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -90,8 +90,8 @@ public interface Muxer {
|
||||
int trackIndex, ByteBuffer data, long presentationTimeUs, @C.BufferFlags int flags)
|
||||
throws MuxerException;
|
||||
|
||||
/** Adds {@link Metadata} about the output file. */
|
||||
void addMetadata(Metadata metadata);
|
||||
/** Adds {@linkplain Metadata.Entry metadata} about the output file. */
|
||||
void addMetadataEntry(Metadata.Entry metadataEntry);
|
||||
|
||||
/**
|
||||
* Finishes writing the output and releases any resources associated with muxing.
|
||||
|
@ -472,7 +472,9 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||
trackTypeToInfo.put(trackType, trackInfo);
|
||||
|
||||
if (format.metadata != null) {
|
||||
muxer.addMetadata(format.metadata);
|
||||
for (int i = 0; i < format.metadata.length(); i++) {
|
||||
muxer.addMetadataEntry(format.metadata.get(i));
|
||||
}
|
||||
}
|
||||
|
||||
if (trackTypeToInfo.size() == trackCount) {
|
||||
|
@ -86,7 +86,7 @@ public final class CapturingMuxer implements Muxer, Dumpable {
|
||||
private final SparseArray<DumpableFormat> dumpableFormatByTrackType;
|
||||
private final SparseArray<DumpableStream> dumpableStreamByTrackType;
|
||||
private final Map<Integer, Integer> trackIndexToType;
|
||||
private final ArrayList<Metadata> metadataList;
|
||||
private final ArrayList<Metadata.Entry> metadataList;
|
||||
private boolean released;
|
||||
|
||||
/** Creates a new test muxer. */
|
||||
@ -133,9 +133,9 @@ public final class CapturingMuxer implements Muxer, Dumpable {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addMetadata(Metadata metadata) {
|
||||
metadataList.add(metadata);
|
||||
wrappedMuxer.addMetadata(metadata);
|
||||
public void addMetadataEntry(Metadata.Entry metadataEntry) {
|
||||
metadataList.add(metadataEntry);
|
||||
wrappedMuxer.addMetadataEntry(metadataEntry);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -152,9 +152,13 @@ public final class CapturingMuxer implements Muxer, Dumpable {
|
||||
dumpableFormatByTrackType.valueAt(i).dump(dumper);
|
||||
}
|
||||
|
||||
Collections.sort(metadataList, Comparator.comparing(Metadata::toString));
|
||||
for (Metadata metadata : metadataList) {
|
||||
dumper.add("container metadata", metadata);
|
||||
if (!metadataList.isEmpty()) {
|
||||
Collections.sort(metadataList, Comparator.comparing(Metadata.Entry::toString));
|
||||
dumper.startBlock("container metadata");
|
||||
for (Metadata.Entry metadata : metadataList) {
|
||||
dumper.add("entry", metadata);
|
||||
}
|
||||
dumper.endBlock();
|
||||
}
|
||||
|
||||
for (int i = 0; i < dumpableStreamByTrackType.size(); i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user