[FFmpeg-trac] #7752(ffplay:new): Rotation metadata is not honored by crop filter in ffplay
FFmpeg
trac at avcodec.org
Sat Feb 23 16:56:58 EET 2019
#7752: Rotation metadata is not honored by crop filter in ffplay
---------------------------------+----------------------------------
Reporter: pekarna | Type: defect
Status: new | Priority: normal
Component: ffplay | Version: 4.1
Keywords: rotate | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
---------------------------------+----------------------------------
Summary of the bug:
Using the 'crop' filter,
the `ffplay` preview of cropping the videos that were rotated just by
setting the metadata behaves as if there was no rotation.
That means: If I want to crop a rotated video,
`ffplay` takes the cropping parameters as if it was not rotated;
{{{
ffplay -i VIDEO-rot.mp4 -vf
'crop=in_w*(1-0.5-0):in_h*(1-0.31-0.1):in_w*0.5:in_h*0.31'
}}}
while the actual cropping takes them properly.
{{{
ffmpeg -i VIDEO-rot.mp4 -filter:v
'crop=in_w*(1-0.5-0):in_h*(1-0.31-0.1):in_w*0.5:in_h*0.31' -c:a copy
VIDEO-cropped.mp4
}}}
How to reproduce:
1) Have an MP4 video
2) Rotate it with metadata:
{{{
ffmpeg -i "$INPUT" -metadata:s:v rotate="180" -codec copy "VIDEO-rot.mp4"
}}}
3) Preview cropping with `ffplay` and do the cropping with `ffmpeg` and
notice that the crop filter params need to be rotated.
{{{
% ffmpeg -i input ... output
ffmpeg version 4.1-static https://johnvansickle.com/ffmpeg/
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7752>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list