#8523: ffmpeg converts 30fps intup to 29.97fps when converting to .mxf
-------------------------------------+-------------------------------------
             Reporter:  reakon       |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  ffmpeg       |                  Version:  git-
             Keywords:  mxf fps      |  master
  convert                            |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 I want to convert a 30fps file to .mxf format. The resulting file is
 29.97fps. Hard-setting output to 30fps does not help.
 How to reproduce:
 {{{
 C:\Users\aprajs\Downloads\ffmpeg-20200211-f15007a-win64-static\bin>
 .\ffmpeg -i 720p30.mov 720p30.mxf
 ffmpeg version git-2020-02-11-f15007a Copyright (c) 2000-2020 the FFmpeg
 developers
   built with gcc 9.2.1 (GCC) 20200122
   configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
 fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-
 libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr
 --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack
 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-
 libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa
 --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx
 --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc
 --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
 --enable-amf
   libavutil      56. 39.100 / 56. 39.100
   libavcodec     58. 68.102 / 58. 68.102
   libavformat    58. 38.100 / 58. 38.100
   libavdevice    58.  9.103 / 58.  9.103
   libavfilter     7. 75.100 /  7. 75.100
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '720p30.mov':
   Metadata:
     creation_time   : 2014-08-14T00:13:45.000000Z
   Duration: 00:01:00.03, start: 0.000000, bitrate: 106493 kb/s
     Stream #0:0(eng): Video: prores (HQ) (apch / 0x68637061),
 yuv422p10le(tv, bt709/unknown/unknown, progressive), 1280x720, 104954
 kb/s, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 30 tbn, 30 tbc (default)
     Metadata:
       creation_time   : 2014-08-14T00:13:45.000000Z
       handler_name    : Apple Video Media Handler
       encoder         : Apple ProRes 422 HQ
       timecode        : 01:00:00:00
     Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz,
 stereo, s16, 1536 kb/s (default)
     Metadata:
       creation_time   : 2014-08-14T00:13:45.000000Z
       handler_name    : Apple Sound Media Handler
     Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
     Metadata:
       creation_time   : 2014-08-14T00:14:03.000000Z
       handler_name    : Time Code Media Handler
       timecode        : 01:00:00:00
 Stream mapping:
   Stream #0:0 -> #0:0 (prores (native) -> mpeg2video (native))
   Stream #0:1 -> #0:1 (pcm_s16le (native) -> pcm_s16le (native))
 Press [q] to stop, [?] for help
 [mxf @ 0000019024fad280] 1/30 input time base matched 1001/30000 container
 time base
 Output #0, mxf, to '720p30.mxf':
   Metadata:
     encoder         : Lavf58.38.100
     Stream #0:0(eng): Video: mpeg2video (4:2:2), yuv422p, 1280x720 [SAR
 1:1 DAR 16:9], q=2-31, 200 kb/s, 30 fps, 29.97 tbn, 30 tbc (default)
     Metadata:
       creation_time   : 2014-08-14T00:13:45.000000Z
       handler_name    : Apple Video Media Handler
       timecode        : 01:00:00:00
       encoder         : Lavc58.68.102 mpeg2video
     Side data:
       cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
     Stream #0:1(eng): Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
 (default)
     Metadata:
       creation_time   : 2014-08-14T00:13:45.000000Z
       handler_name    : Apple Sound Media Handler
       encoder         : Lavc58.68.102 pcm_s16le
 [mxf @ 0000019024fad280] Application provided invalid, non monotonically
 increasing dts to muxer in stream 0: 500 >= 500
 [mxf @ 0000019024fad280] Application provided invalid, non monotonically
 increasing dts to muxer in stream 0: 1500 >= 1500
 frame= 1801 fps=300 q=24.8 Lsize=   29438kB time=00:01:00.00
 bitrate=4019.2kbits/s speed=9.99x
 video:16331kB audio:11250kB subtitle:0kB other streams:0kB global
 headers:0kB muxing overhead: 6.732089%
 }}}
 Patches should be submitted to the ffmpeg-devel mailing list and not this
 bug tracker.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8523>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to