Hello,
It seems that Raw support doesn't work correctly starting from version
2020.07.21. No data are recorded by openRTSP when playing raw file from
live555MediaServer.
I've noticed theses changes in RawVideoRTPSource.cpp.
--- live.2020.07.09/liveMedia/RawVideoRTPSource.cpp
+++ live.2020.07.21/liveMedia/RawVideoRTPSource.cpp
@@ -139,7 +139,7 @@
// Everything looks good:
fCurrentPacketBeginsFrame
= (fLineHeaders[0].fieldIdAndLineNumber&0x7FFF) == 0 &&
fLineHeaders[0].offsetWithinLine == 0;
- fCurrentPacketCompletesFrame = packet->rtpMarkerBit();
+ // Don't set "fCurrentPacketCompletesFrame" until we've processed the last
line in the packet
resultSpecialHeaderSize = headerStart - packet->data();
return True;
}
@@ -173,6 +173,11 @@
return;
}
+ // This line ('subframe') completes a frame if it's the last line in the
packet,
+ // and the packet's 'M' bit was set:
+ fOurSource->fCurrentPacketCompletesFrame
+ = fOurSource->fCurPacketMarkerBit && fOurSource->fNextLine ==
fOurSource->fNumLines;
+
frameSize = fOurSource->fLineHeaders[fOurSource->fNextLine++].length;
}
Yahia
_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel