Opened 5 years ago

Closed 5 years ago

# DIthering when export to 24-bitdepths

Reported by: Owned by: mtc normal undetermined unspecified no no

## Description

when exporting to flac (24-bit) ffmpeg apparently does not dither for 24-bit ( maybe internallt processes for 32-bit Then converts to 24-bit to flac)

### comment:1 by Carl Eugen Hoyos, 5 years ago

To make this a valid ticket, please explain what you tested and what didn't work: Provide the command you used together with the complete, uncut console output.

### comment:2 by mtc, 5 years ago

flac supports 16 & 24-bit outputs

when trying 24-bit
Command line:

```/tmp/ffmpeg-git-20170602-64bit-static/ffmpeg -report -f lavfi -i "aevalsrc=-2+random(0)*sin(0.5*2*PI*t):s=48000" -af "atrim=start_sample=48000*3,aresample=44100:resampler=soxr:precision=33:osf=s24:dither_method=f_weighted" -c:a flac -compression_level 12 -lpc_type cholesky -lpc_passes 60 -exact_rice_parameters 1 /tmp/out.flac
ffmpeg version N-86343-g3385989b98-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 5.4.1 (Debian 5.4.1-11) 20170519
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
libavutil      55. 63.100 / 55. 63.100
libavcodec     57. 96.101 / 57. 96.101
libavformat    57. 72.101 / 57. 72.101
libavdevice    57.  7.100 / 57.  7.100
libavfilter     6. 91.100 /  6. 91.100
libswscale      4.  7.101 /  4.  7.101
libswresample   2.  8.100 /  2.  8.100
libpostproc    54.  6.100 / 54.  6.100
Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'lavfi'.
Reading option '-i' ... matched as input url with argument 'aevalsrc=-2+random(0)*sin(0.5*2*PI*t):s=48000'.
Reading option '-af' ... matched as option 'af' (set audio filters) with argument 'atrim=start_sample=48000*3,aresample=44100:resampler=soxr:precision=33:osf=s24:dither_method=f_weighted'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'flac'.
Reading option '-compression_level' ... matched as AVOption 'compression_level' with argument '12'.
Reading option '-lpc_type' ... matched as AVOption 'lpc_type' with argument 'cholesky'.
Reading option '-lpc_passes' ... matched as AVOption 'lpc_passes' with argument '60'.
Reading option '-exact_rice_parameters' ... matched as AVOption 'exact_rice_parameters' with argument '1'.
Reading option '/tmp/out.flac' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url aevalsrc=-2+random(0)*sin(0.5*2*PI*t):s=48000.
Applying option f (force format) with argument lavfi.
Successfully parsed a group of options.
Opening an input file: aevalsrc=-2+random(0)*sin(0.5*2*PI*t):s=48000.
detected 8 logical cores
[Parsed_aevalsrc_0 @ 0x51c44a0] compat: called with args=[-2+random(0)*sin(0.5*2*PI*t):s=48000]
[Parsed_aevalsrc_0 @ 0x51c44a0] Setting 'exprs' to value '-2+random(0)*sin(0.5*2*PI*t)'
[Parsed_aevalsrc_0 @ 0x51c44a0] Setting 's' to value '48000'
[out @ 0x51c4820] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_aevalsrc_0' and the filter 'out'
[AVFilterGraph @ 0x51c3060] query_formats: 2 queried, 0 merged, 3 already done, 0 delayed
[auto_resampler_0 @ 0x51c6d20] picking dbl out of 5 ref:dblp
[Parsed_aevalsrc_0 @ 0x51c44a0] sample_rate:48000 chlayout:mono duration:-1
[auto_resampler_0 @ 0x51c6d20] [SWR @ 0x51c70c0] Using dblp internally between filters
[auto_resampler_0 @ 0x51c6d20] ch:1 chl:mono fmt:dblp r:48000Hz -> ch:1 chl:mono fmt:dbl r:48000Hz
[lavfi @ 0x51c28c0] All info found
Input #0, lavfi, from 'aevalsrc=-2+random(0)*sin(0.5*2*PI*t):s=48000':
Duration: N/A, start: 0.000000, bitrate: 3072 kb/s
Stream #0:0, 1, 1/48000: Audio: pcm_f64le, 48000 Hz, mono, dbl, 3072 kb/s
Successfully opened the file.
Parsing a group of options: output url /tmp/out.flac.
Applying option af (set audio filters) with argument atrim=start_sample=48000*3,aresample=44100:resampler=soxr:precision=33:osf=s24:dither_method=f_weighted.
Applying option c:a (codec name) with argument flac.
Successfully parsed a group of options.
Opening an output file: /tmp/out.flac.
[file @ 0x51e4a00] Setting default whitelist 'file,crypto'
Successfully opened the file.
Stream mapping:
Stream #0:0 -> #0:0 (pcm_f64le (native) -> flac (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[Parsed_atrim_0 @ 0x51c27e0] Setting 'start_sample' to value '48000*3'
[Parsed_aresample_1 @ 0x51f18a0] Setting 'sample_rate' to value '44100'
[Parsed_aresample_1 @ 0x51f18a0] Setting 'resampler' to value 'soxr'
[Parsed_aresample_1 @ 0x51f18a0] Setting 'precision' to value '33'
[Parsed_aresample_1 @ 0x51f18a0] Setting 'osf' to value 's24'
[Parsed_aresample_1 @ 0x51f18a0] Setting 'dither_method' to value 'f_weighted'
[SWR @ 0x51f2460] Unable to parse option value "s24" as sample format
[AVFilterGraph @ 0x51ee260] Error initializing filter 'aresample' with args '44100:resampler=soxr:precision=33:osf=s24:dither_method=f_weighted'
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
[AVIOContext @ 0x51ecc60] Statistics: 0 seeks, 0 writeouts
Conversion failed!
```

