Added a method to log packets for debugging. Resolved issue with timestamps on re-encoded video..