get the H264 SPS and PPS from the first frame

* might fix some codec initialization issues (see #4)