Is there an easy way to do this? I am tempted to call ffmpeg, but that sounds good.
Generally not. But this can be done using GStreamer .