问:
java.lang.UnsupportedOperationException: cannot encode with codec: CODEC_ID_MP3
i am running this simple sample from lib WebCam-capture with no success.Here is my code and below it i describe the exception problem

```<code>File file = new File("output.ts");

        IMediaWriter writer = ToolFactory.makeWriter(file.getName());
        Dimension size = WebcamResolution.QVGA.getSize();

        writer.addVideoStream(0, 0, ICodec.ID.CODEC_ID_H264, size.width, size.height);

        Webcam webcam = Webcam.getDefault();
        webcam.setViewSize(size);
        webcam.open(true);

        long start = System.currentTimeMillis();

        for (int i = 0; i < 50; i++) {

            System.out.println("Capture frame " + i);

            BufferedImage image = ConverterFactory.convertToType(webcam.getImage(), BufferedImage.TYPE_3BYTE_BGR);
            IConverter converter = ConverterFactory.createConverter(image, IPixelFormat.Type.YUV420P);

            IVideoPicture frame = converter.toPicture(image, (System.currentTimeMillis() - start) * 1000);
            frame.setKeyFrame(i == 0);
            frame.setQuality(0);

            writer.encodeVideo(0, frame);

            // 10 FPS
            Thread.sleep(100);
        }

        writer.close();

        System.out.println("Video recorded in file: " + file.getAbsolutePath());
</code>```

Here is the exception why is this happened and how i can solve it?

```<code>Exception in thread "main" java.lang.UnsupportedOperationException: cannot encode with codec: CODEC_ID_H264
    at com.xuggle.mediatool.MediaWriter.addVideoStream(MediaWriter.java:440)
    at com.xuggle.mediatool.MediaWriter.addVideoStream(MediaWriter.java:430)
    at com.panos.WebCamRecorder.vRecorder(WebCamRecorder.java:80)
    at com.panos.App.main(App.java:39)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
</code>```

答:
Unfortunately, the build of Xuggler (the Java FFmpeg wrapper you are using in your code) that you are using does not support encoding with mp3 audio or with H.264 video. It looks like you're using an LGPL build. With an LGPL build of Xuggler you can only "Decode" those codecs. To do encoding, you'll need a version of Xuggler that wraps an FFmpeg build supporting those decoders.

Here are the codecs supported by a build without enabling GPL and non-free (D means it can decode, E means it can encode). Be sure to search through the whole list as there are duplicate entries for decoding and encoding:

```Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_FLASHSV name=flashsv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_LOCO    name=loco
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_XAN_WC3 name=xan_wc3
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_QCELP   name=qcelp
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_ADPCM_G722  name=g722
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_BINTEXT name=bintext
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_ESCAPE130   name=escape130
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_ROQ name=roqvideo
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_UTVIDEO name=utvideo
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_WMAPRO  name=wmapro
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_BMV_AUDIO   name=bmv_audio
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_S16LE_PLANAR    name=pcm_s16le_planar
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_PRORES  name=prores_anatoliy
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_AURA    name=aura
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_TARGA   name=targa
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_INDEO2  name=indeo2
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_ZMBV    name=zmbv
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_S8  name=pcm_s8
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_XA    name=adpcm_xa
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_G723_1  name=g723_1
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_FRWU    name=frwu
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MPEG2VIDEO  name=mpegvideo
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_WMV3    name=wmv3
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_IMA_AMV   name=adpcm_ima_amv
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_SHORTEN name=shorten
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_ROQ name=roqvideo
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_GIF name=gif
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_WMAV2   name=wmav2
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_WMV1    name=wmv1
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_MP2 name=mp2
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_SOL_DPCM    name=sol_dpcm
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_JPEGLS  name=jpegls
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_QPEG    name=qpeg
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VP6 name=vp6
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_AAC name=aac
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_S24DAUD name=pcm_s24daud
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MACE6   name=mace6
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_IMA_WAV   name=adpcm_ima_wav
Codec type=CODEC_TYPE_SUBTITLE  D   id=CODEC_ID_SRT name=srt
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_DVVIDEO name=dvvideo
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MDEC    name=mdec
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_SMC name=smc
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_IMA_APC   name=adpcm_ima_apc
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_SONIC_LS    name=sonicls
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_PGM name=pgm
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_8SVX_EXP    name=8svx_exp
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_ALAW    name=pcm_alaw
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_WMV1    name=wmv1
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_FFWAVESYNTH name=wavesynth
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_FIRST_AUDIO name=pcm_s16le
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_VP8 name=libvpx
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_DPX name=dpx
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_A64_MULTI   name=a64multi
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MMVIDEO name=mmvideo
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_WS_VQA  name=vqavideo
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MLP name=mlp
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_S24BE   name=pcm_s24be
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_WMAV1   name=wmav1
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_XBM name=xbm
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_INDEO5  name=indeo5
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_R210    name=r210
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_AVRP    name=avrp
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VMNC    name=vmnc
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_AMR_WB  name=amrwb
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_G726  name=g726
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_IMA_WS    name=adpcm_ima_ws
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VP6F    name=vp6f
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_4XM name=4xm
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_PCX name=pcx
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_EAC3    name=eac3
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ROQ_DPCM    name=roq_dpcm
Codec type=CODEC_TYPE_SUBTITLE  D   id=CODEC_ID_FIRST_SUBTITLE  name=dvdsub
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MAD name=eamad
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_ASV1    name=asv1
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_MSMPEG4V2   name=msmpeg4v2
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_TRUEMOTION2 name=truemotion2
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_F32LE   name=pcm_f32le
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MACE3   name=mace3
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_U24BE   name=pcm_u24be
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_AAC name=aac
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_INDEO3  name=indeo3
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_DFA name=dfa
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_MJPEG   name=mjpeg
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_V210X   name=v210x
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_S32LE   name=pcm_s32le
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_THP   name=adpcm_thp
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_DSICINAUDIO name=dsicinaudio
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_WNV1    name=wnv1
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_FRAPS   name=fraps
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_PTX name=ptx
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MUSEPACK8   name=mpc8
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_S8  name=pcm_s8
Codec type=CODEC_TYPE_SUBTITLE  D   id=CODEC_ID_DVB_SUBTITLE    name=dvbsub
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_FFV1    name=ffv1
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_ASV1    name=asv1
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_TSCC    name=camtasia
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_VORBIS  name=vorbis
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_AC3 name=ac3
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_S32BE   name=pcm_s32be
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_PRORES  name=prores
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_JPEG2000    name=j2k
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_ANSI    name=ansi
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_TARGA   name=targa
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_U16BE   name=pcm_u16be
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_ADPCM_YAMAHA    name=adpcm_yamaha
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_RA_144  name=real_144
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_PNG name=png
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_Y41P    name=y41p
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_SVQ1    name=svq1
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_PRORES  name=prores_lgpl
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_H263I   name=h263i
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VIXL    name=xl
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_AMR_NB  name=amrnb
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_FIRST_AUDIO name=pcm_s16le
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_MS    name=adpcm_ms
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_IDF name=idf
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_CLJR    name=cljr
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_FLV1    name=flv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MSZH    name=mszh
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VMDVIDEO    name=vmdvideo
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_IMC name=imc
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_G722  name=g722
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_DPX name=dpx
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_CINEPAK name=cinepak
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_MSMPEG4V3   name=msmpeg4
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_V410    name=v410
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_F32BE   name=pcm_f32be
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_SONIC   name=sonic
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_F64BE   name=pcm_f64be
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_INTERPLAY_VIDEO name=interplayvideo
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_QTRLE   name=qtrle
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VB  name=vb
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_ZLIB    name=zlib
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_U24LE   name=pcm_u24le
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_TTA name=tta
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_SWF   name=adpcm_swf
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_AMR_NB  name=libopencore_amrnb
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_FFVHUFF name=ffvhuff
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_LJPEG   name=ljpeg
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_SNOW    name=snow
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MP1 name=mp1float
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_F64LE   name=pcm_f64le
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VC1IMAGE    name=vc1image
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_FLIC    name=flic
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_CLJR    name=cljr
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_PNG name=png
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_F32LE   name=pcm_f32le
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_FLAC    name=flac
Codec type=CODEC_TYPE_SUBTITLE  D   id=CODEC_ID_HDMV_PGS_SUBTITLE   name=pgssub
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_ADX   name=adpcm_adx
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_XBM name=xbm
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_JPEG2000    name=j2k
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_A64_MULTI5  name=a64multi5
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_R10K    name=r10k
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VC1 name=vc1
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_S16BE   name=pcm_s16be
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_ADPCM_IMA_QT    name=adpcm_ima_qt
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_RA_288  name=real_288
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_TGV name=eatgv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MSMPEG4V2   name=msmpeg4v2
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_WMV2    name=wmv2
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_COOK    name=cook
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_U32LE   name=pcm_u32le
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_DSICINVIDEO name=dsicinvideo
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_RV10    name=rv10
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_AC3 name=ac3_fixed
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_EA_R2 name=adpcm_ea_r2
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_RPZA    name=rpza
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VP6A    name=vp6a
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_EXR name=exr
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_ANM name=anm
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MJPEGB  name=mjpegb
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_EAC3    name=eac3
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_SPEEX   name=libspeex
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_INTERPLAY_DPCM  name=interplay_dpcm
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_WESTWOOD_SND1   name=ws_snd1
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_MPEG1VIDEO  name=mpeg1video
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_IFF_ILBM    name=iff_ilbm
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VBLE    name=vble
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_YUV4    name=yuv4
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_U32BE   name=pcm_u32be
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MP3ADU  name=mp3adu
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_IMA_QT    name=adpcm_ima_qt
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_AAC name=libvo_aacenc
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_PCX name=pcx
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_FLAC    name=flac
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_U24BE   name=pcm_u24be
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_V210    name=v210
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_DXA name=dxa
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_TXD name=txd
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_BMP name=bmp
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_WAVPACK name=wavpack
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_SONIC   name=sonic
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_4XM   name=adpcm_4xm
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_FFV1    name=ffv1
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_PAM name=pam
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_INDEO4  name=indeo4
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MSMPEG4V3   name=msmpeg4
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_BMP name=bmp
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_RV20    name=rv20
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_ADPCM_G726  name=g726
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_ADPCM_MS    name=adpcm_ms
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_TRUESPEECH  name=truespeech
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_ZEROCODEC   name=zerocodec
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_FLASHSV2    name=flashsv2
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_PPM name=ppm
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_V408    name=v408
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_BINKAUDIO_DCT   name=binkaudio_dct
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_EA_XAS    name=adpcm_ea_xas
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_DVVIDEO name=dvvideo
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_CAVS    name=cavs
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_RV40    name=rv40
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_F32BE   name=pcm_f32be
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MP3ON4  name=mp3on4float
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_S24LE   name=pcm_s24le
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_PGMYUV  name=pgmyuv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_DNXHD   name=dnxhd
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_ASV2    name=asv2
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_RAWVIDEO    name=rawvideo
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VP3 name=vp3
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ATRAC1  name=atrac1
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_U8  name=pcm_u8
Codec type=CODEC_TYPE_SUBTITLE  D   id=CODEC_ID_SSA name=ass
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_IDCIN   name=idcinvideo
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_MPEG4   name=mpeg4
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_CDXL    name=cdxl
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_Y41P    name=y41p
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_SVQ1    name=svq1
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_F64LE   name=pcm_f64le
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_NELLYMOSER  name=nellymoser
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_QDRAW   name=qdraw
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_TQI name=eatqi
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_V308    name=v308
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_ALAC    name=alac
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_U24LE   name=pcm_u24le
Codec type=CODEC_TYPE_SUBTITLE  D   id=CODEC_ID_XSUB    name=xsub
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_DXTORY  name=dxtory
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_R10K    name=r10k
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_AMV name=amv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_THP name=thp
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MP2 name=mp2float
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_BLURAY  name=pcm_bluray
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_ROQ_DPCM    name=roq_dpcm
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_YOP name=yop
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_HUFFYUV name=huffyuv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_BFI name=bfi
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MPEG2VIDEO  name=mpeg2video
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_TIFF    name=tiff
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_S32LE   name=pcm_s32le
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_ADPCM_SWF   name=adpcm_swf
Codec type=CODEC_TYPE_SUBTITLE   E  id=CODEC_ID_XSUB    name=xsub
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_NELLYMOSER  name=nellymoser
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_WMV3IMAGE   name=wmv3image
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_FFVHUFF name=ffvhuff
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_RAWVIDEO    name=rawvideo
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_AC3 name=ac3
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_EA_MAXIS_XA   name=adpcm_ea_maxis_xa
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_RL2 name=rl2
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_CMV name=eacmv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VP5 name=vp5
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_SMACKAUDIO  name=smackaud
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_DVD name=pcm_dvd
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_ZORK    name=pcm_zork
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_XWD name=xwd
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_IFF_BYTERUN1    name=iff_byterun1
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_CYUV    name=cyuv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_PGM name=pgm
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_V410    name=v410
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_U32BE   name=pcm_u32be
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_ADPCM_IMA_WAV   name=adpcm_ima_wav
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_XBIN    name=xbin
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_RA_144  name=real_144
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_V408    name=v408
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_MSVIDEO1    name=msvideo1
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_EA_R3 name=adpcm_ea_r3
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MP1 name=mp1
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_SGI name=sgi
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_H263    name=h263
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_PBM name=pbm
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ATRAC3  name=atrac3
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_S24DAUD name=pcm_s24daud
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_WMAV2   name=wmav2
Codec type=CODEC_TYPE_SUBTITLE   E  id=CODEC_ID_FIRST_SUBTITLE  name=dvdsub
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_BINKVIDEO   name=binkvideo
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_RV30    name=rv30
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_PICTOR  name=pictor
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_VMDAUDIO    name=vmdaudio
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_MULAW   name=pcm_mulaw
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_SBPRO_2   name=adpcm_sbpro_2
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_AASC    name=aasc
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_LAGARITH    name=lagarith
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_G723_1  name=g723_1
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_S16BE   name=pcm_s16be
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_SUNRAST name=sunrast
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_H263    name=h263
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_THEORA  name=theora
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_PRORES  name=prores
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_BINKAUDIO_RDFT  name=binkaudio_rdft
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_F64BE   name=pcm_f64be
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_SPEEX   name=libspeex
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_DIRAC   name=dirac
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_C93 name=c93
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_SGI name=sgi
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_PRORES  name=prores_kostya
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_S32BE   name=pcm_s32be
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_SIPR    name=sipr
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_HUFFYUV name=huffyuv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_ASV2    name=asv2
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_NUV name=nuv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_SVQ3    name=svq3
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_S8_PLANAR   name=pcm_s8_planar
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MP3ON4  name=mp3on4
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_FLASHSV name=flashsv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_TMV name=tmv
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MUSEPACK7   name=mpc7
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_U16LE   name=pcm_u16le
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MPEG1VIDEO  name=mpeg1video
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_KMVC    name=kmvc
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_TGQ name=eatgq
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_BMV_VIDEO   name=bmv_video
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MP3 name=mp3
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_CT    name=adpcm_ct
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_ALAW    name=pcm_alaw
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_WMV2    name=wmv2
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_PBM name=pbm
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_AURA2   name=aura2
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_KGV1    name=kgv1
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_SNOW    name=snow
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_XAN_WC4 name=xan_wc4
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_QDM2    name=qdm2
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_IMA_DK4   name=adpcm_ima_dk4
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_IMA_SMJPEG    name=adpcm_ima_smjpeg
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_8BPS    name=8bps
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_ULTI    name=ultimotion
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_QTRLE   name=qtrle
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_DTS name=dca
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_XAN_DPCM    name=xan_dpcm
Codec type=CODEC_TYPE_SUBTITLE   E  id=CODEC_ID_DVB_SUBTITLE    name=dvbsub
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_V308    name=v308
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MIMIC   name=mimic
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_H261    name=h261
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_CDGRAPHICS  name=cdgraphics
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MP3 name=mp3float
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_U16LE   name=pcm_u16le
Codec type=CODEC_TYPE_SUBTITLE   E  id=CODEC_ID_SRT name=srt
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_WMAV1   name=wmav1
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MOTIONPIXELS    name=motionpixels
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_H263P   name=h263p
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_AVS name=avs
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_TRUEMOTION1 name=truemotion1
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_RALF    name=ralf
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_ZMBV    name=zmbv
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_IMA_EA_EACS   name=adpcm_ima_ea_eacs
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_IMA_EA_SEAD   name=adpcm_ima_ea_sead
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_ESCAPE124   name=escape124
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_V210    name=v210
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MSVIDEO1    name=msvideo1
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ALAC    name=alac
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_U16BE   name=pcm_u16be
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_VORBIS  name=libvorbis
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_H261    name=h261
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MSRLE   name=msrle
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_RV20    name=rv20
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MP4ALS  name=als
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_EA    name=adpcm_ea
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_VORBIS  name=vorbis
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_PGMYUV  name=pgmyuv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_BETHSOFTVID name=bethsoftvid
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VCR1    name=vcr1
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_XWD name=xwd
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_LXF name=pcm_lxf
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_TWINVQ  name=twinvq
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_IMA_ISS   name=adpcm_ima_iss
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_TIERTEXSEQVIDEO name=tiertexseqvideo
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_H264    name=h264
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_MPEG2VIDEO  name=mpeg2video
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_AVRP    name=avrp
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_U32LE   name=pcm_u32le
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_YAMAHA    name=adpcm_yamaha
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_AMR_WB  name=libopencore_amrwb
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_GSM name=gsm
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_YUV4    name=yuv4
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_8SVX_FIB    name=8svx_fib
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MJPEG   name=mjpeg
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_SP5X    name=sp5x
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_TRUEHD  name=truehd
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_IMA_DK3   name=adpcm_ima_dk3
Codec type=CODEC_TYPE_SUBTITLE   E  id=CODEC_ID_SSA name=ass
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_FLASHSV2    name=flashsv2
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_CSCD    name=camstudio
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_RV10    name=rv10
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MPEG4   name=mpeg4
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_G729    name=g729
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_U8  name=pcm_u8
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_AMR_NB  name=libopencore_amrnb
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_WMAVOICE    name=wmavoice
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_SUNRAST name=sunrast
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_JV  name=jv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MXPEG   name=mxpeg
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_AYUV    name=ayuv
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_DTS name=dca
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_MULAW   name=pcm_mulaw
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_SBPRO_3   name=adpcm_sbpro_3
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VP8 name=libvpx
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_AAC_LATM    name=aac_latm
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_SMACKVIDEO  name=smackvid
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MSMPEG4V1   name=msmpeg4v1
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_DNXHD   name=dnxhd
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_APE name=ape
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_S24BE   name=pcm_s24be
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MP2 name=mp2
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_AYUV    name=ayuv
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_ADPCM_ADX   name=adpcm_adx
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_WMALOSSLESS name=wmalossless
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_S302M   name=s302m
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_GIF name=gif
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_PAM name=pam
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_ZLIB    name=zlib
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_JPEGLS  name=jpegls
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_AMV name=amv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_R210    name=r210
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VP8 name=vp8
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_GSM_MS  name=gsm_ms
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_EA_R1 name=adpcm_ea_r1
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_SBPRO_4   name=adpcm_sbpro_4
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_THEORA  name=libtheora
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_TIFF    name=tiff
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_FLV1    name=flv
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MP3ADU  name=mp3adufloat
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_S24LE   name=pcm_s24le
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_PPM name=ppm
```

