implemented the duration split to libav/ffmpeg