Compile FFmpeg example code I was trying to compile an FFmpeg example code HERE that illustrates how to use filters using it's C APIs.

I compiled the code (throuh a universal make). As the usage suggests, I'm doing this:

./filtering_video test.mp4

But it produces some jumble output on the screen. I was expecting it produces an output .mp4 file that can be played.

How to run it correctly? 

And does it work with any given video filter that is passed to FFmpeg through -vf, if I simply change the filter description specified?

const char *filter_descr = "scale=78:24,transpose=cclock";
It does not produce any output file.

After filtering, display_frame() is called, which simply outputs to the console.

/* Trivial ASCII grayscale display. */
p0 = frame-&gt;data[0];
puts("\033c");
for (y = 0; y &lt; frame-&gt;height; y++) {
    p = p0;
    for (x = 0; x &lt; frame-&gt;width; x++)
        putchar(" .-+#"[*(p++) / 52]);
    putchar('\n');
    p0 += frame-&gt;linesize[0];
}
fflush(stdout);