View Javadoc
1   /*
2    * Licensed to The Apereo Foundation under one or more contributor license
3    * agreements. See the NOTICE file distributed with this work for additional
4    * information regarding copyright ownership.
5    *
6    *
7    * The Apereo Foundation licenses this file to you under the Educational
8    * Community License, Version 2.0 (the "License"); you may not use this file
9    * except in compliance with the License. You may obtain a copy of the License
10   * at:
11   *
12   *   http://opensource.org/licenses/ecl2.txt
13   *
14   * Unless required by applicable law or agreed to in writing, software
15   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
17   * License for the specific language governing permissions and limitations under
18   * the License.
19   *
20   */
21  
22  
23  package org.opencastproject.inspection.ffmpeg.api;
24  
25  
26  /**
27   * This class bundles technical information about an audio stream.
28   */
29  public class AudioStreamMetadata extends StreamMetadata {
30  
31    private Integer channels;
32    private String channelPositions;
33  
34    // Hz
35    private Integer samplingRate;
36  
37    private Long samplingCount;
38  
39    private Float replayGain;
40    private Float replayGainPeak;
41  
42    private Float interleaveVideoFrames;
43    // ms
44    private Integer interleaveDuration;
45    // ms
46    private Integer interleavePreload;
47  
48    public Integer getChannels() {
49      return channels;
50    }
51  
52    public void setChannels(Integer channels) {
53      this.channels = channels;
54    }
55  
56    public String getChannelPositions() {
57      return channelPositions;
58    }
59  
60    public void setChannelPositions(String channelPositions) {
61      this.channelPositions = channelPositions;
62    }
63  
64    public Integer getSamplingRate() {
65      return samplingRate;
66    }
67  
68    public void setSamplingRate(Integer samplingRate) {
69      this.samplingRate = samplingRate;
70    }
71  
72    public Long getSamplingCount() {
73      return samplingCount;
74    }
75  
76    public void setSamplingCount(Long samplingCount) {
77      this.samplingCount = samplingCount;
78    }
79  
80    public Float getReplayGain() {
81      return replayGain;
82    }
83  
84    public void setReplayGain(Float replayGain) {
85      this.replayGain = replayGain;
86    }
87  
88    public Float getReplayGainPeak() {
89      return replayGainPeak;
90    }
91  
92    public void setReplayGainPeak(Float replayGainPeak) {
93      this.replayGainPeak = replayGainPeak;
94    }
95  
96    public Float getInterleaveVideoFrames() {
97      return interleaveVideoFrames;
98    }
99  
100   public void setInterleaveVideoFrames(Float interleaveVideoFrames) {
101     this.interleaveVideoFrames = interleaveVideoFrames;
102   }
103 
104   public Integer getInterleaveDuration() {
105     return interleaveDuration;
106   }
107 
108   public void setInterleaveDuration(Integer interleaveDuration) {
109     this.interleaveDuration = interleaveDuration;
110   }
111 
112   public Integer getInterleavePreload() {
113     return interleavePreload;
114   }
115 
116   public void setInterleavePreload(Integer interleavePreload) {
117     this.interleavePreload = interleavePreload;
118   }
119 
120 }