Commit 842c4254 authored by romansh's avatar romansh

    all human-readable output should go into stderr for now. We really
    need a generic logging facility in ffmpeg, but this will suffice for now.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2131 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 971c897f
......@@ -603,7 +603,7 @@ static void av_estimate_timings_from_pts(AVFormatContext *ic)
st->start_time < start_time)
start_time = st->start_time;
}
printf("start=%lld\n", start_time);
fprintf(stderr, "start=%lld\n", start_time);
if (start_time != MAXINT64)
ic->start_time = start_time;
......@@ -1173,7 +1173,7 @@ void dump_format(AVFormatContext *ic,
is_output ? ic->oformat->name : ic->iformat->name,
is_output ? "to" : "from", url);
if (!is_output) {
printf(" Duration: ");
fprintf(stderr, " Duration: ");
if (ic->duration != AV_NOPTS_VALUE) {
int hours, mins, secs, us;
secs = ic->duration / AV_TIME_BASE;
......@@ -1182,18 +1182,18 @@ void dump_format(AVFormatContext *ic,
secs %= 60;
hours = mins / 60;
mins %= 60;
printf("%02d:%02d:%02d.%01d", hours, mins, secs,
fprintf(stderr, "%02d:%02d:%02d.%01d", hours, mins, secs,
(10 * us) / AV_TIME_BASE);
} else {
printf("N/A");
fprintf(stderr, "N/A");
}
printf(", bitrate: ");
fprintf(stderr, ", bitrate: ");
if (ic->bit_rate) {
printf("%d kb/s", ic->bit_rate / 1000);
fprintf(stderr,"%d kb/s", ic->bit_rate / 1000);
} else {
printf("N/A");
fprintf(stderr, "N/A");
}
printf("\n");
fprintf(stderr, "\n");
}
for(i=0;i<ic->nb_streams;i++) {
AVStream *st = ic->streams[i];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment