mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
* Added yet more output to the status page to try and track down a problem
Originally committed as revision 579 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
789bee1264
commit
b582f314f7
11
ffserver.c
11
ffserver.c
@ -860,12 +860,15 @@ static void compute_stats(HTTPContext *c)
|
|||||||
while (stream != NULL) {
|
while (stream != NULL) {
|
||||||
if (stream->feed == stream) {
|
if (stream->feed == stream) {
|
||||||
q += sprintf(q, "<h2>Feed %s</h2>", stream->filename);
|
q += sprintf(q, "<h2>Feed %s</h2>", stream->filename);
|
||||||
q += sprintf(q, "<table cellspacing=0 cellpadding=4><tr><th>Stream<th>type<th>kbits/s<th align=left>codec\n");
|
q += sprintf(q, "<table cellspacing=0 cellpadding=4><tr><th>Stream<th>type<th>kbits/s<th align=left>codec<th align=left>Parameters\n");
|
||||||
|
|
||||||
for (i = 0; i < stream->nb_streams; i++) {
|
for (i = 0; i < stream->nb_streams; i++) {
|
||||||
AVStream *st = stream->streams[i];
|
AVStream *st = stream->streams[i];
|
||||||
AVCodec *codec = avcodec_find_encoder(st->codec.codec_id);
|
AVCodec *codec = avcodec_find_encoder(st->codec.codec_id);
|
||||||
char *type = "unknown";
|
char *type = "unknown";
|
||||||
|
char parameters[64];
|
||||||
|
|
||||||
|
parameters[0] = 0;
|
||||||
|
|
||||||
switch(st->codec.codec_type) {
|
switch(st->codec.codec_type) {
|
||||||
case CODEC_TYPE_AUDIO:
|
case CODEC_TYPE_AUDIO:
|
||||||
@ -873,12 +876,14 @@ static void compute_stats(HTTPContext *c)
|
|||||||
break;
|
break;
|
||||||
case CODEC_TYPE_VIDEO:
|
case CODEC_TYPE_VIDEO:
|
||||||
type = "video";
|
type = "video";
|
||||||
|
sprintf(parameters, "%dx%d, q=%d-%d", st->codec.width, st->codec.height,
|
||||||
|
st->codec.qmin, st->codec.qmax);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
av_abort();
|
av_abort();
|
||||||
}
|
}
|
||||||
q += sprintf(q, "<tr><td align=right>%d<td>%s<td align=right>%d<td>%s\n",
|
q += sprintf(q, "<tr><td align=right>%d<td>%s<td align=right>%d<td>%s<td>%s\n",
|
||||||
i, type, st->codec.bit_rate/1000, codec ? codec->name : "");
|
i, type, st->codec.bit_rate/1000, codec ? codec->name : "", parameters);
|
||||||
}
|
}
|
||||||
q += sprintf(q, "</table>\n");
|
q += sprintf(q, "</table>\n");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user