[Live-devel] Raw issue

BENMOUSSA Yahia - Contractor yahia.benmoussa at external.thalesgroup.com
Fri Nov 27 02:34:31 PST 2020


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



More information about the live-devel mailing list