Body:
i am running this simple sample from lib WebCam-capture with no success.Here is my code and below it i describe the exception problem

File file = new File("output.ts");

        IMediaWriter writer = ToolFactory.makeWriter(file.getName());
        Dimension size = WebcamResolution.QVGA.getSize();

        writer.addVideoStream(0, 0, ICodec.ID.CODEC_ID_H264, size.width, size.height);

        Webcam webcam = Webcam.getDefault();
        webcam.setViewSize(size);
        webcam.open(true);

        long start = System.currentTimeMillis();

        for (int i = 0; i < 50; i++) {

            System.out.println("Capture frame " + i);

            BufferedImage image = ConverterFactory.convertToType(webcam.getImage(), BufferedImage.TYPE_3BYTE_BGR);
            IConverter converter = ConverterFactory.createConverter(image, IPixelFormat.Type.YUV420P);

            IVideoPicture frame = converter.toPicture(image, (System.currentTimeMillis() - start) * 1000);
            frame.setKeyFrame(i == 0);
            frame.setQuality(0);

            writer.encodeVideo(0, frame);

            // 10 FPS
            Thread.sleep(100);
        }

        writer.close();

        System.out.println("Video recorded in file: " + file.getAbsolutePath());

Here is the exception why is this happened and how i can solve it?

Exception in thread "main" java.lang.UnsupportedOperationException: cannot encode with codec: CODEC_ID_H264
    at com.xuggle.mediatool.MediaWriter.addVideoStream(MediaWriter.java:440)
    at com.xuggle.mediatool.MediaWriter.addVideoStream(MediaWriter.java:430)
    at com.panos.WebCamRecorder.vRecorder(WebCamRecorder.java:80)
    at com.panos.App.main(App.java:39)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)

Body:
Unfortunately, the build of Xuggler (the Java FFmpeg wrapper you are using in your code) that you are using does not support encoding with mp3 audio or with H.264 video. It looks like you're using an LGPL build. With an LGPL build of Xuggler you can only "Decode" those codecs. To do encoding, you'll need a version of Xuggler that wraps an FFmpeg build supporting those decoders.

