desbma / r128gain

Fast audio loudness scanner & tagger (ReplayGain v2 / R128)
GNU Lesser General Public License v2.1
170 stars 9 forks source link

FFmpeg errors on Fedora 36 #40

Closed jinithin closed 2 years ago

jinithin commented 2 years ago

Having some trouble analyzing files on my new Fedora 36 installation. Previously ran Void Linux, where it worked fine. Any clues to what it might be? I've ran plenty of manual ffmpeg commands fine. Can you debug the sent FFmpeg command in a better way?

[~] > r128gain -v debug -r -a ALBUM/
2022-07-31 17:23:53,216 MainThread: Detected FFmpeg lib versions: libavutil: 57.17.100, libavcodec: 59.18.100, libavformat: 59.16.100, libavdevice: 59.4.100, libavfilter: 8.24.100, libswscale: 6.4.100, libswresample: 4.3.100, libpostproc: 56.3.100
2022-07-31 17:23:53,304 ThreadPoolExecutor-0_0: Analyzing loudness of file 'ALBUM/SONG.flac'...
2022-07-31 17:23:53,304 ThreadPoolExecutor-0_1: Analyzing loudness of file 'ALBUM/SONG.flac'...
2022-07-31 17:23:53,368 ThreadPoolExecutor-0_0: /usr/bin/ffmpeg -threads 1 -i ALBUM/SONG.flac -filter_complex_script /tmp/r128gain_vy3zyw9d/ffmpeg_filters -map '[s3]' -map '[s6]' -f null -filter_complex_threads 1 /dev/null -hide_banner -nostats
2022-07-31 17:23:53,368 ThreadPoolExecutor-0_1: /usr/bin/ffmpeg -threads 1 -i ALBUM/SONG.flac -filter_complex_script /tmp/r128gain_9xw6yid5/ffmpeg_filters -map '[s3]' -map '[s6]' -f null -filter_complex_threads 1 /dev/null -hide_banner -nostats
2022-07-31 17:23:53,434 MainThread: Failed to analyze files 'ALBUM/SONG.flac': CalledProcessError Command '['/usr/bin/ffmpeg', '-threads', '1', '-i', 'ALBUM/SONG.flac', '-filter_complex_script', '/tmp/r128gain_vy3zyw9d/ffmpeg_filters', '-ma
p', '[s3]', '-map', '[s6]', '-f', 'null', '-filter_complex_threads', '1', '/dev/null', '-hide_banner', '-nostats']' returned non-zero exit status 1.
2022-07-31 17:23:53,435 MainThread: Failed to analyze file 'ALBUM/SONG.flac': CalledProcessError Command '['/usr/bin/ffmpeg', '-threads', '1', '-i', 'ALBUM/SONG.flac', '-filter_complex_script', '/tmp/r128gain_9xw6yid5/ffmpeg_filters', '-map
', '[s3]', '-map', '[s6]', '-f', 'null', '-filter_complex_threads', '1', '/dev/null', '-hide_banner', '-nostats']' returned non-zero exit status 1.
2022-07-31 17:23:53,435 MainThread: File 'ALBUM/SONG.flac': loudness = SKIPPED, sample peak = SKIPPED
2022-07-31 17:23:53,435 MainThread: Album 'ALBUM': loudness = SKIPPED, sample peak = SKIPPED
[~] > ffmpeg -version
ffmpeg version 5.0.1 Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 12 (GCC)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' --extra-cflags=' -I/usr/include/rav1e' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --enable-chromaprint --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libbs2b --enable-libcdio --enable-libdrm --enable-libjack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libmysofa --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librav1e --enable-librtmp --enable-librubberband --enable-libsmbclient --enable-version3 --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 --enable-vapoursynth --enable-libvpx --enable-vulkan --enable-libglslang --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libxml2 --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-avfilter --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-lto --enable-libmfx --enable-runtime-cpudetect
libavutil      57. 17.100 / 57. 17.100
libavcodec     59. 18.100 / 59. 18.100
libavformat    59. 16.100 / 59. 16.100
libavdevice    59.  4.100 / 59.  4.100
libavfilter     8. 24.100 /  8. 24.100
libswscale      6.  4.100 /  6.  4.100
libswresample   4.  3.100 /  4.  3.100
libpostproc    56.  3.100 / 56.  3.100
desbma commented 2 years ago

Can you post the output of ffmpeg -filters ?

jinithin commented 2 years ago

Absolutely :)

