double old_samplerate = session->sample_rate;
double old_framerate = session->frame_rate;
+ if(use_deinterlace) {
+ session->interlace_mode = ILACE_MODE_NOTINTERLACED;
+ }
+
session->video_channels = DVD_STREAMS;
session->video_tracks = DVD_STREAMS;
session->frame_rate = dvd_framerate;
vid->width = asset->width;
vid->height = asset->height;
vid->frame_rate = asset->frame_rate;
+#if 0
+ char tc_str[20] = "00:00:00:00";
+ double tc_offset;
+ if(asset->timecode > 0)
+ Units::totext(tc_str, asset->timecode, TIME_HMSF, 0, asset->frame_rate, 0);
+ //printf("tc: %s \n", tc_str);
+ av_dict_set(&st->metadata, "timecode", tc_str, 0);
+#endif
if( (vid->color_range = asset->ff_color_range) < 0 )
vid->color_range = file_base->file->preferences->yuv_color_range;
switch( vid->color_range ) {
if( !render->result ) {
// Get total range to render
render->total_start = command->start_position;
+#if 0
+ render->default_asset->timecode = command->start_position;
+ printf("tc: %f \n", render->default_asset->timecode);
+ render->default_asset->timecode += edl->session->timecode_offset;
+#endif
render->total_end = command->end_position;
total_length = render->total_end - render->total_start;