title: Is it possible to remove start codes using NVENC?
body: <p>I'm using <a href="https://developer.nvidia.com/nvidia-video-codec-sdk" rel="nofollow">NVENC SDK</a> to encode OpenGL frames and stream them over RTSP. NVENC gives me encoded data in the form of several NAL units. In order to stream them with Live555 I need to find the <a href="https://en.wikipedia.org/wiki/Network_Abstraction_Layer#NAL_Units_in_Byte-Stream_Format_Use" rel="nofollow">start code</a> (0x00 0x00 0x01) and remove it. I want to avoid this operation.</p>
  
  <p>NVENC has a sliceOffset attribute which I can consult, but it indicates slices, not NAL units. It only points the ending of the SPS and PPS headers, where the actual data starts. I understand that a slice is not equal to a NAL (correct me if I'm wrong). I'm already forcing single slices for encoded data.</p>
  
  <p>Is any of the following possible?</p>
  
  <ol>
  <li>Force NVENC to encode individual NAL units</li>
  <li>Force NVENC to indicate where the NAL units in each encoded data block are</li>
  <li>Make Live555 accept the sequence parameters for streaming</li>
  </ol>