encode ffmpeg to binary before parsing it