* added SD/HD binding
This commit is contained in:
parent
66e0789320
commit
1b942fcd15
@ -194,6 +194,15 @@ public class MediaBindingBean {
|
||||
}
|
||||
|
||||
|
||||
@Define("sdhd")
|
||||
public String getVideoDefinitionCategory() {
|
||||
String height = getMediaInfo(StreamKind.Video, 0, "Height");
|
||||
|
||||
// SD (less than 720 lines) or HD (more than 720 lines)
|
||||
return Integer.parseInt(height) < 720 ? "SD" : "HD";
|
||||
}
|
||||
|
||||
|
||||
@Define("crc32")
|
||||
public String getCRC32() throws IOException, InterruptedException {
|
||||
// use inferred media file
|
||||
|
@ -2,4 +2,4 @@
|
||||
parameter.exclude: ^StreamKind|Count$
|
||||
|
||||
# preview expressions (keys are tagged so they can be sorted alphabetically)
|
||||
expressions: n,y,s,e,t,airdate,startdate,absolute,special,imdb,episode,movie,vc,ac,cf,vf,af,resolution,source,group,crc32,fn,ext,file,pi,pn,media.title,media.durationString,media.overallBitRateString,video.codecID,video.frameRate,video.displayAspectRatioString,video.height,video.scanType,audio.format,audio.bitRateString,audio.language,text.codecInfo,text.language
|
||||
expressions: n,y,s,e,t,airdate,startdate,absolute,special,imdb,episode,movie,vc,ac,cf,vf,af,resolution,sdhd,source,group,crc32,fn,ext,file,pi,pn,media.title,media.durationString,media.overallBitRateString,video.codecID,video.frameRate,video.displayAspectRatioString,video.height,video.scanType,audio.format,audio.bitRateString,audio.language,text.codecInfo,text.language
|
||||
|
@ -189,6 +189,11 @@
|
||||
<td>video size</td>
|
||||
<td>1280x720</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>sdhd</td>
|
||||
<td>SD/HD video</td>
|
||||
<td>SD or HD</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>source</td>
|
||||
<td>source medium</td>
|
||||
|
Loading…
Reference in New Issue
Block a user