rtp


Namertp JSON
Version 0.0.4 PyPI version JSON
download
home_pagehttps://github.com/bbc/rd-apmm-python-lib-rtp
SummaryA library for decoding/encoding rtp packets
upload_time2023-12-05 17:01:47
maintainer
docs_urlNone
authorBBC R&D
requires_python
licenseapache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # rtp

This python library provides a means to decode, encode, and interact with RTP packets. It is intended to be used together with other libraries that decode, encode, and interact with the payload bitstreams. This library does not provide any network functionality.

## Installation

```bash
pip install rtp
```

## Example usage
```python
from rtp import RTP, Extension, PayloadType
from copy import deepcopy

baseRTP = RTP(
    marker=True,
    payloadType=PayloadType.L16_2chan,
    extension=Extension(
        startBits=getExtStartBits(),
        headerExtension=getExtBody()
        ),
    csrcList=getCSRCList()
)
thisRTPBitstream = thisRTP.toBytearray()

while runing:
    nextRTP = deepcopy(baseRTP)
    nextRTP.sequenceNumber += 1
    nextRTP.timestamp = getNextTimestamp()
    nextRTP.payload = getNextPayload()

    transmit(nextRTP)
```

```python
from rtp import RTP

decodedPayload = MyPayloadDecoder(
    RTP().fromBytearray(getNextPacket()).payload)

render(decodedPayload)
```

## Contributing
We desire that contributors of pull requests have signed, and submitted via email, a [Contributor Licence Agreement (CLA)](http://www.bbc.co.uk/opensource/cla/rfc-8759-cla.docx), which is based on the Apache CLA.

The purpose of this agreement is to clearly define the terms under which intellectual property has been contributed to the BBC and thereby allow us to defend the project should there be a legal dispute regarding the software at some future time.

If you haven't signed and emailed the agreement yet then the project owners will contact you using the contact info with the pull request.

## License
See [LICENSE](LICENSE).

## Authors

* James Sandford

For further information, contact <cloudfit-opensource@rd.bbc.co.uk>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/bbc/rd-apmm-python-lib-rtp",
    "name": "rtp",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "BBC R&D",
    "author_email": "cloudfit-opensource@rd.bbc.co.uk",
    "download_url": "",
    "platform": null,
    "description": "# rtp\n\nThis python library provides a means to decode, encode, and interact with RTP packets. It is intended to be used together with other libraries that decode, encode, and interact with the payload bitstreams. This library does not provide any network functionality.\n\n## Installation\n\n```bash\npip install rtp\n```\n\n## Example usage\n```python\nfrom rtp import RTP, Extension, PayloadType\nfrom copy import deepcopy\n\nbaseRTP = RTP(\n    marker=True,\n    payloadType=PayloadType.L16_2chan,\n    extension=Extension(\n        startBits=getExtStartBits(),\n        headerExtension=getExtBody()\n        ),\n    csrcList=getCSRCList()\n)\nthisRTPBitstream = thisRTP.toBytearray()\n\nwhile runing:\n    nextRTP = deepcopy(baseRTP)\n    nextRTP.sequenceNumber += 1\n    nextRTP.timestamp = getNextTimestamp()\n    nextRTP.payload = getNextPayload()\n\n    transmit(nextRTP)\n```\n\n```python\nfrom rtp import RTP\n\ndecodedPayload = MyPayloadDecoder(\n    RTP().fromBytearray(getNextPacket()).payload)\n\nrender(decodedPayload)\n```\n\n## Contributing\nWe desire that contributors of pull requests have signed, and submitted via email, a [Contributor Licence Agreement (CLA)](http://www.bbc.co.uk/opensource/cla/rfc-8759-cla.docx), which is based on the Apache CLA.\n\nThe purpose of this agreement is to clearly define the terms under which intellectual property has been contributed to the BBC and thereby allow us to defend the project should there be a legal dispute regarding the software at some future time.\n\nIf you haven't signed and emailed the agreement yet then the project owners will contact you using the contact info with the pull request.\n\n## License\nSee [LICENSE](LICENSE).\n\n## Authors\n\n* James Sandford\n\nFor further information, contact <cloudfit-opensource@rd.bbc.co.uk>\n",
    "bugtrack_url": null,
    "license": "apache-2.0",
    "summary": "A library for decoding/encoding rtp packets",
    "version": "0.0.4",
    "project_urls": {
        "Homepage": "https://github.com/bbc/rd-apmm-python-lib-rtp"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7a72c1a480fc77179fc971e43f61b33cc26aa208eb77006aeaf2bbc647f57cb5",
                "md5": "145a7cff45097c776c6d6d1f9c226c6a",
                "sha256": "43987a7fff3b243323457c98648551519a3ce53cb9fa94c75413ef134d46c39f"
            },
            "downloads": -1,
            "filename": "rtp-0.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "145a7cff45097c776c6d6d1f9c226c6a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 14515,
            "upload_time": "2023-12-05T17:01:47",
            "upload_time_iso_8601": "2023-12-05T17:01:47.146308Z",
            "url": "https://files.pythonhosted.org/packages/7a/72/c1a480fc77179fc971e43f61b33cc26aa208eb77006aeaf2bbc647f57cb5/rtp-0.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-05 17:01:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "bbc",
    "github_project": "rd-apmm-python-lib-rtp",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "rtp"
}
        
Elapsed time: 3.15810s