pass the addr of smart pointer("source") to ffmpeg