title: Create H.264 packet trace from video
body: <p>I'm using <strong>ns-3</strong> for real time video transmission. The peculiarity of my scenario is that, using <strong>JSVM</strong> software, I obtain a text file corresponding to the trace video packets encoded using <strong>H.264/SVC</strong>. After a little bit of post processing, I get an input file suitable for network simulation; then, I try to reconstruct the trace with the packets at the receiver, and after that of course I elaborate some metrics to compare different transmission strategy.<br>
  However, last update on JSVM seems to quite <a href="https://github.com/floriandejonckheere/jsvm/tree/master/JSVM/H264Extension" rel="nofollow noreferrer">old</a>. In fact, if some (<strong>not fundamental</strong>) packets are missing from the received trace, the bitstream is reconstructed but video decoding procedure won't finish (which to me seems counter-intuitive given H.264 decoding policies).<br>
  This means that I can potentially obtain inconsistent metrics.</p>
  
  <p>I tried also <strong>ffmpeg</strong> for the bitstream processing procedure, but in this case it doesn't recognize the enhancement quality layer which I encoded in my video-stream.</p>
  
  <p>Given all the listed problems, I would like to know if there's any software that, given a video with any extension as input, it returns as output a text file corresponding to the packet trace. Moreover, it is important that it can do also the reverse process: from a packet trace text file, it must reconstruct the bit stream.</p>