Go to the documentation of this file.
29 fprintf(stderr,
"%s [-b bytespersec] [-d duration] input_url output_url\n", argv0);
33 int main(
int argc,
char **argv)
36 const char *input_url =
NULL, *output_url =
NULL;
37 int64_t stream_pos = 0;
45 for (i = 1; i < argc; i++) {
46 if (!strcmp(argv[i],
"-b") && i + 1 < argc) {
47 bps = atoi(argv[i + 1]);
49 }
else if (!strcmp(argv[i],
"-d") && i + 1 < argc) {
52 }
else if (!input_url) {
54 }
else if (!output_url) {
57 return usage(argv[0], 1);
61 return usage(argv[0], 1);
66 fprintf(stderr,
"Unable to open %s: %s\n", input_url, errbuf);
73 fprintf(stderr,
"Unable to get size of %s: %s\n", input_url, errbuf);
81 fprintf(stderr,
"Unable to open %s: %s\n", output_url, errbuf);