Hello, theora_encode_init returns -11 using the code from the samples on VC++ 6SP6 / Windows XP. Any idea? Thanks in advance. theora_info ti; theora_state td; theora_comment tc; int video_x=0; int video_y=0; int frame_x=0; int frame_y=0; int frame_x_offset=0; int frame_y_offset=0; int video_hzn=-1; int video_hzd=-1; int video_an=-1; int video_ad=-1; int video_r=-1; int video_q=16; /* Theora has a divisible-by-sixteen restriction for the encoded video size */ /* scale the frame size up to the nearest /16 and calculate offsets */ frame_x=320; frame_y=240; video_x=((frame_x + 15) >>4)<<4; video_y=((frame_y + 15) >>4)<<4; /* We force the offset to be even. This ensures that the chroma samples align properly with the luma samples. */ frame_x_offset=((video_x-frame_x)/2)&~1; frame_y_offset=((video_y-frame_y)/2)&~1; theora_info_init(&ti); ti.width=video_x; ti.height=video_y; ti.frame_width=frame_x; ti.frame_height=frame_y; ti.offset_x=frame_x_offset; ti.offset_y=frame_y_offset; ti.fps_numerator=10; ti.fps_denominator=1; ti.aspect_numerator=1; ti.aspect_denominator=1; ti.colorspace=OC_CS_UNSPECIFIED; ti.pixelformat=OC_PF_420; ti.target_bitrate=0; ti.quality=30; ti.dropframes_p=0; ti.quick_p=1; ti.keyframe_auto_p=1; ti.keyframe_frequency=64; ti.keyframe_frequency_force=64; ti.keyframe_data_target_bitrate=0; ti.keyframe_auto_threshold=80; ti.keyframe_mindistance=8; ti.noise_sensitivity=1; int nRet = theora_encode_init(&td, &ti); ___________________________________ Vinci i biglietti per FIFA World Cup in Germania! yahoo.it/concorso_messenger