[FFmpeg-trac] #5198(undetermined:new): FFmpeg flips rawvideo vertically with -vcodec copy
FFmpeg
trac at avcodec.org
Wed Jan 27 03:54:17 CET 2016
#5198: FFmpeg flips rawvideo vertically with -vcodec copy
-------------------------------------+-------------------------------------
Reporter: JasonC | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Log file attached.
When attempting to trim a video (rawvideo, avi) to a certain length of
time using -vcodec copy, the output video is vertically flipped (verified
with mplayer, VLC, Windows Media Player, and the Quicktime player):
{{{
ffmpeg -i input.avi -t 120 -vcodec copy -f avi output.avi
}}}
A workaround is to use -vcodec rawvideo instead of copy to re-encode the
video. Doing this, the output is not flipped:
{{{
ffmpeg -i input.avi -t 120 -vcodec rawvideo -f avi output.avi
}}}
Note that running the flipped video through one more time with -vcodec
copy does not continue flipping it, the video remains upside down (I make
this comment because I read https://ffmpeg.org/pipermail/ffmpeg-
devel/2007-July/029690.html):
{{{
ffmpeg -i input.avi -t 120 -vcodec copy -f avi output.avi
ffmpeg -i output.avi -vcodec copy -f avi output-still-flipped.avi
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5198>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list