/
InputVideoInformation.java
76 lines (66 loc) · 2.21 KB
/
InputVideoInformation.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
* This file is a part of VideoLibrary Interface
* Copyright © Vyacheslav Krylov (slavone@protonmail.ch) 2021
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.vkryl.videolib;
import android.content.Context;
import android.net.Uri;
import java.util.List;
/**
* Data class containing information about the input video container.
*/
public class InputVideoInformation {
/**
* Information about video track.
*/
public VideoTrackInformation videoTrack;
/**
* Information about audio track. Null, if input video doesn't have any.
*/
public AudioTrackInformation audioTrack;
/**
* True when subtitle tracks are present in the video container.
*/
public boolean hasSubtitleTracks;
/**
* Accurate duration in microseconds.
*/
public double durationUs;
/**
* List of suggested compression strategies generated by the library, in order of increasing quality.
*
* Last item in this list should match the resolution of the input video.
*
* For example, possible suggested output resolutions for 60fps 16:9 1920x1080 video:
*
* "144p" -> 256x144,
* "240p" -> 426x240,
* "360p" -> 480x360,
* "480p" -> 640x480,
* "720p" -> 1280x720,
* "720p60fps" -> 1280x720,
* "1080p" -> 1920x1080,
* "1080p60fps" -> 1920x1080.
*/
public List<CompressionConfigurationSuggestion> suggestedCompressionConfigurations;
/**
* Information about features that can be applied to the chosen video.
*/
public AvailableFeatures availableFeatures;
/**
* Arbitrary cache needed for any kind of optimizations in {@link VideoLibrary#correctTrimSegment(Context, Uri, TimeSegmentsCache, TimeSegment, boolean, Callback)}.
*/
public TimeSegmentsCache trimCache;
}