* rename namespace from ring to jami
* rename logs methods from RING_* to JAMI_*
* rename RING_VIDEO to ENABLE_VIDEO
Change-Id: Ic98498652d7059fafe58a96220d565bcdfa53658
Cleans up the encoder a bit and removes methods that weren't used or did
nothing. In any case, it should not be the encoder's responsibility to
mute audio/video.
Removes direct accesses to private data. All these options are accessible
through the av_opt_* API with the AV_OPT_SEARCH_CHILDREN flag.
Adding streams to the encoder is now done separately than opening an RTP
output in an effort to streamline the encoder setup (file vs RTP).
Change-Id: I7a868d098fa942697cfbe3246f368fb9fc7bfb0f
A comment in swr_set_matrix says "[SwrContext] needs to be allocated
but not initialized" before returning an error code.
Adds a unit test for reinitializing a matrix.
Change-Id: If8f38a5dd15393f8ae9578b4f272c2554a663c11
Fixed unused parameter warning for main function
Fixed test_sipp.cpp not finding dring-sample.yml in test cases
Change-Id: Ie88ce5853bf18aa6f9c5c07bc0ec888aa268682f
Reviewed-by: Philippe Gorley <philippe.gorley@savoirfairelinux.com>
fixed unitTest
frameSize should be set before reallocating the queue
Change-Id: Ie9cefb5419b34d487d67fcd6bd44f66aa192dc57
Reviewed-by: Philippe Gorley <philippe.gorley@savoirfairelinux.com>
Allows buffering of samples when the frame sizes at the input and the
output don't match.
Will mostly be used for file streaming, where the file's frame size may
not match the standard 20 ms packet size used in the project.
Adds unit tests.
Change-Id: I568b31ba97d33bc0c1c89495e918bd10a9bf8aeb
Improves reliability of resampler by setting the input and output
channel counts and by forcing initialization on the first resampling.
Removes redundancy by using the sample format in AudioFormat.
Change-Id: Ie0154d5b46db6735dbc8da81fdb0e6be795a3efa
This will help once audio streaming is implemented, as the encoder will
need to know the number of samples per frame in the decoded file.
Change-Id: I6d6375b46d74eec6618c0f1e7ee1f07fd86b6e45
SIP and TURN tests fail sporadically, and all recent additions to the
test folder have been under the unitTest folder.
Change-Id: Icac4827f53da3fbd72492cdfb024a003decbbbec
Makes use of AVFrame's reference counting if possible instead of copying
the data.
Only bumps minor version because MediaFrame et al weren't in the ABI
until now.
Change-Id: I692e76230ed057c1ad4e46ab59ea5cfd163fb98d
Using MediaFilter would make the resampling time longer and more
unpredictable than directly using libswresample.
Adds libswresample as a dependency.
Simplifies Resampler class.
Resampler detects changes in input and output formats automatically.
Changes Audiofile to use Resampler instead of MediaFilter.
Change-Id: I24919e8fa514dbb4a38408e338016976e7424136
If the PCM signed 16 decoders cannot be found, skip the test
Change-Id: If7ddf9778465415232e59f43b88ba17bf3bf7dbd
Reviewed-by: Sebastien Blin <sebastien.blin@savoirfairelinux.com>
Allows title and description to be specified when muxing to a file.
Change-Id: Ie48c185a0177e09872867520ab1aabfddeacbb8a
Reviewed-by: Sebastien Blin <sebastien.blin@savoirfairelinux.com>
Filters were reverted for the release so the binaries wouldn't include
libavfilter (which wasn't yet used).
This reverts commit 1e6a471687.
Change-Id: Ib9790a544b442066265b3fe1ea96313be35eff62
Reviewed-by: Sebastien Blin <sebastien.blin@savoirfairelinux.com>
Refactors the MediaEncoder class so it can be reused elsewhere in the
codebase.
Concretely, MediaEncoder now supports multiple streams and file formats.
Adds a unit test for MediaEncoder.
Change-Id: I27d6f2e8538809e01fef5c35978a0c35dcf8cae4
Reviewed-by: Sebastien Blin <sebastien.blin@savoirfairelinux.com>
Changes sip and turn test executable names to match gitignore rules.
Removes dring-sample.yml that is created and modified each time the sip
test runs.
Ignore generated configuration files.
Change-Id: I5e6cc760183763a3448f2d35bd0bf55ba765f746
Reviewed-by: Sebastien Blin <sebastien.blin@savoirfairelinux.com>
permitPeer was failing because of a bad parsing.
Here we should use the ipv4 mapped address.
Change-Id: If286afc54efc99f8828c6379a6264c9da4285d75
Reviewed-by: Philippe Gorley <philippe.gorley@savoirfairelinux.com>
Adds dependency to libavfilter, which provides many useful utilities
such as hardware encoding, mixing audio or rotating video.
Access to libavfilter is done through the MediaFilter class, which takes
a filter graph string and AVFrames as input and outputs filtered
AVFrames.
Adds unit tests for MediaFilter.
Change-Id: I0bf3869a9f19ad9cbbe1fc5e2d37eb83ece66ccc
Reviewed-by: Sebastien Blin <sebastien.blin@savoirfairelinux.com>
Some unit tests generate a dring configuration file. Have git ignore it
so it is not accidentally added to the repo.
Change-Id: I6f491d1c4f49606e9fa4d0dc42324919cd88c7ce