• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            隨筆 - 298  文章 - 377  trackbacks - 0
            <2017年12月>
            262728293012
            3456789
            10111213141516
            17181920212223
            24252627282930
            31123456

            常用鏈接

            留言簿(34)

            隨筆分類

            隨筆檔案

            文章檔案

            相冊

            收藏夾

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            @import url(http://m.shnenglu.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);

            From http://code.google.com/p/siphon/wiki/VIdeoSupport 

            PJSIP 在IOS視頻通信的方案,sipho開源項目已經告訴了我們!感謝他們~等會自己來試一下。大笑

            Introduction

            Currently, pjsip 2.0 includes the video support, also we will use it. And we won't backport video support in pjsip 1.x branch.

            We use three external libraries :

            The statements to compile libyuv are described in this site. Maybe your svn version is too old, in this case you can update svn by following the statements of Jason McCreary's blog.

            The statements to compile ffmpeg and x264 libraries are given on this site.

            Some statements to include VP8 support in pjsip are given on this page.

            libx264 compilation

            #!/bin/sh
            DEST=../iOS/video/iOS
            VERSION="5.1"
            SDK_VERSION="5.1"
            DEVPATH=/Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
            #DEVPATH=/Developer/Platforms/iPhoneOS.platform/Developer
            echo "Building armv7..."
            export CC=${DEVPATH}/usr/bin/llvm-gcc
            ./configure --host=arm-apple-darwin \
                --sysroot=${DEVPATH}/SDKs/iPhoneOS${VERSION}.sdk \
                --prefix=$DEST \
                --extra-cflags='-arch armv7' \
                --extra-ldflags="-L${DEVPATH}/SDKs/iPhoneOS${SDK_VERSION}.sdk/usr/lib/system -arch armv7" \
                --enable-pic \
                --enable-static
            make && make install
            echo "Installed: $DEST"

            ffmpeg compilation

            #!/bin/sh
            DEST=../iOS/video/iOS
            VERSION=5.1
            IPHONEOS_DEPLOYMENT_TARGET=5.1  
            DEVPATH=/Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
            #DEVPATH=/Developer/Platforms/iPhoneOS.platform/Developer
            X264INCLUDE=${DEST}/include
            X264LIB=${DEST}/lib
            COMMONFLAGS="-miphoneos-version-min=$IPHONEOS_DEPLOYMENT_TARGET -arch armv7 "
            CFLAGS="$CFLAGS $COMMONFLAGS -I$X264INCLUDE"
            LDFLAGS="$LDFLAGS -L${DEVPATH}/SDKs/iPhoneOS${VERSION}.sdk/usr/lib/system $COMMONFLAGS -L$X264LIB"
            export CC=${DEVPATH}/usr/bin/llvm-gcc
            export RANLIB=${DEVPATH}/usr/bin/ranlib
            echo "Building armv7..."
            ./configure \
                --cpu=cortex-a8 \
                --extra-cflags="$CFLAGS" \
                --extra-ldflags="$LDFLAGS" \
                --enable-cross-compile \
                --arch=arm \
                --target-os=darwin \
                --cc=${CC} \
                --sysroot=${DEVPATH}/SDKs/iPhoneOS${VERSION}.sdk \
                --prefix=${DEST} \
                --enable-gpl \
                --disable-network \
                --disable-decoders \
                --disable-muxers \
                --disable-demuxers \
                --disable-devices \
                --disable-parsers \
                --disable-encoders \
                --disable-protocols \
                --disable-filters \
                --disable-bsfs \
                --enable-libx264 \
                --enable-encoder=libx264 \
                --enable-encoder=libx264rgb \
                --enable-decoder=h264 \
                --enable-encoder=h263 \
                --enable-decoder=h263 \
                --enable-gpl \
                --enable-pic \
                --disable-doc \
                --disable-ffplay \
                --disable-ffprobe
               
            make & make install
            echo "Installed: $DEST"

            vpx compilation

            #!/bin/sh
            DEST=../iOS/video/iOS
            VERSION=6.0
            DEVPATH=/Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
            mkdir armv7_build
            cd armv7_build
            ../configure --target=armv7-darwin-gcc \
                 --prefix=${DEST} \
                 --disable-install-bins \
                 --libc=${DEVPATH}/SDKs/iPhoneOS${VERSION}.sdk
            make & make install

            pjsip compilation

            You have to enable video support in config_site.h:

            #define PJMEDIA_HAS_VIDEO 1

            iOS

            ./configure-iphone --prefix=./iOS --with-ffmpeg=../iOS/video/iOS
            make & make install

            Simulator

            export ARCH="-arch i386"
            export DEVPATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer
            export IPHONESDK=iPhoneSimulator6.0.sdk
            export CC=${DEVPATH}/usr/bin/llvm-gcc
            export CFLAGS="-O2 -m32 -miphoneos-version-min=5.0 -fobjc-abi-version=2 -fobjc-legacy-dispatch"
            export LDFLAGS="-O2 -m32"
            ./configure-iphone --prefix=./Simulator --with-ffmpeg=../iOS/video/iOS
            make & make install
            @import url(http://m.shnenglu.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);


            http://www.docin.com/p-1249529767.html

            posted on 2016-11-04 17:45 聶文龍 閱讀(958) 評論(0)  編輯 收藏 引用
            国产无套内射久久久国产| 激情久久久久久久久久| 久久国产精品无码HDAV | 日本欧美国产精品第一页久久| 中文字幕精品久久久久人妻| 久久亚洲日韩精品一区二区三区| 韩国三级中文字幕hd久久精品| 久久久久久曰本AV免费免费| 国产精品久久久天天影视香蕉 | 久久www免费人成看片| 国产成人久久激情91| 久久久国产亚洲精品| 91久久香蕉国产熟女线看| 中文字幕乱码久久午夜| 久久av高潮av无码av喷吹| 久久九九精品99国产精品| 亚洲精品美女久久久久99小说| 久久久久久a亚洲欧洲aⅴ | 亚洲乱亚洲乱淫久久| 久久午夜羞羞影院免费观看| 色偷偷91久久综合噜噜噜噜| 91久久精品电影| 久久青青草原精品影院| 久久国产精品无码一区二区三区 | 国产精品成人99久久久久| 久久国产精品成人影院| 99久久无色码中文字幕人妻| 日韩AV毛片精品久久久| 久久精品一区二区三区中文字幕| 久久综合综合久久狠狠狠97色88| 久久久久人妻一区精品性色av| 久久久久亚洲av综合波多野结衣| 欧美国产精品久久高清| 久久久久九九精品影院| 久久精品中文字幕第23页| 久久国产午夜精品一区二区三区| 18岁日韩内射颜射午夜久久成人| 久久国产精品久久| 国产精品99久久精品爆乳| 精品国产综合区久久久久久| 精品久久久久久久久久中文字幕 |