``` ffmpeg version 5.0.1 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 12 (GCC) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASS ERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-an nobin-cc1 -Wl,--build-id=sha1 ' --extra-cflags=' -I/usr/include/rav1e' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --enable-chromaprint --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libbs2b --enable-libcdio --enable-libdrm --enable-libjack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libmysofa --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librav1e --enable-librtmp --enable-librubberband --enable-libsmbclient --enable-version3 --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 - -enable-vapoursynth --enable-libvpx --enable-vulkan --enable-libglslang --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libxml2 --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-avfilter --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-lto --enable-libmfx --enable-runtime-cpudetect libavutil 57. 17.100 / 57. 17.100 libavcodec 59. 18.100 / 59. 18.100 libavformat 59. 16.100 / 59. 16.100 libavdevice 59. 4.100 / 59. 4.100 libavfilter 8. 24.100 / 8. 24.100 libswscale 6. 4.100 / 6. 4.100 libswresample 4. 3.100 / 4. 3.100 libpostproc 56. 3.100 / 56. 3.100 Filters: T.. = Timeline support .S. = Slice threading ..C = Command support A = Audio input/output V = Video input/output N = Dynamic number and/or type of input/output | = Source or sink filter ... abench A->A Benchmark part of a filtergraph. ..C acompressor A->A Audio compressor. ... acontrast A->A Simple audio dynamic range compression/expansion filter. ... acopy A->A Copy the input audio unchanged to the output. ... acue A->A Delay filtering to match a cue. ... acrossfade AA->A Cross fade two input audio streams. .S. acrossover A->N Split audio into per-bands streams. ..C acrusher A->A Reduce audio bit resolution. TS. adeclick A->A Remove impulsive noise from input audio. TS. adeclip A->A Remove clipping from input audio. TS. adecorrelate A->A Apply decorrelation to input audio. T.. adelay A->A Delay one or more audio channels. TSC adenorm A->A Remedy denormals by adding extremely low-level noise. ... aderivative A->A Compute derivative of input audio. TSC adynamicequalizer A->A Apply Dynamic Equalization of input audio. T.C adynamicsmooth A->A Apply Dynamic Smoothing of input audio. ... aecho A->A Add echoing to the audio. TSC aemphasis A->A Audio emphasis. T.. aeval A->A Filter audio signal according to a specified expression. T.C aexciter A->A Enhance high frequency part of audio. T.C afade A->A Fade in/out input audio. TSC afftdn A->A Denoise audio samples using FFT. T.. afftfilt A->A Apply arbitrary expressions to samples in frequency domain. .SC afir N->N Apply Finite Impulse Response filter with supplied coefficients in additional stream(s). ... aformat A->A Convert the input audio to one of the specified formats. TSC afreqshift A->A Apply frequency shifting to input audio. TSC afwtdn A->A Denoise audio stream using Wavelets. T.C agate A->A Audio gate. .S. aiir A->N Apply Infinite Impulse Response filter with supplied coefficients. ... aintegral A->A Compute integral of input audio. ... ainterleave N->A Temporally interleave audio inputs. T.. alatency A->A Report audio filtering latency. T.C alimiter A->A Audio lookahead limiter. TSC allpass A->A Apply a two-pole all-pass filter. ... aloop A->A Loop audio samples. ... amerge N->A Merge two or more audio streams into a single multi-channel stream. T.. ametadata A->A Manipulate audio frame metadata. ..C amix N->A Audio mixing. ... amultiply AA->A Multiply two audio streams. TSC anequalizer A->N Apply high-order audio parametric multi band equalizer. TSC anlmdn A->A Reduce broadband noise from stream using Non-Local Means. .SC anlmf AA->A Apply Normalized Least-Mean-Fourth algorithm to first audio stream. .SC anlms AA->A Apply Normalized Least-Mean-Squares algorithm to first audio stream. ... anull A->A Pass the source unchanged to the output. T.. apad A->A Pad audio with silence. T.. aperms A->A Set permissions for the output audio frame. ... aphaser A->A Add a phasing effect to the audio. TSC aphaseshift A->A Apply phase shifting to input audio. TSC apsyclip A->A Audio Psychoacoustic Clipper. ... apulsator A->A Audio pulsator. ... arealtime A->A Slow down filtering to match realtime. ... aresample A->A Resample audio data. ... areverse A->A Reverse an audio clip. TSC arnndn A->A Reduce noise from speech using Recurrent Neural Networks. ... asdr AA->A Measure Audio Signal-to-Distortion Ratio. ... asegment A->N Segment audio stream. ... aselect A->N Select audio frames to pass in output. ... asendcmd A->A Send commands to filters. ... asetnsamples A->A Set the number of samples for each output audio frames. ... asetpts A->A Set PTS for the output audio frame. ... asetrate A->A Change the sample rate without altering the data. ... asettb A->A Set timebase for the audio output link. ... ashowinfo A->A Show textual information for each audio frame. T.. asidedata A->A Manipulate audio frame side data. TSC asoftclip A->A Audio Soft Clipper. .S. aspectralstats A->A Show frequency domain statistics about audio frames. ... asplit A->N Pass on the audio input to N audio outputs. .S. astats A->A Show time domain statistics about audio frames. ..C astreamselect N->N Select audio streams TSC asubboost A->A Boost subwoofer frequencies. TSC asubcut A->A Cut subwoofer frequencies. TSC asupercut A->A Cut super frequencies. TSC asuperpass A->A Apply high order Butterworth band-pass filter. TSC asuperstop A->A Apply high order Butterworth band-stop filter. ..C atempo A->A Adjust audio tempo. TSC atilt A->A Apply spectral tilt to audio. ... atrim A->A Pick one continuous section from the input, drop the rest. ... axcorrelate AA->A Cross-correlate two audio streams. ... azmq A->A Receive commands through ZMQ and broker them to filters. TSC bandpass A->A Apply a two-pole Butterworth band-pass filter. TSC bandreject A->A Apply a two-pole Butterworth band-reject filter. TSC bass A->A Boost or cut lower frequencies. TSC biquad A->A Apply a biquad IIR filter with the given coefficients. ... bs2b A->A Bauer stereo-to-binaural filter. ... channelmap A->A Remap audio channels. ... channelsplit A->N Split audio into per-channel streams. ... chorus A->A Add a chorus effect to the audio. ... compand A->A Compress or expand audio dynamic range. ... compensationdelay A->A Audio Compensation Delay Line. T.C crossfeed A->A Apply headphone crossfeed filter. TSC crystalizer A->A Simple audio noise sharpening filter. T.. dcshift A->A Apply a DC shift to the audio. T.. deesser A->A Apply de-essing to the audio. ... drmeter A->A Measure audio dynamic range. T.C dynaudnorm A->A Dynamic Audio Normalizer. ... earwax A->A Widen the stereo image. ... ebur128 A->N EBU R128 scanner. TSC equalizer A->A Apply two-pole peaking equalization (EQ) filter. T.C extrastereo A->A Increase difference between stereo audio channels. ..C firequalizer A->A Finite Impulse Response Equalizer. ... flanger A->A Apply a flanging effect to the audio. ... haas A->A Apply Haas Stereo Enhancer. ... hdcd A->A Apply High Definition Compatible Digital (HDCD) decoding. .S. headphone N->A Apply headphone binaural spatialization with HRTFs in additional streams. TSC highpass A->A Apply a high-pass filter with 3dB point frequency. TSC highshelf A->A Apply a high shelf filter. ... join N->A Join multiple audio streams into multi-channel output. ..C ladspa N->A Apply LADSPA effect. ... loudnorm A->A EBU R128 loudness normalization TSC lowpass A->A Apply a low-pass filter with 3dB point frequency. TSC lowshelf A->A Apply a low shelf filter. ... lv2 N->A Apply LV2 effect. ... mcompand A->A Multiband Compress or expand audio dynamic range. ... pan A->A Remix channels with coefficients (panning). ... replaygain A->A ReplayGain scanner. ..C rubberband A->A Apply time-stretching and pitch-shifting. ..C sidechaincompress AA->A Sidechain compressor. T.C sidechaingate AA->A Audio sidechain gate. ... silencedetect A->A Detect silence. ... silenceremove A->A Remove silence. .S. sofalizer A->A SOFAlizer (Spatially Oriented Format for Acoustics). T.C speechnorm A->A Speech Normalizer. T.C stereotools A->A Apply various stereo tools. T.C stereowiden A->A Apply stereo widening effect. ... superequalizer A->A Apply 18 band equalization filter. .S. surround A->A Apply audio surround upmix filter. TSC treble A->A Boost or cut upper frequencies. ... tremolo A->A Apply tremolo effect. ... vibrato A->A Apply vibrato effect. T.C volume A->A Change input volume. ... volumedetect A->A Detect audio volume. ... aevalsrc |->A Generate an audio signal generated by an expression. ... afirsrc |->A Generate a FIR coefficients audio stream. ... anoisesrc |->A Generate a noise audio signal. ... anullsrc |->A Null audio source, return empty audio frames. ... hilbert |->A Generate a Hilbert transform FIR coefficients. ... sinc |->A Generate a sinc kaiser-windowed low-pass, high-pass, band-pass, or band-reject FIR coefficients. ... sine |->A Generate sine wave audio signal. ... anullsink A->| Do absolutely nothing with the input audio. ... addroi V->V Add region of interest to frame. ... alphaextract V->V Extract an alpha channel as a grayscale image component. T.. alphamerge VV->V Copy the luma value of the second input into the alpha channel of the first input. TSC amplify V->V Amplify changes between successive video frames. ... ass V->V Render ASS subtitles onto input video using the libass library. TSC atadenoise V->V Apply an Adaptive Temporal Averaging Denoiser. T.C avgblur V->V Apply Average Blur filter. ... avgblur_opencl V->V Apply average blur filter ... avgblur_vulkan V->V Apply avgblur mask to input video T.C bbox V->V Compute bounding box for each frame. ... bench V->V Benchmark part of a filtergraph. TSC bilateral V->V Apply Bilateral filter. T.. bitplanenoise V->V Measure bit plane noise. .S. blackdetect V->V Detect video intervals that are (almost) black. ... blackframe V->V Detect frames that are (almost) black. TSC blend VV->V Blend two video frames into each other. TS. bm3d N->V Block-Matching 3D denoiser. T.. boxblur V->V Blur the input. ... boxblur_opencl V->V Apply boxblur filter to input video TS. bwdif V->V Deinterlace the input image. TSC cas V->V Contrast Adaptive Sharpen. ... chromaber_vulkan V->V Offset chroma of input video (chromatic aberration) TSC chromahold V->V Turns a certain color range into gray. TSC chromakey V->V Turns a certain color into transparency. Operates on YUV colors. TSC chromanr V->V Reduce chrominance noise. TSC chromashift V->V Shift chroma. ... ciescope V->V Video CIE scope. T.. codecview V->V Visualize information about some codecs. TSC colorbalance V->V Adjust the color balance. TSC colorchannelmixer V->V Adjust colors by mixing color channels. TSC colorcontrast V->V Adjust color contrast between RGB components. TSC colorcorrect V->V Adjust color white balance selectively for blacks and whites. TSC colorize V->V Overlay a solid color on the video stream. TSC colorkey V->V Turns a certain color into transparency. Operates on RGB colors. ... colorkey_opencl V->V Turns a certain color into transparency. Operates on RGB colors. TSC colorhold V->V Turns a certain color range into gray. Operates on RGB colors. TSC colorlevels V->V Adjust the color levels. TS. colormatrix V->V Convert color matrix. TS. colorspace V->V Convert between colorspaces. TSC colortemperature V->V Adjust color temperature of video. TSC convolution V->V Apply convolution filter. ... convolution_opencl V->V Apply convolution mask to input video TS. convolve VV->V Convolve first video stream with second video stream. ... copy V->V Copy the input video unchanged to the output. ... cover_rect V->V Find and cover a user specified object. ..C crop V->V Crop the input video. T.. cropdetect V->V Auto-detect crop size. ... cue V->V Delay filtering to match a cue. TSC curves V->V Adjust components curves. .SC datascope V->V Video data analysis. T.C dblur V->V Apply Directional Blur filter. TS. dctdnoiz V->V Denoise frames using 2D DCT. TSC deband V->V Debands video. T.C deblock V->V Deblock video. ... decimate N->V Decimate frames (post field matching filter). TS. deconvolve VV->V Deconvolve first video stream with second video stream. TS. dedot V->V Reduce cross-luminance and cross-color. TSC deflate V->V Apply deflate effect. ... deflicker V->V Remove temporal frame luminance variations. ... deinterlace_qsv V->V QuickSync video deinterlacing ... deinterlace_vaapi V->V Deinterlacing of VAAPI surfaces ... dejudder V->V Remove judder produced by pullup. T.. delogo V->V Remove logo from input video. ... denoise_vaapi V->V VAAPI VPP for de-noise T.. derain V->V Apply derain filter to the input. ... deshake V->V Stabilize shaky video. ... deshake_opencl V->V Feature-point based video stabilization filter TSC despill V->V Despill video. ... detelecine V->V Apply an inverse telecine pattern. TSC dilation V->V Apply dilation effect. ... dilation_opencl V->V Apply dilation effect T.. displace VVV->V Displace pixels. ... dnn_classify V->V Apply DNN classify filter to the input. ... dnn_detect V->V Apply DNN detect filter to the input. ... dnn_processing V->V Apply DNN processing filter to the input. .S. doubleweave V->V Weave input video fields into double number of frames. T.C drawbox V->V Draw a colored box on the input video. ... drawgraph V->V Draw a graph using input video metadata. T.C drawgrid V->V Draw a colored grid on the input video. T.C drawtext V->V Draw text on top of video frames using libfreetype library. T.. edgedetect V->V Detect and draw edge. ... elbg V->V Apply posterize effect, using the ELBG algorithm. T.. entropy V->V Measure video frames entropy. .S. epx V->V Scale the input using EPX algorithm. T.C eq V->V Adjust brightness, contrast, gamma, and saturation. TSC erosion V->V Apply erosion effect. ... erosion_opencl V->V Apply erosion effect TSC estdif V->V Apply Edge Slope Tracing deinterlace. TSC exposure V->V Adjust exposure of the video stream. ... extractplanes V->N Extract planes as grayscale frames. TS. fade V->V Fade in/out input video. TSC fftdnoiz V->V Denoise frames using 3D FFT. TS. fftfilt V->V Apply arbitrary expressions to pixels in frequency domain. ... field V->V Extract a field from the input video. ... fieldhint V->V Field matching using hints. ... fieldmatch N->V Field matching for inverse telecine. T.. fieldorder V->V Set the field order. T.C fillborders V->V Fill borders of the input video. ... find_rect V->V Find a user specified object. ... flip_vulkan V->V Flip both horizontally and vertically T.. floodfill V->V Fill area with same color with another color. ... format V->V Convert the input video to one of the specified pixel formats. ... fps V->V Force constant framerate. ... framepack VV->V Generate a frame packed stereoscopic video. .S. framerate V->V Upsamples or downsamples progressive source between specified frame rates. T.. framestep V->V Select one frame every N frames. ... freezedetect V->V Detects frozen video input. ... freezeframes VV->V Freeze video frames. T.C frei0r V->V Apply a frei0r effect. T.. fspp V->V Apply Fast Simple Post-processing filter. TSC gblur V->V Apply Gaussian Blur filter. ... gblur_vulkan V->V Gaussian Blur in Vulkan TS. geq V->V Apply generic equation to each pixel. T.. gradfun V->V Debands video quickly using gradients. ... graphmonitor V->V Show various filtergraph stats. TS. grayworld V->V Adjust white balance using LAB gray world algorithm TS. greyedge V->V Estimates scene illumination by grey edge assumption. TSC guided N->V Apply Guided filter. TSC haldclut VV->V Adjust colors using a Hald CLUT. TS. hflip V->V Horizontally flip the input video. ... hflip_vulkan V->V Horizontally flip the input video in Vulkan T.. histeq V->V Apply global color histogram equalization. ... histogram V->V Compute and draw a histogram. TSC hqdn3d V->V Apply a High Quality 3D Denoiser. .S. hqx V->V Scale the input by 2, 3 or 4 using the hq*x magnification algorithm. .S. hstack N->V Stack video inputs horizontally. TSC hsvhold V->V Turns a certain HSV range into gray. TSC hsvkey V->V Turns a certain HSV range into transparency. Operates on YUV colors. T.C hue V->V Adjust the hue and saturation of the input video. TSC huesaturation V->V Apply hue-saturation-intensity adjustments. ... hwdownload V->V Download a hardware frame to a normal frame ... hwmap V->V Map hardware frames ... hwupload V->V Upload a normal frame to a hardware frame ... hwupload_cuda V->V Upload a system memory frame to a CUDA device. T.. hysteresis VV->V Grow first stream into second stream by connecting components. TS. identity VV->V Calculate the Identity between two video streams. ... idet V->V Interlace detect Filter. T.C il V->V Deinterleave or interleave fields. TSC inflate V->V Apply inflate effect. ... interlace V->V Convert progressive video into interlaced. ... interleave N->V Temporally interleave video inputs. ... kerndeint V->V Apply kernel deinterlacing to the input. TSC kirsch V->V Apply kirsch operator. TSC lagfun V->V Slowly update darker pixels. T.. latency V->V Report video filtering latency. TSC lenscorrection V->V Rectify the image by correcting for lens distortion. ... libvmaf VV->V Calculate the VMAF between two video streams. TSC limitdiff N->V Apply filtering with limiting difference. TSC limiter V->V Limit pixels components to the specified range. ... loop V->V Loop video frames. TSC lumakey V->V Turns a certain luma into transparency. TSC lut V->V Compute and apply a lookup table to the RGB/YUV input video. TSC lut1d V->V Adjust colors using a 1D LUT. TSC lut2 VV->V Compute and apply a lookup table from two video inputs. TSC lut3d V->V Adjust colors using a 3D LUT. TSC lutrgb V->V Compute and apply a lookup table to the RGB input video. TSC lutyuv V->V Compute and apply a lookup table to the YUV input video. TSC maskedclamp VVV->V Clamp first stream with second stream and third stream. TSC maskedmax VVV->V Apply filtering with maximum difference of two streams. TSC maskedmerge VVV->V Merge first stream with second stream using third stream as mask. TSC maskedmin VVV->V Apply filtering with minimum difference of two streams. TSC maskedthreshold VV->V Pick pixels comparing absolute difference of two streams with threshold. TSC maskfun V->V Create Mask. TSC median V->V Apply Median filter. ... mergeplanes N->V Merge planes. ... mestimate V->V Generate motion vectors. T.. metadata V->V Manipulate video frame metadata. T.. midequalizer VV->V Apply Midway Equalization. ... minterpolate V->V Frame rate conversion using Motion Interpolation. TSC mix N->V Mix video inputs. TSC monochrome V->V Convert video to gray using custom color filter. T.C morpho VV->V Apply Morphological filter. ... mpdecimate V->V Remove near-duplicate frames. TS. msad VV->V Calculate the MSAD between two video streams. TSC negate V->V Negate input video. TS. nlmeans V->V Non-local means denoiser. ... nlmeans_opencl V->V Non-local means denoiser through OpenCL TSC nnedi V->V Apply neural network edge directed interpolation intra-only deinterlacer. ... noformat V->V Force libavfilter not to use any of the specified pixel formats for the input to the next filter. TS. noise V->V Add noise. T.C normalize V->V Normalize RGB video. ... null V->V Pass the source unchanged to the output. ... ocr V->V Optical Character Recognition. T.C oscilloscope V->V 2D Video Oscilloscope. TSC overlay VV->V Overlay a video source on top of the input. ... overlay_opencl VV->V Overlay one video on top of another ... overlay_qsv VV->V Quick Sync Video overlay. ... overlay_vulkan VV->V Overlay a source on top of another T.. owdenoise V->V Denoise using wavelets. ... pad V->V Pad the input video. ... pad_opencl V->V Pad the input video. ... palettegen V->V Find the optimal palette for a given stream. ... paletteuse VV->V Use a palette to downsample an input video stream. T.. perms V->V Set permissions for the output video frame. TS. perspective V->V Correct the perspective of video. T.C phase V->V Phase shift fields. ... photosensitivity V->V Filter out photosensitive epilepsy seizure-inducing flashes. ... pixdesctest V->V Test pixel format definitions. T.C pixscope V->V Pixel data analysis. T.C pp V->V Filter video using libpostproc. T.. pp7 V->V Apply Postprocessing 7 filter. TS. premultiply N->V PreMultiply first stream with first plane of second stream. TSC prewitt V->V Apply prewitt operator. ... prewitt_opencl V->V Apply prewitt operator ... procamp_vaapi V->V ProcAmp (color balance) adjustments for hue, saturation, brightness, contrast ... program_opencl N->V Filter video using an OpenCL program TSC pseudocolor V->V Make pseudocolored video frames. TS. psnr VV->V Calculate the PSNR between two video streams. ... pullup V->V Pullup from field sequence to frames. T.. qp V->V Change video quantization parameters. ... random V->V Return random frames. TSC readeia608 V->V Read EIA-608 Closed Caption codes from input video and write them to frame metadata. ... readvitc V->V Read vertical interval timecode and write it to frame metadata. ... realtime V->V Slow down filtering to match realtime. .S. remap VVV->V Remap pixels. TS. removegrain V->V Remove grain. T.. removelogo V->V Remove a TV logo based on a mask image. ... repeatfields V->V Hard repeat fields based on MPEG repeat field flag. ... reverse V->V Reverse a clip. TSC rgbashift V->V Shift RGBA. TSC roberts V->V Apply roberts cross operator. ... roberts_opencl V->V Apply roberts operator TSC rotate V->V Rotate the input image. T.. sab V->V Apply shape adaptive blur. ..C scale V->V Scale the input video size and/or convert the image format. ... scale_qsv V->V QuickSync video scaling and format conversion ... scale_vaapi V->V Scale to/from VAAPI surfaces. ... scale_vulkan V->V Scale Vulkan frames ..C scale2ref VV->VV Scale the input video size and/or convert the image format to the given reference. ... scdet V->V Detect video scene change TSC scharr V->V Apply scharr operator. TSC scroll V->V Scroll input video. ... segment V->N Segment video stream. ... select V->N Select video frames to pass in output. TS. selectivecolor V->V Apply CMYK adjustments to specific color ranges. ... sendcmd V->V Send commands to filters. ... separatefields V->V Split input video frames into fields. ... setdar V->V Set the frame display aspect ratio. ... setfield V->V Force field for the output video frame. ... setparams V->V Force field, or color property for the output video frame. ... setpts V->V Set PTS for the output video frame. ... setrange V->V Force color range for the output video frame. ... setsar V->V Set the pixel sample aspect ratio. ... settb V->V Set timebase for the video output link. ... sharpness_vaapi V->V VAAPI VPP for sharpness TSC shear V->V Shear transform the input image. ... showinfo V->V Show textual information for each video frame. ... showpalette V->V Display frame palette. T.. shuffleframes V->V Shuffle video frames. TS. shufflepixels V->V Shuffle video pixels. T.. shuffleplanes V->V Shuffle video planes. T.. sidedata V->V Manipulate video frame side data. .S. signalstats V->V Generate statistics from video analysis. ... signature N->V Calculate the MPEG-7 video signature T.. smartblur V->V Blur the input video without impacting the outlines. TSC sobel V->V Apply sobel operator. ... sobel_opencl V->V Apply sobel operator ... split V->N Pass on the input to N video outputs. T.C spp V->V Apply a simple post processing filter. ... sr V->V Apply DNN-based image super resolution to the input. TS. ssim VV->V Calculate the SSIM between two video streams. .S. stereo3d V->V Convert video stereoscopic 3D view. ..C streamselect N->N Select video streams ... subtitles V->V Render text subtitles onto input video using the libass library. .S. super2xsai V->V Scale the input by 2x using the Super2xSaI pixel art algorithm. T.C swaprect V->V Swap 2 rectangular objects in video. T.. swapuv V->V Swap U and V components. TSC tblend V->V Blend successive frames. ... telecine V->V Apply a telecine pattern. ... thistogram V->V Compute and draw a temporal histogram. TSC threshold VVVV->V Threshold first video stream using other video streams. T.. thumbnail V->V Select the most representative frame in a given sequence of consecutive frames. ... tile V->V Tile several successive frames together. ... tinterlace V->V Perform temporal field interlacing. TSC tlut2 V->V Compute and apply a lookup table from two successive frames. TSC tmedian V->V Pick median pixels from successive frames. T.. tmidequalizer V->V Apply Temporal Midway Equalization. TSC tmix V->V Mix successive video frames. .S. tonemap V->V Conversion to/from different dynamic ranges. ... tonemap_opencl V->V Perform HDR to SDR conversion with tonemapping. ... tonemap_vaapi V->V VAAPI VPP for tone-mapping ... tpad V->V Temporarily pad video frames. .S. transpose V->V Transpose input video. ... transpose_opencl V->V Transpose input video ... transpose_vaapi V->V VAAPI VPP for transpose ... transpose_vulkan V->V Transpose Vulkan Filter ... trim V->V Pick one continuous section from the input, drop the rest. TS. unpremultiply N->V UnPreMultiply first stream with first plane of second stream. TS. unsharp V->V Sharpen or blur the input video. ... unsharp_opencl V->V Apply unsharp mask to input video ... untile V->V Untile a frame into a sequence of frames. .SC v360 V->V Convert 360 projection of video. T.. vaguedenoiser V->V Apply a Wavelet based Denoiser. TSC varblur VV->V Apply Variable Blur filter. ... vectorscope V->V Video vectorscope. T.. vflip V->V Flip the input video vertically. ... vflip_vulkan V->V Vertically flip the input video in Vulkan ... vfrdet V->V Variable frame rate detect filter. TSC vibrance V->V Boost or alter saturation. ... vidstabdetect V->V Extract relative transformations, pass 1 of 2 for stabilization (see vidstabtransform for pass 2). ... vidstabtransform V->V Transform the frames, pass 2 of 2 for stabilization (see vidstabdetect for pass 1). TS. vif VV->V Calculate the VIF between two video streams. T.. vignette V->V Make or reverse a vignette effect. ... vmafmotion V->V Calculate the VMAF Motion score. ... vpp_qsv V->V Quick Sync Video VPP. .S. vstack N->V Stack video inputs vertically. TSC w3fdif V->V Apply Martin Weston three field deinterlace. .S. waveform V->V Video waveform monitor. .S. weave V->V Weave input video fields into frames. .S. xbr V->V Scale the input using xBR algorithm. TS. xcorrelate VV->V Cross-correlate first video stream with second video stream. .S. xfade VV->V Cross fade one video with another video. ... xfade_opencl VV->V Cross fade one video with another video. TSC xmedian N->V Pick median pixels from several video inputs. .S. xstack N->V Stack video inputs into custom layout. TS. yadif V->V Deinterlace the input image. TSC yaepblur V->V Yet another edge preserving blur filter. ... zmq V->V Receive commands through ZMQ and broker them to filters. ... zoompan V->V Apply Zoom & Pan effect. ..C zscale V->V Apply resizing, colorspace and bit depth conversion. ... allrgb |->V Generate all RGB colors. ... allyuv |->V Generate all yuv colors. ... cellauto |->V Create pattern generated by an elementary cellular automaton. ..C color |->V Provide an uniformly colored input. ... colorspectrum |->V Generate colors spectrum. ... frei0r_src |->V Generate a frei0r source. .S. gradients |->V Draw a gradients. ... haldclutsrc |->V Provide an identity Hald CLUT. ... life |->V Create life. ... mandelbrot |->V Render a Mandelbrot fractal. ... mptestsrc |->V Generate various test pattern. ... nullsrc |->V Null video source, return unprocessed video frames. ... openclsrc |->V Generate video using an OpenCL program ... pal75bars |->V Generate PAL 75% color bars. ... pal100bars |->V Generate PAL 100% color bars. ... rgbtestsrc |->V Generate RGB test pattern. .S. sierpinski |->V Render a Sierpinski fractal. ... smptebars |->V Generate SMPTE color bars. ... smptehdbars |->V Generate SMPTE HD color bars. ... testsrc |->V Generate test pattern. ... testsrc2 |->V Generate another test pattern. ... yuvtestsrc |->V Generate YUV test pattern. ... nullsink V->| Do absolutely nothing with the input video. ... abitscope A->V Convert input audio to audio bit scope video output. ... adrawgraph A->V Draw a graph using input audio metadata. ... agraphmonitor A->V Show various filtergraph stats. ... ahistogram A->V Convert input audio to histogram video output. ... aphasemeter A->N Convert input audio to phase meter video output. .SC avectorscope A->V Convert input audio to vectorscope video output. ..C concat N->N Concatenate audio and video streams. ... showcqt A->V Convert input audio to a CQT (Constant/Clamped Q Transform) spectrum video output. ... showfreqs A->V Convert input audio to a frequencies video output. .S. showspatial A->V Convert input audio to a spatial video output. .S. showspectrum A->V Convert input audio to a spectrum video output. .S. showspectrumpic A->V Convert input audio to a spectrum video output single picture. ... showvolume A->V Convert input audio volume to video output. ... showwaves A->V Convert input audio to a video output. ... showwavespic A->V Convert input audio to a video output single picture. ... spectrumsynth VV->A Convert input spectrum videos to audio output. ..C amovie |->N Read audio from a movie source. ..C movie |->N Read from a movie source. ... afifo A->A Buffer input frames and send them when they are requested. ... fifo V->V Buffer input images and send them when they are requested. ... abuffer |->A Buffer audio frames, and make them accessible to the filterchain. ... buffer |->V Buffer video frames, and make them accessible to the filterchain. ... abuffersink A->| Buffer audio frames, and make them available to the end of the filter graph. ... buffersink V->| Buffer video frames, and make them available to the end of the filter graph. ```
desbma commented 2 years ago

