| | 22 | |
| | 23 | There is also a "nullsink" (null video sink) however, in order to have it work you have to be careful, because by default FFmpeg is "greedy" and will grab whatever stream it can find, so if your filter_complex output doesn't "output" anything, it will just re-encode the inputs and ignore the filter, etc. Here is an example of its use: |
| | 24 | |
| | 25 | {{{ |
| | 26 | ffmpeg -benchmark -i INPUT -filter_complex "[0] split [splitout1][splitout2];[splitout1]nullsink" -map "[splitout2]" out.mp4 |
| | 27 | }}} |
| | 28 | |
| | 29 | in the FFMpeg output it specifies (in this case) |
| | 30 | {{{ |
| | 31 | split:output1 -> Stream #0:0 (libx264) |
| | 32 | }}} |
| | 33 | which means the second output from the split is being encoded (the first output has effectively been sent to the nullsink). |