Lines 102-107
Link Here
|
102 |
{"info", "", "Info string (no '=' or ',' allowed) "}, |
102 |
{"info", "", "Info string (no '=' or ',' allowed) "}, |
103 |
{NULL, NULL, NULL}}; |
103 |
{NULL, NULL, NULL}}; |
104 |
|
104 |
|
|
|
105 |
#ifdef LIBQUICKTIME_000904 |
106 |
/* from libquicktime */ |
107 |
int tc_quicktime_get_timescale(double frame_rate) |
108 |
{ |
109 |
int timescale = 600; |
110 |
/* Encode the 29.97, 23.976, 59.94 framerates */ |
111 |
if(frame_rate - (int)frame_rate != 0) |
112 |
timescale = (int)(frame_rate * 1001 + 0.5); |
113 |
else |
114 |
if((600 / frame_rate) - (int)(600 / frame_rate) != 0) |
115 |
timescale = (int)(frame_rate * 100 + 0.5); |
116 |
return timescale; |
117 |
} |
118 |
#endif |
105 |
|
119 |
|
106 |
/* print list of things. Shamelessly stolen from export_ffmpeg.c */ |
120 |
/* print list of things. Shamelessly stolen from export_ffmpeg.c */ |
107 |
static int list(char *list_type) |
121 |
static int list(char *list_type) |
Lines 262-269
Link Here
|
262 |
return(TC_EXPORT_ERROR); |
276 |
return(TC_EXPORT_ERROR); |
263 |
} |
277 |
} |
264 |
|
278 |
|
|
|
279 |
#if !defined(LIBQUICKTIME_000904) |
265 |
/* set proposed video codec */ |
280 |
/* set proposed video codec */ |
266 |
lqt_set_video(qtfile, 1, w, h, vob->ex_fps,qt_codec_info[0]); |
281 |
lqt_set_video(qtfile, 1, w, h, vob->ex_fps,qt_codec_info[0]); |
|
|
282 |
#else |
283 |
fprintf(stderr, "\n \n %i \n \n", tc_quicktime_get_timescale(vob->ex_fps)); |
284 |
/* set proposed video codec */ |
285 |
lqt_set_video(qtfile, 1, w, h, |
286 |
tc_quicktime_get_timescale(vob->ex_fps) / vob->ex_fps+0.5, |
287 |
tc_quicktime_get_timescale(vob->ex_fps), qt_codec_info[0]); |
288 |
#endif |
267 |
} |
289 |
} |
268 |
|
290 |
|
269 |
/* set color model */ |
291 |
/* set color model */ |