Dear libavusers,

I patched some files of libavformat and libavcodec to include timestamps
from RTPDemuxContext in the AVPacket (I did it similar to [1]). This is
for the purpose of synchronizing multiple streams on the receiver side
and works fine. Of course, it only works when the stream protocol is
RTSP or RTP, not if the input is a file or another protocol that does
not use RTPDemuxContext.

Is there any value in AVFormatContext (or similar) which indicates of
what protocol an opened stream is? Or do I have to manually parse the
url to determine, if a RTSP source or a file is opened?

Also, it would be helpful if the RTP and NTP timestamps from
RTPDemuxContext would be exposed in the public API, so that no patch is
needed. I found some solutions [2] which use the internal header files,
but finally decided to just patch the public API since I could not get
it compiled with the internal headers. Would it make sense to include
this modification? Or does it brake compatibility with other protocols?

Kind regards,

Lukas Bommes

[1] https://github.com/bytedeco/javacpp-presets/issues/374

[2]
https://stackoverflow.com/questions/20094998/retrieving-timestamp-in-rtp-rtsp

_______________________________________________
Libav-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to