Hi 3 patches: - add timecode.h to avoid code duplication for drop frame timecode adjustment - use new lavc timecode api to set timecode in DV. Regression tests change because now default behaviour is non drop frame timecode, you can still activate it by using -flags2 +drop_frame_timecode - timecode helper function for ffmpeg to set timecode. Maybe moving brktimegm to lavu and using it is better ? -- Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA SMARTJOG S.A. http://www.smartjog.com Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA Phone: +33 1 49966312
Hi Baptiste, first of all -- your dv_timecode.patch looks fine to me. But since it is just 1/3 of an entire patch I'd expect somebody else to commit the entire thing since it touches areas I don't maintain. I also do have a question for all ffmpeg developers out here: I don't quite get why ff_drop_frame_timecode_adjust() works. I see that it came from mpeg12.c and I also suspect it is somehow right, but it looks like a weird way to do LTC timecode. Can somebody please point me at any docs explaining it? Thanks, Roman. On Wed, 2007-04-11 at 14:29 +0200, Baptiste Coudurier wrote:
Hi
3 patches:
- add timecode.h to avoid code duplication for drop frame timecode adjustment - use new lavc timecode api to set timecode in DV. Regression tests change because now default behaviour is non drop frame timecode, you can still activate it by using -flags2 +drop_frame_timecode - timecode helper function for ffmpeg to set timecode.
Maybe moving brktimegm to lavu and using it is better ?
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel at mplayerhq.hu http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
Hi On Wed, Apr 11, 2007 at 02:29:35PM +0200, Baptiste Coudurier wrote:
Hi
3 patches:
- add timecode.h to avoid code duplication for drop frame timecode adjustment - use new lavc timecode api to set timecode in DV. Regression tests change because now default behaviour is non drop frame timecode, you can still activate it by using -flags2 +drop_frame_timecode - timecode helper function for ffmpeg to set timecode.
Maybe moving brktimegm to lavu and using it is better ?
could you explain what good all the timecode stuff does? that is what didnt work before and works after the patch? [...]
Index: ffmpeg.c =================================================================== --- ffmpeg.c (revision 8712) +++ ffmpeg.c (working copy) @@ -2499,6 +2499,46 @@ input_ts_offset = parse_date(arg, 1); }
+static void opt_timecode(const char *arg) +{ + int hours, minutes, seconds, frames, time_code, fps, drop = 0; + const AVOption *o; + const char *p = arg; + + hours = strtol(p, (char **)&p, 10); + if (*p != ':') + goto syntax_error; + minutes = strtol(p + 1, (char **)&p, 10); + if (*p != ':') + goto syntax_error; + seconds = strtol(p + 1, (char **)&p, 10); + if (*p == ';') + drop = 1; + else if (*p != ':') + goto syntax_error; + frames = strtol(p + 1, (char **)&p, 10); + + fps = (frame_rate + frame_rate_base / 2) / frame_rate_base; + time_code = (hours * 3600 + minutes * 60 + seconds) * fps + frames; + if (drop) { /* adjust */ + int tminutes = 60 * hours + minutes; + if (fps != 30) { + fprintf(stderr, "Drop frame timecode only supported with 29.97 fps\n"); + exit(1); + } + time_code -= 2 * (tminutes - tminutes / 10); + opt_default("flags2", "+drop_frame_timecode"); + } + + o = av_set_int(avctx_opts[CODEC_TYPE_VIDEO], "timecode_frame_start", time_code); + opt_names= av_realloc(opt_names, sizeof(void*)*(opt_name_count+1)); + opt_names[opt_name_count++]= o->name; + return; + syntax_error: + fprintf(stderr, "Syntax error, usage: hours:minutes:seconds[:;]frames\n"); + exit(1); +}
what a mess see opt_rec_timestamp()
+ static void opt_input_file(const char *filename) { AVFormatContext *ic; @@ -3617,6 +3657,7 @@ { "vtag", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_video_tag}, "force video tag/fourcc", "fourcc/tag" }, { "newvideo", OPT_VIDEO, {(void*)opt_new_video_stream}, "add a new video stream to the current output stream" }, { "qphist", OPT_BOOL | OPT_EXPERT | OPT_VIDEO, { (void *)&qp_hist }, "show QP histogram" }, + { "timecode", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_timecode}, "set timecode value", "timecode" },
please provide a proper description of what timecode is
/* audio options */ { "aframes", OPT_INT | HAS_ARG | OPT_AUDIO, {(void*)&max_frames[CODEC_TYPE_AUDIO]}, "set the number of audio frames to record", "number" },
Index: libavcodec/timecode.h =================================================================== --- libavcodec/timecode.h (revision 0) +++ libavcodec/timecode.h (revision 0) [...] +#ifndef FFMPEG_TIMECODE_H +#define FFMPEG_TIMECODE_H + +static av_always_inline int ff_drop_frame_timecode_adjust(int time_code)
no, a function executed once every 10-300 frames is not going to be av_always_inline it also doesnt belong into a header [...]
Index: libavcodec/mpeg12.c =================================================================== --- libavcodec/mpeg12.c (revision 8712) +++ libavcodec/mpeg12.c (working copy) @@ -32,6 +32,7 @@
#include "mpeg12data.h" #include "bytestream.h" +#include "timecode.h"
//#undef NDEBUG //#include <assert.h> @@ -378,13 +379,8 @@ time_code = s->current_picture_ptr->coded_picture_number + s->avctx->timecode_frame_start;
s->gop_picture_number = s->current_picture_ptr->coded_picture_number; - if (s->avctx->flags2 & CODEC_FLAG2_DROP_FRAME_TIMECODE) { - /* only works for NTSC 29.97 */ - int d = time_code / 17982; - int m = time_code % 17982; - //if (m < 2) m += 2; /* not needed since -2,-1 / 1798 in C returns 0 */ - time_code += 18 * d + 2 * ((m - 2) / 1798); - } + if (s->avctx->flags2 & CODEC_FLAG2_DROP_FRAME_TIMECODE) + time_code = ff_drop_frame_timecode_adjust(time_code); put_bits(&s->pb, 5, (uint32_t)((time_code / (fps * 3600)) % 24)); put_bits(&s->pb, 6, (uint32_t)((time_code / (fps * 60)) % 60)); put_bits(&s->pb, 1, 1);
while it has been added by you in the past and not now the use of coded_picture_number is completely wrong, you MUST use the proper timestamp, even with mpeg1/2 timestamps differ from frame numbers due to frame / field repetion amongth others [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Those who are too smart to engage in politics are punished by being governed by those who are dumber. -- Plato
Michael Niedermayer wrote:
[...]
what a mess see opt_rec_timestamp()
It does not do what I want my helper function to do.
[...]
time_code = s->current_picture_ptr->coded_picture_number + s->avctx->timecode_frame_start;
s->gop_picture_number = s->current_picture_ptr->coded_picture_number; - if (s->avctx->flags2 & CODEC_FLAG2_DROP_FRAME_TIMECODE) { - /* only works for NTSC 29.97 */ - int d = time_code / 17982; - int m = time_code % 17982; - //if (m < 2) m += 2; /* not needed since -2,-1 / 1798 in C returns 0 */ - time_code += 18 * d + 2 * ((m - 2) / 1798); - } + if (s->avctx->flags2 & CODEC_FLAG2_DROP_FRAME_TIMECODE) + time_code = ff_drop_frame_timecode_adjust(time_code); put_bits(&s->pb, 5, (uint32_t)((time_code / (fps * 3600)) % 24)); put_bits(&s->pb, 6, (uint32_t)((time_code / (fps * 60)) % 60)); put_bits(&s->pb, 1, 1);
while it has been added by you in the past and not now the use of coded_picture_number is completely wrong, you MUST use the proper timestamp, even with mpeg1/2 timestamps differ from frame numbers due to frame / field repetion amongth others
timecode is not timestamp. -- Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA SMARTJOG S.A. http://www.smartjog.com Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA Phone: +33 1 49966312
Hi On Sun, Apr 15, 2007 at 03:27:28PM +0200, Baptiste Coudurier wrote:
Michael Niedermayer wrote:
[...]
what a mess see opt_rec_timestamp()
It does not do what I want my helper function to do.
your "helper" function is much more complex than needed, also it uses a unaccpetable syntax, parse_date() as used in opt_rec_timestamp() is exactly what should be used
[...]
time_code = s->current_picture_ptr->coded_picture_number + s->avctx->timecode_frame_start;
s->gop_picture_number = s->current_picture_ptr->coded_picture_number; - if (s->avctx->flags2 & CODEC_FLAG2_DROP_FRAME_TIMECODE) { - /* only works for NTSC 29.97 */ - int d = time_code / 17982; - int m = time_code % 17982; - //if (m < 2) m += 2; /* not needed since -2,-1 / 1798 in C returns 0 */ - time_code += 18 * d + 2 * ((m - 2) / 1798); - } + if (s->avctx->flags2 & CODEC_FLAG2_DROP_FRAME_TIMECODE) + time_code = ff_drop_frame_timecode_adjust(time_code); put_bits(&s->pb, 5, (uint32_t)((time_code / (fps * 3600)) % 24)); put_bits(&s->pb, 6, (uint32_t)((time_code / (fps * 60)) % 60)); put_bits(&s->pb, 1, 1);
while it has been added by you in the past and not now the use of coded_picture_number is completely wrong, you MUST use the proper timestamp, even with mpeg1/2 timestamps differ from frame numbers due to frame / field repetion amongth others
timecode is not timestamp.
it is [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB I count him braver who overcomes his desires than him who conquers his enemies for the hardest victory is over self. -- Aristotle
Michael Niedermayer wrote:
Hi
On Sun, Apr 15, 2007 at 03:27:28PM +0200, Baptiste Coudurier wrote:
Michael Niedermayer wrote:
[...]
what a mess see opt_rec_timestamp() It does not do what I want my helper function to do.
your "helper" function is much more complex than needed, also it uses a unaccpetable syntax, parse_date() as used in opt_rec_timestamp() is exactly what should be used
No, timecode is not a date, and parse_date has no support for ';'.
[...]
time_code = s->current_picture_ptr->coded_picture_number + s->avctx->timecode_frame_start;
s->gop_picture_number = s->current_picture_ptr->coded_picture_number; - if (s->avctx->flags2 & CODEC_FLAG2_DROP_FRAME_TIMECODE) { - /* only works for NTSC 29.97 */ - int d = time_code / 17982; - int m = time_code % 17982; - //if (m < 2) m += 2; /* not needed since -2,-1 / 1798 in C returns 0 */ - time_code += 18 * d + 2 * ((m - 2) / 1798); - } + if (s->avctx->flags2 & CODEC_FLAG2_DROP_FRAME_TIMECODE) + time_code = ff_drop_frame_timecode_adjust(time_code); put_bits(&s->pb, 5, (uint32_t)((time_code / (fps * 3600)) % 24)); put_bits(&s->pb, 6, (uint32_t)((time_code / (fps * 60)) % 60)); put_bits(&s->pb, 1, 1);
while it has been added by you in the past and not now the use of coded_picture_number is completely wrong, you MUST use the proper timestamp, even with mpeg1/2 timestamps differ from frame numbers due to frame / field repetion amongth others
It was added by YOU at r2713. Does encoder support frame/field repetition ?
timecode is not timestamp.
it is
No. -- Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA SMARTJOG S.A. http://www.smartjog.com Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA Phone: +33 1 49966312
Hi On Sun, Apr 15, 2007 at 04:22:32PM +0200, Baptiste Coudurier wrote:
Michael Niedermayer wrote:
Hi
On Sun, Apr 15, 2007 at 03:27:28PM +0200, Baptiste Coudurier wrote:
Michael Niedermayer wrote:
[...]
what a mess see opt_rec_timestamp() It does not do what I want my helper function to do.
your "helper" function is much more complex than needed, also it uses a unaccpetable syntax, parse_date() as used in opt_rec_timestamp() is exactly what should be used
No, timecode is not a date, and parse_date has no support for ';'.
correct syntax is hour:minute:second.millisecond exactly what parse_date() uses we will not add another syntax for a similar command line option
[...]
time_code = s->current_picture_ptr->coded_picture_number + s->avctx->timecode_frame_start;
s->gop_picture_number = s->current_picture_ptr->coded_picture_number; - if (s->avctx->flags2 & CODEC_FLAG2_DROP_FRAME_TIMECODE) { - /* only works for NTSC 29.97 */ - int d = time_code / 17982; - int m = time_code % 17982; - //if (m < 2) m += 2; /* not needed since -2,-1 / 1798 in C returns 0 */ - time_code += 18 * d + 2 * ((m - 2) / 1798); - } + if (s->avctx->flags2 & CODEC_FLAG2_DROP_FRAME_TIMECODE) + time_code = ff_drop_frame_timecode_adjust(time_code); put_bits(&s->pb, 5, (uint32_t)((time_code / (fps * 3600)) % 24)); put_bits(&s->pb, 6, (uint32_t)((time_code / (fps * 60)) % 60)); put_bits(&s->pb, 1, 1);
while it has been added by you in the past and not now the use of coded_picture_number is completely wrong, you MUST use the proper timestamp, even with mpeg1/2 timestamps differ from frame numbers due to frame / field repetion amongth others
It was added by YOU at r2713.
nonsense, the code actually was added by fabrice r2713 was a unrelated change
Does encoder support frame/field repetition ?
put_bits(&s->pb, 1, s->repeat_first_field); so id say yes the encoder mpeg12.c does support it
timecode is not timestamp.
it is
No.
well, if it is or not the code is wrong which is the point the terminology isnt [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Dictatorship naturally arises out of democracy, and the most aggravated form of tyranny and slavery out of the most extreme liberty. -- Plato
Michael Niedermayer wrote:
Hi
On Sun, Apr 15, 2007 at 04:22:32PM +0200, Baptiste Coudurier wrote:
Michael Niedermayer wrote:
Hi
On Sun, Apr 15, 2007 at 03:27:28PM +0200, Baptiste Coudurier wrote:
Michael Niedermayer wrote:
[...]
what a mess see opt_rec_timestamp() It does not do what I want my helper function to do. your "helper" function is much more complex than needed, also it uses a unaccpetable syntax, parse_date() as used in opt_rec_timestamp() is exactly what should be used No, timecode is not a date, and parse_date has no support for ';'.
correct syntax is hour:minute:second.millisecond exactly what parse_date() uses we will not add another syntax for a similar command line option
correct syntax is hour:minutes:seconds:frames
[...]
time_code = s->current_picture_ptr->coded_picture_number + s->avctx->timecode_frame_start;
s->gop_picture_number = s->current_picture_ptr->coded_picture_number; - if (s->avctx->flags2 & CODEC_FLAG2_DROP_FRAME_TIMECODE) { - /* only works for NTSC 29.97 */ - int d = time_code / 17982; - int m = time_code % 17982; - //if (m < 2) m += 2; /* not needed since -2,-1 / 1798 in C returns 0 */ - time_code += 18 * d + 2 * ((m - 2) / 1798); - } + if (s->avctx->flags2 & CODEC_FLAG2_DROP_FRAME_TIMECODE) + time_code = ff_drop_frame_timecode_adjust(time_code); put_bits(&s->pb, 5, (uint32_t)((time_code / (fps * 3600)) % 24)); put_bits(&s->pb, 6, (uint32_t)((time_code / (fps * 60)) % 60)); put_bits(&s->pb, 1, 1);
while it has been added by you in the past and not now the use of coded_picture_number is completely wrong, you MUST use the proper timestamp, even with mpeg1/2 timestamps differ from frame numbers due to frame / field repetion amongth others
It was added by YOU at r2713.
nonsense, the code actually was added by fabrice r2713 was a unrelated change
nonsense in r2713 you changed timecode to use coded_picture_number. Why did you do that if it was wrong ? - time_code = s->fake_picture_number; - s->gop_picture_number = s->fake_picture_number; + time_code = s->current_picture_ptr->coded_picture_number; + + s->gop_picture_number = time_code;
Does encoder support frame/field repetition ?
put_bits(&s->pb, 1, s->repeat_first_field);
so id say yes the encoder mpeg12.c does support it
and where is it handled and/or set ? mpegvideo.c: assert(s->repeat_first_field==0); when update vbv delay also. [...] -- Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA SMARTJOG S.A. http://www.smartjog.com Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA Phone: +33 1 49966312
Hello, On Sun, Apr 15, 2007 at 05:04:57PM +0200, Baptiste Coudurier wrote:
Michael Niedermayer wrote: [...]
correct syntax is hour:minute:second.millisecond exactly what parse_date() uses we will not add another syntax for a similar command line option
correct syntax is hour:minutes:seconds:frames
Maybe it is in this special case, but whether it is media, CD or whatever players the only variant I have seen is hour:minute:second.millisecond ... At least I don't see a point in yet another parser just because of a '.' vs. ':'... Greetings, Reimar Doeffinger
Reimar D?ffinger wrote:
Hello, On Sun, Apr 15, 2007 at 05:04:57PM +0200, Baptiste Coudurier wrote:
Michael Niedermayer wrote: [...]
correct syntax is hour:minute:second.millisecond exactly what parse_date() uses we will not add another syntax for a similar command line option correct syntax is hour:minutes:seconds:frames
Maybe it is in this special case, but whether it is media, CD or whatever players the only variant I have seen is hour:minute:second.millisecond ...
You never saw a VTR, a non linear editing system then.
At least I don't see a point in yet another parser just because of a '.' vs. ':'...
milliseconds vs frame number, ':' non drop frame, ';' drop frame. -- Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA SMARTJOG S.A. http://www.smartjog.com Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA Phone: +33 1 49966312
Hi guys, I'd like to resurrect this thread, I hope this won't cause flames this time, and I'll address all comments. Baptiste Coudurier wrote:
Hi
3 patches:
- add timecode.h to avoid code duplication for drop frame timecode adjustment
I moved code to utils.c in ff_timecode_drop_frame_adjust function, added doxygen.
- use new lavc timecode api to set timecode in DV. Regression tests change because now default behaviour is non drop frame timecode, you can still activate it by using -flags2 +drop_frame_timecode
This still apply, however I notice that I can move the code without using the new adjust function, and will commit that first.
- timecode helper function for ffmpeg to set timecode.
Removed the helper for now, I still use it in my own tree though, because it is still very useful to me at least. [...] -- Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA Smartjog USA Inc. http://www.smartjog.com Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
On Thu, 2008-10-09 at 15:20 -0700, Baptiste Coudurier wrote:
Hi guys,
I'd like to resurrect this thread, I hope this won't cause flames this time, and I'll address all comments.
The DV related portion of this patch looks reasonable (although it'll be up to Michael to have a final say). Except for this small issue: Index: libavformat/dvenc.c =================================================================== --- libavformat/dvenc.c (revision 15589) +++ libavformat/dvenc.c (working copy) ..... for (buf = frame; buf < frame + c->sys->frame_size; buf += 150 * 80) { /* DV subcode: 2nd and 3d DIFs */ for (j = 80; j < 80 * 3; j += 80) { - for (k = 6; k < 6 * 8; k += 8) - dv_write_pack(dv_timecode, c, &buf[j+k]); - This basically means that repacking DV from one container to another will not longer set the timecode but will set dv_[audio|video]_rectime, dv_[audio|video]_recdate. Is such behavior desired? Thanks, Roman.
Hi Roman, Roman V. Shaposhnik wrote:
On Thu, 2008-10-09 at 15:20 -0700, Baptiste Coudurier wrote:
Hi guys,
I'd like to resurrect this thread, I hope this won't cause flames this time, and I'll address all comments.
The DV related portion of this patch looks reasonable (although it'll be up to Michael to have a final say). Except for this small issue:
Index: libavformat/dvenc.c =================================================================== --- libavformat/dvenc.c (revision 15589) +++ libavformat/dvenc.c (working copy) ..... for (buf = frame; buf < frame + c->sys->frame_size; buf += 150 * 80) { /* DV subcode: 2nd and 3d DIFs */ for (j = 80; j < 80 * 3; j += 80) { - for (k = 6; k < 6 * 8; k += 8) - dv_write_pack(dv_timecode, c, &buf[j+k]); -
This basically means that repacking DV from one container to another will not longer set the timecode but will set dv_[audio|video]_rectime, dv_[audio|video]_recdate.
Is such behavior desired?
Yes, timecode is not related to rec date. Still ok to apply ? -- Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA checking for life_signs in -lkenny... no FFmpeg maintainer http://www.ffmpeg.org
On Sat, 2009-01-31 at 14:50 -0800, Baptiste Coudurier wrote:
Hi Roman,
Roman V. Shaposhnik wrote:
On Thu, 2008-10-09 at 15:20 -0700, Baptiste Coudurier wrote:
Hi guys,
I'd like to resurrect this thread, I hope this won't cause flames this time, and I'll address all comments.
The DV related portion of this patch looks reasonable (although it'll be up to Michael to have a final say). Except for this small issue:
Index: libavformat/dvenc.c =================================================================== --- libavformat/dvenc.c (revision 15589) +++ libavformat/dvenc.c (working copy) ..... for (buf = frame; buf < frame + c->sys->frame_size; buf += 150 * 80) { /* DV subcode: 2nd and 3d DIFs */ for (j = 80; j < 80 * 3; j += 80) { - for (k = 6; k < 6 * 8; k += 8) - dv_write_pack(dv_timecode, c, &buf[j+k]); -
This basically means that repacking DV from one container to another will not longer set the timecode but will set dv_[audio|video]_rectime, dv_[audio|video]_recdate.
Is such behavior desired?
Yes, timecode is not related to rec date.
Still ok to apply ?
Since nobody voiced any concerns -- I'd say "yes". Thanks, Roman.
On Thu, Oct 09, 2008 at 03:20:25PM -0700, Baptiste Coudurier wrote:
Hi guys,
I'd like to resurrect this thread, I hope this won't cause flames this time, and I'll address all comments.
Baptiste Coudurier wrote:
Hi
3 patches:
- add timecode.h to avoid code duplication for drop frame timecode adjustment
I moved code to utils.c in ff_timecode_drop_frame_adjust function, added doxygen.
Index: libavcodec/mpeg12enc.c =================================================================== --- libavcodec/mpeg12enc.c (revision 15589) +++ libavcodec/mpeg12enc.c (working copy) @@ -32,8 +32,8 @@ #include "mpeg12.h" #include "mpeg12data.h" #include "bytestream.h" +#include "timecode.h"
- static const uint8_t inv_non_linear_qscale[13] = {
cosmetic
0, 2, 4, 6, 8, 9,10,11,12,13,14,15,16,
[...]
Index: libavcodec/utils.c =================================================================== --- libavcodec/utils.c (revision 15589) +++ libavcodec/utils.c (working copy) @@ -1518,6 +1518,20 @@ return 0; }
+/* + * Adjust frame number for NTSC drop frame time code + * @param frame_num Actual frame number to adjust + * @return Adjusted frame number + */
doxy is missing a '/**'
+int ff_timecode_drop_frame_adjust(int frame_num)
i think the name "ff_timecode_drop_frame_adjust" will be confusing when a function doing the inverse is added, that is one that converts the stored timecode into the frame number. Maybe a name like ff_framenum_to_drop_timecode() would be better. [...]
Index: libavcodec/timecode.h =================================================================== --- libavcodec/timecode.h (revision 0) +++ libavcodec/timecode.h (revision 0) [...] +#ifndef AVCODEC_TIMECODE_H +#define AVCODEC_TIMECODE_H + +int ff_timecode_drop_frame_adjust(int frame_num);
i think the doxy should be in the header except these iam ok with this patch [...]
- use new lavc timecode api to set timecode in DV. Regression tests change because now default behaviour is non drop frame timecode, you can still activate it by using -flags2 +drop_frame_timecode
This still apply, however I notice that I can move the code without using the new adjust function, and will commit that first.
i leave the dv stuff to roman to decide/review [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Opposition brings concord. Out of discord comes the fairest harmony. -- Heraclitus
participants (5)
-
baptiste.coudurier@gmail.com -
baptiste.coudurier@smartjog.com -
michaelni@gmx.at -
Reimar.Doeffinger@stud.uni-karlsruhe.de -
rvs@sun.com