Merge filter graphs when processing video