Changes between Initial Version and Version 1 of Ticket #10990


Ignore:
Timestamp:
Jul 25, 2024, 1:26:05 AM (2 years ago)
Author:
Hunter Hogan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10990

    • Property Keywords resampling added
  • Ticket #10990 – Description

    initial v1  
    22If resampler is invoked at the start of the filtergraph to upsample, an error will be thrown at the very end despite the output file being successfully written. `Assertion best_input >= 0 failed at src/fftools/ffmpeg_filter.c:2075`
    33
     4----
     5
     6== [edit] To reproduce, copy/paste
     7{{{
     8FFmpeg -y -hide_banner -loglevel warning -stats ^
     9-f lavfi -i anoisesrc=d=533:c=pink:r=44100:a=0.5 ^
     10-filter_complex [0]aresample=192000,asplit[in1][b0];[b0]atrim=start_sample=146155:end_sample=655680,asetpts=PTS-STARTPTS,afade=in:ns=970:curve=squ[TRIM0];[in1]anullsink;[TRIM0]anull[Z0Z_out] ^
     11-ar 44100 -map "[Z0Z_out]" -codec:a pcm_f32le ^
     12"anoisesrc_filtergraph_aresample_44100.wav"
     13}}}
     14
     15But, no error with:
     16{{{
     17FFmpeg -f lavfi -i anoisesrc=d=533:c=pink:r=44100:a=0.5 ^
     18-filter_complex [0]aresample=192000[b0];[b0]atrim=start_sample=146155:end_sample=655680,asetpts=PTS-STARTPTS,afade=in:ns=970:curve=squ[Z0Z_out] ^
     19-ar 44100 -map "[Z0Z_out]" -codec:a pcm_f32le ^
     20"anoisesrc_aresample.wav"
     21}}}
     22
     23Build:
     24{{{
     25ffmpeg version N-115666-gae00db87ca-g417957ec5e+3 Copyright (c) 2000-2024 the FFmpeg developers
     26  built with gcc 14.1.0 (Rev3, Built by MSYS2 project)
     27  configuration:  --pkg-config=pkgconf --cc='ccache gcc' --cxx='ccache g++' --ld='ccache g++' --extra-cxxflags=-fpermissive --extra-cflags=-Wno-int-conversion --disable-autodetect --enable-amf --enable-bzlib --enable-d3d11va --enable-dxva2 --enable-iconv --enable-lzma --enable-zlib --enable-sdl2 --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libdav1d --enable-libaom --disable-debug --enable-libfdk-aac --enable-fontconfig --enable-libass --enable-libfreetype --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libwebp --enable-libxml2 --enable-libzimg --enable-libshine --enable-gpl --enable-avisynth --enable-libxvid --enable-libopenmpt --enable-version3 --enable-librav1e --enable-libsrt --enable-libgsm --enable-libvmaf --enable-libsvtav1 --enable-chromaprint --enable-frei0r --enable-libaribb24 --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfribidi --enable-libgme --enable-libilbc --enable-libsvthevc --enable-libsvtvp9 --enable-libkvazaar --enable-libmodplug --enable-librist --enable-librtmp --enable-librubberband --enable-libtesseract --enable-libxavs --enable-libzmq --enable-libzvbi --enable-openal --enable-libcodec2 --enable-ladspa --enable-libglslang --enable-vulkan --enable-libdavs2 --enable-libxavs2 --enable-libuavs3d --enable-libplacebo --enable-libjxl --enable-opencl --enable-opengl --enable-libopenh264 --enable-libharfbuzz --enable-libfontconfig --enable-openssl --extra-cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DCACA_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCHROMAPRINT_NODLL --extra-cflags=-DZMQ_STATIC --extra-libs=-lpsapi --extra-cflags=-DLIBXML_STATIC --extra-libs=-liconv --disable-w32threads --extra-cflags=-DKVZ_STATIC_LIB --enable-nonfree --extra-cflags=-DAL_LIBTYPE_STATIC --extra-cflags='-IC:/apps/media-autobuild_suite/local64/include' --extra-cflags='-IC:/apps/media-autobuild_suite/local64/include/AL'
     28  libavutil      59. 21.100 / 59. 21.100
     29  libavcodec     61.  7.100 / 61.  7.100
     30  libavformat    61.  3.104 / 61.  3.104
     31  libavdevice    61.  2.100 / 61.  2.100
     32  libavfilter    10.  2.102 / 10.  2.102
     33  libswscale      8.  2.100 /  8.  2.100
     34  libswresample   5.  2.100 /  5.  2.100
     35  libpostproc    58.  2.100 / 58.  2.100
     36}}}
     37
     38----
     39
     40== Previous ramblings:
    441How to reproduce:
    542I reproduced it with a few different wav files, including a white noise file. All were stereo, however. Batch file and 22 logs attached. Only 4 logs have the error. The other logs are to compare changing only one variable but not getting an error.