abstraction for writedata to stream in VideoFilter