applied same logic to ffmpeg gain process