Search in sources :

Example 16 with Parser

use of org.fagu.fmv.soft.find.ExecSoftFoundFactory.Parser in project fmv by f-agu.

the class FFInfoTestCase method testFFMPEGFull_N70767.

/**
 * @throws Exception
 */
@Test
public void testFFMPEGFull_N70767() throws Exception {
    Parser parser = newParserFFMpeg();
    parser.readLine("ffmpeg version N-70767-gd24af70 Copyright (c) 2000-2015 the FFmpeg developers");
    parser.readLine("built with gcc 4.9.2 (GCC)");
    parser.readLine("configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib");
    parser.readLine("libavutil      54. 20.100 / 54. 20.100");
    parser.readLine("libavcodec     56. 28.100 / 56. 28.100");
    parser.readLine("libavformat    56. 25.101 / 56. 25.101");
    parser.readLine("libavdevice    56.  4.100 / 56.  4.100");
    parser.readLine("libavfilter     5. 12.100 /  5. 12.100");
    parser.readLine("libswscale      3.  1.101 /  3.  1.101");
    parser.readLine("libswresample   1.  1.100 /  1.  1.100");
    parser.readLine("libpostproc    53.  3.100 / 53.  3.100");
    assertFull(parser, null, date(2015, 1, 2), 70767);
}
Also used : Parser(org.fagu.fmv.soft.find.ExecSoftFoundFactory.Parser) Test(org.junit.Test)

Example 17 with Parser

use of org.fagu.fmv.soft.find.ExecSoftFoundFactory.Parser in project fmv by f-agu.

the class FFInfoTestCase method testFFMPEGFull_N63696.

/**
 * @throws Exception
 */
@Test
public void testFFMPEGFull_N63696() throws Exception {
    Parser parser = newParserFFMpeg();
    parser.readLine("ffmpeg version N-63696-g2c23f87");
    parser.readLine("built on Jun  1 2014 22:09:10 with gcc 4.8.2 (GCC)");
    parser.readLine("configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib");
    parser.readLine("libavutil      52. 89.100 / 52. 89.100");
    parser.readLine("libavcodec     55. 66.100 / 55. 66.100");
    parser.readLine("libavformat    55. 42.100 / 55. 42.100");
    parser.readLine("libavdevice    55. 13.101 / 55. 13.101");
    parser.readLine("libavfilter     4.  5.100 /  4.  5.100");
    parser.readLine("libswscale      2.  6.100 /  2.  6.100");
    parser.readLine("libswresample   0. 19.100 /  0. 19.100");
    parser.readLine("libpostproc    52.  3.100 / 52.  3.100");
    Calendar calendar = Calendar.getInstance();
    calendar.set(2014, Calendar.JUNE, 1, 22, 9, 10);
    assertFull(parser, null, calendar.getTime(), 63696);
}
Also used : Calendar(java.util.Calendar) Parser(org.fagu.fmv.soft.find.ExecSoftFoundFactory.Parser) Test(org.junit.Test)

Example 18 with Parser

use of org.fagu.fmv.soft.find.ExecSoftFoundFactory.Parser in project fmv by f-agu.

the class FFInfoTestCase method testFFMPEGFull_N2210.

/**
 * Sur estprod03 en mars 2015
 *
 * @throws Exception
 */
@Test
public void testFFMPEGFull_N2210() throws Exception {
    Parser parser = newParserFFMpeg();
    parser.readLine("ffmpeg version n2.2.10-2-g418e9a6");
    parser.readLine("built on Nov 14 2014 14:59:05 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-4)");
    parser.readLine("configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --extra-libs=-ldl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libvo-aacenc --enable-libxvid --disable-ffplay --enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthreads --arch=x86_64");
    parser.readLine("libavutil      52. 66.100 / 52. 66.100");
    parser.readLine("libavcodec     55. 52.102 / 55. 52.102");
    parser.readLine("libavformat    55. 33.100 / 55. 33.100");
    parser.readLine("libavdevice    55. 10.100 / 55. 10.100");
    parser.readLine("libavfilter     4.  2.100 /  4.  2.100");
    parser.readLine("libswscale      2.  5.102 /  2.  5.102");
    parser.readLine("libswresample   0. 18.100 /  0. 18.100");
    parser.readLine("libpostproc    52.  3.100 / 52.  3.100");
    Calendar calendar = Calendar.getInstance();
    calendar.set(2014, Calendar.NOVEMBER, 14, 14, 59, 05);
    assertFull(parser, new Version(2, 2, 10, 2), calendar.getTime(), null);
}
Also used : Version(org.fagu.version.Version) Calendar(java.util.Calendar) Parser(org.fagu.fmv.soft.find.ExecSoftFoundFactory.Parser) Test(org.junit.Test)

Example 19 with Parser

use of org.fagu.fmv.soft.find.ExecSoftFoundFactory.Parser in project fmv by f-agu.

the class IMInfoTestCase method assertInfo.

/**
 * @param firstLine
 * @param expectedVersion
 * @param expectedDate
 * @param expectedInfo
 * @throws IOException
 */
private void assertInfo(String firstLine, Version expectedVersion, Date expectedDate, String expectedInfo) throws IOException {
    Parser parser = newParser();
    parser.readLine(firstLine);
    assertInfo(parser, expectedVersion, expectedDate, expectedInfo);
}
Also used : Parser(org.fagu.fmv.soft.find.ExecSoftFoundFactory.Parser)

Example 20 with Parser

use of org.fagu.fmv.soft.find.ExecSoftFoundFactory.Parser in project fmv by f-agu.

the class IMInfoTestCase method testParseOnMac.

/**
 * @throws IOException
 */
@Test
public void testParseOnMac() throws IOException {
    Parser parser = newParser();
    parser.readLine("Version: ImageMagick 6.9.3-7 Q16 x86_64 2016-03-27 http://www.imagemagick.org");
    parser.readLine("Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC");
    parser.readLine("License: http://www.imagemagick.org/script/license.php");
    parser.readLine("Features: Cipher DPC Modules ");
    parser.readLine("Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png tiff xml zlib");
    assertInfo(parser, new Version(6, 9, 3, 7), d(2016, 3, 27), "6.9.3.7");
}
Also used : Version(org.fagu.version.Version) Parser(org.fagu.fmv.soft.find.ExecSoftFoundFactory.Parser) Test(org.junit.Test)

Aggregations

Parser (org.fagu.fmv.soft.find.ExecSoftFoundFactory.Parser)20 Test (org.junit.Test)18 Version (org.fagu.version.Version)14 Calendar (java.util.Calendar)3 Date (java.util.Date)2 SoftFound (org.fagu.fmv.soft.find.SoftFound)2 IOException (java.io.IOException)1 Arrays (java.util.Arrays)1 HashMap (java.util.HashMap)1 LinkedHashSet (java.util.LinkedHashSet)1 Map (java.util.Map)1 Set (java.util.Set)1 ExecutorService (java.util.concurrent.ExecutorService)1 Executors (java.util.concurrent.Executors)1 Future (java.util.concurrent.Future)1 Matcher (java.util.regex.Matcher)1 StringUtils (org.apache.commons.lang3.StringUtils)1 Executed (org.fagu.fmv.soft.SoftExecutor.Executed)1 ExecSoftFoundFactory (org.fagu.fmv.soft.find.ExecSoftFoundFactory)1 SoftFoundFactory (org.fagu.fmv.soft.find.SoftFoundFactory)1