* use "Encoded_Library_Name" MediaInfo property (renamed from Encoded_Library/Name in newer versions of libmediainfo)

This commit is contained in:
Reinhard Pointner 2015-10-14 06:13:50 +00:00
parent f02c4656b3
commit 4744546e13
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ public class MediaBindingBean {
@Define("vc")
public String getVideoCodec() {
// e.g. XviD, x264, DivX 5, MPEG-4 Visual, AVC, etc.
String codec = getMediaInfo(StreamKind.Video, 0, "Encoded_Library/Name", "CodecID/Hint", "Format");
String codec = getMediaInfo(StreamKind.Video, 0, "Encoded_Library_Name", "Encoded_Library/Name", "CodecID/Hint", "Format");
// get first token (e.g. DivX 5 => DivX)
return new Scanner(codec).next();