I have added some logging in commit bb793e4c646ef57c02c09ad3bd4a4a0d9e38f107, can you try again with the code from the master branch?

This should output the filter script and the ffmpeg command line. Then you can run the ffmpeg command again by replacing the file after -filter_complex_script with a file containing the filter script code. That should give the raw ffmpeg output with the error.

jinithin commented 2 years ago

Thanks for helping me debug a bit. Seems like maybe it's something wrong with my file... But I'm no ffmpeg master :) It's a wav-file converted to flac with ffmpeg from the beginning.

> /usr/bin/ffmpeg -threads 1 -i ALBUM/SONG.flac -filter_complex_script /tmp/filter -map '[s3]' -map '[s6]' -f null -filter_complex_threads 1 /dev/null -hide_banner -nostats
Input #0, flac, from 'ALBUM/SONG.flac':
  Metadata:
    TITLE           : Stolen Focus
    ARTIST          : Impartial
    ALBUM           : The Mercury EP
    DATE            : 2022
    track           : 3
    GENRE           : Neurofunk
    disc            : 1
  Duration: 00:03:46.05, start: 0.000000, bitrate: 4543 kb/s
  Stream #0:0: Audio: flac, 176000 Hz, stereo, s32 (24 bit)
[Parsed_ebur128_5 @ 0x5634945f1600] Summary:

  Integrated loudness:
    I:         -70.0 LUFS
    Threshold:   0.0 LUFS

  Loudness range:
    LRA:         0.0 LU
    Threshold:   0.0 LUFS
    LRA low:     0.0 LUFS
    LRA high:    0.0 LUFS
