package com.dai; /** * <p>屏幕录制时需要用到的参数</p> * <p>2019-12-12 14:55</p> * * @author Dai Yuanchuan **/ public class RecordingParameters { /** * 设置需要录制的屏幕宽度, 默认会获取你当前屏幕的宽度 * 比如我的1920 */ private int width; /** * 设置需要录制的屏幕高度, 默认会获取你当前屏幕的高度 * 比如我的1080 * 它会从左上角开始计算 */ private int height; /** * 视频编解码器、视频的压缩方式、视频解码 * 默认为:12 AV_CODEC_ID_MPEG4 * 参考值: * AV_CODEC_ID_NONE = 0; * AV_CODEC_ID_MPEG1VIDEO = 1; * AV_CODEC_ID_MPEG2VIDEO = 2; * AV_CODEC_ID_H261 = 3; * AV_CODEC_ID_H263 = 4; * AV_CODEC_ID_RV10 = 5; * AV_CODEC_ID_RV20 = 6; * AV_CODEC_ID_MJPEG = 7; * AV_CODEC_ID_MJPEGB = 8; * AV_CODEC_ID_LJPEG = 9; * AV_CODEC_ID_SP5X = 10; * AV_CODEC_ID_JPEGLS = 11; * AV_CODEC_ID_MPEG4 = 12; * AV_CODEC_ID_RAWVIDEO = 13; * AV_CODEC_ID_MSMPEG4V1 = 14; * AV_CODEC_ID_MSMPEG4V2 = 15; * AV_CODEC_ID_MSMPEG4V3 = 16; * AV_CODEC_ID_WMV1 = 17; * AV_CODEC_ID_WMV2 = 18; * AV_CODEC_ID_H263P = 19; * AV_CODEC_ID_H263I = 20; * AV_CODEC_ID_FLV1 = 21; * AV_CODEC_ID_SVQ1 = 22; * AV_CODEC_ID_SVQ3 = 23; * AV_CODEC_ID_DVVIDEO = 24; * AV_CODEC_ID_HUFFYUV = 25; * AV_CODEC_ID_CYUV = 26; * AV_CODEC_ID_H264 = 27; * AV_CODEC_ID_INDEO3 = 28; * AV_CODEC_ID_VP3 = 29; * AV_CODEC_ID_THEORA = 30; * AV_CODEC_ID_ASV1 = 31; * AV_CODEC_ID_ASV2 = 32; * AV_CODEC_ID_FFV1 = 33; * AV_CODEC_ID_4XM = 34; * AV_CODEC_ID_VCR1 = 35; * AV_CODEC_ID_CLJR = 36; * AV_CODEC_ID_MDEC = 37; * AV_CODEC_ID_ROQ = 38; * AV_CODEC_ID_INTERPLAY_VIDEO = 39; * AV_CODEC_ID_XAN_WC3 = 40; * AV_CODEC_ID_XAN_WC4 = 41; * AV_CODEC_ID_RPZA = 42; * AV_CODEC_ID_CINEPAK = 43; * AV_CODEC_ID_WS_VQA = 44; * AV_CODEC_ID_MSRLE = 45; * AV_CODEC_ID_MSVIDEO1 = 46; * AV_CODEC_ID_IDCIN = 47; * AV_CODEC_ID_8BPS = 48; * AV_CODEC_ID_SMC = 49; * AV_CODEC_ID_FLIC = 50; * AV_CODEC_ID_TRUEMOTION1 = 51; * AV_CODEC_ID_VMDVIDEO = 52; * AV_CODEC_ID_MSZH = 53; * AV_CODEC_ID_ZLIB = 54; * AV_CODEC_ID_QTRLE = 55; * AV_CODEC_ID_TSCC = 56; * AV_CODEC_ID_ULTI = 57; * AV_CODEC_ID_QDRAW = 58; * AV_CODEC_ID_VIXL = 59; * AV_CODEC_ID_QPEG = 60; * AV_CODEC_ID_PNG = 61; * AV_CODEC_ID_PPM = 62; * AV_CODEC_ID_PBM = 63; * AV_CODEC_ID_PGM = 64; * AV_CODEC_ID_PGMYUV = 65; * AV_CODEC_ID_PAM = 66; * AV_CODEC_ID_FFVHUFF = 67; * AV_CODEC_ID_RV30 = 68; * AV_CODEC_ID_RV40 = 69; * AV_CODEC_ID_VC1 = 70; * AV_CODEC_ID_WMV3 = 71; * AV_CODEC_ID_LOCO = 72; * AV_CODEC_ID_WNV1 = 73; * AV_CODEC_ID_AASC = 74; * AV_CODEC_ID_INDEO2 = 75; * AV_CODEC_ID_FRAPS = 76; * AV_CODEC_ID_TRUEMOTION2 = 77; * AV_CODEC_ID_BMP = 78; * AV_CODEC_ID_CSCD = 79; * AV_CODEC_ID_MMVIDEO = 80; * AV_CODEC_ID_ZMBV = 81; * AV_CODEC_ID_AVS = 82; * AV_CODEC_ID_SMACKVIDEO = 83; * AV_CODEC_ID_NUV = 84; * AV_CODEC_ID_KMVC = 85; * AV_CODEC_ID_FLASHSV = 86; * AV_CODEC_ID_CAVS = 87; * AV_CODEC_ID_JPEG2000 = 88; * AV_CODEC_ID_VMNC = 89; * AV_CODEC_ID_VP5 = 90; * AV_CODEC_ID_VP6 = 91; * AV_CODEC_ID_VP6F = 92; * AV_CODEC_ID_TARGA = 93; * AV_CODEC_ID_DSICINVIDEO = 94; * AV_CODEC_ID_TIERTEXSEQVIDEO = 95; * AV_CODEC_ID_TIFF = 96; * AV_CODEC_ID_GIF = 97; * AV_CODEC_ID_DXA = 98; * AV_CODEC_ID_DNXHD = 99; * AV_CODEC_ID_THP = 100; * AV_CODEC_ID_SGI = 101; * AV_CODEC_ID_C93 = 102; * AV_CODEC_ID_BETHSOFTVID = 103; * AV_CODEC_ID_PTX = 104; * AV_CODEC_ID_TXD = 105; * AV_CODEC_ID_VP6A = 106; * AV_CODEC_ID_AMV = 107; * AV_CODEC_ID_VB = 108; * AV_CODEC_ID_PCX = 109; * AV_CODEC_ID_SUNRAST = 110; * AV_CODEC_ID_INDEO4 = 111; * AV_CODEC_ID_INDEO5 = 112; * AV_CODEC_ID_MIMIC = 113; * AV_CODEC_ID_RL2 = 114; * AV_CODEC_ID_ESCAPE124 = 115; * AV_CODEC_ID_DIRAC = 116; * AV_CODEC_ID_BFI = 117; * AV_CODEC_ID_CMV = 118; * AV_CODEC_ID_MOTIONPIXELS = 119; * AV_CODEC_ID_TGV = 120; * AV_CODEC_ID_TGQ = 121; * AV_CODEC_ID_TQI = 122; * AV_CODEC_ID_AURA = 123; * AV_CODEC_ID_AURA2 = 124; * AV_CODEC_ID_V210X = 125; * AV_CODEC_ID_TMV = 126; * AV_CODEC_ID_V210 = 127; * AV_CODEC_ID_DPX = 128; * AV_CODEC_ID_MAD = 129; * AV_CODEC_ID_FRWU = 130; * AV_CODEC_ID_FLASHSV2 = 131; * AV_CODEC_ID_CDGRAPHICS = 132; * AV_CODEC_ID_R210 = 133; * AV_CODEC_ID_ANM = 134; * AV_CODEC_ID_BINKVIDEO = 135; * AV_CODEC_ID_IFF_ILBM = 136; * AV_CODEC_ID_IFF_BYTERUN1 = 136; * AV_CODEC_ID_KGV1 = 137; * AV_CODEC_ID_YOP = 138; * AV_CODEC_ID_VP8 = 139; * AV_CODEC_ID_PICTOR = 140; * AV_CODEC_ID_ANSI = 141; * AV_CODEC_ID_A64_MULTI = 142; * AV_CODEC_ID_A64_MULTI5 = 143; * AV_CODEC_ID_R10K = 144; * AV_CODEC_ID_MXPEG = 145; * AV_CODEC_ID_LAGARITH = 146; * AV_CODEC_ID_PRORES = 147; * AV_CODEC_ID_JV = 148; * AV_CODEC_ID_DFA = 149; * AV_CODEC_ID_WMV3IMAGE = 150; * AV_CODEC_ID_VC1IMAGE = 151; * AV_CODEC_ID_UTVIDEO = 152; * AV_CODEC_ID_BMV_VIDEO = 153; * AV_CODEC_ID_VBLE = 154; * AV_CODEC_ID_DXTORY = 155; * AV_CODEC_ID_V410 = 156; * AV_CODEC_ID_XWD = 157; * AV_CODEC_ID_CDXL = 158; * AV_CODEC_ID_XBM = 159; * AV_CODEC_ID_ZEROCODEC = 160; * AV_CODEC_ID_MSS1 = 161; * AV_CODEC_ID_MSA1 = 162; * AV_CODEC_ID_TSCC2 = 163; * AV_CODEC_ID_MTS2 = 164; * AV_CODEC_ID_CLLC = 165; * AV_CODEC_ID_MSS2 = 166; * AV_CODEC_ID_VP9 = 167; * AV_CODEC_ID_AIC = 168; * AV_CODEC_ID_ESCAPE130 = 169; * AV_CODEC_ID_G2M = 170; * AV_CODEC_ID_WEBP = 171; * AV_CODEC_ID_HNM4_VIDEO = 172; * AV_CODEC_ID_HEVC = 173; * AV_CODEC_ID_H265 = 173; * AV_CODEC_ID_FIC = 174; * AV_CODEC_ID_ALIAS_PIX = 175; * AV_CODEC_ID_BRENDER_PIX = 176; * AV_CODEC_ID_PAF_VIDEO = 177; * AV_CODEC_ID_EXR = 178; * AV_CODEC_ID_VP7 = 179; * AV_CODEC_ID_SANM = 180; * AV_CODEC_ID_SGIRLE = 181; * AV_CODEC_ID_MVC1 = 182; * AV_CODEC_ID_MVC2 = 183; * AV_CODEC_ID_HQX = 184; * AV_CODEC_ID_TDSC = 185; * AV_CODEC_ID_HQ_HQA = 186; * AV_CODEC_ID_HAP = 187; * AV_CODEC_ID_DDS = 188; * AV_CODEC_ID_DXV = 189; * AV_CODEC_ID_SCREENPRESSO = 190; * AV_CODEC_ID_RSCC = 191; * AV_CODEC_ID_AVS2 = 192; * AV_CODEC_ID_Y41P = 32768; * AV_CODEC_ID_AVRP = 32769; * AV_CODEC_ID_012V = 32770; * AV_CODEC_ID_AVUI = 32771; * AV_CODEC_ID_AYUV = 32772; * AV_CODEC_ID_TARGA_Y216 = 32773; * AV_CODEC_ID_V308 = 32774; * AV_CODEC_ID_V408 = 32775; * AV_CODEC_ID_YUV4 = 32776; * AV_CODEC_ID_AVRN = 32777; * AV_CODEC_ID_CPIA = 32778; * AV_CODEC_ID_XFACE = 32779; * AV_CODEC_ID_SNOW = 32780; * AV_CODEC_ID_SMVJPEG = 32781; * AV_CODEC_ID_APNG = 32782; * AV_CODEC_ID_DAALA = 32783; * AV_CODEC_ID_CFHD = 32784; * AV_CODEC_ID_TRUEMOTION2RT = 32785; * AV_CODEC_ID_M101 = 32786; * AV_CODEC_ID_MAGICYUV = 32787; * AV_CODEC_ID_SHEERVIDEO = 32788; * AV_CODEC_ID_YLC = 32789; * AV_CODEC_ID_PSD = 32790; * AV_CODEC_ID_PIXLET = 32791; * AV_CODEC_ID_SPEEDHQ = 32792; * AV_CODEC_ID_FMVC = 32793; * AV_CODEC_ID_SCPR = 32794; * AV_CODEC_ID_CLEARVIDEO = 32795; * AV_CODEC_ID_XPM = 32796; * AV_CODEC_ID_AV1 = 32797; * AV_CODEC_ID_BITPACKED = 32798; * AV_CODEC_ID_MSCC = 32799; * AV_CODEC_ID_SRGC = 32800; * AV_CODEC_ID_SVG = 32801; * AV_CODEC_ID_GDV = 32802; * AV_CODEC_ID_FITS = 32803; * AV_CODEC_ID_IMM4 = 32804; * AV_CODEC_ID_PROSUMER = 32805; * AV_CODEC_ID_MWSC = 32806; * AV_CODEC_ID_WCMV = 32807; * AV_CODEC_ID_RASC = 32808; * AV_CODEC_ID_HYMT = 32809; * AV_CODEC_ID_ARBC = 32810; * AV_CODEC_ID_AGM = 32811; * AV_CODEC_ID_LSCR = 32812; * AV_CODEC_ID_VP4 = 32813; * AV_CODEC_ID_FIRST_AUDIO = 65536; * AV_CODEC_ID_PCM_S16LE = 65536; * AV_CODEC_ID_PCM_S16BE = 65537; * AV_CODEC_ID_PCM_U16LE = 65538; * AV_CODEC_ID_PCM_U16BE = 65539; * AV_CODEC_ID_PCM_S8 = 65540; * AV_CODEC_ID_PCM_U8 = 65541; * AV_CODEC_ID_PCM_MULAW = 65542; * AV_CODEC_ID_PCM_ALAW = 65543; * AV_CODEC_ID_PCM_S32LE = 65544; * AV_CODEC_ID_PCM_S32BE = 65545; * AV_CODEC_ID_PCM_U32LE = 65546; * AV_CODEC_ID_PCM_U32BE = 65547; * AV_CODEC_ID_PCM_S24LE = 65548; * AV_CODEC_ID_PCM_S24BE = 65549; * AV_CODEC_ID_PCM_U24LE = 65550; * AV_CODEC_ID_PCM_U24BE = 65551; * AV_CODEC_ID_PCM_S24DAUD = 65552; * AV_CODEC_ID_PCM_ZORK = 65553; * AV_CODEC_ID_PCM_S16LE_PLANAR = 65554; * AV_CODEC_ID_PCM_DVD = 65555; * AV_CODEC_ID_PCM_F32BE = 65556; * AV_CODEC_ID_PCM_F32LE = 65557; * AV_CODEC_ID_PCM_F64BE = 65558; * AV_CODEC_ID_PCM_F64LE = 65559; * AV_CODEC_ID_PCM_BLURAY = 65560; * AV_CODEC_ID_PCM_LXF = 65561; * AV_CODEC_ID_S302M = 65562; * AV_CODEC_ID_PCM_S8_PLANAR = 65563; * AV_CODEC_ID_PCM_S24LE_PLANAR = 65564; * AV_CODEC_ID_PCM_S32LE_PLANAR = 65565; * AV_CODEC_ID_PCM_S16BE_PLANAR = 65566; * AV_CODEC_ID_PCM_S64LE = 67584; * AV_CODEC_ID_PCM_S64BE = 67585; * AV_CODEC_ID_PCM_F16LE = 67586; * AV_CODEC_ID_PCM_F24LE = 67587; * AV_CODEC_ID_PCM_VIDC = 67588; * AV_CODEC_ID_ADPCM_IMA_QT = 69632; * AV_CODEC_ID_ADPCM_IMA_WAV = 69633; * AV_CODEC_ID_ADPCM_IMA_DK3 = 69634; * AV_CODEC_ID_ADPCM_IMA_DK4 = 69635; * AV_CODEC_ID_ADPCM_IMA_WS = 69636; * AV_CODEC_ID_ADPCM_IMA_SMJPEG = 69637; * AV_CODEC_ID_ADPCM_MS = 69638; * AV_CODEC_ID_ADPCM_4XM = 69639; * AV_CODEC_ID_ADPCM_XA = 69640; * AV_CODEC_ID_ADPCM_ADX = 69641; * AV_CODEC_ID_ADPCM_EA = 69642; * AV_CODEC_ID_ADPCM_G726 = 69643; * AV_CODEC_ID_ADPCM_CT = 69644; * AV_CODEC_ID_ADPCM_SWF = 69645; * AV_CODEC_ID_ADPCM_YAMAHA = 69646; * AV_CODEC_ID_ADPCM_SBPRO_4 = 69647; * AV_CODEC_ID_ADPCM_SBPRO_3 = 69648; * AV_CODEC_ID_ADPCM_SBPRO_2 = 69649; * AV_CODEC_ID_ADPCM_THP = 69650; * AV_CODEC_ID_ADPCM_IMA_AMV = 69651; * AV_CODEC_ID_ADPCM_EA_R1 = 69652; * AV_CODEC_ID_ADPCM_EA_R3 = 69653; * AV_CODEC_ID_ADPCM_EA_R2 = 69654; * AV_CODEC_ID_ADPCM_IMA_EA_SEAD = 69655; * AV_CODEC_ID_ADPCM_IMA_EA_EACS = 69656; * AV_CODEC_ID_ADPCM_EA_XAS = 69657; * AV_CODEC_ID_ADPCM_EA_MAXIS_XA = 69658; * AV_CODEC_ID_ADPCM_IMA_ISS = 69659; * AV_CODEC_ID_ADPCM_G722 = 69660; * AV_CODEC_ID_ADPCM_IMA_APC = 69661; * AV_CODEC_ID_ADPCM_VIMA = 69662; * AV_CODEC_ID_ADPCM_AFC = 71680; * AV_CODEC_ID_ADPCM_IMA_OKI = 71681; * AV_CODEC_ID_ADPCM_DTK = 71682; * AV_CODEC_ID_ADPCM_IMA_RAD = 71683; * AV_CODEC_ID_ADPCM_G726LE = 71684; * AV_CODEC_ID_ADPCM_THP_LE = 71685; * AV_CODEC_ID_ADPCM_PSX = 71686; * AV_CODEC_ID_ADPCM_AICA = 71687; * AV_CODEC_ID_ADPCM_IMA_DAT4 = 71688; * AV_CODEC_ID_ADPCM_MTAF = 71689; * AV_CODEC_ID_ADPCM_AGM = 71690; * AV_CODEC_ID_AMR_NB = 73728; * AV_CODEC_ID_AMR_WB = 73729; * AV_CODEC_ID_RA_144 = 77824; * AV_CODEC_ID_RA_288 = 77825; * AV_CODEC_ID_ROQ_DPCM = 81920; * AV_CODEC_ID_INTERPLAY_DPCM = 81921; * AV_CODEC_ID_XAN_DPCM = 81922; * AV_CODEC_ID_SOL_DPCM = 81923; * AV_CODEC_ID_SDX2_DPCM = 83968; * AV_CODEC_ID_GREMLIN_DPCM = 83969; * AV_CODEC_ID_MP2 = 86016; * AV_CODEC_ID_MP3 = 86017; * AV_CODEC_ID_AAC = 86018; * AV_CODEC_ID_AC3 = 86019; * AV_CODEC_ID_DTS = 86020; * AV_CODEC_ID_VORBIS = 86021; * AV_CODEC_ID_DVAUDIO = 86022; * AV_CODEC_ID_WMAV1 = 86023; * AV_CODEC_ID_WMAV2 = 86024; * AV_CODEC_ID_MACE3 = 86025; * AV_CODEC_ID_MACE6 = 86026; * AV_CODEC_ID_VMDAUDIO = 86027; * AV_CODEC_ID_FLAC = 86028; * AV_CODEC_ID_MP3ADU = 86029; * AV_CODEC_ID_MP3ON4 = 86030; * AV_CODEC_ID_SHORTEN = 86031; * AV_CODEC_ID_ALAC = 86032; * AV_CODEC_ID_WESTWOOD_SND1 = 86033; * AV_CODEC_ID_GSM = 86034; * AV_CODEC_ID_QDM2 = 86035; * AV_CODEC_ID_COOK = 86036; * AV_CODEC_ID_TRUESPEECH = 86037; * AV_CODEC_ID_TTA = 86038; * AV_CODEC_ID_SMACKAUDIO = 86039; * AV_CODEC_ID_QCELP = 86040; * AV_CODEC_ID_WAVPACK = 86041; * AV_CODEC_ID_DSICINAUDIO = 86042; * AV_CODEC_ID_IMC = 86043; * AV_CODEC_ID_MUSEPACK7 = 86044; * AV_CODEC_ID_MLP = 86045; * AV_CODEC_ID_GSM_MS = 86046; * AV_CODEC_ID_ATRAC3 = 86047; * AV_CODEC_ID_APE = 86048; * AV_CODEC_ID_NELLYMOSER = 86049; * AV_CODEC_ID_MUSEPACK8 = 86050; * AV_CODEC_ID_SPEEX = 86051; * AV_CODEC_ID_WMAVOICE = 86052; * AV_CODEC_ID_WMAPRO = 86053; * AV_CODEC_ID_WMALOSSLESS = 86054; * AV_CODEC_ID_ATRAC3P = 86055; * AV_CODEC_ID_EAC3 = 86056; * AV_CODEC_ID_SIPR = 86057; * AV_CODEC_ID_MP1 = 86058; * AV_CODEC_ID_TWINVQ = 86059; * AV_CODEC_ID_TRUEHD = 86060; * AV_CODEC_ID_MP4ALS = 86061; * AV_CODEC_ID_ATRAC1 = 86062; * AV_CODEC_ID_BINKAUDIO_RDFT = 86063; * AV_CODEC_ID_BINKAUDIO_DCT = 86064; * AV_CODEC_ID_AAC_LATM = 86065; * AV_CODEC_ID_QDMC = 86066; * AV_CODEC_ID_CELT = 86067; * AV_CODEC_ID_G723_1 = 86068; * AV_CODEC_ID_G729 = 86069; * AV_CODEC_ID_8SVX_EXP = 86070; * AV_CODEC_ID_8SVX_FIB = 86071; * AV_CODEC_ID_BMV_AUDIO = 86072; * AV_CODEC_ID_RALF = 86073; * AV_CODEC_ID_IAC = 86074; * AV_CODEC_ID_ILBC = 86075; * AV_CODEC_ID_OPUS = 86076; * AV_CODEC_ID_COMFORT_NOISE = 86077; * AV_CODEC_ID_TAK = 86078; * AV_CODEC_ID_METASOUND = 86079; * AV_CODEC_ID_PAF_AUDIO = 86080; * AV_CODEC_ID_ON2AVC = 86081; * AV_CODEC_ID_DSS_SP = 86082; * AV_CODEC_ID_CODEC2 = 86083; * AV_CODEC_ID_FFWAVESYNTH = 88064; * AV_CODEC_ID_SONIC = 88065; * AV_CODEC_ID_SONIC_LS = 88066; * AV_CODEC_ID_EVRC = 88067; * AV_CODEC_ID_SMV = 88068; * AV_CODEC_ID_DSD_LSBF = 88069; * AV_CODEC_ID_DSD_MSBF = 88070; * AV_CODEC_ID_DSD_LSBF_PLANAR = 88071; * AV_CODEC_ID_DSD_MSBF_PLANAR = 88072; * AV_CODEC_ID_4GV = 88073; * AV_CODEC_ID_INTERPLAY_ACM = 88074; * AV_CODEC_ID_XMA1 = 88075; * AV_CODEC_ID_XMA2 = 88076; * AV_CODEC_ID_DST = 88077; * AV_CODEC_ID_ATRAC3AL = 88078; * AV_CODEC_ID_ATRAC3PAL = 88079; * AV_CODEC_ID_DOLBY_E = 88080; * AV_CODEC_ID_APTX = 88081; * AV_CODEC_ID_APTX_HD = 88082; * AV_CODEC_ID_SBC = 88083; * AV_CODEC_ID_ATRAC9 = 88084; * AV_CODEC_ID_HCOM = 88085; * AV_CODEC_ID_FIRST_SUBTITLE = 94208; * AV_CODEC_ID_DVD_SUBTITLE = 94208; * AV_CODEC_ID_DVB_SUBTITLE = 94209; * AV_CODEC_ID_TEXT = 94210; * AV_CODEC_ID_XSUB = 94211; * AV_CODEC_ID_SSA = 94212; * AV_CODEC_ID_MOV_TEXT = 94213; * AV_CODEC_ID_HDMV_PGS_SUBTITLE = 94214; * AV_CODEC_ID_DVB_TELETEXT = 94215; * AV_CODEC_ID_SRT = 94216; * AV_CODEC_ID_MICRODVD = 96256; * AV_CODEC_ID_EIA_608 = 96257; * AV_CODEC_ID_JACOSUB = 96258; * AV_CODEC_ID_SAMI = 96259; * AV_CODEC_ID_REALTEXT = 96260; * AV_CODEC_ID_STL = 96261; * AV_CODEC_ID_SUBVIEWER1 = 96262; * AV_CODEC_ID_SUBVIEWER = 96263; * AV_CODEC_ID_SUBRIP = 96264; * AV_CODEC_ID_WEBVTT = 96265; * AV_CODEC_ID_MPL2 = 96266; * AV_CODEC_ID_VPLAYER = 96267; * AV_CODEC_ID_PJS = 96268; * AV_CODEC_ID_ASS = 96269; * AV_CODEC_ID_HDMV_TEXT_SUBTITLE = 96270; * AV_CODEC_ID_TTML = 96271; * AV_CODEC_ID_ARIB_CAPTION = 96272; * AV_CODEC_ID_FIRST_UNKNOWN = 98304; * AV_CODEC_ID_TTF = 98304; * AV_CODEC_ID_SCTE_35 = 98305; * AV_CODEC_ID_BINTEXT = 100352; * AV_CODEC_ID_XBIN = 100353; * AV_CODEC_ID_IDF = 100354; * AV_CODEC_ID_OTF = 100355; * AV_CODEC_ID_SMPTE_KLV = 100356; * AV_CODEC_ID_DVD_NAV = 100357; * AV_CODEC_ID_TIMED_ID3 = 100358; * AV_CODEC_ID_BIN_DATA = 100359; * AV_CODEC_ID_PROBE = 102400; * AV_CODEC_ID_MPEG2TS = 131072; * AV_CODEC_ID_MPEG4SYSTEMS = 131073; * AV_CODEC_ID_FFMETADATA = 135168; * AV_CODEC_ID_WRAPPED_AVFRAME = 135169; * AV_CODEC_PROP_INTRA_ONLY = 1; * AV_CODEC_PROP_LOSSY = 2; * AV_CODEC_PROP_LOSSLESS = 4; * AV_CODEC_PROP_REORDER = 8; * AV_CODEC_PROP_BITMAP_SUB = 65536; * AV_CODEC_PROP_TEXT_SUB = 131072; * AV_INPUT_BUFFER_PADDING_SIZE = 64; * AV_INPUT_BUFFER_MIN_SIZE = 16384; * AVDISCARD_NONE = -16; * AVDISCARD_DEFAULT = 0; * AVDISCARD_NONREF = 8; * AVDISCARD_BIDIR = 16; * AVDISCARD_NONINTRA = 24; * AVDISCARD_NONKEY = 32; * AVDISCARD_ALL = 48; * AV_AUDIO_SERVICE_TYPE_MAIN = 0; * AV_AUDIO_SERVICE_TYPE_EFFECTS = 1; * AV_AUDIO_SERVICE_TYPE_VISUALLY_IMPAIRED = 2; * AV_AUDIO_SERVICE_TYPE_HEARING_IMPAIRED = 3; * AV_AUDIO_SERVICE_TYPE_DIALOGUE = 4; * AV_AUDIO_SERVICE_TYPE_COMMENTARY = 5; * AV_AUDIO_SERVICE_TYPE_EMERGENCY = 6; * AV_AUDIO_SERVICE_TYPE_VOICE_OVER = 7; * AV_AUDIO_SERVICE_TYPE_KARAOKE = 8; * AV_AUDIO_SERVICE_TYPE_NB = 9; * AV_CODEC_FLAG_UNALIGNED = 1; * AV_CODEC_FLAG_QSCALE = 2; * AV_CODEC_FLAG_4MV = 4; * AV_CODEC_FLAG_OUTPUT_CORRUPT = 8; * AV_CODEC_FLAG_QPEL = 16; * AV_CODEC_FLAG_DROPCHANGED = 32; * AV_CODEC_FLAG_PASS1 = 512; * AV_CODEC_FLAG_PASS2 = 1024; * AV_CODEC_FLAG_LOOP_FILTER = 2048; * AV_CODEC_FLAG_GRAY = 8192; * AV_CODEC_FLAG_PSNR = 32768; * AV_CODEC_FLAG_TRUNCATED = 65536; * AV_CODEC_FLAG_INTERLACED_DCT = 262144; * AV_CODEC_FLAG_LOW_DELAY = 524288; * AV_CODEC_FLAG_GLOBAL_HEADER = 4194304; * AV_CODEC_FLAG_BITEXACT = 8388608; * AV_CODEC_FLAG_AC_PRED = 16777216; * AV_CODEC_FLAG_INTERLACED_ME = 536870912; * AV_CODEC_FLAG_CLOSED_GOP = 2147483648L; * AV_CODEC_FLAG2_FAST = 1; * AV_CODEC_FLAG2_NO_OUTPUT = 4; * AV_CODEC_FLAG2_LOCAL_HEADER = 8; * AV_CODEC_FLAG2_DROP_FRAME_TIMECODE = 8192; * AV_CODEC_FLAG2_CHUNKS = 32768; * AV_CODEC_FLAG2_IGNORE_CROP = 65536; * AV_CODEC_FLAG2_SHOW_ALL = 4194304; * AV_CODEC_FLAG2_EXPORT_MVS = 268435456; * AV_CODEC_FLAG2_SKIP_MANUAL = 536870912; * AV_CODEC_FLAG2_RO_FLUSH_NOOP = 1073741824; * AV_CODEC_CAP_DRAW_HORIZ_BAND = 1; * AV_CODEC_CAP_DR1 = 2; * AV_CODEC_CAP_TRUNCATED = 8; * AV_CODEC_CAP_DELAY = 32; * AV_CODEC_CAP_SMALL_LAST_FRAME = 64; * AV_CODEC_CAP_SUBFRAMES = 256; * AV_CODEC_CAP_EXPERIMENTAL = 512; * AV_CODEC_CAP_CHANNEL_CONF = 1024; * AV_CODEC_CAP_FRAME_THREADS = 4096; * AV_CODEC_CAP_SLICE_THREADS = 8192; * AV_CODEC_CAP_PARAM_CHANGE = 16384; * AV_CODEC_CAP_AUTO_THREADS = 32768; * AV_CODEC_CAP_VARIABLE_FRAME_SIZE = 65536; * AV_CODEC_CAP_AVOID_PROBING = 131072; * AV_CODEC_CAP_INTRA_ONLY = 1073741824; * AV_CODEC_CAP_LOSSLESS = -2147483648; * AV_CODEC_CAP_HARDWARE = 262144; * AV_CODEC_CAP_HYBRID = 524288; * AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE = 1048576; * AV_GET_BUFFER_FLAG_REF = 1; * AV_PKT_DATA_PALETTE = 0; * AV_PKT_DATA_NEW_EXTRADATA = 1; * AV_PKT_DATA_PARAM_CHANGE = 2; * AV_PKT_DATA_H263_MB_INFO = 3; * AV_PKT_DATA_REPLAYGAIN = 4; * AV_PKT_DATA_DISPLAYMATRIX = 5; * AV_PKT_DATA_STEREO3D = 6; * AV_PKT_DATA_AUDIO_SERVICE_TYPE = 7; * AV_PKT_DATA_QUALITY_STATS = 8; * AV_PKT_DATA_FALLBACK_TRACK = 9; * AV_PKT_DATA_CPB_PROPERTIES = 10; * AV_PKT_DATA_SKIP_SAMPLES = 11; * AV_PKT_DATA_JP_DUALMONO = 12; * AV_PKT_DATA_STRINGS_METADATA = 13; * AV_PKT_DATA_SUBTITLE_POSITION = 14; * AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL = 15; * AV_PKT_DATA_WEBVTT_IDENTIFIER = 16; * AV_PKT_DATA_WEBVTT_SETTINGS = 17; * AV_PKT_DATA_METADATA_UPDATE = 18; * AV_PKT_DATA_MPEGTS_STREAM_ID = 19; * AV_PKT_DATA_MASTERING_DISPLAY_METADATA = 20; * AV_PKT_DATA_SPHERICAL = 21; * AV_PKT_DATA_CONTENT_LIGHT_LEVEL = 22; * AV_PKT_DATA_A53_CC = 23; * AV_PKT_DATA_ENCRYPTION_INIT_INFO = 24; * AV_PKT_DATA_ENCRYPTION_INFO = 25; * AV_PKT_DATA_AFD = 26; * AV_PKT_DATA_NB = 27; * AV_PKT_DATA_QUALITY_FACTOR = 8; * AV_PKT_FLAG_KEY = 1; * AV_PKT_FLAG_CORRUPT = 2; * AV_PKT_FLAG_DISCARD = 4; * AV_PKT_FLAG_TRUSTED = 8; * AV_PKT_FLAG_DISPOSABLE = 16; * AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT = 1; * AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_LAYOUT = 2; * AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE = 4; * AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS = 8; * AV_FIELD_UNKNOWN = 0; * AV_FIELD_PROGRESSIVE = 1; * AV_FIELD_TT = 2; * AV_FIELD_BB = 3; * AV_FIELD_TB = 4; * AV_FIELD_BT = 5; * AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX = 1; * AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX = 2; * AV_CODEC_HW_CONFIG_METHOD_INTERNAL = 4; * AV_CODEC_HW_CONFIG_METHOD_AD_HOC = 8; * AV_HWACCEL_CODEC_CAP_EXPERIMENTAL = 512; * AV_HWACCEL_FLAG_IGNORE_LEVEL = 1; * AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH = 2; * AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH = 4; * SUBTITLE_NONE = 0; * SUBTITLE_BITMAP = 1; * SUBTITLE_TEXT = 2; * SUBTITLE_ASS = 3; * AV_SUBTITLE_FLAG_FORCED = 1; * AV_PICTURE_STRUCTURE_UNKNOWN = 0; * AV_PICTURE_STRUCTURE_TOP_FIELD = 1; * AV_PICTURE_STRUCTURE_BOTTOM_FIELD = 2; * AV_PICTURE_STRUCTURE_FRAME = 3; */ private int videoCodec; /** * 音讯编解码器;音频编码格式;音频编解码; * 默认为:86018 AV_CODEC_ID_AAC * 参考值: * AV_CODEC_ID_NONE = 0; * AV_CODEC_ID_MPEG1VIDEO = 1; * AV_CODEC_ID_MPEG2VIDEO = 2; * AV_CODEC_ID_H261 = 3; * AV_CODEC_ID_H263 = 4; * AV_CODEC_ID_RV10 = 5; * AV_CODEC_ID_RV20 = 6; * AV_CODEC_ID_MJPEG = 7; * AV_CODEC_ID_MJPEGB = 8; * AV_CODEC_ID_LJPEG = 9; * AV_CODEC_ID_SP5X = 10; * AV_CODEC_ID_JPEGLS = 11; * AV_CODEC_ID_MPEG4 = 12; * AV_CODEC_ID_RAWVIDEO = 13; * AV_CODEC_ID_MSMPEG4V1 = 14; * AV_CODEC_ID_MSMPEG4V2 = 15; * AV_CODEC_ID_MSMPEG4V3 = 16; * AV_CODEC_ID_WMV1 = 17; * AV_CODEC_ID_WMV2 = 18; * AV_CODEC_ID_H263P = 19; * AV_CODEC_ID_H263I = 20; * AV_CODEC_ID_FLV1 = 21; * AV_CODEC_ID_SVQ1 = 22; * AV_CODEC_ID_SVQ3 = 23; * AV_CODEC_ID_DVVIDEO = 24; * AV_CODEC_ID_HUFFYUV = 25; * AV_CODEC_ID_CYUV = 26; * AV_CODEC_ID_H264 = 27; * AV_CODEC_ID_INDEO3 = 28; * AV_CODEC_ID_VP3 = 29; * AV_CODEC_ID_THEORA = 30; * AV_CODEC_ID_ASV1 = 31; * AV_CODEC_ID_ASV2 = 32; * AV_CODEC_ID_FFV1 = 33; * AV_CODEC_ID_4XM = 34; * AV_CODEC_ID_VCR1 = 35; * AV_CODEC_ID_CLJR = 36; * AV_CODEC_ID_MDEC = 37; * AV_CODEC_ID_ROQ = 38; * AV_CODEC_ID_INTERPLAY_VIDEO = 39; * AV_CODEC_ID_XAN_WC3 = 40; * AV_CODEC_ID_XAN_WC4 = 41; * AV_CODEC_ID_RPZA = 42; * AV_CODEC_ID_CINEPAK = 43; * AV_CODEC_ID_WS_VQA = 44; * AV_CODEC_ID_MSRLE = 45; * AV_CODEC_ID_MSVIDEO1 = 46; * AV_CODEC_ID_IDCIN = 47; * AV_CODEC_ID_8BPS = 48; * AV_CODEC_ID_SMC = 49; * AV_CODEC_ID_FLIC = 50; * AV_CODEC_ID_TRUEMOTION1 = 51; * AV_CODEC_ID_VMDVIDEO = 52; * AV_CODEC_ID_MSZH = 53; * AV_CODEC_ID_ZLIB = 54; * AV_CODEC_ID_QTRLE = 55; * AV_CODEC_ID_TSCC = 56; * AV_CODEC_ID_ULTI = 57; * AV_CODEC_ID_QDRAW = 58; * AV_CODEC_ID_VIXL = 59; * AV_CODEC_ID_QPEG = 60; * AV_CODEC_ID_PNG = 61; * AV_CODEC_ID_PPM = 62; * AV_CODEC_ID_PBM = 63; * AV_CODEC_ID_PGM = 64; * AV_CODEC_ID_PGMYUV = 65; * AV_CODEC_ID_PAM = 66; * AV_CODEC_ID_FFVHUFF = 67; * AV_CODEC_ID_RV30 = 68; * AV_CODEC_ID_RV40 = 69; * AV_CODEC_ID_VC1 = 70; * AV_CODEC_ID_WMV3 = 71; * AV_CODEC_ID_LOCO = 72; * AV_CODEC_ID_WNV1 = 73; * AV_CODEC_ID_AASC = 74; * AV_CODEC_ID_INDEO2 = 75; * AV_CODEC_ID_FRAPS = 76; * AV_CODEC_ID_TRUEMOTION2 = 77; * AV_CODEC_ID_BMP = 78; * AV_CODEC_ID_CSCD = 79; * AV_CODEC_ID_MMVIDEO = 80; * AV_CODEC_ID_ZMBV = 81; * AV_CODEC_ID_AVS = 82; * AV_CODEC_ID_SMACKVIDEO = 83; * AV_CODEC_ID_NUV = 84; * AV_CODEC_ID_KMVC = 85; * AV_CODEC_ID_FLASHSV = 86; * AV_CODEC_ID_CAVS = 87; * AV_CODEC_ID_JPEG2000 = 88; * AV_CODEC_ID_VMNC = 89; * AV_CODEC_ID_VP5 = 90; * AV_CODEC_ID_VP6 = 91; * AV_CODEC_ID_VP6F = 92; * AV_CODEC_ID_TARGA = 93; * AV_CODEC_ID_DSICINVIDEO = 94; * AV_CODEC_ID_TIERTEXSEQVIDEO = 95; * AV_CODEC_ID_TIFF = 96; * AV_CODEC_ID_GIF = 97; * AV_CODEC_ID_DXA = 98; * AV_CODEC_ID_DNXHD = 99; * AV_CODEC_ID_THP = 100; * AV_CODEC_ID_SGI = 101; * AV_CODEC_ID_C93 = 102; * AV_CODEC_ID_BETHSOFTVID = 103; * AV_CODEC_ID_PTX = 104; * AV_CODEC_ID_TXD = 105; * AV_CODEC_ID_VP6A = 106; * AV_CODEC_ID_AMV = 107; * AV_CODEC_ID_VB = 108; * AV_CODEC_ID_PCX = 109; * AV_CODEC_ID_SUNRAST = 110; * AV_CODEC_ID_INDEO4 = 111; * AV_CODEC_ID_INDEO5 = 112; * AV_CODEC_ID_MIMIC = 113; * AV_CODEC_ID_RL2 = 114; * AV_CODEC_ID_ESCAPE124 = 115; * AV_CODEC_ID_DIRAC = 116; * AV_CODEC_ID_BFI = 117; * AV_CODEC_ID_CMV = 118; * AV_CODEC_ID_MOTIONPIXELS = 119; * AV_CODEC_ID_TGV = 120; * AV_CODEC_ID_TGQ = 121; * AV_CODEC_ID_TQI = 122; * AV_CODEC_ID_AURA = 123; * AV_CODEC_ID_AURA2 = 124; * AV_CODEC_ID_V210X = 125; * AV_CODEC_ID_TMV = 126; * AV_CODEC_ID_V210 = 127; * AV_CODEC_ID_DPX = 128; * AV_CODEC_ID_MAD = 129; * AV_CODEC_ID_FRWU = 130; * AV_CODEC_ID_FLASHSV2 = 131; * AV_CODEC_ID_CDGRAPHICS = 132; * AV_CODEC_ID_R210 = 133; * AV_CODEC_ID_ANM = 134; * AV_CODEC_ID_BINKVIDEO = 135; * AV_CODEC_ID_IFF_ILBM = 136; * AV_CODEC_ID_IFF_BYTERUN1 = 136; * AV_CODEC_ID_KGV1 = 137; * AV_CODEC_ID_YOP = 138; * AV_CODEC_ID_VP8 = 139; * AV_CODEC_ID_PICTOR = 140; * AV_CODEC_ID_ANSI = 141; * AV_CODEC_ID_A64_MULTI = 142; * AV_CODEC_ID_A64_MULTI5 = 143; * AV_CODEC_ID_R10K = 144; * AV_CODEC_ID_MXPEG = 145; * AV_CODEC_ID_LAGARITH = 146; * AV_CODEC_ID_PRORES = 147; * AV_CODEC_ID_JV = 148; * AV_CODEC_ID_DFA = 149; * AV_CODEC_ID_WMV3IMAGE = 150; * AV_CODEC_ID_VC1IMAGE = 151; * AV_CODEC_ID_UTVIDEO = 152; * AV_CODEC_ID_BMV_VIDEO = 153; * AV_CODEC_ID_VBLE = 154; * AV_CODEC_ID_DXTORY = 155; * AV_CODEC_ID_V410 = 156; * AV_CODEC_ID_XWD = 157; * AV_CODEC_ID_CDXL = 158; * AV_CODEC_ID_XBM = 159; * AV_CODEC_ID_ZEROCODEC = 160; * AV_CODEC_ID_MSS1 = 161; * AV_CODEC_ID_MSA1 = 162; * AV_CODEC_ID_TSCC2 = 163; * AV_CODEC_ID_MTS2 = 164; * AV_CODEC_ID_CLLC = 165; * AV_CODEC_ID_MSS2 = 166; * AV_CODEC_ID_VP9 = 167; * AV_CODEC_ID_AIC = 168; * AV_CODEC_ID_ESCAPE130 = 169; * AV_CODEC_ID_G2M = 170; * AV_CODEC_ID_WEBP = 171; * AV_CODEC_ID_HNM4_VIDEO = 172; * AV_CODEC_ID_HEVC = 173; * AV_CODEC_ID_H265 = 173; * AV_CODEC_ID_FIC = 174; * AV_CODEC_ID_ALIAS_PIX = 175; * AV_CODEC_ID_BRENDER_PIX = 176; * AV_CODEC_ID_PAF_VIDEO = 177; * AV_CODEC_ID_EXR = 178; * AV_CODEC_ID_VP7 = 179; * AV_CODEC_ID_SANM = 180; * AV_CODEC_ID_SGIRLE = 181; * AV_CODEC_ID_MVC1 = 182; * AV_CODEC_ID_MVC2 = 183; * AV_CODEC_ID_HQX = 184; * AV_CODEC_ID_TDSC = 185; * AV_CODEC_ID_HQ_HQA = 186; * AV_CODEC_ID_HAP = 187; * AV_CODEC_ID_DDS = 188; * AV_CODEC_ID_DXV = 189; * AV_CODEC_ID_SCREENPRESSO = 190; * AV_CODEC_ID_RSCC = 191; * AV_CODEC_ID_AVS2 = 192; * AV_CODEC_ID_Y41P = 32768; * AV_CODEC_ID_AVRP = 32769; * AV_CODEC_ID_012V = 32770; * AV_CODEC_ID_AVUI = 32771; * AV_CODEC_ID_AYUV = 32772; * AV_CODEC_ID_TARGA_Y216 = 32773; * AV_CODEC_ID_V308 = 32774; * AV_CODEC_ID_V408 = 32775; * AV_CODEC_ID_YUV4 = 32776; * AV_CODEC_ID_AVRN = 32777; * AV_CODEC_ID_CPIA = 32778; * AV_CODEC_ID_XFACE = 32779; * AV_CODEC_ID_SNOW = 32780; * AV_CODEC_ID_SMVJPEG = 32781; * AV_CODEC_ID_APNG = 32782; * AV_CODEC_ID_DAALA = 32783; * AV_CODEC_ID_CFHD = 32784; * AV_CODEC_ID_TRUEMOTION2RT = 32785; * AV_CODEC_ID_M101 = 32786; * AV_CODEC_ID_MAGICYUV = 32787; * AV_CODEC_ID_SHEERVIDEO = 32788; * AV_CODEC_ID_YLC = 32789; * AV_CODEC_ID_PSD = 32790; * AV_CODEC_ID_PIXLET = 32791; * AV_CODEC_ID_SPEEDHQ = 32792; * AV_CODEC_ID_FMVC = 32793; * AV_CODEC_ID_SCPR = 32794; * AV_CODEC_ID_CLEARVIDEO = 32795; * AV_CODEC_ID_XPM = 32796; * AV_CODEC_ID_AV1 = 32797; * AV_CODEC_ID_BITPACKED = 32798; * AV_CODEC_ID_MSCC = 32799; * AV_CODEC_ID_SRGC = 32800; * AV_CODEC_ID_SVG = 32801; * AV_CODEC_ID_GDV = 32802; * AV_CODEC_ID_FITS = 32803; * AV_CODEC_ID_IMM4 = 32804; * AV_CODEC_ID_PROSUMER = 32805; * AV_CODEC_ID_MWSC = 32806; * AV_CODEC_ID_WCMV = 32807; * AV_CODEC_ID_RASC = 32808; * AV_CODEC_ID_HYMT = 32809; * AV_CODEC_ID_ARBC = 32810; * AV_CODEC_ID_AGM = 32811; * AV_CODEC_ID_LSCR = 32812; * AV_CODEC_ID_VP4 = 32813; * AV_CODEC_ID_FIRST_AUDIO = 65536; * AV_CODEC_ID_PCM_S16LE = 65536; * AV_CODEC_ID_PCM_S16BE = 65537; * AV_CODEC_ID_PCM_U16LE = 65538; * AV_CODEC_ID_PCM_U16BE = 65539; * AV_CODEC_ID_PCM_S8 = 65540; * AV_CODEC_ID_PCM_U8 = 65541; * AV_CODEC_ID_PCM_MULAW = 65542; * AV_CODEC_ID_PCM_ALAW = 65543; * AV_CODEC_ID_PCM_S32LE = 65544; * AV_CODEC_ID_PCM_S32BE = 65545; * AV_CODEC_ID_PCM_U32LE = 65546; * AV_CODEC_ID_PCM_U32BE = 65547; * AV_CODEC_ID_PCM_S24LE = 65548; * AV_CODEC_ID_PCM_S24BE = 65549; * AV_CODEC_ID_PCM_U24LE = 65550; * AV_CODEC_ID_PCM_U24BE = 65551; * AV_CODEC_ID_PCM_S24DAUD = 65552; * AV_CODEC_ID_PCM_ZORK = 65553; * AV_CODEC_ID_PCM_S16LE_PLANAR = 65554; * AV_CODEC_ID_PCM_DVD = 65555; * AV_CODEC_ID_PCM_F32BE = 65556; * AV_CODEC_ID_PCM_F32LE = 65557; * AV_CODEC_ID_PCM_F64BE = 65558; * AV_CODEC_ID_PCM_F64LE = 65559; * AV_CODEC_ID_PCM_BLURAY = 65560; * AV_CODEC_ID_PCM_LXF = 65561; * AV_CODEC_ID_S302M = 65562; * AV_CODEC_ID_PCM_S8_PLANAR = 65563; * AV_CODEC_ID_PCM_S24LE_PLANAR = 65564; * AV_CODEC_ID_PCM_S32LE_PLANAR = 65565; * AV_CODEC_ID_PCM_S16BE_PLANAR = 65566; * AV_CODEC_ID_PCM_S64LE = 67584; * AV_CODEC_ID_PCM_S64BE = 67585; * AV_CODEC_ID_PCM_F16LE = 67586; * AV_CODEC_ID_PCM_F24LE = 67587; * AV_CODEC_ID_PCM_VIDC = 67588; * AV_CODEC_ID_ADPCM_IMA_QT = 69632; * AV_CODEC_ID_ADPCM_IMA_WAV = 69633; * AV_CODEC_ID_ADPCM_IMA_DK3 = 69634; * AV_CODEC_ID_ADPCM_IMA_DK4 = 69635; * AV_CODEC_ID_ADPCM_IMA_WS = 69636; * AV_CODEC_ID_ADPCM_IMA_SMJPEG = 69637; * AV_CODEC_ID_ADPCM_MS = 69638; * AV_CODEC_ID_ADPCM_4XM = 69639; * AV_CODEC_ID_ADPCM_XA = 69640; * AV_CODEC_ID_ADPCM_ADX = 69641; * AV_CODEC_ID_ADPCM_EA = 69642; * AV_CODEC_ID_ADPCM_G726 = 69643; * AV_CODEC_ID_ADPCM_CT = 69644; * AV_CODEC_ID_ADPCM_SWF = 69645; * AV_CODEC_ID_ADPCM_YAMAHA = 69646; * AV_CODEC_ID_ADPCM_SBPRO_4 = 69647; * AV_CODEC_ID_ADPCM_SBPRO_3 = 69648; * AV_CODEC_ID_ADPCM_SBPRO_2 = 69649; * AV_CODEC_ID_ADPCM_THP = 69650; * AV_CODEC_ID_ADPCM_IMA_AMV = 69651; * AV_CODEC_ID_ADPCM_EA_R1 = 69652; * AV_CODEC_ID_ADPCM_EA_R3 = 69653; * AV_CODEC_ID_ADPCM_EA_R2 = 69654; * AV_CODEC_ID_ADPCM_IMA_EA_SEAD = 69655; * AV_CODEC_ID_ADPCM_IMA_EA_EACS = 69656; * AV_CODEC_ID_ADPCM_EA_XAS = 69657; * AV_CODEC_ID_ADPCM_EA_MAXIS_XA = 69658; * AV_CODEC_ID_ADPCM_IMA_ISS = 69659; * AV_CODEC_ID_ADPCM_G722 = 69660; * AV_CODEC_ID_ADPCM_IMA_APC = 69661; * AV_CODEC_ID_ADPCM_VIMA = 69662; * AV_CODEC_ID_ADPCM_AFC = 71680; * AV_CODEC_ID_ADPCM_IMA_OKI = 71681; * AV_CODEC_ID_ADPCM_DTK = 71682; * AV_CODEC_ID_ADPCM_IMA_RAD = 71683; * AV_CODEC_ID_ADPCM_G726LE = 71684; * AV_CODEC_ID_ADPCM_THP_LE = 71685; * AV_CODEC_ID_ADPCM_PSX = 71686; * AV_CODEC_ID_ADPCM_AICA = 71687; * AV_CODEC_ID_ADPCM_IMA_DAT4 = 71688; * AV_CODEC_ID_ADPCM_MTAF = 71689; * AV_CODEC_ID_ADPCM_AGM = 71690; * AV_CODEC_ID_AMR_NB = 73728; * AV_CODEC_ID_AMR_WB = 73729; * AV_CODEC_ID_RA_144 = 77824; * AV_CODEC_ID_RA_288 = 77825; * AV_CODEC_ID_ROQ_DPCM = 81920; * AV_CODEC_ID_INTERPLAY_DPCM = 81921; * AV_CODEC_ID_XAN_DPCM = 81922; * AV_CODEC_ID_SOL_DPCM = 81923; * AV_CODEC_ID_SDX2_DPCM = 83968; * AV_CODEC_ID_GREMLIN_DPCM = 83969; * AV_CODEC_ID_MP2 = 86016; * AV_CODEC_ID_MP3 = 86017; * AV_CODEC_ID_AAC = 86018; * AV_CODEC_ID_AC3 = 86019; * AV_CODEC_ID_DTS = 86020; * AV_CODEC_ID_VORBIS = 86021; * AV_CODEC_ID_DVAUDIO = 86022; * AV_CODEC_ID_WMAV1 = 86023; * AV_CODEC_ID_WMAV2 = 86024; * AV_CODEC_ID_MACE3 = 86025; * AV_CODEC_ID_MACE6 = 86026; * AV_CODEC_ID_VMDAUDIO = 86027; * AV_CODEC_ID_FLAC = 86028; * AV_CODEC_ID_MP3ADU = 86029; * AV_CODEC_ID_MP3ON4 = 86030; * AV_CODEC_ID_SHORTEN = 86031; * AV_CODEC_ID_ALAC = 86032; * AV_CODEC_ID_WESTWOOD_SND1 = 86033; * AV_CODEC_ID_GSM = 86034; * AV_CODEC_ID_QDM2 = 86035; * AV_CODEC_ID_COOK = 86036; * AV_CODEC_ID_TRUESPEECH = 86037; * AV_CODEC_ID_TTA = 86038; * AV_CODEC_ID_SMACKAUDIO = 86039; * AV_CODEC_ID_QCELP = 86040; * AV_CODEC_ID_WAVPACK = 86041; * AV_CODEC_ID_DSICINAUDIO = 86042; * AV_CODEC_ID_IMC = 86043; * AV_CODEC_ID_MUSEPACK7 = 86044; * AV_CODEC_ID_MLP = 86045; * AV_CODEC_ID_GSM_MS = 86046; * AV_CODEC_ID_ATRAC3 = 86047; * AV_CODEC_ID_APE = 86048; * AV_CODEC_ID_NELLYMOSER = 86049; * AV_CODEC_ID_MUSEPACK8 = 86050; * AV_CODEC_ID_SPEEX = 86051; * AV_CODEC_ID_WMAVOICE = 86052; * AV_CODEC_ID_WMAPRO = 86053; * AV_CODEC_ID_WMALOSSLESS = 86054; * AV_CODEC_ID_ATRAC3P = 86055; * AV_CODEC_ID_EAC3 = 86056; * AV_CODEC_ID_SIPR = 86057; * AV_CODEC_ID_MP1 = 86058; * AV_CODEC_ID_TWINVQ = 86059; * AV_CODEC_ID_TRUEHD = 86060; * AV_CODEC_ID_MP4ALS = 86061; * AV_CODEC_ID_ATRAC1 = 86062; * AV_CODEC_ID_BINKAUDIO_RDFT = 86063; * AV_CODEC_ID_BINKAUDIO_DCT = 86064; * AV_CODEC_ID_AAC_LATM = 86065; * AV_CODEC_ID_QDMC = 86066; * AV_CODEC_ID_CELT = 86067; * AV_CODEC_ID_G723_1 = 86068; * AV_CODEC_ID_G729 = 86069; * AV_CODEC_ID_8SVX_EXP = 86070; * AV_CODEC_ID_8SVX_FIB = 86071; * AV_CODEC_ID_BMV_AUDIO = 86072; * AV_CODEC_ID_RALF = 86073; * AV_CODEC_ID_IAC = 86074; * AV_CODEC_ID_ILBC = 86075; * AV_CODEC_ID_OPUS = 86076; * AV_CODEC_ID_COMFORT_NOISE = 86077; * AV_CODEC_ID_TAK = 86078; * AV_CODEC_ID_METASOUND = 86079; * AV_CODEC_ID_PAF_AUDIO = 86080; * AV_CODEC_ID_ON2AVC = 86081; * AV_CODEC_ID_DSS_SP = 86082; * AV_CODEC_ID_CODEC2 = 86083; * AV_CODEC_ID_FFWAVESYNTH = 88064; * AV_CODEC_ID_SONIC = 88065; * AV_CODEC_ID_SONIC_LS = 88066; * AV_CODEC_ID_EVRC = 88067; * AV_CODEC_ID_SMV = 88068; * AV_CODEC_ID_DSD_LSBF = 88069; * AV_CODEC_ID_DSD_MSBF = 88070; * AV_CODEC_ID_DSD_LSBF_PLANAR = 88071; * AV_CODEC_ID_DSD_MSBF_PLANAR = 88072; * AV_CODEC_ID_4GV = 88073; * AV_CODEC_ID_INTERPLAY_ACM = 88074; * AV_CODEC_ID_XMA1 = 88075; * AV_CODEC_ID_XMA2 = 88076; * AV_CODEC_ID_DST = 88077; * AV_CODEC_ID_ATRAC3AL = 88078; * AV_CODEC_ID_ATRAC3PAL = 88079; * AV_CODEC_ID_DOLBY_E = 88080; * AV_CODEC_ID_APTX = 88081; * AV_CODEC_ID_APTX_HD = 88082; * AV_CODEC_ID_SBC = 88083; * AV_CODEC_ID_ATRAC9 = 88084; * AV_CODEC_ID_HCOM = 88085; * AV_CODEC_ID_FIRST_SUBTITLE = 94208; * AV_CODEC_ID_DVD_SUBTITLE = 94208; * AV_CODEC_ID_DVB_SUBTITLE = 94209; * AV_CODEC_ID_TEXT = 94210; * AV_CODEC_ID_XSUB = 94211; * AV_CODEC_ID_SSA = 94212; * AV_CODEC_ID_MOV_TEXT = 94213; * AV_CODEC_ID_HDMV_PGS_SUBTITLE = 94214; * AV_CODEC_ID_DVB_TELETEXT = 94215; * AV_CODEC_ID_SRT = 94216; * AV_CODEC_ID_MICRODVD = 96256; * AV_CODEC_ID_EIA_608 = 96257; * AV_CODEC_ID_JACOSUB = 96258; * AV_CODEC_ID_SAMI = 96259; * AV_CODEC_ID_REALTEXT = 96260; * AV_CODEC_ID_STL = 96261; * AV_CODEC_ID_SUBVIEWER1 = 96262; * AV_CODEC_ID_SUBVIEWER = 96263; * AV_CODEC_ID_SUBRIP = 96264; * AV_CODEC_ID_WEBVTT = 96265; * AV_CODEC_ID_MPL2 = 96266; * AV_CODEC_ID_VPLAYER = 96267; * AV_CODEC_ID_PJS = 96268; * AV_CODEC_ID_ASS = 96269; * AV_CODEC_ID_HDMV_TEXT_SUBTITLE = 96270; * AV_CODEC_ID_TTML = 96271; * AV_CODEC_ID_ARIB_CAPTION = 96272; * AV_CODEC_ID_FIRST_UNKNOWN = 98304; * AV_CODEC_ID_TTF = 98304; * AV_CODEC_ID_SCTE_35 = 98305; * AV_CODEC_ID_BINTEXT = 100352; * AV_CODEC_ID_XBIN = 100353; * AV_CODEC_ID_IDF = 100354; * AV_CODEC_ID_OTF = 100355; * AV_CODEC_ID_SMPTE_KLV = 100356; * AV_CODEC_ID_DVD_NAV = 100357; * AV_CODEC_ID_TIMED_ID3 = 100358; * AV_CODEC_ID_BIN_DATA = 100359; * AV_CODEC_ID_PROBE = 102400; * AV_CODEC_ID_MPEG2TS = 131072; * AV_CODEC_ID_MPEG4SYSTEMS = 131073; * AV_CODEC_ID_FFMETADATA = 135168; * AV_CODEC_ID_WRAPPED_AVFRAME = 135169; * AV_CODEC_PROP_INTRA_ONLY = 1; * AV_CODEC_PROP_LOSSY = 2; * AV_CODEC_PROP_LOSSLESS = 4; * AV_CODEC_PROP_REORDER = 8; * AV_CODEC_PROP_BITMAP_SUB = 65536; * AV_CODEC_PROP_TEXT_SUB = 131072; * AV_INPUT_BUFFER_PADDING_SIZE = 64; * AV_INPUT_BUFFER_MIN_SIZE = 16384; * AVDISCARD_NONE = -16; * AVDISCARD_DEFAULT = 0; * AVDISCARD_NONREF = 8; * AVDISCARD_BIDIR = 16; * AVDISCARD_NONINTRA = 24; * AVDISCARD_NONKEY = 32; * AVDISCARD_ALL = 48; * AV_AUDIO_SERVICE_TYPE_MAIN = 0; * AV_AUDIO_SERVICE_TYPE_EFFECTS = 1; * AV_AUDIO_SERVICE_TYPE_VISUALLY_IMPAIRED = 2; * AV_AUDIO_SERVICE_TYPE_HEARING_IMPAIRED = 3; * AV_AUDIO_SERVICE_TYPE_DIALOGUE = 4; * AV_AUDIO_SERVICE_TYPE_COMMENTARY = 5; * AV_AUDIO_SERVICE_TYPE_EMERGENCY = 6; * AV_AUDIO_SERVICE_TYPE_VOICE_OVER = 7; * AV_AUDIO_SERVICE_TYPE_KARAOKE = 8; * AV_AUDIO_SERVICE_TYPE_NB = 9; * AV_CODEC_FLAG_UNALIGNED = 1; * AV_CODEC_FLAG_QSCALE = 2; * AV_CODEC_FLAG_4MV = 4; * AV_CODEC_FLAG_OUTPUT_CORRUPT = 8; * AV_CODEC_FLAG_QPEL = 16; * AV_CODEC_FLAG_DROPCHANGED = 32; * AV_CODEC_FLAG_PASS1 = 512; * AV_CODEC_FLAG_PASS2 = 1024; * AV_CODEC_FLAG_LOOP_FILTER = 2048; * AV_CODEC_FLAG_GRAY = 8192; * AV_CODEC_FLAG_PSNR = 32768; * AV_CODEC_FLAG_TRUNCATED = 65536; * AV_CODEC_FLAG_INTERLACED_DCT = 262144; * AV_CODEC_FLAG_LOW_DELAY = 524288; * AV_CODEC_FLAG_GLOBAL_HEADER = 4194304; * AV_CODEC_FLAG_BITEXACT = 8388608; * AV_CODEC_FLAG_AC_PRED = 16777216; * AV_CODEC_FLAG_INTERLACED_ME = 536870912; * AV_CODEC_FLAG_CLOSED_GOP = 2147483648L; * AV_CODEC_FLAG2_FAST = 1; * AV_CODEC_FLAG2_NO_OUTPUT = 4; * AV_CODEC_FLAG2_LOCAL_HEADER = 8; * AV_CODEC_FLAG2_DROP_FRAME_TIMECODE = 8192; * AV_CODEC_FLAG2_CHUNKS = 32768; * AV_CODEC_FLAG2_IGNORE_CROP = 65536; * AV_CODEC_FLAG2_SHOW_ALL = 4194304; * AV_CODEC_FLAG2_EXPORT_MVS = 268435456; * AV_CODEC_FLAG2_SKIP_MANUAL = 536870912; * AV_CODEC_FLAG2_RO_FLUSH_NOOP = 1073741824; * AV_CODEC_CAP_DRAW_HORIZ_BAND = 1; * AV_CODEC_CAP_DR1 = 2; * AV_CODEC_CAP_TRUNCATED = 8; * AV_CODEC_CAP_DELAY = 32; * AV_CODEC_CAP_SMALL_LAST_FRAME = 64; * AV_CODEC_CAP_SUBFRAMES = 256; * AV_CODEC_CAP_EXPERIMENTAL = 512; * AV_CODEC_CAP_CHANNEL_CONF = 1024; * AV_CODEC_CAP_FRAME_THREADS = 4096; * AV_CODEC_CAP_SLICE_THREADS = 8192; * AV_CODEC_CAP_PARAM_CHANGE = 16384; * AV_CODEC_CAP_AUTO_THREADS = 32768; * AV_CODEC_CAP_VARIABLE_FRAME_SIZE = 65536; * AV_CODEC_CAP_AVOID_PROBING = 131072; * AV_CODEC_CAP_INTRA_ONLY = 1073741824; * AV_CODEC_CAP_LOSSLESS = -2147483648; * AV_CODEC_CAP_HARDWARE = 262144; * AV_CODEC_CAP_HYBRID = 524288; * AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE = 1048576; * AV_GET_BUFFER_FLAG_REF = 1; * AV_PKT_DATA_PALETTE = 0; * AV_PKT_DATA_NEW_EXTRADATA = 1; * AV_PKT_DATA_PARAM_CHANGE = 2; * AV_PKT_DATA_H263_MB_INFO = 3; * AV_PKT_DATA_REPLAYGAIN = 4; * AV_PKT_DATA_DISPLAYMATRIX = 5; * AV_PKT_DATA_STEREO3D = 6; * AV_PKT_DATA_AUDIO_SERVICE_TYPE = 7; * AV_PKT_DATA_QUALITY_STATS = 8; * AV_PKT_DATA_FALLBACK_TRACK = 9; * AV_PKT_DATA_CPB_PROPERTIES = 10; * AV_PKT_DATA_SKIP_SAMPLES = 11; * AV_PKT_DATA_JP_DUALMONO = 12; * AV_PKT_DATA_STRINGS_METADATA = 13; * AV_PKT_DATA_SUBTITLE_POSITION = 14; * AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL = 15; * AV_PKT_DATA_WEBVTT_IDENTIFIER = 16; * AV_PKT_DATA_WEBVTT_SETTINGS = 17; * AV_PKT_DATA_METADATA_UPDATE = 18; * AV_PKT_DATA_MPEGTS_STREAM_ID = 19; * AV_PKT_DATA_MASTERING_DISPLAY_METADATA = 20; * AV_PKT_DATA_SPHERICAL = 21; * AV_PKT_DATA_CONTENT_LIGHT_LEVEL = 22; * AV_PKT_DATA_A53_CC = 23; * AV_PKT_DATA_ENCRYPTION_INIT_INFO = 24; * AV_PKT_DATA_ENCRYPTION_INFO = 25; * AV_PKT_DATA_AFD = 26; * AV_PKT_DATA_NB = 27; * AV_PKT_DATA_QUALITY_FACTOR = 8; * AV_PKT_FLAG_KEY = 1; * AV_PKT_FLAG_CORRUPT = 2; * AV_PKT_FLAG_DISCARD = 4; * AV_PKT_FLAG_TRUSTED = 8; * AV_PKT_FLAG_DISPOSABLE = 16; * AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT = 1; * AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_LAYOUT = 2; * AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE = 4; * AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS = 8; * AV_FIELD_UNKNOWN = 0; * AV_FIELD_PROGRESSIVE = 1; * AV_FIELD_TT = 2; * AV_FIELD_BB = 3; * AV_FIELD_TB = 4; * AV_FIELD_BT = 5; * AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX = 1; * AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX = 2; * AV_CODEC_HW_CONFIG_METHOD_INTERNAL = 4; * AV_CODEC_HW_CONFIG_METHOD_AD_HOC = 8; * AV_HWACCEL_CODEC_CAP_EXPERIMENTAL = 512; * AV_HWACCEL_FLAG_IGNORE_LEVEL = 1; * AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH = 2; * AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH = 4; * SUBTITLE_NONE = 0; * SUBTITLE_BITMAP = 1; * SUBTITLE_TEXT = 2; * SUBTITLE_ASS = 3; * AV_SUBTITLE_FLAG_FORCED = 1; * AV_PICTURE_STRUCTURE_UNKNOWN = 0; * AV_PICTURE_STRUCTURE_TOP_FIELD = 1; * AV_PICTURE_STRUCTURE_BOTTOM_FIELD = 2; * AV_PICTURE_STRUCTURE_FRAME = 3; */ private int audioCodec; /** * 确定视频格式 * 可以是flv、mov、mp4、m4a、3gp、3g2、mj2、h264、ogg * 如果你更改了这个参数,那么你需要同步更改视频解码的方式(videoCodec) * 默认是:mp4 */ private String format; /** * 音频采样率:指录音设备在一秒钟内对声音信号的采样次数 * 采样频率越高声音的还原就越真实越自然 * 在当今的主流采集卡上,采样频率一般共分为11025Hz、22050Hz、24000Hz、44100Hz、48000Hz五个等级 * 8000Hz一般为电话所用采样率,对于人的说话已经足够 * 11025Hz一般为AM调幅广播的声音品质 * 22050Hz和24000Hz一般为FM调频广播所用采样率 * 32000Hz一般为miniDV、数码视频camcorder、DAT (LP mode)所用采样率 * 44100Hz一般为音频(CD、VCD、超级VCD、MP3)所用采样率 * 48000Hz一般为miniDV、数字电视、DVD、DAT、电影和专业音频所用的数字声音所用采样率 * 这个数值也要看你的录音设备是否可以支持你设置的数值 * 默认是:48000Hz */ private int sampleRate; /** * 帧频,帧速率,是指每秒钟刷新的图片的帧数 * 也可以理解为图形处理器每秒钟能够刷新几次 * 对影片内容而言,帧速率指每秒所显示的静止帧格数 * 要生成平滑连贯的动画效果,帧速率一般不小于8fps * 而电影的帧速率一般为24fps,如果是那种需要动态捕捉的,帧频会更高 * 但如果你只是录屏5fps也是可以的 * 如果太高的话会出现声音和画面对不上的情况 * 默认是:10FPS */ private int frameRate; /** * 关键帧间隔,一般与帧率相同或者是视频帧率的两倍 * 默认是:frameRate * 2 */ private int gopSize; /** * 视频质量 * 默认是:0最高质量 */ private int videoQuality; /** * 音频的质量 * 默认是:0最高质量 */ private int audioQuality; /** * 设定固定视频比特率 * 2000kb/s,720P视频的合理比特率范围 * 默认是:2000000 */ private int videoBitrate; /** * 设置固定的音频比特率 * 默认是:192000 192Kbps */ private int audioBitrate; /** * 设置内容速率因子,这是一个x264的动态比特率参数 * 它能够在复杂场景下(使用不同比特率,即可变比特率)保持视频质量 * 比特率越高视频越清晰,视频体积也会变大,需要根据实际选择合理范围 * 设置固定位元率系数,可以设置为0 * 默认是:25 */ private String crf; /** * 权衡 视频质量 和 编码速度 的值,参考值如下: * ultrafast(终极快),superfast(超级快),veryfast(非常快),faster(很快), * fast(快),medium(中等),slow(慢),slower(很慢),veryslow(非常慢) * <br> * ultrafast(终极快)提供最少的压缩(低编码器CPU)和最大的视频流大小 * veryslow(非常慢)提供最佳的压缩(高编码器CPU)的同时降低视频流的大小 * 默认是:slow */ private String preset; /** * 设置像素格式 * YUV420一帧的大小size=width×height×1.5 Byte * 这个值一般情况下不需要改变 * 默认是:0 AV_PIX_FMT_YUV420P */ private int pixelFormat; /** * 设置音频的声道 * 可选值为:2(立体声);1(单声道);0(无音频); * 默认是:2 双通道(立体声) */ private int audioChannels; /** * 录取的视频需要保存到的目录 * 这个是文件夹,文件目录,不是文件 * 默认是:当前系统工作目录 System.getProperty("user.dir") */ private String saveTo; /** * 录屏的同时是否需要录音 * 需要有录音设备的支持 * 如果设置为false,那么上面所有的关于音频的设置无效. * 默认是:true需要 */ private boolean isAudioRecorder; /** * 设置核心线程池的大小 * 默认是你当前CPU的核心数的一半 * 如果你是单核CPU,线程池大小为1 */ private int corePoolSize; }
最近下载更多