1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

added theora stats

svn path=/icecast/trunk/icecast/; revision=8354
This commit is contained in:
Karl Heyes 2004-12-08 19:31:33 +00:00
parent 9fd0b2974f
commit 92e2c8f81c

View File

@ -90,6 +90,17 @@ static refbuf_t *process_theora_page (ogg_state_t *ogg_info, ogg_codec_t *codec,
}
header_page = 1;
codec->headers++;
if (codec->headers == 3)
{
ogg_info->bitrate += theora->ti.target_bitrate;
stats_event_args (ogg_info->mount, "video_bitrate", "%ld",
(long)theora->ti.target_bitrate);
stats_event_args (ogg_info->mount, "frame_size", "%ld x %ld",
(long)theora->ti.frame_width,
(long)theora->ti.frame_height);
stats_event_args (ogg_info->mount, "framerate", "%.2f",
(float)theora->ti.fps_numerator/theora->ti.fps_denominator);
}
continue;
}
if (codec->headers < 3)