skymaze / sdp-transform Goto Github PK
View Code? Open in Web Editor NEWA simple Python parser and writer of SDP.
License: MIT License
A simple Python parser and writer of SDP.
License: MIT License
According to spec SMPTE RP 2110-23:2019 the a=mid: should be at the end of the group section
I believe the grammar.py should be modified to move "mid" at the end
Actual Results:
v=0
o=- 1443716955 1443716955 IN IP4 10.26.144.58
s=emsfp-a1-55-84_0-0-0
t=0 0
a=group:DUP primary secondary
m=video 20000 RTP/AVP 96
c=IN IP4 232.20.0.58/64
a=rtpmap:96 raw/90000
a=fmtp:96 sampling=YCbCr-4:2:2; width=1920; height=1080; exactframerate=30000/1001; depth=10; TCS=SDR; colorimetry=BT709; PM=2110GPM; SSN=ST2110-20:2017; TP=2110TPN; TROFF=652; interlace;
a=mid:primary
a=source-filter: incl IN IP4 232.20.0.58 10.26.144.58
a=ts-refclk:ptp=IEEE1588-2008:08-00-11-FF-FE-22-91-BB:0
a=mediaclk:direct=0
m=video 20000 RTP/AVP 96
c=IN IP4 234.20.0.58/64
a=rtpmap:96 raw/90000
a=fmtp:96 sampling=YCbCr-4:2:2; width=1920; height=1080; exactframerate=30000/1001; depth=10; TCS=SDR; colorimetry=BT709; PM=2110GPM; SSN=ST2110-20:2017; TP=2110TPN; TROFF=652; interlace;
a=mid:secondary
a=source-filter: incl IN IP4 234.20.0.58 10.26.145.58
a=ts-refclk:ptp=IEEE1588-2008:08-00-11-FF-FE-22-91-BB:0
a=mediaclk:direct=0
Expected:
v=0
o=- 1443716955 1443716955 IN IP4 10.26.144.58
s=emsfp-a1-55-84_1-0-0
t=0 0
a=group:DUP primary secondary
m=video 20000 RTP/AVP 96
c=IN IP4 232.20.10.57/64
a=source-filter: incl IN IP4 232.20.10.57 10.26.144.57
a=rtpmap:96 raw/90000
a=fmtp:96 sampling=YCbCr-4:2:2; width=1920; height=1080; exactframerate=60; depth=10; TCS=SDR; colorimetry=BT709; PM=2110GPM; SSN=ST2110-20:2017; TP=2110TPN; TROFF=844;
a=mediaclk:direct=0
a=ts-refclk:ptp=IEEE1588-2008:08-00-11-FF-FE-22-91-BB:0
a=mid:primary
m=video 20000 RTP/AVP 96
c=IN IP4 234.20.10.57/64
a=source-filter: incl IN IP4 234.20.10.57 10.26.145.57
a=rtpmap:96 raw/90000
a=fmtp:96 sampling=YCbCr-4:2:2; width=1920; height=1080; exactframerate=60; depth=10; TCS=SDR; colorimetry=BT709; PM=2110GPM; SSN=ST2110-20:2017; TP=2110TPN; TROFF=844;
a=mediaclk:direct=0
a=ts-refclk:ptp=IEEE1588-2008:08-00-11-FF-FE-22-91-BB:0
a=mid:secondary
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.