if out 32bit, i get [flac @ 0x3f9e020] encoding as 24 bits-per-sample :

```/tmp/ffmpeg-git-20170602-64bit-static/ffmpeg -report -f lavfi -i "aevalsrc=-2+random(0)*sin(0.5*2*PI*t):s=48000" -shortest -af "atrim=start_sample=48000*3,aresample=44100:resampler=soxr:precision=33:osf=s32:dither_method=f_weighted" -c:a flac -compression_level 12 -lpc_type cholesky -lpc_passes 60 -exact_rice_parameters 1 /tmp/out.flac
ffmpeg version N-86343-g3385989b98-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 5.4.1 (Debian 5.4.1-11) 20170519
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
libavutil      55. 63.100 / 55. 63.100
libavcodec     57. 96.101 / 57. 96.101
libavformat    57. 72.101 / 57. 72.101
libavdevice    57.  7.100 / 57.  7.100
libavfilter     6. 91.100 /  6. 91.100
libswscale      4.  7.101 /  4.  7.101
libswresample   2.  8.100 /  2.  8.100
libpostproc    54.  6.100 / 54.  6.100
Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'lavfi'.
Reading option '-i' ... matched as input url with argument 'aevalsrc=-2+random(0)*sin(0.5*2*PI*t):s=48000'.
Reading option '-shortest' ... matched as option 'shortest' (finish encoding within shortest input) with argument '1'.
Reading option '-af' ... matched as option 'af' (set audio filters) with argument 'atrim=start_sample=48000*3,aresample=44100:resampler=soxr:precision=33:osf=s32:dither_method=f_weighted'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'flac'.
Reading option '-compression_level' ... matched as AVOption 'compression_level' with argument '12'.
Reading option '-lpc_type' ... matched as AVOption 'lpc_type' with argument 'cholesky'.
Reading option '-lpc_passes' ... matched as AVOption 'lpc_passes' with argument '60'.
Reading option '-exact_rice_parameters' ... matched as AVOption 'exact_rice_parameters' with argument '1'.
Reading option '/tmp/out.flac' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url aevalsrc=-2+random(0)*sin(0.5*2*PI*t):s=48000.
Applying option f (force format) with argument lavfi.
Successfully parsed a group of options.
Opening an input file: aevalsrc=-2+random(0)*sin(0.5*2*PI*t):s=48000.
detected 8 logical cores
[Parsed_aevalsrc_0 @ 0x3f7e460] compat: called with args=[-2+random(0)*sin(0.5*2*PI*t):s=48000]
[Parsed_aevalsrc_0 @ 0x3f7e460] Setting 'exprs' to value '-2+random(0)*sin(0.5*2*PI*t)'
[Parsed_aevalsrc_0 @ 0x3f7e460] Setting 's' to value '48000'
[out @ 0x3f7e7e0] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_aevalsrc_0' and the filter 'out'
[AVFilterGraph @ 0x3f7d020] query_formats: 2 queried, 0 merged, 3 already done, 0 delayed
[auto_resampler_0 @ 0x3f80ce0] picking dbl out of 5 ref:dblp
[Parsed_aevalsrc_0 @ 0x3f7e460] sample_rate:48000 chlayout:mono duration:-1
[auto_resampler_0 @ 0x3f80ce0] [SWR @ 0x3f81080] Using dblp internally between filters
[auto_resampler_0 @ 0x3f80ce0] ch:1 chl:mono fmt:dblp r:48000Hz -> ch:1 chl:mono fmt:dbl r:48000Hz
[lavfi @ 0x3f7c880] All info found
Input #0, lavfi, from 'aevalsrc=-2+random(0)*sin(0.5*2*PI*t):s=48000':
Duration: N/A, start: 0.000000, bitrate: 3072 kb/s
Stream #0:0, 1, 1/48000: Audio: pcm_f64le, 48000 Hz, mono, dbl, 3072 kb/s
Successfully opened the file.
Parsing a group of options: output url /tmp/out.flac.
Applying option shortest (finish encoding within shortest input) with argument 1.
Applying option af (set audio filters) with argument atrim=start_sample=48000*3,aresample=44100:resampler=soxr:precision=33:osf=s32:dither_method=f_weighted.
Applying option c:a (codec name) with argument flac.
Successfully parsed a group of options.
Opening an output file: /tmp/out.flac.
[file @ 0x3f9e9c0] Setting default whitelist 'file,crypto'
Successfully opened the file.
Stream mapping:
Stream #0:0 -> #0:0 (pcm_f64le (native) -> flac (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[Parsed_atrim_0 @ 0x3faaf20] Setting 'start_sample' to value '48000*3'
[Parsed_aresample_1 @ 0x3fab860] Setting 'sample_rate' to value '44100'
[Parsed_aresample_1 @ 0x3fab860] Setting 'resampler' to value 'soxr'
[Parsed_aresample_1 @ 0x3fab860] Setting 'precision' to value '33'
[Parsed_aresample_1 @ 0x3fab860] Setting 'osf' to value 's32'
[Parsed_aresample_1 @ 0x3fab860] Setting 'dither_method' to value 'f_weighted'
[graph_0_in_0_0 @ 0x3fac260] Setting 'time_base' to value '1/48000'
[graph_0_in_0_0 @ 0x3fac260] Setting 'sample_rate' to value '48000'
[graph_0_in_0_0 @ 0x3fac260] Setting 'sample_fmt' to value 'dbl'
[graph_0_in_0_0 @ 0x3fac260] Setting 'channel_layout' to value '0x4'
[graph_0_in_0_0 @ 0x3fac260] tb:1/48000 samplefmt:dbl samplerate:48000 chlayout:0x4
[format_out_0_0 @ 0x3fac340] Setting 'sample_fmts' to value 's16|s32'
[AVFilterGraph @ 0x3fa8220] query_formats: 5 queried, 12 merged, 0 already done, 0 delayed
[Parsed_aresample_1 @ 0x3fab860] [SWR @ 0x3fac460] Using dblp internally between filters
[Parsed_aresample_1 @ 0x3fab860] [SWR @ 0x3fac460] Matrix coefficients:
[Parsed_aresample_1 @ 0x3fab860] [SWR @ 0x3fac460] FC: FC:1.000000
[Parsed_aresample_1 @ 0x3fab860] ch:1 chl:mono fmt:dbl r:48000Hz -> ch:1 chl:mono fmt:s32 r:44100Hz
[flac @ 0x3f9e020] encoding as 24 bits-per-sample
[flac @ 0x3f9e020]  compression: 12
[flac @ 0x3f9e020]  lpc type: Cholesky factorization, 60 passes
[flac @ 0x3f9e020]  prediction order: 1, 32
[flac @ 0x3f9e020]  order method: full search
[flac @ 0x3f9e020]  partition order: 0, 8
[flac @ 0x3f9e020]  block size: 4608
[flac @ 0x3f9e020]  lpc precision: 15
Output #0, flac, to '/tmp/out.flac':
encoder         : Lavf57.72.101
Stream #0:0, 0, 1/44100: Audio: flac, 44100 Hz, mono, s32 (24 bit), 128 kb/s
encoder         : Lavc57.96.101 flac
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
size=      17kB time=00:01:15.41 bitrate=   1.8kbits/s speed= 151x
size=      26kB time=00:02:31.16 bitrate=   1.4kbits/s speed= 151x
size=      35kB time=00:03:46.92 bitrate=   1.3kbits/s speed= 151x
size=      45kB time=00:05:02.78 bitrate=   1.2kbits/s speed= 151x
size=      55kB time=00:06:18.22 bitrate=   1.2kbits/s speed= 151x
size=      65kB time=00:07:30.84 bitrate=   1.2kbits/s speed= 150x
size=      75kB time=00:08:46.80 bitrate=   1.2kbits/s speed= 150x
size=      84kB time=00:10:02.66 bitrate=   1.1kbits/s speed= 151x
size=      94kB time=00:11:18.52 bitrate=   1.1kbits/s speed= 151x
size=     104kB time=00:12:34.17 bitrate=   1.1kbits/s speed= 151x
size=     114kB time=00:13:49.51 bitrate=   1.1kbits/s speed= 151x
size=     124kB time=00:15:04.12 bitrate=   1.1kbits/s speed= 151x
size=     134kB time=00:16:20.08 bitrate=   1.1kbits/s speed= 151x
size=     144kB time=00:17:35.73 bitrate=   1.1kbits/s speed= 151x
size=     154kB time=00:18:51.07 bitrate=   1.1kbits/s speed= 151x
size=     163kB time=00:20:06.93 bitrate=   1.1kbits/s speed= 151x
size=     173kB time=00:21:22.47 bitrate=   1.1kbits/s speed= 151x
size=     183kB time=00:22:38.33 bitrate=   1.1kbits/s speed= 151x
size=     193kB time=00:23:54.09 bitrate=   1.1kbits/s speed= 151x
size=     203kB time=00:25:09.84 bitrate=   1.1kbits/s speed= 151x
size=     213kB time=00:26:25.81 bitrate=   1.1kbits/s speed= 151x
size=     223kB time=00:27:41.67 bitrate=   1.1kbits/s speed= 151x
size=     233kB time=00:28:57.42 bitrate=   1.1kbits/s speed= 151x
size=     243kB time=00:30:13.18 bitrate=   1.1kbits/s speed= 151x
size=     253kB time=00:31:29.04 bitrate=   1.1kbits/s speed= 151x
size=     263kB time=00:32:44.79 bitrate=   1.1kbits/s speed= 151x
size=     273kB time=00:34:00.65 bitrate=   1.1kbits/s speed= 151x
size=     282kB time=00:35:16.41 bitrate=   1.1kbits/s speed= 151x
size=     292kB time=00:36:32.06 bitrate=   1.1kbits/s speed= 151x
size=     302kB time=00:37:48.02 bitrate=   1.1kbits/s speed= 151x
size=     312kB time=00:39:03.67 bitrate=   1.1kbits/s speed= 151x
size=     322kB time=00:40:19.84 bitrate=   1.1kbits/s speed= 151x
size=     332kB time=00:41:35.81 bitrate=   1.1kbits/s speed= 151x
size=     336kB time=00:42:07.05 bitrate=   1.1kbits/s speed= 151x
Input file #0 (aevalsrc=-2+random(0)*sin(0.5*2*PI*t):s=48000):
Input stream #0:0 (audio): 118460 packets read (970424320 bytes); 118460 frames decoded (121303040 samples);
Total: 118460 packets (970424320 bytes) demuxed
Output file #0 (/tmp/out.flac):
Output stream #0:0 (audio): 24156 frames encoded (111310848 samples); 24157 packets muxed (336008 bytes);
Total: 24157 packets (336008 bytes) muxed
118460 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x3fa6c20] Statistics: 2 seeks, 24158 writeouts
```

