Defaults to old value of 5 that seems more preferable for video editing.
// Default read ahead buffer size
mlt_properties_set_int( properties, "buffer", 25 );
+ mlt_properties_set_int( properties, "drop_max", 5 );
// Default audio frequency and channels
mlt_properties_set_int( properties, "frequency", 48000 );
mlt_position start_pos = 0;
mlt_position last_pos = 0;
int frame_duration = mlt_properties_get_int( properties, "frame_duration" );
+ int drop_max = mlt_properties_get_int( properties, "drop_max" );
if ( preview_off && preview_format != 0 )
self->format = preview_format;
skipped++;
// If too many (1 sec) consecutively-skipped frames
- if ( skipped > fps )
+ if ( skipped > drop_max )
{
// Reset cost tracker
time_process = 0;
// self->consecutive_dropped, self->consecutive_rendered, self->process_head );
// Check for too many consecutively dropped frames
- if ( self->consecutive_dropped > fps )
+ if ( self->consecutive_dropped > mlt_properties_get_int( properties, "drop_max" ) )
{
int orig_buffer = mlt_properties_get_int( properties, "buffer" );
int prefill = mlt_properties_get_int( properties, "prefill" );
* filters, defaults to "bilinear"
* \properties \em buffer the number of frames to use in the asynchronous
* render thread, defaults to 25
+ * \properties \em prefill the number of frames to render before commencing
+ * output when real_time <> 0, defaults to the size of buffer
+ * \properties \em drop_max the maximum number of consecutively dropped frames, defaults to 5
* \properties \em frequency the audio sample rate to use in Hertz, defaults to 48000
* \properties \em channels the number of audio channels to use, defaults to 2
* \properties \em real_time the asynchronous behavior: 1 (default) for asynchronous
mlt_properties_pass_list( play, properties,
"deinterlace_method,resize,rescale,width,height,aspect_ratio,display_ratio,preview_off,preview_format,window_background"
- ",volume,real_time,buffer,prefill,audio_off,frequency" );
+ ",volume,real_time,buffer,prefill,audio_off,frequency,drop_max" );
mlt_properties_pass_list( still, properties,
"deinterlace_method,resize,rescale,width,height,aspect_ratio,display_ratio,preview_off,preview_format,window_background" );