let to_string th =
let f = Lazy.force in
Printf.sprintf "%%theora(%s,width=%d,height=%d,picture_width=%d,picture_height=%d,picture_x=%d,picture_y=%d,aspect_numerator=%d,aspect_denominator=%d,keyframe_frequence=%d,%s,soft_target=%b,%s,%s)"
(bit_ctl_to_string th.bitrate_control) (f th.width) (f th.height)
(f th.picture_width) (f th.picture_height) th.picture_x th.picture_y
th.aspect_numerator th.aspect_denominator
th.keyframe_frequency
(print_some_bool "vp3_compatible" th.vp3_compatible)
th.soft_target
(print_some_int "buffer_delay" th.buffer_delay)
(print_some_int "speed" th.speed)