[Parsed_replaygain_2 @ 0x5634945f0500] track_gain = -24.00 dB
[Parsed_replaygain_2 @ 0x5634945f0500] track_peak = 0.000000
Stream mapping:
  Stream #0:0 (flac) -> asplit:default
  replaygain:default -> Stream #0:0 (pcm_s16le)
  ebur128:out0 -> Stream #0:1 (pcm_s16le)
Press [q] to stop, [?] for help
[format_out_0_0 @ 0x5634946b7880] Cannot select sample rate for the link between filters format_out_0_0 and out_0_0.
[Parsed_ebur128_5 @ 0x563494656640] Summary:

  Integrated loudness:
    I:         -70.0 LUFS
    Threshold:   0.0 LUFS

  Loudness range:
    LRA:         0.0 LU
    Threshold:   0.0 LUFS
    LRA low:     0.0 LUFS
    LRA high:    0.0 LUFS
[Parsed_replaygain_2 @ 0x563494648d80] track_gain = -24.00 dB
[Parsed_replaygain_2 @ 0x563494648d80] track_peak = 0.000000
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
Conversion failed!
desbma commented 2 years ago

That file seems highly atypical (176 KHz / 24 bits), can you please upload it so I can look at it?

jinithin commented 2 years ago

That file seems highly atypical (176 KHz / 24 bits), can you please upload it so I can look at it?

Sure! Should be no copyright concerns either, as it's a free release.

Link to flac: https://mega.nz/file/opxziYiC#1oEzv9O34s1743jV-5LkHVEMWWeYAeSjyyKFehWv6Cs

jinithin commented 2 years ago

Fwiw, I've re-encoded the file to 16-bit 44.1KHz and that works fine. So it's probably something with the sample rate as you said.

desbma commented 2 years ago

It should now be fixed on master.