我正在尝试修复一些使用iDevice制作的视频.视频在元数据中有一个轮换,只有Apple及其软件才能理解,但其他人无法理解.修复此问题非常简单,但我还想将其他元数据保留在文件中,例如地理位置.
我尝试了几个版本,都有相同的结果,例如:
ffmpeg -i input.mov -vf vflip,hflip -map_metadata 0 -metadata:s:v:0 rotate=0 -acodec copy output.mp4
Run Code Online (Sandbox Code Playgroud)
这应该有效,它已经提供了正确的元数据预览:
ffmpeg version 1.1.2 Copyright (c) 2000-2013 the FFmpeg developers
built on Feb 8 2013 23:55:22 with Apple clang version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/1.1.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid
libavutil 52. 13.100 / 52. 13.100
libavcodec 54. 86.100 / 54. 86.100
libavformat 54. 59.106 / 54. 59.106
libavdevice 54. 3.102 / 54. 3.102 …Run Code Online (Sandbox Code Playgroud)