Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#5072 closed defect (invalid)

Weird filter error: Not connected to any destination

Reported by: Michael Heuberger Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: michael.heuberger@binarykitchen.com Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

To reproduce, use this command:

ffmpeg 
-r 15.184325488557473 
-f image2
-thread_queue_size 64 
-i /frames/%d.webp
-i videomail_preview.wav
-y 
-acodec aac 
-strict experimental 
-ar -1 
-ac 1 
-vcodec libx264 
-vf scale=trunc(iw/2)*2:trunc(ih/2)*2 
-crf 16 
-preset fast 
-profile:v baseline 
-pix_fmt yuv420p 
-loglevel warning 
-movflags faststart videomail_good.mp4
-acodec libvorbis 
-ar -1 
-ac 1 
-vcodec libvpx 
-vf scale=trunc(iw/2)*2:trunc(ih/2)*2 
-crf 8 
-deadline good 
-cpu-used 1
-pix_fmt yuv420p 
-loglevel warning 
-movflags faststart videomail_good.webm

causes following error

ffmpeg exited with code 1: Output pad "default" with type audio of
the filter instance "Parsed_anull_0" of anull not connected to any
destination
    Error opening filters!

and this is my version

$ ffmpeg -version                                                                                                                                                                                                                     
ffmpeg version N-76944-g15206ff Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libdcadec --enable-libfreetype --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvo-aacenc --enable-libvidstab
libavutil      55.  9.100 / 55.  9.100
libavcodec     57. 16.101 / 57. 16.101
libavformat    57. 19.100 / 57. 19.100
libavdevice    57.  0.100 / 57.  0.100
libavfilter     6. 17.100 /  6. 17.100
libavresample   3.  0.  0 /  3.  0.  0
libswscale      4.  0.100 /  4.  0.100
libswresample   2.  0.101 /  2.  0.101
libpostproc    54.  0.100 / 54.  0.100

any ideas why this error and what's bad with the command I am using?

Attachments (1)

ffmpeg_test_files.tar.gz (382.0 KB ) - added by Michael Heuberger 6 years ago.
Test files

Download all attachments as: .zip

Change History (13)

comment:1 by Carl Eugen Hoyos, 6 years ago

Sorry but please provide one code block that starts with the command line and is followed by the complete, uncut console output.
If possible, please simplify the command line and please provide the input files if -f lavfi -i testsrc -f lavfi -i sine does not allow to reproduce the issue.

by Michael Heuberger, 6 years ago

Attachment: ffmpeg_test_files.tar.gz added

Test files

comment:2 by Michael Heuberger, 6 years ago

Sure. First download and extract the attached test files into another directory on your machine.

Then, reproduce this (the command in one line and its output):

$ ffmpeg -r 15.251101979467286 -f image2 -thread_queue_size 64 -i ./frames/%d.webp -i ./videomail_preview.wav -y -acodec aac -strict experimental -ar -1 -ac 1 -vcodec libx264 -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -crf 16 -preset fast -profile:v baseline -pix_fmt yuv420p -loglevel warning -movflags faststart ./videomail_good.mp4 -acodec libvorbis -ar -1 -ac 1 -vcodec libvpx -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -crf 8 -deadline good -cpu-used 1 -pix_fmt yuv420p -loglevel warning -movflags faststart ./videomail_good.webm
[wav @ 0xb12320] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for  Input Stream #1.0 : mono
[audio format for output stream 0:1 @ 0xaea3e0] Error parsing sample rate: -1.
Output pad "default" with type audio of the filter instance "Parsed_anull_0" of anull not connected to any destination
Error opening filters!

and here my correct ffmpeg version (ignore the above ffmpeg version, sorry):