Here are the codecs supported by a build without enabling GPL and non-free (D means it can decode, E means it can encode). Be sure to search through the whole list as there are duplicate entries for decoding and encoding:

Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_FLASHSV name=flashsv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_LOCO    name=loco
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_XAN_WC3 name=xan_wc3
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_QCELP   name=qcelp
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_ADPCM_G722  name=g722
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_BINTEXT name=bintext
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_ESCAPE130   name=escape130
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_ROQ name=roqvideo
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_UTVIDEO name=utvideo
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_WMAPRO  name=wmapro
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_BMV_AUDIO   name=bmv_audio
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_S16LE_PLANAR    name=pcm_s16le_planar
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_PRORES  name=prores_anatoliy
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_AURA    name=aura
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_TARGA   name=targa
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_INDEO2  name=indeo2
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_ZMBV    name=zmbv
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_S8  name=pcm_s8
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_XA    name=adpcm_xa
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_G723_1  name=g723_1
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_FRWU    name=frwu
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MPEG2VIDEO  name=mpegvideo
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_WMV3    name=wmv3
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_IMA_AMV   name=adpcm_ima_amv
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_SHORTEN name=shorten
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_ROQ name=roqvideo
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_GIF name=gif
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_WMAV2   name=wmav2
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_WMV1    name=wmv1
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_MP2 name=mp2
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_SOL_DPCM    name=sol_dpcm
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_JPEGLS  name=jpegls
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_QPEG    name=qpeg
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VP6 name=vp6
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_AAC name=aac
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_S24DAUD name=pcm_s24daud
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MACE6   name=mace6
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_IMA_WAV   name=adpcm_ima_wav
Codec type=CODEC_TYPE_SUBTITLE  D   id=CODEC_ID_SRT name=srt
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_DVVIDEO name=dvvideo
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MDEC    name=mdec
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_SMC name=smc
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_IMA_APC   name=adpcm_ima_apc
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_SONIC_LS    name=sonicls
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_PGM name=pgm
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_8SVX_EXP    name=8svx_exp
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_ALAW    name=pcm_alaw
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_WMV1    name=wmv1
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_FFWAVESYNTH name=wavesynth
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_FIRST_AUDIO name=pcm_s16le
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_VP8 name=libvpx
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_DPX name=dpx
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_A64_MULTI   name=a64multi
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MMVIDEO name=mmvideo
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_WS_VQA  name=vqavideo
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MLP name=mlp
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_S24BE   name=pcm_s24be
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_WMAV1   name=wmav1
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_XBM name=xbm
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_INDEO5  name=indeo5
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_R210    name=r210
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_AVRP    name=avrp
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VMNC    name=vmnc
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_AMR_WB  name=amrwb
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_G726  name=g726
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_IMA_WS    name=adpcm_ima_ws
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VP6F    name=vp6f
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_4XM name=4xm
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_PCX name=pcx
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_EAC3    name=eac3
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ROQ_DPCM    name=roq_dpcm
Codec type=CODEC_TYPE_SUBTITLE  D   id=CODEC_ID_FIRST_SUBTITLE  name=dvdsub
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MAD name=eamad
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_ASV1    name=asv1
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_MSMPEG4V2   name=msmpeg4v2
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_TRUEMOTION2 name=truemotion2
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_F32LE   name=pcm_f32le
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MACE3   name=mace3
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_U24BE   name=pcm_u24be
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_AAC name=aac
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_INDEO3  name=indeo3
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_DFA name=dfa
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_MJPEG   name=mjpeg
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_V210X   name=v210x
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_S32LE   name=pcm_s32le
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_THP   name=adpcm_thp
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_DSICINAUDIO name=dsicinaudio
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_WNV1    name=wnv1
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_FRAPS   name=fraps
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_PTX name=ptx
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MUSEPACK8   name=mpc8
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_S8  name=pcm_s8
Codec type=CODEC_TYPE_SUBTITLE  D   id=CODEC_ID_DVB_SUBTITLE    name=dvbsub
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_FFV1    name=ffv1
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_ASV1    name=asv1
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_TSCC    name=camtasia
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_VORBIS  name=vorbis
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_AC3 name=ac3
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_S32BE   name=pcm_s32be
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_PRORES  name=prores
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_JPEG2000    name=j2k
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_ANSI    name=ansi
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_TARGA   name=targa
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_U16BE   name=pcm_u16be
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_ADPCM_YAMAHA    name=adpcm_yamaha
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_RA_144  name=real_144
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_PNG name=png
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_Y41P    name=y41p
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_SVQ1    name=svq1
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_PRORES  name=prores_lgpl
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_H263I   name=h263i
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VIXL    name=xl
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_AMR_NB  name=amrnb
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_FIRST_AUDIO name=pcm_s16le
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_MS    name=adpcm_ms
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_IDF name=idf
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_CLJR    name=cljr
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_FLV1    name=flv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MSZH    name=mszh
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VMDVIDEO    name=vmdvideo
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_IMC name=imc
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_G722  name=g722
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_DPX name=dpx
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_CINEPAK name=cinepak
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_MSMPEG4V3   name=msmpeg4
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_V410    name=v410
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_F32BE   name=pcm_f32be
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_SONIC   name=sonic
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_F64BE   name=pcm_f64be
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_INTERPLAY_VIDEO name=interplayvideo
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_QTRLE   name=qtrle
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VB  name=vb
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_ZLIB    name=zlib
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_U24LE   name=pcm_u24le
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_TTA name=tta
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_SWF   name=adpcm_swf
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_AMR_NB  name=libopencore_amrnb
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_FFVHUFF name=ffvhuff
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_LJPEG   name=ljpeg
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_SNOW    name=snow
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MP1 name=mp1float
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_F64LE   name=pcm_f64le
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VC1IMAGE    name=vc1image
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_FLIC    name=flic
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_CLJR    name=cljr
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_PNG name=png
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_F32LE   name=pcm_f32le
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_FLAC    name=flac
Codec type=CODEC_TYPE_SUBTITLE  D   id=CODEC_ID_HDMV_PGS_SUBTITLE   name=pgssub
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_ADX   name=adpcm_adx
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_XBM name=xbm
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_JPEG2000    name=j2k
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_A64_MULTI5  name=a64multi5
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_R10K    name=r10k
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VC1 name=vc1
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_S16BE   name=pcm_s16be
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_ADPCM_IMA_QT    name=adpcm_ima_qt
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_RA_288  name=real_288
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_TGV name=eatgv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MSMPEG4V2   name=msmpeg4v2
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_WMV2    name=wmv2
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_COOK    name=cook
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_U32LE   name=pcm_u32le
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_DSICINVIDEO name=dsicinvideo
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_RV10    name=rv10
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_AC3 name=ac3_fixed
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_EA_R2 name=adpcm_ea_r2
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_RPZA    name=rpza
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VP6A    name=vp6a
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_EXR name=exr
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_ANM name=anm
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MJPEGB  name=mjpegb
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_EAC3    name=eac3
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_SPEEX   name=libspeex
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_INTERPLAY_DPCM  name=interplay_dpcm
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_WESTWOOD_SND1   name=ws_snd1
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_MPEG1VIDEO  name=mpeg1video
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_IFF_ILBM    name=iff_ilbm
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VBLE    name=vble
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_YUV4    name=yuv4
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_U32BE   name=pcm_u32be
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MP3ADU  name=mp3adu
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_IMA_QT    name=adpcm_ima_qt
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_AAC name=libvo_aacenc
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_PCX name=pcx
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_FLAC    name=flac
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_U24BE   name=pcm_u24be
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_V210    name=v210
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_DXA name=dxa
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_TXD name=txd
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_BMP name=bmp
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_WAVPACK name=wavpack
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_SONIC   name=sonic
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_4XM   name=adpcm_4xm
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_FFV1    name=ffv1
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_PAM name=pam
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_INDEO4  name=indeo4
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MSMPEG4V3   name=msmpeg4
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_BMP name=bmp
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_RV20    name=rv20
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_ADPCM_G726  name=g726
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_ADPCM_MS    name=adpcm_ms
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_TRUESPEECH  name=truespeech
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_ZEROCODEC   name=zerocodec
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_FLASHSV2    name=flashsv2
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_PPM name=ppm
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_V408    name=v408
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_BINKAUDIO_DCT   name=binkaudio_dct
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_EA_XAS    name=adpcm_ea_xas
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_DVVIDEO name=dvvideo
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_CAVS    name=cavs
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_RV40    name=rv40
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_F32BE   name=pcm_f32be
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MP3ON4  name=mp3on4float
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_S24LE   name=pcm_s24le
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_PGMYUV  name=pgmyuv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_DNXHD   name=dnxhd
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_ASV2    name=asv2
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_RAWVIDEO    name=rawvideo
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VP3 name=vp3
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ATRAC1  name=atrac1
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_U8  name=pcm_u8
Codec type=CODEC_TYPE_SUBTITLE  D   id=CODEC_ID_SSA name=ass
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_IDCIN   name=idcinvideo
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_MPEG4   name=mpeg4
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_CDXL    name=cdxl
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_Y41P    name=y41p
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_SVQ1    name=svq1
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_F64LE   name=pcm_f64le
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_NELLYMOSER  name=nellymoser
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_QDRAW   name=qdraw
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_TQI name=eatqi
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_V308    name=v308
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_ALAC    name=alac
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_U24LE   name=pcm_u24le
Codec type=CODEC_TYPE_SUBTITLE  D   id=CODEC_ID_XSUB    name=xsub
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_DXTORY  name=dxtory
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_R10K    name=r10k
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_AMV name=amv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_THP name=thp
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MP2 name=mp2float
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_BLURAY  name=pcm_bluray
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_ROQ_DPCM    name=roq_dpcm
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_YOP name=yop
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_HUFFYUV name=huffyuv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_BFI name=bfi
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MPEG2VIDEO  name=mpeg2video
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_TIFF    name=tiff
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_S32LE   name=pcm_s32le
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_ADPCM_SWF   name=adpcm_swf
Codec type=CODEC_TYPE_SUBTITLE   E  id=CODEC_ID_XSUB    name=xsub
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_NELLYMOSER  name=nellymoser
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_WMV3IMAGE   name=wmv3image
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_FFVHUFF name=ffvhuff
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_RAWVIDEO    name=rawvideo
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_AC3 name=ac3
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_EA_MAXIS_XA   name=adpcm_ea_maxis_xa
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_RL2 name=rl2
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_CMV name=eacmv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VP5 name=vp5
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_SMACKAUDIO  name=smackaud
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_DVD name=pcm_dvd
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_ZORK    name=pcm_zork
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_XWD name=xwd
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_IFF_BYTERUN1    name=iff_byterun1
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_CYUV    name=cyuv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_PGM name=pgm
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_V410    name=v410
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_U32BE   name=pcm_u32be
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_ADPCM_IMA_WAV   name=adpcm_ima_wav
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_XBIN    name=xbin
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_RA_144  name=real_144
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_V408    name=v408
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_MSVIDEO1    name=msvideo1
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_EA_R3 name=adpcm_ea_r3
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MP1 name=mp1
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_SGI name=sgi
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_H263    name=h263
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_PBM name=pbm
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ATRAC3  name=atrac3
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_S24DAUD name=pcm_s24daud
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_WMAV2   name=wmav2
Codec type=CODEC_TYPE_SUBTITLE   E  id=CODEC_ID_FIRST_SUBTITLE  name=dvdsub
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_BINKVIDEO   name=binkvideo
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_RV30    name=rv30
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_PICTOR  name=pictor
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_VMDAUDIO    name=vmdaudio
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_MULAW   name=pcm_mulaw
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_SBPRO_2   name=adpcm_sbpro_2
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_AASC    name=aasc
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_LAGARITH    name=lagarith
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_G723_1  name=g723_1
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_S16BE   name=pcm_s16be
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_SUNRAST name=sunrast
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_H263    name=h263
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_THEORA  name=theora
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_PRORES  name=prores
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_BINKAUDIO_RDFT  name=binkaudio_rdft
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_F64BE   name=pcm_f64be
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_SPEEX   name=libspeex
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_DIRAC   name=dirac
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_C93 name=c93
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_SGI name=sgi
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_PRORES  name=prores_kostya
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_S32BE   name=pcm_s32be
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_SIPR    name=sipr
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_HUFFYUV name=huffyuv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_ASV2    name=asv2
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_NUV name=nuv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_SVQ3    name=svq3
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_S8_PLANAR   name=pcm_s8_planar
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MP3ON4  name=mp3on4
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_FLASHSV name=flashsv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_TMV name=tmv
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MUSEPACK7   name=mpc7
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_U16LE   name=pcm_u16le
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MPEG1VIDEO  name=mpeg1video
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_KMVC    name=kmvc
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_TGQ name=eatgq
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_BMV_VIDEO   name=bmv_video
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MP3 name=mp3
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_CT    name=adpcm_ct
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_ALAW    name=pcm_alaw
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_WMV2    name=wmv2
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_PBM name=pbm
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_AURA2   name=aura2
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_KGV1    name=kgv1
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_SNOW    name=snow
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_XAN_WC4 name=xan_wc4
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_QDM2    name=qdm2
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_IMA_DK4   name=adpcm_ima_dk4
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_IMA_SMJPEG    name=adpcm_ima_smjpeg
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_8BPS    name=8bps
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_ULTI    name=ultimotion
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_QTRLE   name=qtrle
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_DTS name=dca
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_XAN_DPCM    name=xan_dpcm
Codec type=CODEC_TYPE_SUBTITLE   E  id=CODEC_ID_DVB_SUBTITLE    name=dvbsub
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_V308    name=v308
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MIMIC   name=mimic
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_H261    name=h261
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_CDGRAPHICS  name=cdgraphics
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MP3 name=mp3float
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_U16LE   name=pcm_u16le
Codec type=CODEC_TYPE_SUBTITLE   E  id=CODEC_ID_SRT name=srt
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_WMAV1   name=wmav1
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MOTIONPIXELS    name=motionpixels
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_H263P   name=h263p
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_AVS name=avs
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_TRUEMOTION1 name=truemotion1
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_RALF    name=ralf
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_ZMBV    name=zmbv
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_IMA_EA_EACS   name=adpcm_ima_ea_eacs
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_IMA_EA_SEAD   name=adpcm_ima_ea_sead
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_ESCAPE124   name=escape124
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_V210    name=v210
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MSVIDEO1    name=msvideo1
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ALAC    name=alac
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_U16BE   name=pcm_u16be
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_VORBIS  name=libvorbis
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_H261    name=h261
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MSRLE   name=msrle
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_RV20    name=rv20
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MP4ALS  name=als
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_EA    name=adpcm_ea
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_VORBIS  name=vorbis
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_PGMYUV  name=pgmyuv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_BETHSOFTVID name=bethsoftvid
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VCR1    name=vcr1
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_XWD name=xwd
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_LXF name=pcm_lxf
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_TWINVQ  name=twinvq
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_IMA_ISS   name=adpcm_ima_iss
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_TIERTEXSEQVIDEO name=tiertexseqvideo
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_H264    name=h264
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_MPEG2VIDEO  name=mpeg2video
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_AVRP    name=avrp
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_U32LE   name=pcm_u32le
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_YAMAHA    name=adpcm_yamaha
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_AMR_WB  name=libopencore_amrwb
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_GSM name=gsm
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_YUV4    name=yuv4
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_8SVX_FIB    name=8svx_fib
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MJPEG   name=mjpeg
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_SP5X    name=sp5x
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_TRUEHD  name=truehd
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_IMA_DK3   name=adpcm_ima_dk3
Codec type=CODEC_TYPE_SUBTITLE   E  id=CODEC_ID_SSA name=ass
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_FLASHSV2    name=flashsv2
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_CSCD    name=camstudio
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_RV10    name=rv10
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MPEG4   name=mpeg4
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_G729    name=g729
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_U8  name=pcm_u8
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_AMR_NB  name=libopencore_amrnb
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_WMAVOICE    name=wmavoice
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_SUNRAST name=sunrast
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_JV  name=jv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MXPEG   name=mxpeg
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_AYUV    name=ayuv
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_DTS name=dca
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_MULAW   name=pcm_mulaw
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_SBPRO_3   name=adpcm_sbpro_3
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VP8 name=libvpx
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_AAC_LATM    name=aac_latm
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_SMACKVIDEO  name=smackvid
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_MSMPEG4V1   name=msmpeg4v1
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_DNXHD   name=dnxhd
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_APE name=ape
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_PCM_S24BE   name=pcm_s24be
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MP2 name=mp2
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_AYUV    name=ayuv
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_ADPCM_ADX   name=adpcm_adx
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_WMALOSSLESS name=wmalossless
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_S302M   name=s302m
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_GIF name=gif
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_PAM name=pam
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_ZLIB    name=zlib
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_JPEGLS  name=jpegls
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_AMV name=amv
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_R210    name=r210
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_VP8 name=vp8
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_GSM_MS  name=gsm_ms
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_EA_R1 name=adpcm_ea_r1
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_ADPCM_SBPRO_4   name=adpcm_sbpro_4
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_THEORA  name=libtheora
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_TIFF    name=tiff
Codec type=CODEC_TYPE_VIDEO D   id=CODEC_ID_FLV1    name=flv
Codec type=CODEC_TYPE_AUDIO D   id=CODEC_ID_MP3ADU  name=mp3adufloat
Codec type=CODEC_TYPE_AUDIO  E  id=CODEC_ID_PCM_S24LE   name=pcm_s24le
Codec type=CODEC_TYPE_VIDEO  E  id=CODEC_ID_PPM name=ppm


