align with ffmpeg