$ ffmpeg -version
ffmpeg version 2.7.3-0ubuntu0.15.10.1 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 5.2.1 (Ubuntu 5.2.1-22ubuntu2) 20151010
configuration: --prefix=/usr --extra-version=0ubuntu0.15.10.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-frei0r --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-openal --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libxvid --enable-libzvbi --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-libssh --enable-libsoxr --enable-libx264 --enable-libopencv --enable-libx265
libavutil      54. 27.100 / 54. 27.100
libavcodec     56. 41.100 / 56. 41.100
libavformat    56. 36.100 / 56. 36.100
libavdevice    56.  4.100 / 56.  4.100
libavfilter     5. 16.101 /  5. 16.101
libavresample   2.  1.  0 /  2.  1.  0
libswscale      3.  1.101 /  3.  1.101
libswresample   1.  2.100 /  1.  2.100
libpostproc    53.  3.100 / 53.  3.100

All the command does is to generate mp4 and webm videos based on image frames and a wav file. Hope you can help me?

Thanks heaps!

Last edited 6 years ago by Michael Heuberger (previous) (diff)

comment:3 by Michael Heuberger, 6 years ago

Cc: michael.heuberger@binarykitchen.com added

comment:4 by Carl Eugen Hoyos, 6 years ago

Please test current FFmpeg git head and please provide the command line that allows to reproduce the issue together with the complete, uncut console output to make this a valid ticket.

comment:5 by Michael Heuberger, 6 years ago

Okay, pulled the latest FFmpeg and compiled with all the other codec. Here is the uncut console output:

$ ffmpeg -r 15.251101979467286 -f image2 -thread_queue_size 64 -i ./frames/%d.webp -i ./videomail_preview.wav -y -acodec aac -strict experimental -ar -1 -ac 1 -vcodec libx264 -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -crf 16 -preset fast -profile:v baseline -pix_fmt yuv420p -loglevel warning -movflags faststart ./videomail_good.mp4 -acodec libvorbis -ar -1 -ac 1 -vcodec libvpx -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -crf 8 -deadline good -cpu-used 1 -pix_fmt yuv420p -loglevel warning -movflags faststart ./videomail_good.webm 
[wav @ 0x31d2800] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for  Input Stream #1.0 : mono
[audio format for output stream 0:1 @ 0x322b840] Error parsing sample rate: -1.
Output pad "default" with type audio of the filter instance "Parsed_anull_0" of anull not connected to any destination
Error opening filters!
Last edited 6 years ago by Michael Heuberger (previous) (diff)

comment:6 by Michael Heuberger, 6 years ago

Version: unspecifiedgit-master

comment:7 by Carl Eugen Hoyos, 6 years ago

Please remove the -loglevel option from your command line unless you want to report an issue that the option has.

comment:8 by llogan, 6 years ago

This command is a mess. Some hints:

  • Please provide the most minimal command that allows us to reproduce the issue. Remove options until you find the option(s) that are required to reproduce the issue.
  • Even better if you can reproduce the issue with -f lavfi -i testsrc=d=10 -f lavfi -i sine=d=10 as your video and audio inputs so we don't have to download inputs.
  • Provide a command that we can simply copy and paste.
  • Provide the full, complete, uncut, untrimmed console output without -loglevel (unless requested).

We have so many bug reports and we are just volunteers, so making things easier for us will result in faster answers with a minimum of back-and-forth.


That being said, why are you using -ar -1?

comment:9 by Michael Heuberger, 6 years ago

Ah, I found the problem myself. Audio frequency of -ar -1 was a bug in my code.

Wish ffmpeg had warned me about it properly.

comment:10 by Carl Eugen Hoyos, 6 years ago

Resolution: invalid
Status: newclosed

in reply to:  9 comment:11 by llogan, 6 years ago

Replying to michael.heuberger:

Ah, I found the problem myself. Audio frequency of -ar -1 was a bug in my code.

I mentioned that in my comment.

Wish ffmpeg had warned me about it properly.

It did:

[audio format for output stream 0:1 @ 0x322b840] Error parsing sample rate: -1.

comment:12 by Michael Heuberger, 6 years ago

Oh right. But why the other error then which confused me?

Output pad "default" with type audio of the filter instance "Parsed_anull_0" of anull not connected to any destination
Error opening filters!

This shouldn't be printed when sample rate is wrong.

Note: See TracTickets for help on using tickets.