来源: stackexchange

问:
How do I add the Java API documentation to Eclipse?
I have downloaded Java API documentation from http://www.oracle.com/technetwork/java/javase/downloads/index.html#docs and have supposedly attached it to Eclipse using the

Window->Preferences->Java->Installed
  JREs->Edit->"Select rt.jar"->Javadoc
  Location

And the location has been accepted and "Validates" just fine. However, for the life of me, I can't get Eclipse to show the Javadocs in the tooltip whene I hover over an item (for example in the declaration of an ArrayList). I have also restarted Eclipse in attempts to get it to work

What am I doing wrong?

答: Instead of attaching JavaDoc attach JDK src.zip

ContentLicense: CC BY-SA 3.0


问:
Hibernate Configuration from SpringMVC to SpringBoot
I'm (damn me) porting a SpringMVC application, deployed as a war in Tomcat to a SpringBootApplication and i'm facing a lot of problems, basically from Hibernate.

The application was made with DAO/Service pattern.
I know Spring boot would like to use Spring data JPA but i don't want to refactor all the application.

The problem is especially that somewhere i get hibernate exception of No Session and more ofter the org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role where  the old SpringMVC application works.

For instance, i have this Entity

@Entity
@Table(name = "PARK")
@JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "idPark")
public class Park implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = -7630704706109692038L;
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id_park", unique = true, nullable = false)
    private int idPark;

    @NotEmpty
    @Column(name = "nome_park")
    private String nomePark;

    @Column(name = "latitude")
    private double latitude;

    @Column(name = "longitude")
    private double longitude;

    @OneToMany(fetch = FetchType.LAZY, cascade = {CascadeType.PERSIST, CascadeType.REMOVE, CascadeType.DETACH, CascadeType.REFRESH}, mappedBy = "park")
    @JsonIgnore
    private List<Piano> piani;
//getters and setters
}
```
<p>In a controller if i call</p>
<pre class="lang-java prettyprint-override"><code>List<Piano> piani = pianoService.findPianoByPark(park);
</code>```

from my service class with @Transactional annotation, i still get the exception

This is how i configured Hibernate

