[FFmpeg-trac] #570(FFmpeg:new): Video flipped with inverted colors in flash after transcode
FFmpeg
trac at avcodec.org
Tue Oct 18 17:39:52 CEST 2011
#570: Video flipped with inverted colors in flash after transcode
--------------------------------------+---------------------------------
Reporter: brama | Owner: michael
Type: defect | Status: new
Priority: normal | Component: FFmpeg
Version: git-master | Keywords:
Blocked By: | Blocking:
Reproduced by developer: 0 | Analyzed by developer: 0
--------------------------------------+---------------------------------
When transcoding the sample video below, the resulting output file will
play OK in ubuntu's video player, but in a flash player it will be flipped
and having its colors inverted.
We're currently running an ffmpeg from oct 2010 which does not have this
problem. I've tested ffmpeg 0.8.3, 0.8.5 and the master branch from
yesterday (libx264 dito) which do exhibit the problem.
After some investigation, it turns out that the corruption only occurs on
certain output video sizes, while it works with other sizes.
Command line with output resolution that produces the corrupt output:
{{{
./ffmpeg -y -i '/tmp/in.mp4' -s 320x180 -vcodec libx264 -acodec libfaac
/tmp/out.mp4
}}}
320x184 output size produces a valid video in flash:
{{{
./ffmpeg -y -i '/tmp/in.mp4' -s 320x184 -vcodec libx264 -acodec libfaac
/tmp/out.mp4
}}}
But 320x176 is also corrupted:
{{{
./ffmpeg -y -i '/tmp/in.mp4' -s 320x176 -vcodec libx264 -acodec libfaac
/tmp/out.mp4
}}}
The sample input video is uploaded to upload.ffmpeg.org as
/upload/uploaded/flipped_in_flash_after_transcode.mp4 and can also be
retrieved here: http://bram.name/flipped_in_flash_after_transcode.mp4
A sample output video with 320x180 dimensions that is corrupt in flash:
http://bram.name/output_flipped_in_flash.mp4
You can test the corruption in flash on this jwplayer test page (corrupt
output file already filled in):
http://developer.longtailvideo.com/trac/testing/?player=v5&skin=&file=http%3A%2F%2Fbram.name%2Foutput_flipped_in_flash.mp4&height=260&width=500
Output for {{{ffmpeg -v 9 -loglevel 99 -i /tmp/in.mp4}}}:
{{{
ffmpeg version N-33733-gfe87b2e, Copyright (c) 2000-2011 the FFmpeg
developers
built on Oct 17 2011 21:24:52 with gcc 4.3.2
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-
pthreads --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-
libfaac --enable-libgsm --enable-libmp3lame --enable-libx264 --enable-
libvorbis --enable-libtheora --enable-avfilter
--prefix=/home/botr/botr/localroot/opt/encoder --extra-cflags='-I
/home/botr/botr/localroot/opt/encoder/include' --extra-ldflags='-L
/home/botr/botr/localroot/opt/encoder/lib' --arch=x86_32 --enable-runtime-
cpudetect --disabl
e-ffplay --disable-ffserver --disable-ffprobe --disable-doc --enable-
libvpx
libavutil 51. 21. 0 / 51. 21. 0
libavcodec 53. 20. 1 / 53. 20. 1
libavformat 53. 16. 0 / 53. 16. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 43. 6 / 2. 43. 6
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x96ebaa0] Format mov,mp4,m4a,3gp,3g2,mj2
probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x96ebaa0] ISO: File Type Major Brand: mp42
[aac @ 0x96f2bc0] Unsupported bit depth: 0
[h264 @ 0x96f1f90] no picture
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x96ebaa0] All info found
rfps: 0.083333 0.000541
rfps: 0.166667 0.002165
rfps: 0.250000 0.004871
rfps: 0.333333 0.008659
rfps: 0.416667 0.013530
rfps: 0.500000 0.019483
rfps: 29.500000 0.017218
Last message repeated 1 times
rfps: 29.583333 0.011654
Last message repeated 1 times
rfps: 29.666667 0.007172
Last message repeated 1 times
rfps: 29.750000 0.003773
Last message repeated 1 times
rfps: 29.833333 0.001456
Last message repeated 1 times
rfps: 29.916667 0.000222
Last message repeated 1 times
rfps: 30.000000 0.000070
rfps: 30.083333 0.001001
rfps: 30.166667 0.003013
rfps: 30.250000 0.006109
rfps: 30.333333 0.010286
rfps: 30.416667 0.015547
rfps: 59.500000 0.015092
Last message repeated 1 times
rfps: 59.583333 0.009917
Last message repeated 1 times
rfps: 59.666667 0.005825
Last message repeated 1 times
rfps: 59.750000 0.002815
Last message repeated 1 times
rfps: 59.833333 0.000888
Last message repeated 1 times
rfps: 59.916667 0.000043
Last message repeated 1 times
rfps: 29.970030 0.000000
Last message repeated 1 times
rfps: 59.940060 0.000000
Last message repeated 1 times
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/in.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isom
creation_time : 2008-02-15 20:41:25
Duration: 00:03:11.72, start: 0.000000, bitrate: 181 kb/s
Chapter #0.0: start 0.000000, end 191.724854
Metadata:
title :
Stream #0:0(eng), 30, 1/48000: Video: h264 (Main) (avc1 / 0x31637661),
yuv420p, 720x480 [SAR 32:27 DAR 16:9], 1001/60000, 1502 kb/s, SAR
9709:8192 DAR 29127:16384, 29.97 fps, 29.97 tbr, 48k tbn, 59.94 tbc
Metadata:
creation_time : 2008-02-15 20:41:25
Stream #0:1(und), 1, 1/48000: Audio: aac (mp4a / 0x6134706D), 48000
Hz, stereo, s16, 104 kb/s
Metadata:
creation_time : 2008-02-15 20:41:25
Stream #0:2(eng), 0, 1/48000: Subtitle: mov_text (text / 0x74786574)
Metadata:
creation_time : 2008-02-15 20:41:25
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/570>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list