[x264-devel] [gregor koseleck <g.koseleck at areamobile.de>] Grey "fogged" frames in h264 encoded videos. Is this a bug?

Lists administration videolan at lists.videolan.org
Thu Jun 21 21:47:05 CEST 2007


The deleted attachment is at:
    <http://lists.videolan.org/attachs/20070621/foggy.jpg>
 
----- Forwarded message from gregor koseleck <g.koseleck at areamobile.de> -----

X-Spam-Status: No, score=0.0 required=5.0 tests=none
Subject: Grey "fogged" frames in h264 encoded videos. Is this a bug?
From: gregor koseleck <g.koseleck at areamobile.de>
To: x264-devel at videolan.org
Date: Wed, 20 Jun 2007 18:12:12 +0200
X-Mailer: Evolution 2.8.2 

Hi.

I am trying to encode different movies to h264 using ffmpeg and x264.
The system where the encoding happens, is a 64bit Gentoo linux (stage
3).
I tried different parameters of ffmpeg but can not get rid of the grev
fog in black areas of the videos. The problem appears only on some
frames and lasts different times. It seems that it depends on the GOP
setting: When I set GOP to high (300 or more), the problem apears only
some times but always on the same input files and the same time.
ffmpeg shows an output of the library telling something about an
overflow.

I will attach some screenshots of the problem and a logfile.

Greetings
G.K.


GOP size of 18

user ~> ffmpeg -y -i Speedball2_Trailer3.mov -vcodec h264 -b 7000k -bf 3 -g 18 -s 1280x720 -acodec mp3 -ab 96k Speedball2_Trailer3.avi
FFmpeg version SVN-r9361, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --enable-libxvid --enable-libmp3lame --enable-libfaac --enable-gpl --enable-libx264 --enable-libfaad --enable-shared
  libavutil version: 49.4.0
  libavcodec version: 51.40.4
  libavformat version: 51.12.1
  built on Jun 19 2007 10:33:31, gcc: 4.1.1 (Gentoo 4.1.1-r3)
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2ac7d7afc040]negative ctts, ignoring
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Speedball2_Trailer3.mov':
  Duration: 00:01:53.0, start: 0.000000, bitrate: 8215 kb/s
  Stream #0.0(eng): Audio: mpeg4aac, 48000 Hz, stereo
  Stream #0.1(eng): Video: h264, yuv420p, 1280x720, 29.01 fps(r)
Output #0, avi, to 'Speedball2_Trailer3.avi':
  Stream #0.0: Video: libx264, yuv420p, 1280x720, q=2-31, 7000 kb/s, 29.01 fps(c)
  Stream #0.1: Audio: libmp3lame, 48000 Hz, stereo, 96 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1
