[FFmpeg-devel] flashsvenc.c - sampling block size too low

Jason Askew jason.askew
Tue May 15 17:38:24 CEST 2007


Two pass encoding is working:

First pass file size is 5266kB, second pass is 1596kB:


C:\>ffmpeg -pass 1 -passlogfile pass1 -r 15 -g 150 -vcodec fl
ashsv -y -i "input.avs" "example.flv"
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --extra-cflags=-mno-cygwin -mms-bitfields
--extra-ldflags=-Wl,--add-stdcall-alias --disable-shared --en
able-static --enable-pp --enable-avisynth --enable-memalign-hack
--enable-zlib --enable-gpl
  libavutil version: 49.4.0
  libavcodec version: 51.40.4
  libavformat version: 51.12.1
  built on May  8 2007 15:50:25, gcc: 3.4.2 (mingw-special)
Input #0, avs, from 'input.avs':
  Duration: 00:01:46.6, start: 0.000000, bitrate: 0 kb/s
  Stream #0.0: Video: rawvideo, bgr24, 640x480, 110591 kb/s, 15.00 fps(r)
Output #0, flv, to 'example.flv':
  Stream #0.0: Video: flashsv, bgr24, 640x480, q=2-31, pass 1, 200
kb/s, 15.00 fps(c)
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 1599 fps=  2 q=0.0 Lsize=    5291kB time=106.6 bitrate= 406.6kbits/s
video:5266kB audio:0kB global headers:0kB muxing overhead 0.477947%

C:\>ffmpeg -pass 2 -passlogfile pass1 -r 15 -g 150 -vcodec fl
ashsv -y -i "input.avs" "example.flv"
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --extra-cflags=-mno-cygwin -mms-bitfields
--extra-ldflags=-Wl,--add-stdcall-alias --disable-shared --en
able-static --enable-pp --enable-avisynth --enable-memalign-hack
--enable-zlib --enable-gpl
  libavutil version: 49.4.0
  libavcodec version: 51.40.4
  libavformat version: 51.12.1
  built on May  8 2007 15:50:25, gcc: 3.4.2 (mingw-special)
Input #0, avs, from 'input.avs':
  Duration: 00:01:46.6, start: 0.000000, bitrate: 0 kb/s
  Stream #0.0: Video: rawvideo, bgr24, 640x480, 110591 kb/s, 15.00 fps(r)
Output #0, flv, to 'example.flv':
  Stream #0.0: Video: flashsv, bgr24, 640x480, q=2-31, pass 2, 200
kb/s, 15.00 fps(c)
Stream mapping:
  Stream #0.0 -> #0.0
[flashsv @ 006FD290] count is 10.
Press [q] to stop encoding
frame= 1599 fps=105 q=0.0 Lsize=    1595kB time=106.6 bitrate= 122.6kbits/s
video:1570kB audio:0kB global headers:0kB muxing overhead 1.603128%

First pass is -slow-.  Really slow.  There are optimizations to be
had, yet, however.

So, what now?  Wait until everything is more optimized or start
submitting the patches to get it this far?




More information about the ffmpeg-devel mailing list