[FFmpeg-trac] #6180(undetermined:new): aevalsrc, anullsrc disregards nb_samples
FFmpeg
trac at avcodec.org
Thu Feb 23 09:33:43 EET 2017
#6180: aevalsrc, anullsrc disregards nb_samples
-------------------------------------+-------------------------------------
Reporter: mtc | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: aevalsrc | Blocked By:
anullsrc | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
when specifying a duration for (anullsec, aevalsrc (havent tried the
others) )
and specify the duration in terms of # of samples, it ignores? the
statement
and attempts to make a file of infinite duration (thus terminated using
ctrl+c else ..)
How to reproduce:
{{{
% ffmpeg started on 2017-02-21 at 11:17:39
Report written to "ffmpeg-20170221-111739.log"
Command line:
"Q:\\ffmpeg-latest-win64-static\\ffmpeg-latest-
win64-static\\bin\\ffmpeg.exe" -v 9 -loglevel 99 -filter_complex "
aevalsrc=0:nb_samples=48000*10:sample_rate=48000 [out] " -map "[out]"
"G:\\out01.wav" -report
ffmpeg version N-83507-g8fa18e0 Copyright (c) 2000-2017 the FFmpeg
developers
built with gcc 5.4.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-cuda --enable-
cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme
--enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264
--enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-
libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma
--enable-zlib
libavutil 55. 47.100 / 55. 47.100
libavcodec 57. 80.100 / 57. 80.100
libavformat 57. 66.102 / 57. 66.102
libavdevice 57. 2.100 / 57. 2.100
libavfilter 6. 73.100 / 6. 73.100
libswscale 4. 3.101 / 4. 3.101
libswresample 2. 4.100 / 2. 4.100
libpostproc 54. 2.100 / 54. 2.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with
argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument '99'.
Reading option '-filter_complex' ... matched as option 'filter_complex'
(create a complex filtergraph) with argument '
aevalsrc=0:nb_samples=48000*10:sample_rate=48000 [out] '.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '[out]'.
Reading option 'G:\out01.wav' ... matched as output url.
Reading option '-report' ... matched as option 'report' (generate a
report) with argument '1'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Applying option loglevel (set logging level) with argument 99.
Applying option filter_complex (create a complex filtergraph) with
argument aevalsrc=0:nb_samples=48000*10:sample_rate=48000 [out] .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
detected 8 logical cores
[Parsed_aevalsrc_0 @ 00000000005195c0] compat: called with
args=[0:nb_samples=48000*10:sample_rate=48000]
[Parsed_aevalsrc_0 @ 00000000005195c0] Setting 'exprs' to value '0'
[Parsed_aevalsrc_0 @ 00000000005195c0] Setting 'nb_samples' to value
'48000*10'
[Parsed_aevalsrc_0 @ 00000000005195c0] Setting 'sample_rate' to value
'48000'
Parsing a group of options: output url G:\out01.wav.
Applying option map (set input stream mapping) with argument [out].
Successfully parsed a group of options.
Opening an output file: G:\out01.wav.
[file @ 000000000051bac0] Setting default whitelist 'file,crypto'
Successfully opened the file.
[Parsed_aevalsrc_0 @ 00000000005a7d20] compat: called with
args=[0:nb_samples=48000*10:sample_rate=48000]
[Parsed_aevalsrc_0 @ 00000000005a7d20] Setting 'exprs' to value '0'
[Parsed_aevalsrc_0 @ 00000000005a7d20] Setting 'nb_samples' to value
'48000*10'
[Parsed_aevalsrc_0 @ 00000000005a7d20] Setting 'sample_rate' to value
'48000'
[format_out_0_0 @ 000000000051c0a0] Setting 'sample_fmts' to value 's16'
[format_out_0_0 @ 000000000051c0a0] auto-inserting filter
'auto_resampler_0' between the filter 'Parsed_aevalsrc_0' and the filter
'format_out_0_0'
[AVFilterGraph @ 00000000005a3120] query_formats: 3 queried, 3 merged, 3
already done, 0 delayed
[Parsed_aevalsrc_0 @ 00000000005a7d20] sample_rate:48000 chlayout:mono
duration:-1
[auto_resampler_0 @ 000000000051c9a0] [SWR @ 00000000005a7fc0] Using dblp
internally between filters
[auto_resampler_0 @ 000000000051c9a0] ch:1 chl:mono fmt:dblp r:48000Hz ->
ch:1 chl:mono fmt:s16 r:48000Hz
Output #0, wav, to 'G:\out01.wav':
Metadata:
ISFT : Lavf57.66.102
Stream #0:0, 0, 1/48000: Audio: pcm_s16le ([1][0][0][0] / 0x0001),
48000 Hz, mono, s16, 768 kb/s (default)
Metadata:
encoder : Lavc57.80.100 pcm_s16le
Stream mapping:
aevalsrc -> Stream #0:0 (pcm_s16le)
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
size= 45938kB time=00:08:10.00 bitrate= 768.0kbits/s speed= 972x
size= 93750kB time=00:16:40.00 bitrate= 768.0kbits/s speed= 989x
size= 139688kB time=00:24:50.00 bitrate= 768.0kbits/s speed= 985x
size= 185625kB time=00:33:00.00 bitrate= 768.0kbits/s speed= 983x
size= 232500kB time=00:41:20.00 bitrate= 768.0kbits/s speed= 983x
size= 280313kB time=00:49:50.00 bitrate= 768.0kbits/s speed= 988x
size= 326250kB time=00:58:00.00 bitrate= 768.0kbits/s speed= 985x
size= 374063kB time=01:06:30.00 bitrate= 768.0kbits/s speed= 989x
size= 420000kB time=01:14:40.00 bitrate= 768.0kbits/s speed= 988x
size= 465938kB time=01:22:50.00 bitrate= 768.0kbits/s speed= 986x
size= 511875kB time=01:31:00.00 bitrate= 768.0kbits/s speed= 984x
size= 558750kB time=01:39:20.00 bitrate= 768.0kbits/s speed= 984x
size= 602813kB time=01:47:10.00 bitrate= 768.0kbits/s speed= 980x
Received windows signal 0
size= 647813kB time=01:55:10.00 bitrate= 768.0kbits/s speed= 982x
video:0kB audio:647812kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.000012%
Output file #0 (G:\out01.wav):
Output stream #0:0 (audio): 691 frames encoded (331680000 samples); 691
packets muxed (663360000 bytes);
Total: 691 packets (663360000 bytes) muxed
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 00000000005a3000] Statistics: 4 seeks, 20733 writeouts
Exiting normally, received signal 2.
ffmpeg version
built on ... (ffmpeg.zeranoe.com build)
}}}
Patches should be submitted to the ffmpeg-devel mailing list and not this
bug tracker.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6180>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list