@Configuration
@EnableTransactionManagement
@ComponentScan({ "it.besmart.epark.persistence" })
@PropertySource(value = { "classpath:application.properties" })
public class HibernateConfiguration {

@Autowired
private Environment environment;

@Bean
public LocalSessionFactoryBean sessionfactory(){
    LocalSessionFactoryBean sessionFactory = new LocalSessionFactoryBean();
    sessionFactory.setDataSource(dataSource());
    sessionFactory.setPackagesToScan(new String[] {"it.besmart.epark.persistence.model"});
    sessionFactory.setHibernateProperties(hibernateProperties());
    return sessionFactory;
}

@Bean
public DataSource dataSource() {
    DriverManagerDataSource dataSource = new DriverManagerDataSource();
    dataSource.setDriverClassName(environment.getRequiredProperty("jdbc.driverClassName"));
    dataSource.setUrl(environment.getRequiredProperty("jdbc.url"));
    dataSource.setUsername(environment.getRequiredProperty("jdbc.username"));
    dataSource.setPassword(environment.getRequiredProperty("jdbc.password"));
    return dataSource;
}

private Properties hibernateProperties() {
    Properties properties = new Properties();
    properties.put("hibernate.dialect", environment.getRequiredProperty("hibernate.dialect"));
    properties.put("hibernate.show_sql", environment.getRequiredProperty("hibernate.show_sql"));
    properties.put("hibernate.format_sql", environment.getRequiredProperty("hibernate.format_sql"));
    return properties;
}

@Bean
@Autowired
public HibernateTransactionManager transactionManager(SessionFactory s) {
   HibernateTransactionManager txManager = new HibernateTransactionManager();
   txManager.setSessionFactory(s);
   return txManager;
}
```

I think it's a matter of configuration because the old application works with this schema so maybe with Spring boot we need to configure something else to work with Hibernate.
I'm using Spring Boot 1.5.8 and so Hibernate 5.0.12.Final

答:
I think you are trying to fetch a lazily-loaded collection outside of a Hibernate transaction (eg. in view, controller or non-transactional service). You can try annotate the class with getPiani() call with @Transactional.

Also remember that a good practice is to have only service layer transactional.

Body:
I'm (damn me) porting a SpringMVC application, deployed as a war in Tomcat to a SpringBootApplication and i'm facing a lot of problems, basically from Hibernate.

The application was made with DAO/Service pattern.
I know Spring boot would like to use Spring data JPA but i don't want to refactor all the application.

The problem is especially that somewhere i get hibernate exception of No Session and more ofter the org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role where  the old SpringMVC application works.

For instance, i have this Entity

@Entity
@Table(name = "PARK")
@JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "idPark")
public class Park implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = -7630704706109692038L;
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id_park", unique = true, nullable = false)
    private int idPark;

    @NotEmpty
    @Column(name = "nome_park")
    private String nomePark;

    @Column(name = "latitude")
    private double latitude;

    @Column(name = "longitude")
    private double longitude;

    @OneToMany(fetch = FetchType.LAZY, cascade = {CascadeType.PERSIST, CascadeType.REMOVE, CascadeType.DETACH, CascadeType.REFRESH}, mappedBy = "park")
    @JsonIgnore
    private List<Piano> piani;
//getters and setters
}

In a controller if i call

List<Piano> piani = pianoService.findPianoByPark(park);

from my service class with @Transactional annotation, i still get the exception

This is how i configured Hibernate

@Configuration
@EnableTransactionManagement
@ComponentScan({ "it.besmart.epark.persistence" })
@PropertySource(value = { "classpath:application.properties" })
public class HibernateConfiguration {

@Autowired
private Environment environment;

@Bean
public LocalSessionFactoryBean sessionfactory(){
    LocalSessionFactoryBean sessionFactory = new LocalSessionFactoryBean();
    sessionFactory.setDataSource(dataSource());
    sessionFactory.setPackagesToScan(new String[] {"it.besmart.epark.persistence.model"});
    sessionFactory.setHibernateProperties(hibernateProperties());
    return sessionFactory;
}

@Bean
public DataSource dataSource() {
    DriverManagerDataSource dataSource = new DriverManagerDataSource();
    dataSource.setDriverClassName(environment.getRequiredProperty("jdbc.driverClassName"));
    dataSource.setUrl(environment.getRequiredProperty("jdbc.url"));
    dataSource.setUsername(environment.getRequiredProperty("jdbc.username"));
    dataSource.setPassword(environment.getRequiredProperty("jdbc.password"));
    return dataSource;
}

private Properties hibernateProperties() {
    Properties properties = new Properties();
    properties.put("hibernate.dialect", environment.getRequiredProperty("hibernate.dialect"));
    properties.put("hibernate.show_sql", environment.getRequiredProperty("hibernate.show_sql"));
    properties.put("hibernate.format_sql", environment.getRequiredProperty("hibernate.format_sql"));
    return properties;
}

@Bean
@Autowired
public HibernateTransactionManager transactionManager(SessionFactory s) {
   HibernateTransactionManager txManager = new HibernateTransactionManager();
   txManager.setSessionFactory(s);
   return txManager;
}

I think it's a matter of configuration because the old application works with this schema so maybe with Spring boot we need to configure something else to work with Hibernate.
I'm using Spring Boot 1.5.8 and so Hibernate 5.0.12.Final


问:
save fields from mat file as csv files in a loop
I have a .mat file file_0_50_abcdef_ft.mat with 15 fields (e.g., cgb, stpAB, stpAC, stAB, etc.), and each of these 15 fields is a structure.
I need to extract one field from the first structure: cgb.ch, and two fields (with the same label) from the other 14 structures (i.e., poscllabmat and negcllabmat).

Once I extract them, I need to save them as separate .csv files. The output I would like to obtain is for example: cgb_ch.csv, stpAB_poscllabmat_0_50.csv, stpAB_negcllabmat_0_50.csv, stpAC_poscllabmat_0_50.csv, stpAC_negcllabmat_0_50.csv, and so on.

What would be the best way to achieve this?
I will need to do it for several .mat files.

答:
Loop over the vars / field combinations, Create a filename, uses dynamic field names to access the data and feed it to csvwrite.

Something like this:

```<code>temp = load('file_0_50_abcdef_ft.mat');
varList  = {'cgb', 'stpAB', 'stpAC'};
subField = {{'ch'}, {'poscllabmat', 'negcllabmat'}, {'poscllabmat', 'negcllabmat'}};
for j = 1:numel(varList)
    for k = 1:numel(subField{j})
        fileName = [varList{j} '_' subField{j}{k} '.csv'];
        csvwrite(fileName,temp.(varList{j}).(subField{j}{k}));
    end
end
</code>```

Note: there is no error checking at all.  If your mat file is missing a variable or one of the structures is missing a field then it will error.

Body:
Loop over the vars / field combinations, Create a filename, uses dynamic field names to access the data and feed it to csvwrite.

Something like this:

temp = load('file_0_50_abcdef_ft.mat');
varList  = {'cgb', 'stpAB', 'stpAC'};
subField = {{'ch'}, {'poscllabmat', 'negcllabmat'}, {'poscllabmat', 'negcllabmat'}};
for j = 1:numel(varList)
    for k = 1:numel(subField{j})
        fileName = [varList{j} '_' subField{j}{k} '.csv'];
        csvwrite(fileName,temp.(varList{j}).(subField{j}{k}));
    end
end

Note: there is no error checking at all.  If your mat file is missing a variable or one of the structures is missing a field then it will error.


问:
JQuery datepicker - Why do I need to call it twice for it to work?
This is a bit of a general question, but I might be overlooking something. The following datepicker logic doesn't work:

```<code>$('#date_from').datepicker({
                            dateFormat: "yy-mm-dd",
                            setDate: new Date('<?= $_REQUEST['date_from'];?>')
                           });
</code>```

However when I call the datepicker twice it does work, like:

```<code>$('#date_from').datepicker({
                            dateFormat: "yy-mm-dd"
                           });
$('#date_from').datepicker('setDate', new Date('<?= $_REQUEST['date_from'];?>'));
</code>```

Personally, I would like to use the first one and to know why it doesn't work.

答:
You can refer here http://api.jqueryui.com/datepicker/#option-dateFormat

First you need the first line to format the date to your desired format

```<code>$( ".selector" ).datepicker({
    dateFormat: "yy-mm-dd"
});
</code>```

Then you can set/get the date in your field

```<code>// Getter
var dateFormat = $( ".selector" ).datepicker( "option", "dateFormat" );
// Setter
$( ".selector" ).datepicker( "option", "dateFormat", "yy-mm-dd" );
</code>```

Body:
This is a bit of a general question, but I might be overlooking something. The following datepicker logic doesn't work:

$('#date_from').datepicker({
                            dateFormat: "yy-mm-dd",
                            setDate: new Date('<?= $_REQUEST['date_from'];?>')
                           });

However when I call the datepicker twice it does work, like:

$('#date_from').datepicker({
                            dateFormat: "yy-mm-dd"
                           });
$('#date_from').datepicker('setDate', new Date('<?= $_REQUEST['date_from'];?>'));

Personally, I would like to use the first one and to know why it doesn't work.

Body:
You can refer here http://api.jqueryui.com/datepicker/#option-dateFormat

First you need the first line to format the date to your desired format

$( ".selector" ).datepicker({
    dateFormat: "yy-mm-dd"
});

Then you can set/get the date in your field

// Getter
var dateFormat = $( ".selector" ).datepicker( "option", "dateFormat" );
// Setter
$( ".selector" ).datepicker( "option", "dateFormat", "yy-mm-dd" );


问:
Split a String - Vba based on symbols
I have a string like this ABC$3$FG$Hand I want to split them into 4 different strings.

```<code>string1 - ABC, Number-3, string3-FG, String4 - H.
</code>```

I am splitting the string with $ sign in the actual string.

答:
```<code>Split(String1,"$")
</code>```

Quite enough. Returns a zero-based, one-dimensional array containing a specified number of substrings.

If you want to look through the splitted string, this is a possible solution:

```<code>Public Sub TestMe()

    Dim str     As String
    Dim cnt     As Long

