use environment variable instead of opening ffmpeg directly