ios - If you rotate the iPhone's video with ffmpeg, the rotation information sticks. Can I hide this? -
the following implementation command rotate movie 90 degrees.
ffmpeg -i video.mp4 -vf transpose=1 -metadata:s:v:0 rotate=0 videoo.mp4 -vf transpose=1
the iphone's video contains rotation information , actually
ffprobe -show_streams -print_format json videoo.mp4 2>/dev/null
to output motion picture information or rotation information described below.
"tags": { "rotate": "90", "creation_time": "2017-08-24t01:49:38.000000z", "language": "und", "handler_name": "core media data handler", "encoder": "'avc1'" }, "side_data_list": [ { "side_data_type": "display matrix", "displaymatrix": "\n00000000: 0 65536 0\n00000001: -65536 0 0\n00000002: 0 0 1073741824\n", "rotation": -90 } ] "rotate": "90",
and
"side_data_list":
and
"rotation": -90
is possible hide this? or possible erase rotation information?
your ffmpeg
old. if want physically rotate video encode using ffmpeg
, automatically according rotation information:
ffmpeg -i input.mp4 -c:a copy output.mp4
it automatically strip rotation side data. if want avoid behavior add -noautorotate
option.
if want strip rotation side data:
ffmpeg -i input.mp4 -c copy -metadata:s:v rotate="" output.mp4
wiki
Comments
Post a Comment