[libx264 @ 0x2ac7d7fcb790]using cpu capabilities: MMX MMXEXT SSE SSE2 3DNow! 
Press [q] to stop encoding
[libx264 @ 0x2ac7d7fcb790]OVERFLOW levelcode=4377
[libx264 @ 0x2ac7d7fcb790]OVERFLOW levelcode=4377
frame=   10 fps=  0 q=4.0 size=      15kB time=0.2 bitrate= 607.8kbits/s    
frame=   20 fps= 20 q=4.0 size=      20kB time=0.6 bitrate= 291.2kbits/s    
[libx264 @ 0x2ac7d7fcb790]OVERFLOW levelcode=4377
[libx264 @ 0x2ac7d7fcb790]OVERFLOW levelcode=4377
frame=   27 fps= 17 q=2.0 size=     110kB time=0.8 bitrate=1133.2kbits/s    
frame=   32 fps= 16 q=4.0 size=     243kB time=1.0 bitrate=2064.4kbits/s    
frame=   40 fps= 15 q=2.0 size=     447kB time=1.2 bitrate=2949.5kbits/s    
frame=   48 fps= 15 q=4.0 size=     596kB time=1.5 bitrate=3217.5kbits/s    
frame=   56 fps= 15 q=4.0 size=     747kB time=1.8 bitrate=3412.6kbits/s    
frame=   63 fps= 15 q=2.0 size=     899kB time=2.0 bitrate=3620.2kbits/s    
frame=   71 fps= 15 q=2.0 size=    1046kB time=2.3 bitrate=3710.7kbits/s    
frame=   79 fps= 15 q=4.0 size=    1202kB time=2.6 bitrate=3810.7kbits/s    
frame=   87 fps= 15 q=4.0 size=    1342kB time=2.9 bitrate=3842.2kbits/s    
frame=   92 fps= 14 q=2.0 size=    1436kB time=3.0 bitrate=3878.2kbits/s    
frame=   96 fps= 14 q=4.0 size=    1547kB time=3.2 bitrate=3995.7kbits/s    
frame=  102 fps= 14 q=4.0 size=    1817kB time=3.4 bitrate=4406.0kbits/s    
frame=  110 fps= 14 q=4.0 size=    2051kB time=3.7 bitrate=4598.1kbits/s    
frame=  117 fps= 14 q=2.0 size=    2279kB time=3.9 bitrate=4793.0kbits/s    
frame=  125 fps= 14 q=2.0 size=    2509kB time=4.2 bitrate=4928.6kbits/s    
frame=  132 fps= 14 q=4.0 size=    2727kB time=4.4 bitrate=5063.5kbits/s    
frame=  140 fps= 14 q=4.0 size=    2953kB time=4.7 bitrate=5161.4kbits/s    
frame=  148 fps= 14 q=2.0 size=    3196kB time=5.0 bitrate=5275.9kbits/s    
frame=  156 fps= 14 q=4.0 size=    3412kB time=5.2 bitrate=5335.7kbits/s    
frame=  161 fps= 14 q=2.0 size=    3596kB time=5.4 bitrate=5444.4kbits/s    
frame=  166 fps= 13 q=2.0 size=    3856kB time=5.6 bitrate=5658.1kbits/s    
frame=  172 fps= 13 q=6.0 size=    4222kB time=5.8 bitrate=5972.5kbits/s    
frame=  179 fps= 13 q=2.0 size=    4644kB time=6.0 bitrate=6307.4kbits/s    
frame=  185 fps= 13 q=2.0 size=    5021kB time=6.2 bitrate=6593.1kbits/s    
frame=  192 fps= 13 q=5.0 size=    5412kB time=6.5 bitrate=6841.6kbits/s    
frame=  199 fps= 13 q=5.0 size=    5780kB time=6.7 bitrate=7044.9kbits/s    
frame=  205 fps= 13 q=6.0 size=    6098kB time=6.9 bitrate=7211.0kbits/s    
frame=  212 fps= 13 q=6.0 size=    6436kB time=7.2 bitrate=7354.5kbits/s    
frame=  219 fps= 13 q=5.0 size=    6746kB time=7.4 bitrate=7458.1kbits/s    
frame=  225 fps= 13 q=10.0 size=    7046kB time=7.6 bitrate=7577.7kbits/s    
frame=  229 fps= 13 q=6.0 size=    7151kB time=7.8 bitrate=7553.6kbits/s    
[libx264 @ 0x2ac7d7fcb790]OVERFLOW levelcode=4377
[libx264 @ 0x2ac7d7fcb790]OVERFLOW levelcode=4377
frame=  236 fps= 13 q=4.0 size=    7179kB time=8.0 bitrate=7354.3kbits/s    
frame=  246 fps= 13 q=4.0 size=    7187kB time=8.3 bitrate=7059.2kbits/s    
frame=  255 fps= 13 q=2.0 size=    7212kB time=8.7 bitrate=6828.8kbits/s    
[libx264 @ 0x2ac7d7fcb790]OVERFLOW levelcode=4377
[libx264 @ 0x2ac7d7fcb790]OVERFLOW levelcode=4377
frame=  262 fps= 13 q=4.0 size=    7277kB time=8.9 bitrate=6703.5kbits/s    
frame=  269 fps= 13 q=2.0 size=    7402kB time=9.1 bitrate=6638.8kbits/s    
[libx264 @ 0x2ac7d7fcb790]OVERFLOW levelcode=4219
[libx264 @ 0x2ac7d7fcb790]OVERFLOW levelcode=4219
frame=  276 fps= 13 q=4.0 size=    7580kB time=9.4 bitrate=6623.1kbits/s    
frame=  283 fps= 13 q=2.0 size=    7822kB time=9.6 bitrate=6663.8kbits/s    
frame=  289 fps= 13 q=4.0 size=    8072kB time=9.8 bitrate=6731.7kbits/s    
[libx264 @ 0x2ac7d7fcb790]OVERFLOW levelcode=4141
[libx264 @ 0x2ac7d7fcb790]OVERFLOW levelcode=4141
frame=  293 fps= 13 q=3.0 size=    8342kB time=10.0 bitrate=6860.5kbits/s    
frame=  299 fps= 13 q=6.0 size=    8635kB time=10.2 bitrate=6957.1kbits/s    
frame=  304 fps= 13 q=7.0 size=    8928kB time=10.3 bitrate=7073.6kbits/s    
(...)
no more errors here...
(...)
frame= 3261 fps=  8 q=2.0 size=   94043kB time=112.3 bitrate=6862.8kbits/s    
frame= 3271 fps=  8 q=2.0 size=   94050kB time=112.6 bitrate=6842.3kbits/s    
frame= 3280 fps=  8 q=-1.0 Lsize=   94184kB time=113.0 bitrate=6826.9kbits/s    
video:92660kB audio:1325kB global headers:0kB muxing overhead 0.211337%
[libx264 @ 0x2ac7d7fcb790]slice I:186   Avg QP:20.54  size: 51168
[libx264 @ 0x2ac7d7fcb790]slice P:912   Avg QP:21.22  size: 41287
[libx264 @ 0x2ac7d7fcb790]slice B:2182  Avg QP:23.47  size: 21864
[libx264 @ 0x2ac7d7fcb790]mb I  I16..4: 54.4%  0.0% 45.6%
[libx264 @ 0x2ac7d7fcb790]mb P  I16..4: 50.0%  0.0%  0.0%  P16..4: 26.8%  0.0%  0.0%  0.0%  0.0%    skip:23.2%
[libx264 @ 0x2ac7d7fcb790]mb B  I16..4: 22.2%  0.0%  0.0%  B16..8: 42.0%  0.0%  0.0%  direct: 3.5%  skip:32.3%
[libx264 @ 0x2ac7d7fcb790]final ratefactor: 19.80
[libx264 @ 0x2ac7d7fcb790]SSIM Mean Y:0.9796557
[libx264 @ 0x2ac7d7fcb790]kb/s:6714.0

