Credit Andrew DVD improvement and if def 0 save
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / ffmpeg.C
index e9fa85ede4c8668368927b74048dc049a6f3e339..4923eded2981e9f4624ade279124d0816b27c33b 100644 (file)
@@ -2965,6 +2965,14 @@ int FFMPEG::open_encoder(const char *type, const char *spec)
                        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 ) {