Editing Input Video And Saving To A File

I am looking to learn how to take in a video file using CUDA, convert its frames to YUV, edit the frames, convert the file back to RGB, and then save the file as an output video.

I originally tried to do this using cudas encoder and decoder samples, but they do not seem to work for linux. So I gave up on displaying them as they are processed and am moving onto simply saving the files.

Does anyone have any suggestions on where to start for this task?