    str = "ABC$3$FG$H"
    For cnt = LBound(Split(str, "$")) To UBound(Split(str, "$"))
        Debug.Print Split(str, "$")(cnt)
    Next cnt

End Sub
</code>```

The MSDN documentation for Split.

Title: Split a String - Vba based on symbols

Body:
I have a string like this ABC$3$FG$Hand I want to split them into 4 different strings.

string1 - ABC, Number-3, string3-FG, String4 - H.

I am splitting the string with $ sign in the actual string.

Body:
Split(String1,"$")

Quite enough. Returns a zero-based, one-dimensional array containing a specified number of substrings.

If you want to look through the splitted string, this is a possible solution:

Public Sub TestMe()

    Dim str     As String
    Dim cnt     As Long

    str = "ABC$3$FG$H"
    For cnt = LBound(Split(str, "$")) To UBound(Split(str, "$"))
        Debug.Print Split(str, "$")(cnt)
    Next cnt

End Sub

The MSDN documentation for Split.


问:
How to implement an artificial neural network in Delphi?
I want to have an artificial neural network:

42 input neurons

168 hidden neurons

7 output neurons

This network is to play the game of "Connect Four". At the end of each game, the network gets feedback (game result / win?).

Learning should be done with Temporal Difference Learning.

My questions:

What values should be in my reward array?

And finally: How can I apply it to my game now?

Thank you so much in advance!

答:
First hit is: you're assigning '0' to t in 'main', but your arrays' low-bound is '1', so you're accessing a non-existing element in the loops, hence the AV.

If you had enabled range-checking in compiler options, you'd be getting a range check error and you probably would have find the reason earlier.

BTW, since I have no idea what the code is doing, I wouldn't possibly notice any other errors at this time..

ContentLicense: CC BY-SA 2.5


问:
Redux warning only appearing in tests
I have created a tic tac toe game with react redux.

I am using create-react-app.

I have the following store:

```<code>import {createStore, combineReducers} from 'redux';
import gameSettingsReducer from './reducers/gameSettings.js';
import gameStatusReducer from './reducers/gameStatus.js';

const rootReducer = combineReducers({gameSettings: gameSettingsReducer,
                   gameStatus: gameStatusReducer});

export const defaultGameStatus = {
      currentPlayerSymbol: "X",
      turnNumber: 0,
      currentView: "start-menu", //one of "start-menu", "in-game", "game-over"
      winner: "draw", //one of "X", "O", "draw"
      board: [["E", "E", "E"],
              ["E", "E", "E"],
              ["E", "E", "E"]],
      lastMove: []
};

const store = createStore(rootReducer, {
    gameSettings:{
        playerSymbol: "X",  //one of "X", "O"
        difficulty: "easy"  //one of "easy", "hard"
    },
    gameStatus: defaultGameStatus
});

export default store;
</code>```

Everything runs as I expect. Except for when I am running tests (npm test) the following appears in the console:

```<code>console.error node_modules\redux\lib\utils\warning.js:14
  No reducer provided for key "gameStatus"
console.error node_modules\redux\lib\utils\warning.js:14
  Unexpected key "gameStatus" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: "gameSettings". Unexpected keys will be ignored.
</code>```

In the few tests I have, I am not even testing the store. So I guess this comes up while compiling the code.
I tried putting console.log(gameStatusReducer) before the root reducer line.
It shows that gameStatusReducer is undefined.

Since both the gameSettingsReducer and the gameStatusReducer are created in very similar ways, I do not know where this error comes from and do not even know how to investigate the issue further. This only shows up when running the tests. Running the app does not show this problem and the app works as expected.

So, the questions are:

Why is this just showing up in the tests?

How to investigate where the problem is coming from?

答:
Also had this error, but using TypeScript.

For the sake of argument, let's say our error was No reducer provided for key "favourites".

For the test causing this error, we imported an interface from that reducer's file, which in turn obviously runs the file to generate the exports.

Our favourites reducer imports our Redux store to query another bit of the state as part of one of its switch cases.

For some reason, commenting out the line where we access Store.getState().someOtherReducersState made the error go away.

So the fix was to simply jest.mock('../route/to/Store'); in the test file causing the error output.

Title: Redux warning only appearing in tests

Body:
I have created a tic tac toe game with react redux.

I am using create-react-app.

I have the following store:

import {createStore, combineReducers} from 'redux';
import gameSettingsReducer from './reducers/gameSettings.js';
import gameStatusReducer from './reducers/gameStatus.js';

const rootReducer = combineReducers({gameSettings: gameSettingsReducer,
                   gameStatus: gameStatusReducer});

export const defaultGameStatus = {
      currentPlayerSymbol: "X",
      turnNumber: 0,
      currentView: "start-menu", //one of "start-menu", "in-game", "game-over"
      winner: "draw", //one of "X", "O", "draw"
      board: [["E", "E", "E"],
              ["E", "E", "E"],
              ["E", "E", "E"]],
      lastMove: []
};

const store = createStore(rootReducer, {
    gameSettings:{
        playerSymbol: "X",  //one of "X", "O"
        difficulty: "easy"  //one of "easy", "hard"
    },
    gameStatus: defaultGameStatus
});

export default store;

Everything runs as I expect. Except for when I am running tests (npm test) the following appears in the console:

console.error node_modules\redux\lib\utils\warning.js:14
  No reducer provided for key "gameStatus"
console.error node_modules\redux\lib\utils\warning.js:14
  Unexpected key "gameStatus" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: "gameSettings". Unexpected keys will be ignored.

In the few tests I have, I am not even testing the store. So I guess this comes up while compiling the code.
I tried putting console.log(gameStatusReducer) before the root reducer line.
It shows that gameStatusReducer is undefined.

Since both the gameSettingsReducer and the gameStatusReducer are created in very similar ways, I do not know where this error comes from and do not even know how to investigate the issue further. This only shows up when running the tests. Running the app does not show this problem and the app works as expected.

So, the questions are:

Why is this just showing up in the tests?

How to investigate where the problem is coming from?


问:
Is there a simpler way of unpacking a tuple?
The below is an example of some code I wrote in a RPG game that I've been working on. Upon winning a battle, the stats are updated in the level_up() function, and returned in the form of a list.
Which brings up my question. Is there a better way of writing the below code?</p>

```<code>stats = level_up()
level = stats[0]
exp = stats[1]
exp_nextlev = stats[2]
health = stats[3]
defense = stats[4]
attack = stats[5]
speed = stats[6]
</code>```

答:
I would write that as a named tuple.

```<code>from collections import namedtuple

Stats = namedtuple('Stats', ['level', 'exp', 'exp_nextlev', 'health', 'defense', 'attack', 'speed'])

def level_up():
    # blah code blah
    return Stats(level, exp, exp_nextlev, health, defense, attack, speed)

stats = level_up()
</code>```

Then you can rust refer to

```<code>stats.exp
stats.health
</code>```

etc

Body:
The below is an example of some code I wrote in a RPG game that I've been working on. Upon winning a battle, the stats are updated in the level_up() function, and returned in the form of a list.
Which brings up my question. Is there a better way of writing the below code?

stats = level_up()
level = stats[0]
exp = stats[1]
exp_nextlev = stats[2]
health = stats[3]
defense = stats[4]
attack = stats[5]
speed = stats[6]

Body:
I would write that as a named tuple.

from collections import namedtuple

Stats = namedtuple('Stats', ['level', 'exp', 'exp_nextlev', 'health', 'defense', 'attack', 'speed'])

def level_up():
    # blah code blah
    return Stats(level, exp, exp_nextlev, health, defense, attack, speed)

stats = level_up()

Then you can rust refer to

stats.exp
stats.health

etc


问:
Tensorflow how to enable logging to print out?
In the object-detection API code, I saw many logging statements in the source code, but when I run the program, none of them actually print out.

I found that these logging statements are not using tf.logging, instead they are using the sysmtem logging, such as

```<code>import logging
#do some fancy job here
logging.info("this is a test")
</code>```

How to enable these logging statements to print out? I know I can insert a piece of code in the python source file, such as

```<code>logger = logging.getLogger()    # initialize logging class
logger.setLevel(logging.DEBUG)  # default log level
format = logging.Formatter("%(asctime)s - %(message)s")    # output format
sh = logging.StreamHandler(stream=sys.stdout)    # output to standard output
sh.setFormatter(format)
logger.addHandler(sh)
</code>```

But this is tedious, I need to insert this piece of code in each source file. Is there some smart way to to activate the system logging statements?

答: You only need this piece of code to be run once before all the others work (it will create a log handler that is stored statically in logging, all subsequent calls to any logging functions will fnind and use this handler), so for instance you can add it at the start of the main function in train.py and eval.py. Or you can use your own wrapper script, that basically creates the logger and calls the main functions from eval.py and train.py.

Body:
In the object-detection API code, I saw many logging statements in the source code, but when I run the program, none of them actually print out.

I found that these logging statements are not using tf.logging, instead they are using the sysmtem logging, such as

import logging
#do some fancy job here
logging.info("this is a test")

How to enable these logging statements to print out? I know I can insert a piece of code in the python source file, such as

logger = logging.getLogger()    # initialize logging class
logger.setLevel(logging.DEBUG)  # default log level
format = logging.Formatter("%(asctime)s - %(message)s")    # output format
sh = logging.StreamHandler(stream=sys.stdout)    # output to standard output
sh.setFormatter(format)
logger.addHandler(sh)

But this is tedious, I need to insert this piece of code in each source file. Is there some smart way to to activate the system logging statements?


问:
Getting permission denied error with docker remove
I'm following a tutorial and in the current step, i'm supposed to remove any preexisting docker containers with this

```<code>docker rm -f $(docker ps -aq)
</code>```

I usually have to use sudo to use docker commands, so I tried

```<code>sudo docker rm -f $(docker ps -aq)
</code>```

But I get this

```<code>Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.32/containers/json?all=1: dial unix /var/run/docker.sock: connect: permission denied
"docker rm" requires at least 1 argument.
See 'docker rm --help'.

Usage:  docker rm [OPTIONS] CONTAINER [CONTAINER...]

Remove one or more containers
</code>```

Usually I get permission errors when I forget to use sudo, but in this case I have it.

Does anyone know what's wrong?

Thanks

EDIT

I tried this

```<code>sudo docker rm -f $(sudo docker ps -aq)
</code>```

but get

```<code>"docker rm" requires at least 1 argument.
See 'docker rm --help'.

Usage:  docker rm [OPTIONS] CONTAINER [CONTAINER...]

Remove one or more containers
</code>```

答:
You are combining a couple different issues between the need for sudo and a potentially "empty" container list noted in another answer.

The other answer is exactly correct that this combination of commands might result in the docker rm error as the docker ps -aq could return nothing, leaving the docker rm command with no options, prompting the help text.

Of course, there are two reasons the "inner" command could return nothing:

there are actually zero running or exited containers; in this case you can ignore the error to docker rm, or run the docker ps -aq command by itself to convince yourself there are no containers returned.

The other reason is if the command failed due to lack of permission to talk to the Docker daemon. In your first example you show you are using sudo on the remove command, but not on the inner ps command, revealing the error that it could not talk to the docker socket. The output could be confusing because you are being shown two errors; one from each command: "Got permission denied..." is from the non-sudo version of docker ps and the second line "docker rm requires at least .." is from docker rm not having anything to remove because the first command failed.

The reason you need sudo to use the docker client is because it talks to the Docker engine over a UNIX socket located at /var/lib/docker.sock which is controlled for write access by root (the uid owner) and the docker group owner. More info on using sudo for Docker commands is in the post-installation setup docs as well as information on how to allow a normal user to have access to the socket, if you so choose. Make sure you read the warnings on that page about what that allows before making the decision between requiring sudo or adding your user to the docker group.

If you do add your user the docker group, you will no longer have to use sudo for Docker commands and can ignore any guides/tutorials which have sudo prefixed in front of all docker client commands.

Body:
I'm following a tutorial and in the current step, i'm supposed to remove any preexisting docker containers with this

docker rm -f $(docker ps -aq)

I usually have to use sudo to use docker commands, so I tried

sudo docker rm -f $(docker ps -aq)

But I get this

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.32/containers/json?all=1: dial unix /var/run/docker.sock: connect: permission denied
"docker rm" requires at least 1 argument.
See 'docker rm --help'.

Usage:  docker rm [OPTIONS] CONTAINER [CONTAINER...]

Remove one or more containers

Usually I get permission errors when I forget to use sudo, but in this case I have it.

Does anyone know what's wrong?

Thanks

EDIT

I tried this

sudo docker rm -f $(sudo docker ps -aq)

but get

"docker rm" requires at least 1 argument.
See 'docker rm --help'.

Usage:  docker rm [OPTIONS] CONTAINER [CONTAINER...]

Remove one or more containers


问:
Make electron app smaller?
I just recently built an electron app and packaged it using electron-packager. The .exe file is 55,000kb and the rest of the folder is quite bulky as well. Is there any way to take down the size of this application at all?</p>

答:
Here's a github issue on it.

The comment I'm emphasizing is:

That's the expected size, there is no way to make it smaller.

The reason why it's so big is because electron is loading most of chromium inside that 50mb file.

So no unfortunately there is no way to make it smaller sorry.

Title: Make electron app smaller?


问:
SignalR: Error during WebSocket handshake: Unexpected response code: 400
I have just started working with SignalR. I have implemented real-time data reflection on my site using signalr. I was getting "Error during Web-Socket handshake: Unexpected response code: 400" error on console with when trying to connect with web-socket.

Application is developed with Asp.net MVC - signalR 2.0.3 and hosted On Windows server 2012 - IIS 8

I found one solution from this link

It says that We need website to point to HTTPS (and avail SSL) then http to work with web-socket. And my Issue resolved too. My doubt is - cant we solve this issue without using HTTPS ? As each website might not require to be hosted on HTTPS (which requires SSL).

答:
This 400 error can also happen if you are running on multiple servers behind a load balancer. Inspect the body of the 400 response (ex., using Fiddler) and see if you find this: The ConnectionId is in the incorrect format.  If so, then your problem may be that you are not using the same machine key on each application server.

See this answer for details on the solution: https://stackoverflow.com/a/43479474/979202


问:
Wrapping quotes around dotfolders in home directory breaks bash commands
Wrapping quotes around dotfolders in the home folder breaks all shell commands, e.g.:

```<code>[jeff@mypc 0]$
[jeff@mypc 0]$ ls "~/.cache/"
ls: cannot access ~/.cache/: No such file or directory
[jeff@mypc 0]$ ls ~/.cache/
event-sound-cache.tdb.7187a0911f063e087eac3cc10000002b.x86_64-redhat-linux-gnu
mozilla
[jeff@mypc 0]$
</code>```

Is there some escape sequence that I need to use?

I need to use quotes, because I am accessing subfolders which may contain spaces.  I cannot expand the ~ shortcut to /home/jeff, because I need it to work for any user.  I have other constraints that prevent me from using environment variables like $HOME or $USER.

Edit 1

Why can't I use $HOME?  Intel fortran has some issues with it apparently:

```<code>      program mwe

