30 #define _XOPEN_SOURCE 600
33 #include <libavcodec/avcodec.h>
34 #include <libavformat/avformat.h>
35 #include <libavfilter/avfiltergraph.h>
36 #include <libavfilter/avcodec.h>
37 #include <libavfilter/buffersink.h>
38 #include <libavfilter/buffersrc.h>
98 "video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:pixel_aspect=%d/%d",
104 args,
NULL, filter_graph);
114 NULL, buffersink_params, filter_graph);
133 &inputs, &outputs,
NULL)) < 0)
153 if (delay > 0 && delay < 1000000)
160 p0 = picref->
data[0];
162 for (y = 0; y < picref->
video->
h; y++) {
164 for (x = 0; x < picref->
video->
w; x++)
165 putchar(
" .-+#"[*(p++) / 52]);
172 int main(
int argc,
char **argv)
180 perror(
"Could not allocate frame");
184 fprintf(stderr,
"Usage: %s file\n", argv[0]);
248 fprintf(stderr,
"Error occurred: %s\n", buf);