Coder Social home page Coder Social logo

Comments (4)

andersc avatar andersc commented on August 20, 2024

Hi

EFP is a container/framing mechanism of arbitrary data. Along with any data you may attach a uint64_t value referred to in the code as PTS and another uint64_t value referred as DTS.

The PTS value is transparently decoded by the receiver the DTS value may differ max 'UINT32_MAX' since the DTS value is transported as a uint32_t as a 'diff' calculated as a distance from the PTS value.

uint64_t lPtsDtsDiff = lPts - lDts;

So if you want to embed your media (or any other data) frames with the associated PTS/DTS value just as you would by using MPEG-TS way I see no difference between the two.

Some users of EFP has however switched over to TAI. EFP is perfectly suited for transporting the associated TAI times as well since the PTS value is a transparently transported uint64_t. For those cases the media generators are sampling the TAI time at the creation of the media frame or the data event or any other event the user wants to 'time'. At the receiver side the users usually add a constant to the TAI time to cope with the delay of the underlying transport (or what created a delay).

EFP is just a 'Frame' -> fragments -> 'Frame' solution. That is transparently transporting data. How the users deal with the data when sending the data or receiving the data is outside the scope of EFP.

Hope the above explanation gave some answers to your concern.

from efp.

kierank avatar kierank commented on August 20, 2024

from efp.

andersc avatar andersc commented on August 20, 2024

Hi Kieran,

Makes perfect sense. I would suggest using the method ->

addEmbeddedData

For attaching PCR or any other data not natively supported by the fragment headers. That would cater for your use-case.

I'll ask the maintainer to close this issue. If you feel this is not a sufficient answer for your use-case I suggest we meet at IBC (if you are visiting) to further discuss your concern.

Talk to you later.

/Anders

from efp.

kierank avatar kierank commented on August 20, 2024

It's weird that you want to remove the PCR which is mandatory in MPEG-TS and make it optional.

from efp.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.