      implicit none

      character(len = :), allocatable :: f

      integer :: unit, io

      f = '"$HOME/.cache/test.txt"'

      print *, 'f = ', f

      open(file = f, newunit = unit, iostat = io)

      print *, 'io = ', io  ! io = 29, i.e. file not found

      end program mwe
</code>```

答:
Quoting a ~ prevents it from being expanded by the shell. It's only that specific character that needs to be left unquoted:

```<code>ls ~"/.cache/"
</code>```

Best practice is to use "$HOME/.cache" instead.

Body:
Wrapping quotes around dotfolders in the home folder breaks all shell commands, e.g.:

[jeff@mypc 0]$
[jeff@mypc 0]$ ls "~/.cache/"
ls: cannot access ~/.cache/: No such file or directory
[jeff@mypc 0]$ ls ~/.cache/
event-sound-cache.tdb.7187a0911f063e087eac3cc10000002b.x86_64-redhat-linux-gnu
mozilla
[jeff@mypc 0]$

Is there some escape sequence that I need to use?

I need to use quotes, because I am accessing subfolders which may contain spaces.  I cannot expand the ~ shortcut to /home/jeff, because I need it to work for any user.  I have other constraints that prevent me from using environment variables like $HOME or $USER.

Edit 1

Why can't I use $HOME?  Intel fortran has some issues with it apparently:

      program mwe

      implicit none

      character(len = :), allocatable :: f

      integer :: unit, io

      f = '"$HOME/.cache/test.txt"'

      print *, 'f = ', f

      open(file = f, newunit = unit, iostat = io)

      print *, 'io = ', io  ! io = 29, i.e. file not found

      end program mwe

Body:
Quoting a ~ prevents it from being expanded by the shell. It's only that specific character that needs to be left unquoted:

ls ~"/.cache/"

Best practice is to use "$HOME/.cache" instead.


问:
Fetching data from Oracle to Sql in variables in SSIS
I have a table in Oracle something like this

user_id     |  Name     |     Process_Date

1           |   ABC     |     11/14/2017 5:14:18 PM

I want to use the parameter in ssis for oracle source. Now I created 1 string variable Check and passed the expression as

```<code>SUBSTRING( (DT_STR,50, 1256)DATEADD("DAY",-1,GETDATE()) , 1, 10)
</code>```

It gives me 2017-11-14 in the value

When In Ole DB Source I write query as

```<code>select * from Test where trunc(process_date) = ?. It gives me an error.
</code>```

Then I tried to use variable and load the query in variable something like

```<code>" select * from Test
where trunc(process_date) ="+ @[User::Check]
</code>```

I checked the variable properties ' EvaluateasExpression' it's True.

But still it gives me an error " Inconsistent datatypes: Expected Date got Number

What is missing here can anyone tell me???

答:
Maybe it's a problem with converting date string to date: Error it results is DATE GOT NUMBER

So the expression needs to be like this:

```<code>    "select * from Test
    where trunc(process_date) = to_date('"+ @[User::Check] + "','yyyy-mm-dd')"
</code>```

Body:
I have a table in Oracle something like this

user_id     |  Name     |     Process_Date

1           |   ABC     |     11/14/2017 5:14:18 PM

I want to use the parameter in ssis for oracle source. Now I created 1 string variable Check and passed the expression as

SUBSTRING( (DT_STR,50, 1256)DATEADD("DAY",-1,GETDATE()) , 1, 10)

It gives me 2017-11-14 in the value

When In Ole DB Source I write query as

select * from Test where trunc(process_date) = ?. It gives me an error.

Then I tried to use variable and load the query in variable something like

" select * from Test
where trunc(process_date) ="+ @[User::Check]

I checked the variable properties ' EvaluateasExpression' it's True.

But still it gives me an error " Inconsistent datatypes: Expected Date got Number

What is missing here can anyone tell me???

Body:
Maybe it's a problem with converting date string to date: Error it results is DATE GOT NUMBER

So the expression needs to be like this:

    "select * from Test
    where trunc(process_date) = to_date('"+ @[User::Check] + "','yyyy-mm-dd')"


问:
Need help to write Sql update query?
I need to update parent table with value from child  one

this my explanation

```<code>update table1 set column1 = (select name from table2 where profile = true)
where column2 in (select id from table2 where profile = true)
</code>```

basically i need to copy name from child and set is as column1 in table1 where ids are the same in parent and child table and profile in table2 = true

答:
```<code>update table1
set column1 = table2.name
FROM table1 join table2 ON table1.column2 = table2.ID
where table2.profile = true
</code>```

<p>[might need tweaking for your particular SQL dialect (RDBMS not specified)]</p>

Title: Need help to write Sql update query?

Body:
I need to update parent table with value from child  one

this my explanation

update table1 set column1 = (select name from table2 where profile = true)
where column2 in (select id from table2 where profile = true)

basically i need to copy name from child and set is as column1 in table1 where ids are the same in parent and child table and profile in table2 = true

Body:
update table1
set column1 = table2.name
FROM table1 join table2 ON table1.column2 = table2.ID
where table2.profile = true

[might need tweaking for your particular SQL dialect (RDBMS not specified)]