Changes between Version 1 and Version 2 of Video_Users_Guide


Ignore:
Timestamp:
Aug 15, 2011 4:01:12 AM (13 years ago)
Author:
bennylp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Video_Users_Guide

    v1 v2  
    1818 
    1919All platforms: 
    20  1. [http://www.libsdl.org/ SDL] version 1.3. Note that this is the newer and not yet released SDL library, hence most likely it won't be installed by default on your system. You can download the source snapshot or from the Mercurial repository from http://www.libsdl.org/hg.php. 
     20 1. [http://www.libsdl.org/ SDL] '''version 1.3'''.  
     21    - Note that this is the newer and not yet released SDL library, hence most likely it won't be installed by default on your system. You can download the source snapshot or from the Mercurial repository from http://www.libsdl.org/hg.php. 
    2122 1. [http://ffmpeg.org/ ffmpeg] development library. 
     23 1. Optional: [http://qt.nokia.com/downloads/ Qt development SDK] for building the [#vidgui video GUI sample]. 
     24    -  
    2225 
    2326Linux: 
    2427 1. Video4Linux2 (v4l2) development library 
     28 
     29Windows: 
     30 1. ? 
     31 
     32Mac OS X: 
     33 - 
     34 
     35Mobile platforms (iPhone, Symbian, Windows Mobile, etc): 
     36 - Video is not supported on this release yet! 
    2537 
    2638 
     
    4456}}} 
    4557 
     58Once again, we need SDL version 1.3 for the video to work. 
     59 
    4660==== 2. Configuring video support ==== 
     61 
     62Add this in your {{{config_site.h}}}: 
     63 
     64{{{ 
     65#define PJMEDIA_HAS_VIDEO       1 
     66}}} 
     67 
     68==== 3. Build the library ==== 
     69 
     70As usual with: 
     71{{{ 
     72make dep && make clean && make 
     73}}} 
     74 
     75Once the build is successful, you will have '''pjsua''' executable containing video support. Additionally, you may want to build the [#vidgui GUI sample application] too. 
     76 
     77=== Visual Studio === 
     78 
     79Visual Studio users will need to configure things manually as explained below. 
     80 
     81==== 1. Configure directories ==== 
     82 
     83Add include and library paths for the required components: 
     84 1. SDL 
     85 1. ffmpeg 
     86 1. !DirectX (?) 
     87 1. Base classes (?) 
     88 
     89==== 2. Configure Video Settings ==== 
     90 
     91Add these to your {{{config_site.h}}}: 
     92 
     93{{{ 
     94#define PJMEDIA_HAS_VIDEO           1 
     95#define PJMEDIA_HAS_FFMPEG          1 
     96#define PJMEDIA_VIDEO_DEV_HAS_SDL   1 
     97}}} 
     98 
     99==== 3. Rebuild the Solution ==== 
     100 
     101Once the build is successful, you will have '''pjsua''' executable containing video support. Additionally, you may want to build the [#vidgui GUI sample application] too. 
     102 
     103 
     104=== GUI Sample Application === #vidgui 
     105 
     106We have a GUI sample application with video support. The project is located under {{{pjsip-apps/src/vidgui}}}. It is not built by default, and you need [http://qt.nokia.com/downloads/ Qt SDK] to build it. 
     107 
     108==== GNU Build System (Mac OS X, Linux, etc) ==== 
     109 
     110Follow these steps to build vidgui sample: 
     111 
     112{{{ 
     113$ cd pjsip-apps/src/vidgui 
     114$ make 
     115}}} 
     116 
     117==== Visual Studio ==== 
     118 
     119Follow these steps to build vidgui sample with Visual Studio: 
     120 
     121 1. Open command prompt, and 
     122 {{{ 
     123cd pjsip-apps\src\vidgui 
     124 }}} 
     125 1. Generate project files: 
     126 {{{ 
     127qmake -tp vc 
     128 }}} 
     129 1. Open vidgui.vcproj project. 
     130 1. Save the solution, and build the project 
    47131 
    48132