Riza Sulistyo
a43bfb036b
Re #1920 : Avoid linking error when video is not enabled.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5306 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-18 10:11:53 +00:00
Riza Sulistyo
45a0a37a55
Re #1920 : Update how keyframe is detected on FFMpeg codec, since
...
AVCodecContext.coded_frame is deprecated.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5305 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-18 07:50:15 +00:00
Riza Sulistyo
ffe13e6e01
Re #1920 : Check for libavformat instead of libavcodec when setting
...
PJMEDIA_HAS_FFMPEG_CODEC.
ffmpeg_vid_codecs.c has a compile-time guard of PJMEDIA_HAS_FFMPEG_VID_CODEC
which is PJMEDIA_HAS_FFMPEG_CODEC which is PJMEDIA_HAS_LIBAVCODEC.
However, the code requires libavutil, libavcodec, and libavformat.
In Ubuntu (and Debian), the package libavformat-dev contains
libavcodec-dev and libavutil-dev.
Not the other way around. Therefore, the current compile-time guard is
not sufficient and should check PJMEDIA_HAS_LIBAVFORMAT instead.
Thanks to Alexander Traud for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5304 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-17 16:14:36 +00:00
Riza Sulistyo
f2735eb226
Re #1920 : Fix typo on configuration script when trying to detect FFMpeg
...
package (libavdevice).
Thanks to Alexander Traud for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5303 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-17 16:01:59 +00:00
Riza Sulistyo
a5946eb512
Re #1920 : Since FFmpeg version 0.7 (June 2011), the struct AVFormatParameters,
...
the function av_open_input_stream, and function av_close_input_stream
are deprecated. With FFmpeg 0.11, those three symbols were removed.
Thanks to Alexander Traud for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5302 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-17 15:54:14 +00:00
Riza Sulistyo
0f529759d7
Re #1920 : In the development branch of FFmpeg 0.8 (in July 2010), a new library
...
was created AVCore. Just a half year later (February 2011), AVCore was
merged into AVUtil (52.38.0).
Furthermore, nothing in pjproject uses libavcore. Therefore, it is save
to remove all references to that library.
Thanks to Alexander Traud for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5301 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-17 15:25:51 +00:00
Riza Sulistyo
d8624d5d44
Re #1917(misc): When enabling libsamplerate, the current source code expects to
...
have the already installed package "libsamplerate" in the third-party directory
of pjproject. The patch changes this.
Thanks to Alexander Traud for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5300 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-17 14:31:10 +00:00
Nanang Izzuddin
ca9271d5f6
Re #1897 : Updated ffmpeg_vid_codecs.c to support older ffmpeg.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5286 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-10 07:56:16 +00:00
Nanang Izzuddin
5a7e650edb
Re #1897 : Updated ffmpeg_util.h/.c to support older ffmpeg.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5271 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-24 13:16:25 +00:00
Nanang Izzuddin
17e3246fc8
Close #1906 : Removed PortAudio from PJSIP source package.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5268 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-23 07:52:41 +00:00
Riza Sulistyo
3704a6368a
Re #1907 : Updated VS2015 build settings, added the new files audio/videodev.h/c.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5267 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-18 07:42:09 +00:00
Nanang Izzuddin
85e9048e84
Close #1847 : Upgraded libsrtp version to 1.5.4 and added support for AES-CM-256 crypto.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5261 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-15 03:57:39 +00:00
Nanang Izzuddin
df1b7f092a
Re #1907 : Updated VS2005 build settings, added the new files audio/videodev.h/c.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5260 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-14 07:59:38 +00:00
Sauw Ming
f3790cfd24
Re #1907 : Fixed build error: undeclared variables PJMEDIA_VID_DEV_MAX_DRIVERS and PJMEDIA_VID_DEV_MAX_DEVS when PJMEDIA_HAS_VIDEO is disabled.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5257 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-11 12:43:59 +00:00
Sauw Ming
b1f406ce4f
Fixed #1907 : Remove pjmedia* circular dependency
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5255 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-10 05:02:07 +00:00
Sauw Ming
adc3b7f54f
Re #1882 (misc): Fixed a bug in Android sound device backends which prevent them to create a unidirectional stream
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5248 74dad513-b988-da41-8d7b-12977e46ad98
2016-02-29 01:10:21 +00:00
Riza Sulistyo
c58101bb69
Misc (Re #1882 ): Add compile time option (PJMEDIA_HAS_DTMF_FLASH) to enable/disable DTMF flash as specified in rfc2833.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5242 74dad513-b988-da41-8d7b-12977e46ad98
2016-02-18 03:15:19 +00:00
Sauw Ming
d3ece1d774
Fixed #1904 : Support for Opus codec
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5239 74dad513-b988-da41-8d7b-12977e46ad98
2016-02-04 06:11:58 +00:00
Nanang Izzuddin
8cacacf6bd
Misc (re #1882 ): Suppress EAGAIN recv() error log in pjmedia stream.c & vid_stream.c (thanks Christian Ambach for the patch).
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5234 74dad513-b988-da41-8d7b-12977e46ad98
2016-01-15 03:32:26 +00:00
Sauw Ming
9e18f15b22
Re #1882 (misc): Fixed incorrect loop when destroying streams in case of non-successful stream creation.
...
Thanks to Dusan Klinec for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5226 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-31 02:04:52 +00:00
Sauw Ming
d1c6a486ad
Re #1882 (misc): Add checking of crypto name in transport srtp.
...
Thanks to Dusan Klinec for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5219 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-30 03:35:53 +00:00
Sauw Ming
c46656e2bc
Re #1882 (misc): Configurable audio device name length
...
Thanks to Wolfgang Wallhäuser for the original patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5201 74dad513-b988-da41-8d7b-12977e46ad98
2015-11-19 04:03:00 +00:00
Nanang Izzuddin
eeca9e82e7
Re #1896 : Updated default audio device backends: mingw uses WMME, linux/*nix uses alsa (if available).
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5199 74dad513-b988-da41-8d7b-12977e46ad98
2015-11-10 10:36:14 +00:00
Riza Sulistyo
b34c4f8680
Re #1897 : Implement support to Ffmpeg 2.8.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5198 74dad513-b988-da41-8d7b-12977e46ad98
2015-11-10 05:28:47 +00:00
Nanang Izzuddin
a9a3238ed9
Close #1896 : Update default audio device backend on MacOS to CoreAudio.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5197 74dad513-b988-da41-8d7b-12977e46ad98
2015-11-09 10:28:16 +00:00
Sauw Ming
649d3c58e3
Re #1882 (misc): related to r5192, fixed inaccurate index checking in pjmedia_sdp_attr_find() as well
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5193 74dad513-b988-da41-8d7b-12977e46ad98
2015-10-30 00:37:14 +00:00
Sauw Ming
7416bdc608
Re #1882 (misc): Fixed inaccurate index checking assertion when removing SDP attributes in pjmedia_sdp_attr_remove() and pjmedia_sdp_attr_remove_all()
...
Thanks to Fredrik Hansson for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5192 74dad513-b988-da41-8d7b-12977e46ad98
2015-10-29 01:27:02 +00:00
Nanang Izzuddin
786c6140a3
Misc (re #1882 ): Added array length check before inserting parsed bandwidth & attribute info to SDP structure (thanks Fredrik Hansson for the patch).
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5190 74dad513-b988-da41-8d7b-12977e46ad98
2015-10-23 09:45:48 +00:00
Sauw Ming
b5c5b7fc25
Re #1882 (misc): Fixed possibly incorrect stream stats
...
When a codec is opened, it can modify its param (such as iLBC can normalize its frame ptime based on remote SDP), so the stream stats has to be updated accordingly.
Also in this fix is to increase the log level which shows the info of iLBC mode opened.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5187 74dad513-b988-da41-8d7b-12977e46ad98
2015-10-07 03:57:17 +00:00
Sauw Ming
4021214257
Fixed #1888 : Support for WebRtc AEC
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5186 74dad513-b988-da41-8d7b-12977e46ad98
2015-10-06 05:57:51 +00:00
Nanang Izzuddin
602a176bf9
Fix #1887 : Feed only one PCM input frame at a time to iOS iLBC encoder.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5182 74dad513-b988-da41-8d7b-12977e46ad98
2015-09-28 05:54:25 +00:00
Riza Sulistyo
5a5522dc6e
Re #1881 : Add filters file.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5181 74dad513-b988-da41-8d7b-12977e46ad98
2015-09-21 05:25:04 +00:00
Nanang Izzuddin
e2c345747f
Fix #1884 : Fixed silence frame length in stream (frame length calculation didn't include frame per packet).
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5174 74dad513-b988-da41-8d7b-12977e46ad98
2015-09-10 07:17:22 +00:00
Sauw Ming
ac38922794
Re #1882 (misc): In iOS, set the option to notify other apps upon audio session deactivation. This will be useful so other apps can return to active state and resume its audio.
...
Thanks to Johan Lantz for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5171 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-27 02:23:55 +00:00
Nanang Izzuddin
88358fd268
Re #1881 : Fixed compile warnings on VS2015 about declaration hides previous declaration.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5170 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-25 08:45:46 +00:00
Riza Sulistyo
bcfe1aea76
Re #1881 : Add Visual Studio 2015 support.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5168 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-21 14:58:04 +00:00
Sauw Ming
d3d2427ead
Fixed #1880 : Incorrect orientation after switching video capture or when using back camera
...
Included in this fix:
* Change the spec & doc of pjmedia_orient enumeration
* Change iOS sample app to rotate all video devices upon orientation change event.
* Set orientation as well when fast switching cameras (for iOS and Android)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5166 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-21 06:46:32 +00:00
Nanang Izzuddin
f5727fc18c
Misc (re #1843 ): Fixed compile warnings of unused variable.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5157 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-10 09:11:39 +00:00
Sauw Ming
999cce3eb6
Re #1843 (misc): Fixed wrong calculation of timestamp in L16 codec (should be multiplied by samples per frame instead of frame size).
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5153 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-07 09:22:32 +00:00
Nanang Izzuddin
a0ca842333
Fix #1876 : Don't restart renderer when only fps is changing, just modify the clock instead.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5149 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-06 07:10:33 +00:00
Nanang Izzuddin
a7b4d5c1e2
Close #1872 :
...
- Moved iOS audio session category setting to factory initialisation, with option of enabling bluetooth by default.
- Also set audio session mode to AVAudioSessionModeVoiceChat.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5142 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-31 08:35:34 +00:00
Nanang Izzuddin
92444fe4ba
Fix #1871 : fixed missing audio index normalization in audio device open functions.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5140 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-31 07:12:36 +00:00
Sauw Ming
93efad4c9b
Fixed #1861 : Add support for video capture orientation on Android
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5138 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-30 06:23:35 +00:00
Nanang Izzuddin
57d08fc50e
Misc (re #1843 ): Fixed MSVC build error on samples app due to undefined symbol 'RAND_bytes'.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5136 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-28 09:56:31 +00:00
Nanang Izzuddin
5b757638c3
Fix #1866 : Refactored the management of initial SDP in SDP negotiator considering flip-flop memory pools used by the application/invite sesion.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5129 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-08 10:17:26 +00:00
Sauw Ming
33bd0fd547
Re #1861 : Changed pjsua API for setting the orientation using a more generic API, pjsua_vid_dev_set_setting() instead
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5125 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-03 06:21:30 +00:00
Riza Sulistyo
9a4d81daf2
Misc (re #1843 ): Register fmt matching callbak for AMR-WB in opencore-amr implementation. Thanks to Alexander Traud for the initial patch.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5122 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-01 01:45:57 +00:00
Sauw Ming
b02c2cebd6
Re #1861 : Initial implementation of video orientation support
...
- Utility to resize and rotate video frame
- Support for iOS + sample
- pjsua API to set video device's orientation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5118 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-25 08:17:52 +00:00
Sauw Ming
035c0e6abc
Re #1843 (misc): Add two underscores for the header definition macros to match the convention
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5117 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-25 04:51:59 +00:00
Sauw Ming
a32a7af322
Fixed #1860 : Modify pjmedia_sdp_neg_fmt_match() to check for encoding parameters as well
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5114 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-22 07:33:46 +00:00