[FFmpeg-trac] #9931(undetermined:new): Files from p to interlaced last frame counted 2x

FFmpeg trac at avcodec.org
Tue Sep 20 18:41:10 EEST 2022


#9931: Files from p to interlaced last frame counted 2x
-------------------------------------+-------------------------------------
             Reporter:  Tim          |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Description changed by Tim:

Old description:

> If i want to transcode a file from progressiv to interlaced,
> the timecode will not be be the same.
> It doubles the last frame.
>
> Example:
> Original File 10:20:15:7
> After transcode 10:20:15:14
>

>

> {{{
> ffmpeg -i "%%i" -vcodec dnxhd -b:v 120M -q 1 -flags +ildct -vf
> "fps=50,format=yuv422p,scale=1920:1080,interlace,fieldorder=tff"
> -map_metadata 0:s:2 "coded\%%~ni_1080i50.mov"
> }}}
>

> many thanks
> Tim

New description:

 Timecode of the Original File in Avid MC: 22:24:00:01


 FFMPEG Script
 {{{
 ffmpeg -i "%%i" -vcodec dnxhd -b:v 120M -q 1 -flags +ildct -vf
 "fps=50,format=yuv422p,scale=1920:1080,interlace,fieldorder=tff"
 -map_metadata 0:s:2 "coded\%%~ni_1080i50.mov"
 }}}

 Output
 {{{
 W:\Rohmaterial_Ablage\Project\testencodeBjoern>for %i in (*.mov *.mts
 *.mp4 *.3gp) do (
 ffmpeg -r 50 -i "%i" -vcodec dnxhd -b:v 120M -q 1 -flags +ildct -vf
 "fps=50,format=yuv422p,scale=1920:1080,interlace,fieldorder=tff"
 -map_metadata 0:s:2 "coded\%~ni_1080i50.mov"
  MOVE "%i" "done\%i"
 )

 W:\Rohmaterial_Ablage\Project\testencodeBjoern>(
 ffmpeg -r 50 -i "Project_R1_AX33_C0001_ff.MP4" -vcodec dnxhd -b:v 120M -q
 1 -flags +ildct -vf
 "fps=50,format=yuv422p,scale=1920:1080,interlace,fieldorder=tff"
 -map_metadata 0:s:2 "coded\Project_R1_AX33_C0001_ff_1080i50.mov"
  MOVE "Project_R1_AX33_C0001_ff.MP4" "done\Project_R1_AX33_C0001_ff.MP4"
 )
 ffmpeg version 2022-08-13-git-c469c3c3b1-essentials_build-www.gyan.dev
 Copyright (c) 2000-2022 the FFmpeg developers
   built with gcc 12.1.0 (Rev2, Built by MSYS2 project)
   configuration: --enable-gpl --enable-version3 --enable-static --disable-
 w32threads --disable-autodetect --enable-fontconfig --enable-iconv
 --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma
 --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-
 avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265
 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx
 --enable-mediafoundation --enable-libass --enable-libfreetype --enable-
 libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-
 amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec
 --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-
 libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame
 --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-
 libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis
 --enable-librubberband
   libavutil      57. 33.101 / 57. 33.101
   libavcodec     59. 42.101 / 59. 42.101
   libavformat    59. 30.100 / 59. 30.100
   libavdevice    59.  8.101 / 59.  8.101
   libavfilter     8. 46.103 /  8. 46.103
   libswscale      6.  8.102 /  6.  8.102
   libswresample   4.  8.100 /  4.  8.100
   libpostproc    56.  7.100 / 56.  7.100
 Guessed Channel Layout for Input Stream #0.1 : stereo
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Project_R1_AX33_C0001_ff.MP4':
   Metadata:
     major_brand     : XAVC
     minor_version   : 16785407
     compatible_brands: XAVCmp42iso2
     creation_time   : 2022-08-29T17:06:12.000000Z
   Duration: 00:01:09.60, start: 0.000000, bitrate: 52071 kb/s
   Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661),
 yuv420p(tv, bt709/bt709/iec61966-2-4, progressive), 1920x1080 [SAR 1:1 DAR
 16:9], 50123 kb/s, 50 fps, 50 tbr, 50k tbn (default)
     Metadata:
       creation_time   : 2022-08-29T17:06:12.000000Z
       handler_name    : Video Media Handler
       vendor_id       : [0][0][0][0]
       encoder         : AVC Coding
   Stream #0:1[0x2](und): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz,
 stereo, s16, 1536 kb/s (default)
     Metadata:
       creation_time   : 2022-08-29T17:06:12.000000Z
       handler_name    : Sound Media Handler
       vendor_id       : [0][0][0][0]
   Stream #0:2[0x3](und): Data: none (rtmd / 0x646D7472), 409 kb/s
 (default)
     Metadata:
       creation_time   : 2022-08-29T17:06:12.000000Z
       handler_name    : Timed Metadata Media Handler
       timecode        : 22:24:00:02
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 (native) -> dnxhd (native))
   Stream #0:1 -> #0:1 (pcm_s16be (native) -> aac (native))
 Press [q] to stop, [?] for help
 Output #0, mov, to 'coded\Project_R1_AX33_C0001_ff_1080i50.mov':
   Metadata:
     creation_time   : 2022-08-29T17:06:12.000000Z
     handler_name    : Timed Metadata Media Handler
     timecode        : 22:24:00:02
     encoder         : Lavf59.30.100
   Stream #0:0: Video: dnxhd (DNXHD) (AVdn / 0x6E645641), yuv422p(tv,
 bt709/bt709/iec61966-2-4, top coded first (swapped)), 1920x1080 [SAR 1:1
 DAR 16:9], q=2-31, 120000 kb/s, 25 fps, 12800 tbn (default)
     Metadata:
       encoder         : Lavc59.42.101 dnxhd
   Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo,
 fltp, 128 kb/s (default)
     Metadata:
       encoder         : Lavc59.42.101 aac
 [out_0_0 @ 000001abb59d4980] 100 buffers queued in out_0_0, something may
 be wrong.speed=3.71x
 frame= 2239 fps= 93 q=1.0 Lsize= 1327479kB time=00:01:29.52
 bitrate=121478.0kbits/s speed=3.74x
 video:1325488kB audio:1955kB subtitle:0kB other streams:0kB global
 headers:0kB muxing overhead: 0.002680%
 [aac @ 000001abb54ccd40] Qavg: 118.000
 }}}

--
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9931#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list