Add method ffmpeg.get_media_duration + improve coverage of test