VideoFrame frame =(VideoFrame) JsonConvert.DeserializeObject(header, typeof(VideoFrame));
string data=JsonConvert.SerializeObject(pack);
public class VideoFrame
{
[JsonProperty(PropertyName = "id")]
public int Id;
[JsonIgnore()]
public byte[] ImageBuffer;
}