summaryrefslogtreecommitdiff
path: root/libavutil/timecode.h
Commit message (Collapse)AuthorAgeFilesLines
* avutil/timecode: add av_timecode_init_from_componentsMarton Balint2020-12-031-0/+17
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avutil/timecode: allow drop frame timecodes for multiples of 30000/1001 fpsMarton Balint2020-12-031-2/+2
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avutil/timecode: add av_timecode_make_smpte_tc_string2Marton Balint2020-09-131-0/+17
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avutil/timecode: fix av_timecode_get_smpte_from_framenum with 50/60 fpsMarton Balint2020-09-131-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SMPTE 12M timecode can only count frames up to 39, because the tens-of-frames value is stored in 2 bit. In order to resolve this 50/60 fps SMPTE timecode is using the field bit (which is the same bit as the phase correction bit) to signal the least significant bit of a 50/60 fps timecode. See SMPTE ST 12-1:2014 section 12.1. Therefore we slightly change the format of the return value of av_timecode_get_smpte_from_framenum and AV_FRAME_DATA_S12M_TIMECODE and start using the previously unused Phase Correction bit as Field bit. (As the SMPTE standard suggests) We add 50/60 fps support to av_timecode_get_smpte_from_framenum by calling the recently added av_timecode_get_smpte function in it which already handles this properly. This change affects the decklink indev and the DV and MXF muxers. MXF has no fate test for 50/60fps content, DV does, therefore the changes. MediaInfo (a recent version) confirms that half-frame timecode must be inserted to DV. MXFInspect confirms valid timecode insertion to the System Item of MXF files. For MXF, also see EBU R122. Note that for DV the field flag is not used because in the HDV specs (SMPTE 370M) it is still defined as biphase mark polarity correction flag. So it should not matter that the DV muxer overrides the field bit. Signed-off-by: Marton Balint <cus@passwd.hu>
* avutil/timecode: add description for SMPTE binary formatLimin Wang2020-07-151-0/+13
| | | | Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
* avutil/timecode: add function av_timecode_get_smpte()Limin Wang2020-06-281-0/+13
| | | | Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
* lavu/timecode: Increase AV_TIMECODE_STR_SIZE.Carl Eugen Hoyos2017-05-051-1/+1
| | | | | Fixes the following warning: libavutil/timecode.c:103:60: warning: '%02d' directive output may be truncated writing between 2 and 10 bytes into a region of size between 0 and 7
* lavu: drop disabled FF_API_OLD_TC_ADJUST_FRAMENUM codeStefano Sabatini2012-11-041-11/+1
|
* lavu/timecode: add av_timecode_check_frame_rate().Clément Bœsch2012-08-081-0/+7
|
* avutil: support 50 and 60 frame rates in timecode apiMatthieu Bouron2012-07-271-1/+12
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* timecode: move timecode muxer options to metadata.Clément Bœsch2012-06-041-6/+0
| | | | | | | | | | | | | Some demuxers set a timecode in the format or streams metadata. The muxers now make use of this metadata instead of a duplicated private option. This makes possible transparent copy of the timecode when transmuxing and transcoding. -timecode option for MPEG1/2 codec is also renamed to -gop_timecode. The global ffmpeg -timecode option will set it anyway so no option change visible for the user.
* lavu: add public timecode API.Clément Bœsch2012-02-021-0/+138