• <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://www.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://www.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)  編輯 收藏 引用
            久久精品国内一区二区三区| 日本亚洲色大成网站WWW久久| 久久精品国产亚洲αv忘忧草| 精品免费久久久久国产一区| 99热都是精品久久久久久| 国产精品美女久久久久AV福利| 久久精品综合一区二区三区| 99久久精品国产一区二区| 国内精品久久久久| 精品无码人妻久久久久久| 久久AV高潮AV无码AV| 91视频国产91久久久| 久久伊人五月天论坛| 国产精品久久久久AV福利动漫| 久久久久久噜噜精品免费直播 | 99精品国产99久久久久久97 | 久久亚洲春色中文字幕久久久| 国产成人久久久精品二区三区| 伊人色综合久久天天网| 国产精品美女久久久久网| 亚洲国产成人久久综合碰| 中文精品久久久久国产网址 | 久久精品亚洲福利| 99久久成人国产精品免费| 久久青青草视频| 久久久久一本毛久久久| 久久精品国产亚洲一区二区| 精品久久8x国产免费观看| 久久免费99精品国产自在现线| 久久精品免费一区二区三区| 久久精品午夜一区二区福利| 婷婷久久久亚洲欧洲日产国码AV| 国产精品一区二区久久精品无码 | 大香伊人久久精品一区二区| 久久99精品久久久久久野外| 国产欧美久久久精品| 69久久夜色精品国产69| 欧美噜噜久久久XXX| 人妻无码αv中文字幕久久琪琪布 人妻无码久久一区二区三区免费 人妻无码中文久久久久专区 | 免费无码国产欧美久久18| 亚洲精品97久久中文字幕无码|