Ffmpeg Cli Wrapper
Ffmpeg Cli Wrapper
Release 0.6
Andrew Brampton
1 net.bramp.commons.lang3.math.gson 3
1.1 FractionAdapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1.1 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1.2 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2 net.bramp.ffmpeg 5
2.1 FFcommon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.1.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.1.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.1.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2 FFmpeg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.2.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.3 FFmpegExecutor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.3.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.3.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.3.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.4 FFmpegUtils . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.4.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.4.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.4.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.5 FFprobe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.5.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.5.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.5.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.6 ProcessFunction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.6.1 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.7 RunProcessFunction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.7.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.7.2 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3 net.bramp.ffmpeg.builder 15
3.1 FFmpegBuilder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.1.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.1.2 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.2 FFmpegBuilder.Strict . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.2.1 Enum Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
i
3.3 FFmpegBuilder.Verbosity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.3.1 Enum Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.4 FFmpegOutputBuilder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.4.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.4.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
3.4.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
3.5 MetadataSpecifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
3.5.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
3.5.2 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
3.6 StreamSpecifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
3.6.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
3.6.2 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
3.7 StreamSpecifierType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
3.7.1 Enum Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
4 net.bramp.ffmpeg.gson 37
4.1 LowercaseEnumTypeAdapterFactory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
4.1.1 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
4.2 NamedBitsetAdapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
4.2.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
4.2.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
4.2.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5 net.bramp.ffmpeg.info 39
5.1 Codec . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
5.1.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
5.1.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
5.1.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
5.2 Codec.Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
5.2.1 Enum Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.3 Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.3.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.3.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.3.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
6 net.bramp.ffmpeg.io 43
6.1 CRC32InputStream . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
6.1.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
6.1.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
6.1.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
6.2 LoggingFilterReader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
6.2.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
6.2.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
6.2.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
6.3 ProcessUtils . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
6.3.1 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
7 net.bramp.ffmpeg.job 47
7.1 FFmpegJob . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
7.1.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
7.1.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
7.1.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
7.2 FFmpegJob.State . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
7.2.1 Enum Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
7.3 SinglePassFFmpegJob . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
ii
7.3.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
7.3.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
7.3.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
7.4 TwoPassFFmpegJob . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
7.4.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
7.4.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
7.4.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
8 net.bramp.ffmpeg.modelmapper 51
8.1 Mapper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
8.1.1 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
8.2 Mapper.AudioWrapper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
8.2.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
8.2.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
8.3 Mapper.VideoWrapper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
8.3.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
8.3.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
8.4 NotDefaultCondition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
8.4.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
8.4.2 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
9 net.bramp.ffmpeg.nut 55
9.1 Frame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
9.1.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
9.1.2 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
9.2 FrameCode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
9.2.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
9.2.2 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
9.3 IndexPacket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
9.4 InfoPacket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
9.5 MainHeaderPacket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
9.5.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
9.5.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
9.5.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
9.6 NutDataInputStream . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
9.6.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
9.6.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
9.6.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
9.7 NutReader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
9.7.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
9.7.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
9.7.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
9.8 NutReaderListener . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
9.8.1 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
9.9 Packet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
9.9.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
9.9.2 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
9.10 Packet.Startcode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
9.10.1 Enum Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
9.11 PacketFooter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
9.11.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
9.11.2 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
9.12 PacketHeader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
9.12.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
iii
9.12.2 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
9.13 RawHandler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
9.13.1 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
9.14 Stream . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
9.14.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
9.14.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
9.15 StreamHeaderPacket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
9.15.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
9.15.2 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
9.16 SyncPointPacket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
10 net.bramp.ffmpeg.options 71
10.1 AudioEncodingOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
10.1.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
10.1.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
10.2 EncodingOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
10.2.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
10.2.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
10.2.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
10.3 MainEncodingOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
10.3.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
10.3.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
10.4 VideoEncodingOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
10.4.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
10.4.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
11 net.bramp.ffmpeg.probe 75
11.1 FFmpegDisposition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
11.1.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
11.2 FFmpegError . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
11.2.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
11.3 FFmpegFormat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
11.3.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
11.4 FFmpegProbeResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
11.4.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
11.4.2 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
11.5 FFmpegStream . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
11.5.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
11.6 FFmpegStream.CodecType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
11.6.1 Enum Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
12 net.bramp.ffmpeg.progress 83
12.1 AbstractSocketProgressParser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
12.1.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
12.1.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
12.1.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
12.2 Progress . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
12.2.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
12.2.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
12.2.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
12.3 ProgressListener . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
12.3.1 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
12.4 ProgressParser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
12.4.1 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
iv
12.5 StreamProgressParser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
12.5.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
12.5.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
12.5.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
12.6 TcpProgressParser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
12.6.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
12.6.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
12.6.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
12.7 TcpProgressParserRunnable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
12.7.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
12.7.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
12.7.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
12.8 UdpProgressParser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
12.8.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
12.8.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
12.8.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
12.9 UdpProgressParserRunnable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
12.9.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
12.9.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
12.9.3 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
v
vi
ffmpeg-cli-wrapper Documentation, Release 0.6
Contents:
Contents 1
ffmpeg-cli-wrapper Documentation, Release 0.6
2 Contents
CHAPTER 1
net.bramp.commons.lang3.math.gson
1.1 FractionAdapter
1.1.1 Constructors
FractionAdapter
public FractionAdapter()
1.1.2 Methods
read
write
3
ffmpeg-cli-wrapper Documentation, Release 0.6
4 Chapter 1. net.bramp.commons.lang3.math.gson
CHAPTER 2
net.bramp.ffmpeg
2.1 FFcommon
2.1.1 Fields
path
runFunc
version
String version
Version string
2.1.2 Constructors
FFcommon
FFcommon
5
ffmpeg-cli-wrapper Documentation, Release 0.6
2.1.3 Methods
getPath
path
run
throwOnError
version
wrapInReader
2.2 FFmpeg
2.2.1 Fields
AUDIO_DEPTH_DBL
6 Chapter 2. net.bramp.ffmpeg
ffmpeg-cli-wrapper Documentation, Release 0.6
AUDIO_DEPTH_FLT
AUDIO_DEPTH_S16
AUDIO_DEPTH_S32
AUDIO_DEPTH_U8
AUDIO_FORMAT_DBL
AUDIO_FORMAT_FLT
AUDIO_FORMAT_S16
AUDIO_FORMAT_S32
AUDIO_FORMAT_U8
AUDIO_MONO
AUDIO_SAMPLE_11025
2.2. FFmpeg 7
ffmpeg-cli-wrapper Documentation, Release 0.6
AUDIO_SAMPLE_12000
AUDIO_SAMPLE_16000
AUDIO_SAMPLE_22050
AUDIO_SAMPLE_32000
AUDIO_SAMPLE_44100
AUDIO_SAMPLE_48000
AUDIO_SAMPLE_8000
AUDIO_SAMPLE_96000
AUDIO_STEREO
CODECS_REGEX
DEFAULT_PATH
8 Chapter 2. net.bramp.ffmpeg
ffmpeg-cli-wrapper Documentation, Release 0.6
FFMPEG
FORMATS_REGEX
FPS_23_976
FPS_24
FPS_29_97
FPS_30
codecs
List<Codec> codecs
Supported codecs
formats
List<Format> formats
Supported formats
2.2.2 Constructors
FFmpeg
public FFmpeg()
FFmpeg
FFmpeg
2.2. FFmpeg 9
ffmpeg-cli-wrapper Documentation, Release 0.6
FFmpeg
2.2.3 Methods
builder
codecs
createProgressParser
formats
getPath
isFFmpeg
run
run
10 Chapter 2. net.bramp.ffmpeg
ffmpeg-cli-wrapper Documentation, Release 0.6
2.3 FFmpegExecutor
2.3.1 Fields
ffmpeg
ffprobe
2.3.2 Constructors
FFmpegExecutor
public FFmpegExecutor()
FFmpegExecutor
FFmpegExecutor
2.3.3 Methods
createJob
createJob
createTwoPassJob
2.3. FFmpegExecutor 11
ffmpeg-cli-wrapper Documentation, Release 0.6
2.4 FFmpegUtils
2.4.1 Fields
BITRATE_REGEX
gson
2.4.2 Constructors
FFmpegUtils
FFmpegUtils()
2.4.3 Methods
getGson
millisecondsToString
parseBitrate
12 Chapter 2. net.bramp.ffmpeg
ffmpeg-cli-wrapper Documentation, Release 0.6
2.5 FFprobe
2.5.1 Fields
DEFAULT_PATH
FFPROBE
LOG
gson
2.5.2 Constructors
FFprobe
public FFprobe()
FFprobe
FFprobe
2.5.3 Methods
isFFprobe
2.5. FFprobe 13
ffmpeg-cli-wrapper Documentation, Release 0.6
probe
probe
run
2.6 ProcessFunction
2.6.1 Methods
run
2.7 RunProcessFunction
2.7.1 Fields
LOG
2.7.2 Methods
run
14 Chapter 2. net.bramp.ffmpeg
CHAPTER 3
net.bramp.ffmpeg.builder
3.1 FFmpegBuilder
3.1.1 Fields
LOG
extra_args
format
String format
inputProbes
inputs
outputs
15
ffmpeg-cli-wrapper Documentation, Release 0.6
override
boolean override
pass
int pass
pass_directory
String pass_directory
pass_prefix
String pass_prefix
progress
URI progress
read_at_native_frame_rate
boolean read_at_native_frame_rate
startOffset
Long startOffset
user_agent
String user_agent
verbosity
Verbosity verbosity
3.1.2 Methods
addExtraArgs
16 Chapter 3. net.bramp.ffmpeg.builder
ffmpeg-cli-wrapper Documentation, Release 0.6
addInput
addInput
addOutput
addOutput
addOutput
Parameters
• output – FFmpegOutputBuilder to add
Returns this
addProgress
3.1. FFmpegBuilder 17
ffmpeg-cli-wrapper Documentation, Release 0.6
addStdoutOutput
build
clearInputs
getOverrideOutputFiles
overrideOutputFiles
readAtNativeFrameRate
setFormat
setInput
setInput
setPass
setPassDirectory
18 Chapter 3. net.bramp.ffmpeg.builder
ffmpeg-cli-wrapper Documentation, Release 0.6
setPassPrefix
setStartOffset
setUserAgent
setVerbosity
3.2 FFmpegBuilder.Strict
EXPERIMENTAL
NORMAL
STRICT
UNOFFICAL
VERY
3.2. FFmpegBuilder.Strict 19
ffmpeg-cli-wrapper Documentation, Release 0.6
3.3 FFmpegBuilder.Verbosity
DEBUG
ERROR
FATAL
INFO
PANIC
QUIET
VERBOSE
WARNING
3.4 FFmpegOutputBuilder
20 Chapter 3. net.bramp.ffmpeg.builder
ffmpeg-cli-wrapper Documentation, Release 0.6
3.4.1 Fields
audio_bit_rate
audio_bit_stream_filter
audio_channels
audio_codec
audio_enabled
audio_quality
audio_sample_format
audio_sample_rate
duration
extra_args
filename
3.4. FFmpegOutputBuilder 21
ffmpeg-cli-wrapper Documentation, Release 0.6
format
meta_tags
parent
pass_padding_bitrate
startOffset
strict
subtitle_enabled
targetSize
throwWarnings
uri
video_bit_rate
22 Chapter 3. net.bramp.ffmpeg.builder
ffmpeg-cli-wrapper Documentation, Release 0.6
video_bit_stream_filter
video_codec
video_copyinkf
video_enabled
video_filter
video_filter_complex
video_frame_rate
video_frames
video_height
video_movflags
video_pixel_format
3.4. FFmpegOutputBuilder 23
ffmpeg-cli-wrapper Documentation, Release 0.6
video_preset
video_quality
video_size
video_width
3.4.2 Constructors
FFmpegOutputBuilder
public FFmpegOutputBuilder()
FFmpegOutputBuilder
FFmpegOutputBuilder
3.4.3 Methods
addExtraArgs
24 Chapter 3. net.bramp.ffmpeg.builder
ffmpeg-cli-wrapper Documentation, Release 0.6
addMetaTag
addMetaTag
new FFmpegBuilder()
.addMetaTag("title", "Movie Title") // Annotate whole file
.addMetaTag(chapter(0), "author", "Bob") // Annotate first chapter
.addMetaTag(program(0), "comment", "Awesome") // Annotate first program
.addMetaTag(stream(0), "copyright", "Megacorp") // Annotate first stream
.addMetaTag(stream(Video), "framerate", "24fps") // Annotate all video streams
.addMetaTag(stream(Video, 0), "artist", "Joe") // Annotate first video stream
.addMetaTag(stream(Audio, 0), "language", "eng") // Annotate first audio stream
.addMetaTag(stream(Subtitle, 0), "language", "fre") // Annotate first subtitle stream
.addMetaTag(usable(), "year", "2010") // Annotate all streams with a usable configuration
build
build
3.4. FFmpegOutputBuilder 25
ffmpeg-cli-wrapper Documentation, Release 0.6
• pass – The particular pass. For one-pass this value will be zero, for multi-pass, it will be 1
for the first pass, 2 for the second, and so on.
Returns The arguments
buildOptions
checkValidStream
disableAudio
disableSubtitle
disableVideo
done
getFilename
26 Chapter 3. net.bramp.ffmpeg.builder
ffmpeg-cli-wrapper Documentation, Release 0.6
getUri
isValidSize
setAudioBitDepth
setAudioBitRate
setAudioBitStreamFilter
setAudioChannels
setAudioCodec
3.4. FFmpegOutputBuilder 27
ffmpeg-cli-wrapper Documentation, Release 0.6
setAudioQuality
setAudioSampleFormat
setAudioSampleRate
setComplexVideoFilter
setDuration
28 Chapter 3. net.bramp.ffmpeg.builder
ffmpeg-cli-wrapper Documentation, Release 0.6
setFilename
setFormat
setFrames
setPassPaddingBitrate
setStartOffset
setStrict
setTargetSize
3.4. FFmpegOutputBuilder 29
ffmpeg-cli-wrapper Documentation, Release 0.6
setUri
setVideoBitRate
setVideoBitStreamFilter
setVideoCodec
setVideoCopyInkf
setVideoFilter
setVideoFrameRate
setVideoFrameRate
30 Chapter 3. net.bramp.ffmpeg.builder
ffmpeg-cli-wrapper Documentation, Release 0.6
setVideoFrameRate
setVideoHeight
setVideoMovFlags
setVideoPixelFormat
setVideoPreset
setVideoQuality
setVideoResolution
setVideoResolution
setVideoWidth
3.4. FFmpegOutputBuilder 31
ffmpeg-cli-wrapper Documentation, Release 0.6
useOptions
useOptions
useOptions
useOptions
3.5 MetadataSpecifier
3.5.1 Fields
spec
3.5.2 Methods
chapter
checkValidKey
global
program
32 Chapter 3. net.bramp.ffmpeg.builder
ffmpeg-cli-wrapper Documentation, Release 0.6
spec
stream
stream
stream
stream
3.6 StreamSpecifier
3.6.1 Fields
spec
3.6.2 Methods
id
3.6. StreamSpecifier 33
ffmpeg-cli-wrapper Documentation, Release 0.6
program
program
spec
stream
stream
stream
34 Chapter 3. net.bramp.ffmpeg.builder
ffmpeg-cli-wrapper Documentation, Release 0.6
tag
tag
usable
3.7 StreamSpecifierType
Attachment
Audio
3.7. StreamSpecifierType 35
ffmpeg-cli-wrapper Documentation, Release 0.6
Data
PureVideo
Subtitle
Video
36 Chapter 3. net.bramp.ffmpeg.builder
CHAPTER 4
net.bramp.ffmpeg.gson
4.1 LowercaseEnumTypeAdapterFactory
4.1.1 Methods
create
4.2 NamedBitsetAdapter
is turned into:
{
"a": true,
"b": false,
"c": true,
"d": false
}
4.2.1 Fields
clazz
37
ffmpeg-cli-wrapper Documentation, Release 0.6
4.2.2 Constructors
NamedBitsetAdapter
4.2.3 Methods
read
readBoolean
setField
write
38 Chapter 4. net.bramp.ffmpeg.gson
CHAPTER 5
net.bramp.ffmpeg.info
5.1 Codec
5.1.1 Fields
canDecode
canEncode
longName
name
type
39
ffmpeg-cli-wrapper Documentation, Release 0.6
5.1.2 Constructors
Codec
5.1.3 Methods
equals
getCanDecode
getCanEncode
getLongName
getName
getType
hashCode
toString
5.2 Codec.Type
enum Type
40 Chapter 5. net.bramp.ffmpeg.info
ffmpeg-cli-wrapper Documentation, Release 0.6
AUDIO
SUBTITLE
VIDEO
5.3 Format
5.3.1 Fields
canDemux
canMux
longName
name
5.3.2 Constructors
Format
5.3. Format 41
ffmpeg-cli-wrapper Documentation, Release 0.6
5.3.3 Methods
equals
getCanDemux
getCanMux
getLongName
getName
hashCode
toString
42 Chapter 5. net.bramp.ffmpeg.info
CHAPTER 6
net.bramp.ffmpeg.io
6.1 CRC32InputStream
6.1.1 Fields
crc
6.1.2 Constructors
CRC32InputStream
6.1.3 Methods
getValue
mark
markSupported
43
ffmpeg-cli-wrapper Documentation, Release 0.6
read
read
read
reset
resetCrc
skip
6.2 LoggingFilterReader
6.2.1 Fields
LOG_CHAR
buffer
logger
44 Chapter 6. net.bramp.ffmpeg.io
ffmpeg-cli-wrapper Documentation, Release 0.6
6.2.2 Constructors
LoggingFilterReader
6.2.3 Methods
log
read
read
6.3 ProcessUtils
6.3.1 Methods
waitForWithTimeout
6.3. ProcessUtils 45
ffmpeg-cli-wrapper Documentation, Release 0.6
46 Chapter 6. net.bramp.ffmpeg.io
CHAPTER 7
net.bramp.ffmpeg.job
7.1 FFmpegJob
7.1.1 Fields
ffmpeg
listener
state
State state
7.1.2 Constructors
FFmpegJob
FFmpegJob
47
ffmpeg-cli-wrapper Documentation, Release 0.6
7.1.3 Methods
getState
7.2 FFmpegJob.State
FAILED
FINISHED
RUNNING
WAITING
7.3 SinglePassFFmpegJob
7.3.1 Fields
builder
7.3.2 Constructors
SinglePassFFmpegJob
48 Chapter 7. net.bramp.ffmpeg.job
ffmpeg-cli-wrapper Documentation, Release 0.6
SinglePassFFmpegJob
7.3.3 Methods
run
7.4 TwoPassFFmpegJob
7.4.1 Fields
builder
passlogPrefix
7.4.2 Constructors
TwoPassFFmpegJob
TwoPassFFmpegJob
7.4.3 Methods
deletePassLog
run
7.4. TwoPassFFmpegJob 49
ffmpeg-cli-wrapper Documentation, Release 0.6
50 Chapter 7. net.bramp.ffmpeg.job
CHAPTER 8
net.bramp.ffmpeg.modelmapper
8.1 Mapper
8.1.1 Methods
map
map
map
map
8.2 Mapper.AudioWrapper
51
ffmpeg-cli-wrapper Documentation, Release 0.6
8.2.1 Fields
audio
8.2.2 Constructors
AudioWrapper
AudioWrapper(AudioEncodingOptions audio)
8.3 Mapper.VideoWrapper
8.3.1 Fields
video
8.3.2 Constructors
VideoWrapper
VideoWrapper(VideoEncodingOptions video)
8.4 NotDefaultCondition
8.4.1 Fields
notDefault
52 Chapter 8. net.bramp.ffmpeg.modelmapper
ffmpeg-cli-wrapper Documentation, Release 0.6
8.4.2 Methods
applies
8.4. NotDefaultCondition 53
ffmpeg-cli-wrapper Documentation, Release 0.6
54 Chapter 8. net.bramp.ffmpeg.modelmapper
CHAPTER 9
net.bramp.ffmpeg.nut
9.1 Frame
9.1.1 Fields
FLAG_CHECKSUM
FLAG_CODED
FLAG_CODED_PTS
FLAG_EOR
FLAG_HEADER_IDX
FLAG_INVALID
55
ffmpeg-cli-wrapper Documentation, Release 0.6
FLAG_KEY
FLAG_MATCH_TIME
FLAG_RESERVED
FLAG_SIZE_MSB
FLAG_SM_DATA
FLAG_STREAM_ID
data
byte[] data
flags
long flags
metaData
pts
long pts
sideData
56 Chapter 9. net.bramp.ffmpeg.nut
ffmpeg-cli-wrapper Documentation, Release 0.6
stream
Stream stream
9.1.2 Methods
read
readMetaData
toString
9.2 FrameCode
9.2.1 Fields
dataSizeLsb
int dataSizeLsb
dataSizeMul
int dataSizeMul
flags
long flags
headerIdx
int headerIdx
matchTimeDelta
long matchTimeDelta
9.2. FrameCode 57
ffmpeg-cli-wrapper Documentation, Release 0.6
ptsDelta
long ptsDelta
reservedCount
int reservedCount
streamId
int streamId
9.2.2 Methods
toString
9.3 IndexPacket
9.4 InfoPacket
9.5 MainHeaderPacket
9.5.1 Fields
BROADCAST_MODE
elision
flags
long flags
58 Chapter 9. net.bramp.ffmpeg.nut
ffmpeg-cli-wrapper Documentation, Release 0.6
frameCodes
maxDistance
long maxDistance
minorVersion
long minorVersion
streamCount
int streamCount
timeBase
Fraction[] timeBase
version
long version
9.5.2 Constructors
MainHeaderPacket
public MainHeaderPacket()
9.5.3 Methods
readBody
toString
9.6 NutDataInputStream
9.6. NutDataInputStream 59
ffmpeg-cli-wrapper Documentation, Release 0.6
9.6.1 Fields
count
crc
endCrcRange
long endCrcRange
in
final DataInputStream in
startCrcRange
long startCrcRange
9.6.2 Constructors
NutDataInputStream
9.6.3 Methods
getCRC
offset
readBoolean
readByte
60 Chapter 9. net.bramp.ffmpeg.nut
ffmpeg-cli-wrapper Documentation, Release 0.6
readChar
readDouble
readFloat
readFully
readFully
readInt
readLine
readLong
readShort
readSignedVarInt
readStartCode
9.6. NutDataInputStream 61
ffmpeg-cli-wrapper Documentation, Release 0.6
readUTF
readUnsignedByte
readUnsignedShort
readVarArray
readVarInt
readVarLong
resetCRC
skipBytes
9.7 NutReader
9.7.1 Fields
HEADER
62 Chapter 9. net.bramp.ffmpeg.nut
ffmpeg-cli-wrapper Documentation, Release 0.6
header
in
final NutDataInputStream in
listener
streams
9.7.2 Constructors
NutReader
9.7.3 Methods
isKnownStartcode
read
readFileId
9.7. NutReader 63
ffmpeg-cli-wrapper Documentation, Release 0.6
readReservedHeaders
9.8 NutReaderListener
9.8.1 Methods
frame
stream
9.9 Packet
9.9.1 Fields
LOG
footer
64 Chapter 9. net.bramp.ffmpeg.nut
ffmpeg-cli-wrapper Documentation, Release 0.6
header
9.9.2 Methods
read
readBody
seekToPacketFooter
toString
9.10 Packet.Startcode
INDEX
INFO
MAIN
STREAM
9.10. Packet.Startcode 65
ffmpeg-cli-wrapper Documentation, Release 0.6
SYNCPOINT
9.11 PacketFooter
class PacketFooter
9.11.1 Fields
checksum
int checksum
9.11.2 Methods
read
toString
9.12 PacketHeader
class PacketHeader
9.12.1 Fields
checksum
int checksum
end
long end
forwardPtr
long forwardPtr
startcode
long startcode
66 Chapter 9. net.bramp.ffmpeg.nut
ffmpeg-cli-wrapper Documentation, Release 0.6
9.12.2 Methods
read
toString
9.13 RawHandler
9.13.1 Methods
streamToAudioFormat
toAudioInputStream
toBufferedImage
9.14 Stream
9.14.1 Fields
header
9.13. RawHandler 67
ffmpeg-cli-wrapper Documentation, Release 0.6
last_pts
long last_pts
timeBase
9.14.2 Constructors
Stream
9.15 StreamHeaderPacket
9.15.1 Fields
AUDIO
SUBTITLE
USER_DATA
VIDEO
channels
int channels
codecSpecificData
byte[] codecSpecificData
68 Chapter 9. net.bramp.ffmpeg.nut
ffmpeg-cli-wrapper Documentation, Release 0.6
colorspaceType
long colorspaceType
decodeDelay
long decodeDelay
flags
long flags
fourcc
byte[] fourcc
height
int height
id
int id
maxPtsDistance
int maxPtsDistance
msbPtsShift
int msbPtsShift
sampleHeight
int sampleHeight
sampleRate
Fraction sampleRate
sampleWidth
int sampleWidth
9.15. StreamHeaderPacket 69
ffmpeg-cli-wrapper Documentation, Release 0.6
timeBaseId
int timeBaseId
type
long type
width
int width
9.15.2 Methods
readBody
toString
9.16 SyncPointPacket
70 Chapter 9. net.bramp.ffmpeg.nut
CHAPTER 10
net.bramp.ffmpeg.options
10.1 AudioEncodingOptions
10.1.1 Fields
bit_rate
channels
codec
enabled
quality
sample_format
71
ffmpeg-cli-wrapper Documentation, Release 0.6
sample_rate
10.1.2 Constructors
AudioEncodingOptions
public AudioEncodingOptions(boolean enabled, String codec, int channels, int sample_rate, String sam-
ple_format, long bit_rate, Integer quality)
10.2 EncodingOptions
10.2.1 Fields
audio
main
video
10.2.2 Constructors
EncodingOptions
10.2.3 Methods
getAudio
getMain
getVideo
10.3 MainEncodingOptions
10.3.1 Fields
duration
format
startOffset
10.3.2 Constructors
MainEncodingOptions
10.4 VideoEncodingOptions
10.4.1 Fields
bit_rate
codec
10.3. MainEncodingOptions 73
ffmpeg-cli-wrapper Documentation, Release 0.6
enabled
filter
frame_rate
frames
height
preset
width
10.4.2 Constructors
VideoEncodingOptions
public VideoEncodingOptions(boolean enabled, String codec, Fraction frame_rate, int width, int height,
long bit_rate, Integer frames, String filter, String preset)
net.bramp.ffmpeg.probe
11.1 FFmpegDisposition
11.1.1 Fields
_default
attached_pic
captions
clean_effects
comment
descriptions
75
ffmpeg-cli-wrapper Documentation, Release 0.6
dub
forced
hearing_impaired
karaoke
lyrics
metadata
original
visual_impaired
11.2 FFmpegError
11.2.1 Fields
code
string
11.3 FFmpegFormat
11.3.1 Fields
bit_rate
duration
filename
format_long_name
format_name
nb_programs
nb_streams
probe_score
size
11.3. FFmpegFormat 77
ffmpeg-cli-wrapper Documentation, Release 0.6
start_time
tags
11.4 FFmpegProbeResult
11.4.1 Fields
error
format
streams
11.4.2 Methods
getError
getFormat
getStreams
hasError
11.5 FFmpegStream
11.5.1 Fields
avg_frame_rate
bit_rate
bits_per_raw_sample
bits_per_sample
channel_layout
channels
chroma_location
codec_long_name
codec_name
codec_tag
11.5. FFmpegStream 79
ffmpeg-cli-wrapper Documentation, Release 0.6
codec_tag_string
codec_time_base
codec_type
display_aspect_ratio
disposition
duration
duration_ts
has_b_frames
index
is_avc
level
max_bit_rate
nal_length_size
nb_frames
pix_fmt
profile
r_frame_rate
refs
sample_aspect_ratio
sample_fmt
sample_rate
start_pts
11.5. FFmpegStream 81
ffmpeg-cli-wrapper Documentation, Release 0.6
start_time
tags
time_base
width
11.6 FFmpegStream.CodecType
AUDIO
VIDEO
net.bramp.ffmpeg.progress
12.1 AbstractSocketProgressParser
12.1.1 Fields
parser
thread
Thread thread
12.1.2 Constructors
AbstractSocketProgressParser
12.1.3 Methods
close
createUri
83
ffmpeg-cli-wrapper Documentation, Release 0.6
• address –
• port –
Throws
• URISyntaxException –
getRunnable
getThreadName
start
stop
12.2 Progress
12.2.1 Fields
bitrate
drop_frames
dup_frames
fps
frame
out_time_ms
progress
speed
total_size
12.2.2 Constructors
Progress
public Progress()
Progress
public Progress(long frame, float fps, long bitrate, long total_size, long out_time_ms, long dup_frames, long
drop_frames, float speed, String progress)
12.2.3 Methods
equals
hashCode
12.2. Progress 85
ffmpeg-cli-wrapper Documentation, Release 0.6
isEnd
parseLine
toString
12.3 ProgressListener
12.3.1 Methods
progress
12.4 ProgressParser
12.4.1 Methods
getUri
URI getUri()
The URL to parse to FFmpeg to communicate with this parser
Returns The URI to communicate with FFmpeg.
start
void start()
stop
void stop()
12.5 StreamProgressParser
12.5.1 Fields
listener
12.5.2 Constructors
StreamProgressParser
12.5.3 Methods
processReader
processStream
12.6 TcpProgressParser
12.6.1 Fields
address
server
12.5. StreamProgressParser 87
ffmpeg-cli-wrapper Documentation, Release 0.6
12.6.2 Constructors
TcpProgressParser
TcpProgressParser
12.6.3 Methods
getRunnable
getThreadName
getUri
stop
12.7 TcpProgressParserRunnable
12.7.1 Fields
parser
server
startSignal
12.7.2 Constructors
TcpProgressParserRunnable
12.7.3 Methods
run
12.8 UdpProgressParser
12.8.1 Fields
address
socket
12.8.2 Constructors
UdpProgressParser
UdpProgressParser
12.8.3 Methods
getRunnable
getThreadName
12.8. UdpProgressParser 89
ffmpeg-cli-wrapper Documentation, Release 0.6
getUri
stop
12.9 UdpProgressParserRunnable
12.9.1 Fields
MAX_PACKET_SIZE
parser
socket
startSignal
12.9.2 Constructors
UdpProgressParserRunnable
12.9.3 Methods
run
• genindex
• modindex
• search
91
ffmpeg-cli-wrapper Documentation, Release 0.6
93
ffmpeg-cli-wrapper Documentation, Release 0.6
94 Index
ffmpeg-cli-wrapper Documentation, Release 0.6
Index 95
ffmpeg-cli-wrapper Documentation, Release 0.6
96 Index
ffmpeg-cli-wrapper Documentation, Release 0.6
Index 97
ffmpeg-cli-wrapper Documentation, Release 0.6
98 Index
ffmpeg-cli-wrapper Documentation, Release 0.6
V
VERBOSE (Java field), 20
Verbosity (Java enum), 20
verbosity (Java field), 16
version (Java field), 5, 59
version() (Java method), 6
VERY (Java field), 19
VIDEO (Java field), 41, 68, 82
Video (Java field), 36
video (Java field), 52, 72
video_bit_rate (Java field), 22
video_bit_stream_filter (Java field), 23
video_codec (Java field), 23
video_copyinkf (Java field), 23
video_enabled (Java field), 23
video_filter (Java field), 23
video_filter_complex (Java field), 23
video_frame_rate (Java field), 23
video_frames (Java field), 23
video_height (Java field), 23
video_movflags (Java field), 23
video_pixel_format (Java field), 23
video_preset (Java field), 24
video_quality (Java field), 24
video_size (Java field), 24
video_width (Java field), 24
VideoEncodingOptions (Java class), 73
Index 99