Read and write media metadata using ffmpeg