does not seem to support resampler output 24 bit

also strange

Command line:

```/tmp/ffmpeg-git-20170602-64bit-static/ffmpeg -report -f lavfi -i "aevalsrc=-2+random(0)*sin(0.5*2*PI*t):s=48000" -shortest -af "atrim=start_sample=48000*3,aresample=44100:resampler=soxr:precision=33:tsf=dbl:osf=s32:dither_method=f_weighted" -c:a flac -compression_level 12 -lpc_type cholesky -lpc_passes 60 -exact_rice_parameters 1 /tmp/out.flac
ffmpeg version N-86343-g3385989b98-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 5.4.1 (Debian 5.4.1-11) 20170519
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
libavutil      55. 63.100 / 55. 63.100
libavcodec     57. 96.101 / 57. 96.101
libavformat    57. 72.101 / 57. 72.101
libavdevice    57.  7.100 / 57.  7.100
libavfilter     6. 91.100 /  6. 91.100
libswscale      4.  7.101 /  4.  7.101
libswresample   2.  8.100 /  2.  8.100
libpostproc    54.  6.100 / 54.  6.100
Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'lavfi'.
Reading option '-i' ... matched as input url with argument 'aevalsrc=-2+random(0)*sin(0.5*2*PI*t):s=48000'.
Reading option '-shortest' ... matched as option 'shortest' (finish encoding within shortest input) with argument '1'.
Reading option '-af' ... matched as option 'af' (set audio filters) with argument 'atrim=start_sample=48000*3,aresample=44100:resampler=soxr:precision=33:tsf=dbl:osf=s32:dither_method=f_weighted'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'flac'.
Reading option '-compression_level' ... matched as AVOption 'compression_level' with argument '12'.
Reading option '-lpc_type' ... matched as AVOption 'lpc_type' with argument 'cholesky'.
Reading option '-lpc_passes' ... matched as AVOption 'lpc_passes' with argument '60'.
Reading option '-exact_rice_parameters' ... matched as AVOption 'exact_rice_parameters' with argument '1'.
Reading option '/tmp/out.flac' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url aevalsrc=-2+random(0)*sin(0.5*2*PI*t):s=48000.
Applying option f (force format) with argument lavfi.
Successfully parsed a group of options.
Opening an input file: aevalsrc=-2+random(0)*sin(0.5*2*PI*t):s=48000.
detected 8 logical cores
[Parsed_aevalsrc_0 @ 0x47f9460] compat: called with args=[-2+random(0)*sin(0.5*2*PI*t):s=48000]
[Parsed_aevalsrc_0 @ 0x47f9460] Setting 'exprs' to value '-2+random(0)*sin(0.5*2*PI*t)'
[Parsed_aevalsrc_0 @ 0x47f9460] Setting 's' to value '48000'
[out @ 0x47f97e0] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_aevalsrc_0' and the filter 'out'
[AVFilterGraph @ 0x47f8020] query_formats: 2 queried, 0 merged, 3 already done, 0 delayed
[auto_resampler_0 @ 0x47fbce0] picking dbl out of 5 ref:dblp
[Parsed_aevalsrc_0 @ 0x47f9460] sample_rate:48000 chlayout:mono duration:-1
[auto_resampler_0 @ 0x47fbce0] [SWR @ 0x47fc080] Using dblp internally between filters
[auto_resampler_0 @ 0x47fbce0] ch:1 chl:mono fmt:dblp r:48000Hz -> ch:1 chl:mono fmt:dbl r:48000Hz
[lavfi @ 0x47f7880] All info found
Input #0, lavfi, from 'aevalsrc=-2+random(0)*sin(0.5*2*PI*t):s=48000':
Duration: N/A, start: 0.000000, bitrate: 3072 kb/s
Stream #0:0, 1, 1/48000: Audio: pcm_f64le, 48000 Hz, mono, dbl, 3072 kb/s
Successfully opened the file.
Parsing a group of options: output url /tmp/out.flac.
Applying option shortest (finish encoding within shortest input) with argument 1.
Applying option af (set audio filters) with argument atrim=start_sample=48000*3,aresample=44100:resampler=soxr:precision=33:tsf=dbl:osf=s32:dither_method=f_weighted.
Applying option c:a (codec name) with argument flac.
Successfully parsed a group of options.
Opening an output file: /tmp/out.flac.
[file @ 0x48199c0] Setting default whitelist 'file,crypto'
Successfully opened the file.
Stream mapping:
Stream #0:0 -> #0:0 (pcm_f64le (native) -> flac (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[Parsed_atrim_0 @ 0x4825f20] Setting 'start_sample' to value '48000*3'
[Parsed_aresample_1 @ 0x48268e0] Setting 'sample_rate' to value '44100'
[Parsed_aresample_1 @ 0x48268e0] Setting 'resampler' to value 'soxr'
[Parsed_aresample_1 @ 0x48268e0] Setting 'precision' to value '33'
[Parsed_aresample_1 @ 0x48268e0] Setting 'tsf' to value 'dbl'
[Parsed_aresample_1 @ 0x48268e0] Setting 'osf' to value 's32'
[Parsed_aresample_1 @ 0x48268e0] Setting 'dither_method' to value 'f_weighted'
[graph_0_in_0_0 @ 0x4826c60] Setting 'time_base' to value '1/48000'
[graph_0_in_0_0 @ 0x4826c60] Setting 'sample_rate' to value '48000'
[graph_0_in_0_0 @ 0x4826c60] Setting 'sample_fmt' to value 'dbl'
[graph_0_in_0_0 @ 0x4826c60] Setting 'channel_layout' to value '0x4'
[graph_0_in_0_0 @ 0x4826c60] tb:1/48000 samplefmt:dbl samplerate:48000 chlayout:0x4
[format_out_0_0 @ 0x4826680] Setting 'sample_fmts' to value 's16|s32'
[AVFilterGraph @ 0x4823220] query_formats: 5 queried, 12 merged, 0 already done, 0 delayed
[Parsed_aresample_1 @ 0x48268e0] [SWR @ 0x4827700] Using dbl internally between filters
[Parsed_aresample_1 @ 0x48268e0] [SWR @ 0x4827700] Requested sample format dbl is not supported internally, S16/S32/S64/FLT/DBL is supported
[Parsed_aresample_1 @ 0x48268e0] Failed to configure output pad on Parsed_aresample_1
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
[AVIOContext @ 0x4821c20] Statistics: 0 seeks, 0 writeouts
Conversion failed!
```

