[FFmpeg-devel] [PATCH] DCA floating point output

FB2000 flybird2k
Mon Apr 26 03:30:30 CEST 2010


I am not sure if this is the correct way to benchmark. I tried to decode a
200M 6ch DTS file to 2ch WAV.

without this patch:

$ ffmpeg -i Title1.dts -acodec pcm_s32le -ac 2 out.wav -benchmark
FFmpeg version SVN-r22960, Copyright (c) 2000-2010 the FFmpeg developers
  built on Apr 26 2010 09:13:50 with gcc 4.4.0
  configuration: --enable-memalign-hack
  libavutil     50.14. 0 / 50.14. 0
  libavcodec    52.66. 0 / 52.66. 0
  libavformat   52.61. 0 / 52.61. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0.10. 0 /  0.10. 0
[dts @ 0030bef0]max_analyze_duration reached
[dts @ 0030bef0]Estimating duration from bitrate, this may be inaccurate
Input #0, dts, from 'Title1.dts':
  Duration: 00:18:52.15, bitrate: 1536 kb/s
    Stream #0.0: Audio: dca, 48000 Hz, 5.1, s16, 1536 kb/s
Output #0, wav, to 'out.wav':
  Metadata:
    encoder         : Lavf52.61.0
    Stream #0.0: Audio: pcm_s32le, 48000 Hz, 2 channels, s32, 3072 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
ERROR: block code look-up failedate=3071.9kbits/s
size=  431940kB time=1151.84 bitrate=3072.0kbits/s
video:0kB audio:431940kB global headers:0kB muxing overhead 0.000015%
bench: utime=1.812s maxrss=11100kB

with this patch:

$ ffmpeg -i Title1.dts -acodec pcm_s32le -ac 2 out.wav -benchmark
FFmpeg version SVN-r22960, Copyright (c) 2000-2010 the FFmpeg developers
  built on Apr 26 2010 09:13:50 with gcc 4.4.0
  configuration: --enable-memalign-hack
  libavutil     50.14. 0 / 50.14. 0
  libavcodec    52.66. 0 / 52.66. 0
  libavformat   52.61. 0 / 52.61. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0.10. 0 /  0.10. 0
[dts @ 003dbef0]max_analyze_duration reached
[dts @ 003dbef0]Estimating duration from bitrate, this may be inaccurate
Input #0, dts, from 'Title1.dts':
  Duration: 00:18:52.15, bitrate: 1536 kb/s
    Stream #0.0: Audio: dca, 48000 Hz, 5.1, flt, 1536 kb/s
Output #0, wav, to 'out.wav':
  Metadata:
    encoder         : Lavf52.61.0
    Stream #0.0: Audio: pcm_s32le, 48000 Hz, 2 channels, s32, 3072 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
ERROR: block code look-up failedate=3071.9kbits/s
size=  431940kB time=1151.84 bitrate=3072.0kbits/s
video:0kB audio:431940kB global headers:0kB muxing overhead 0.000015%
bench: utime=1.766s maxrss=11100kB


On Mon, Apr 26, 2010 at 7:11 AM, Reimar D?ffinger
<Reimar.Doeffinger at gmx.de>wrote:

>
> Benchmarked?
> The term "slow as molasses" comes to mind, if that's not an understatement.
>
>



More information about the ffmpeg-devel mailing list