Same video with GOP size of 500:

FFmpeg version SVN-r9361, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --enable-libxvid --enable-libmp3lame --enable-libfaac --enable-gpl --enable-libx264 --enable-libfaad --enable-shared
  libavutil version: 49.4.0
  libavcodec version: 51.40.4
  libavformat version: 51.12.1
  built on Jun 19 2007 10:33:31, gcc: 4.1.1 (Gentoo 4.1.1-r3)
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2b2e462d5040]negative ctts, ignoring
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Speedball2_Trailer3.mov':
  Duration: 00:01:53.0, start: 0.000000, bitrate: 8215 kb/s
  Stream #0.0(eng): Audio: mpeg4aac, 48000 Hz, stereo
  Stream #0.1(eng): Video: h264, yuv420p, 1280x720, 29.01 fps(r)
Output #0, avi, to 'Speedball2_Trailer3.avi':
  Stream #0.0: Video: libx264, yuv420p, 1280x720, q=2-31, 7000 kb/s, 29.01 fps(c)
  Stream #0.1: Audio: libmp3lame, 48000 Hz, stereo, 96 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1
[libx264 @ 0x2b2e467a4790]using cpu capabilities: MMX MMXEXT SSE SSE2 3DNow! 
Press [q] to stop encoding
[libx264 @ 0x2b2e467a4790]OVERFLOW levelcode=4377
[libx264 @ 0x2b2e467a4790]OVERFLOW levelcode=4377
frame=   11 fps=  0 q=4.0 size=      16kB time=0.2 bitrate= 531.6kbits/s    
frame=   21 fps= 20 q=2.0 size=      22kB time=0.6 bitrate= 303.7kbits/s    
frame=   29 fps= 17 q=2.0 size=     111kB time=0.9 bitrate=1053.8kbits/s    
(...)
no more errors here
(...)
frame= 3270 fps=  8 q=4.0 size=   93805kB time=112.6 bitrate=6826.5kbits/s    
frame= 3280 fps=  8 q=-1.0 Lsize=   93937kB time=113.0 bitrate=6809.0kbits/s    
video:92413kB audio:1325kB global headers:0kB muxing overhead 0.211776%
[libx264 @ 0x2b2e467a4790]slice I:7     Avg QP:20.43  size: 44850
[libx264 @ 0x2b2e467a4790]slice P:824   Avg QP:21.02  size: 44524
[libx264 @ 0x2b2e467a4790]slice B:2449  Avg QP:22.98  size: 23531
[libx264 @ 0x2b2e467a4790]mb I  I16..4: 54.0%  0.0% 46.0%
[libx264 @ 0x2b2e467a4790]mb P  I16..4: 54.3%  0.0%  0.0%  P16..4: 24.3%  0.0%  0.0%  0.0%  0.0%    skip:21.4%
[libx264 @ 0x2b2e467a4790]mb B  I16..4: 22.7%  0.0%  0.0%  B16..8: 42.8%  0.0%  0.0%  direct: 3.8%  skip:30.8%
[libx264 @ 0x2b2e467a4790]final ratefactor: 19.50
[libx264 @ 0x2b2e467a4790]SSIM Mean Y:0.9798082
[libx264 @ 0x2b2e467a4790]kb/s:6696.5

While GOP below 10 produces a lot of errors...


----- End forwarded message -----

-- 
Lists administration <videolan at lists.videolan.org>

-- 
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html



More information about the x264-devel mailing list