and finally 16-bit plain works but not 24-bit:
Command line:

```/tmp/ffmpeg-git-20170602-64bit-static/ffmpeg -report -f lavfi -i "aevalsrc=-2+random(0)*sin(0.5*2*PI*t):s=48000" -shortest -af "atrim=start_sample=48000*3,aresample=44100:resampler=soxr:precision=33:osf=s16:dither_method=f_weighted" -c:a flac -compression_level 12 -lpc_type cholesky -lpc_passes 60 -exact_rice_parameters 1 /tmp/out.flac
ffmpeg version N-86343-g3385989b98-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 5.4.1 (Debian 5.4.1-11) 20170519
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
libavutil      55. 63.100 / 55. 63.100
libavcodec     57. 96.101 / 57. 96.101
libavformat    57. 72.101 / 57. 72.101
libavdevice    57.  7.100 / 57.  7.100
libavfilter     6. 91.100 /  6. 91.100
libswscale      4.  7.101 /  4.  7.101
libswresample   2.  8.100 /  2.  8.100
libpostproc    54.  6.100 / 54.  6.100
Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'lavfi'.
Reading option '-i' ... matched as input url with argument 'aevalsrc=-2+random(0)*sin(0.5*2*PI*t):s=48000'.
Reading option '-shortest' ... matched as option 'shortest' (finish encoding within shortest input) with argument '1'.
Reading option '-af' ... matched as option 'af' (set audio filters) with argument 'atrim=start_sample=48000*3,aresample=44100:resampler=soxr:precision=33:osf=s16:dither_method=f_weighted'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'flac'.
Reading option '-compression_level' ... matched as AVOption 'compression_level' with argument '12'.
Reading option '-lpc_type' ... matched as AVOption 'lpc_type' with argument 'cholesky'.
Reading option '-lpc_passes' ... matched as AVOption 'lpc_passes' with argument '60'.
Reading option '-exact_rice_parameters' ... matched as AVOption 'exact_rice_parameters' with argument '1'.
Reading option '/tmp/out.flac' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url aevalsrc=-2+random(0)*sin(0.5*2*PI*t):s=48000.
Applying option f (force format) with argument lavfi.
Successfully parsed a group of options.
Opening an input file: aevalsrc=-2+random(0)*sin(0.5*2*PI*t):s=48000.
detected 8 logical cores
[Parsed_aevalsrc_0 @ 0x43ea460] compat: called with args=[-2+random(0)*sin(0.5*2*PI*t):s=48000]
[Parsed_aevalsrc_0 @ 0x43ea460] Setting 'exprs' to value '-2+random(0)*sin(0.5*2*PI*t)'
[Parsed_aevalsrc_0 @ 0x43ea460] Setting 's' to value '48000'
[out @ 0x43ea7e0] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_aevalsrc_0' and the filter 'out'
[AVFilterGraph @ 0x43e9020] query_formats: 2 queried, 0 merged, 3 already done, 0 delayed
[auto_resampler_0 @ 0x43ecce0] picking dbl out of 5 ref:dblp
[Parsed_aevalsrc_0 @ 0x43ea460] sample_rate:48000 chlayout:mono duration:-1
[auto_resampler_0 @ 0x43ecce0] [SWR @ 0x43ed080] Using dblp internally between filters
[auto_resampler_0 @ 0x43ecce0] ch:1 chl:mono fmt:dblp r:48000Hz -> ch:1 chl:mono fmt:dbl r:48000Hz
[lavfi @ 0x43e8880] All info found
Input #0, lavfi, from 'aevalsrc=-2+random(0)*sin(0.5*2*PI*t):s=48000':
Duration: N/A, start: 0.000000, bitrate: 3072 kb/s
Stream #0:0, 1, 1/48000: Audio: pcm_f64le, 48000 Hz, mono, dbl, 3072 kb/s
Successfully opened the file.
Parsing a group of options: output url /tmp/out.flac.
Applying option shortest (finish encoding within shortest input) with argument 1.
Applying option af (set audio filters) with argument atrim=start_sample=48000*3,aresample=44100:resampler=soxr:precision=33:osf=s16:dither_method=f_weighted.
Applying option c:a (codec name) with argument flac.
Successfully parsed a group of options.
Opening an output file: /tmp/out.flac.
[file @ 0x440a9c0] Setting default whitelist 'file,crypto'
Successfully opened the file.
Stream mapping:
Stream #0:0 -> #0:0 (pcm_f64le (native) -> flac (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[Parsed_atrim_0 @ 0x4416f20] Setting 'start_sample' to value '48000*3'
[Parsed_aresample_1 @ 0x4417860] Setting 'sample_rate' to value '44100'
[Parsed_aresample_1 @ 0x4417860] Setting 'resampler' to value 'soxr'
[Parsed_aresample_1 @ 0x4417860] Setting 'precision' to value '33'
[Parsed_aresample_1 @ 0x4417860] Setting 'osf' to value 's16'
[Parsed_aresample_1 @ 0x4417860] Setting 'dither_method' to value 'f_weighted'
[graph_0_in_0_0 @ 0x4418260] Setting 'time_base' to value '1/48000'
[graph_0_in_0_0 @ 0x4418260] Setting 'sample_rate' to value '48000'
[graph_0_in_0_0 @ 0x4418260] Setting 'sample_fmt' to value 'dbl'
[graph_0_in_0_0 @ 0x4418260] Setting 'channel_layout' to value '0x4'
[graph_0_in_0_0 @ 0x4418260] tb:1/48000 samplefmt:dbl samplerate:48000 chlayout:0x4
[format_out_0_0 @ 0x4418340] Setting 'sample_fmts' to value 's16|s32'
[AVFilterGraph @ 0x4414220] query_formats: 5 queried, 12 merged, 0 already done, 0 delayed
[Parsed_aresample_1 @ 0x4417860] [SWR @ 0x4418460] Using dblp internally between filters
[Parsed_aresample_1 @ 0x4417860] [SWR @ 0x4418460] Matrix coefficients:
[Parsed_aresample_1 @ 0x4417860] [SWR @ 0x4418460] FC: FC:1.000000
[Parsed_aresample_1 @ 0x4417860] ch:1 chl:mono fmt:dbl r:48000Hz -> ch:1 chl:mono fmt:s16 r:44100Hz
[flac @ 0x440a020]  compression: 12
[flac @ 0x440a020]  lpc type: Cholesky factorization, 60 passes
[flac @ 0x440a020]  prediction order: 1, 32
[flac @ 0x440a020]  order method: full search
[flac @ 0x440a020]  partition order: 0, 8
[flac @ 0x440a020]  block size: 4608
[flac @ 0x440a020]  lpc precision: 15
Output #0, flac, to '/tmp/out.flac':
encoder         : Lavf57.72.101
Stream #0:0, 0, 1/44100: Audio: flac, 44100 Hz, mono, s16, 128 kb/s
encoder         : Lavc57.96.101 flac
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
size=      87kB time=00:00:08.74 bitrate=  81.5kbits/s speed=16.6x
size=     172kB time=00:00:16.37 bitrate=  86.2kbits/s speed=15.9x
size=     258kB time=00:00:22.74 bitrate=  93.1kbits/s speed=14.6x
size=     343kB time=00:00:30.48 bitrate=  92.3kbits/s speed=14.7x
size=     427kB time=00:00:36.64 bitrate=  95.3kbits/s speed=14.1x
size=     512kB time=00:00:44.37 bitrate=  94.5kbits/s speed=14.3x
size=     603kB time=00:00:50.54 bitrate=  97.7kbits/s speed=13.9x
size=     694kB time=00:00:56.70 bitrate= 100.3kbits/s speed=13.6x
size=     789kB time=00:01:03.70 bitrate= 101.5kbits/s speed=13.7x
size=     877kB time=00:01:10.39 bitrate= 102.0kbits/s speed=13.6x
size=     958kB time=00:01:16.45 bitrate= 102.7kbits/s speed=13.5x
Input file #0 (aevalsrc=-2+random(0)*sin(0.5*2*PI*t):s=48000):
Input stream #0:0 (audio): 3585 packets read (29368320 bytes); 3585 frames decoded (3671040 samples);
Total: 3585 packets (29368320 bytes) demuxed
Output file #0 (/tmp/out.flac):
Output stream #0:0 (audio): 703 frames encoded (3239424 samples); 704 packets muxed (973019 bytes);
Total: 704 packets (973019 bytes) muxed
3585 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x4412c20] Statistics: 2 seeks, 705 writeouts