Commit 92e2c8f8 authored by Karl Heyes's avatar Karl Heyes

added theora stats

svn path=/icecast/trunk/icecast/; revision=8354
parent 9fd0b297
......@@ -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)
......
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