Selur's Little Message Board
[GUIDE] 59.94 progressive to 29.97 interlaced? - Printable Version

+- Selur's Little Message Board (https://forum.selur.net)
+-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html)
+--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html)
+--- Thread: [GUIDE] 59.94 progressive to 29.97 interlaced? (/thread-3696.html)

Pages: 1 2


59.94 progressive to 29.97 interlaced? - Miranda - 06.05.2024

When I import my 59.94 (bobbed) footage and select interlaced out, the filter option says it is now 29.97, yet when I check the exported file in Media Info it is still 59.94 progressive. Any suggestions?


RE: 59.94 progressive to 29.97 interlaced? - Selur - 06.05.2024

Too few details in what you are actually configuring to really say much.
Wild guess: you didn't set the encoder to interlaced output.

Cu Selur


RE: 59.94 progressive to 29.97 interlaced? - Miranda - 06.05.2024

The only filter I set was the encoder to interlaced output (under the ProRes 422 setting). As I said, the filter settings said 29.97 but I got a 59.94 file, same as the input version.


RE: 59.94 progressive to 29.97 interlaced? - Selur - 06.05.2024

Need a debug output of the job creation to see what you are doing.
Over here if I feed progressive content into Hybrid, and set ProRes to Interlaced output, the output is:
Chroma subsampling                       : 4:2:2
Scan type                                : Interlaced
Scan type, store method                  : Interleaved fields
Scan order                               : Top Field First
with half the frame rate of the input.

Cu Selur


RE: 59.94 progressive to 29.97 interlaced? - Miranda - 06.05.2024

I'll try again tomorrow and send you the report.


RE: 59.94 progressive to 29.97 interlaced? - Miranda - 07.05.2024

Same problem again. 59.94 progressive input, set to interlaced, top (filter shows 29.97 output) but I'm still getting a 59.94 file, without interlacing. The only setting I am changing is the Interlaced/Top field first option.

   


RE: 59.94 progressive to 29.97 interlaced? - Selur - 07.05.2024

Audio extraction call:
"C:\Program Files\Hybrid\64bit\ffmpeg.exe" -y -threads 8 -ignore_editlist true -i "M:\BrianNewCaptures-IN\HD - To Interpolate + Interlace\Eye Satan-5994Final-INT.mov" -map 0:0 -vn -sn -ac 2 -ar 48000 -acodec pcm_s24le -f wav -map_metadata -1 -metadata encoding_tool="Hybrid 2024.04.06.1" "M:\BrianNewCaptures-TEMP\iId_1_aid_0_2024-05-07@08_58_58_2710_01.wav"
Video encoding call:
"C:\Program Files\Hybrid\64bit\ffmpeg.exe" -y -noautorotate -nostdin -threads 8 -ignore_editlist true -i "M:\BrianNewCaptures-IN\HD - To Interpolate + Interlace\Eye Satan-5994Final-INT.mov" -map 0:1 -an -sn -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range tv  -pix_fmt yuv422p10le -strict -1 -vsync 0 -top 1  -vcodec prores_ks -profile:v 2 -top 1 -vtag apcn -flags +ildct+ilme -vf setfield=tff -metadata encoding_tool="Hybrid 2024.04.06.1" -aspect 1920:1080 -f mov "M:\BrianNewCaptures-TEMP\Eye Satan-5994Final-INT_1_2024-05-07@08_58_58_2710_02.mov"
Muxing call:
"C:\Program Files\Hybrid\64bit\ffmpeg.exe" -y  -r 30000/1001 -i "M:\BrianNewCaptures-TEMP\Eye Satan-5994Final-INT_1_2024-05-07@08_58_58_2710_02.mov" -top 1 -flags +ildct+ilme -i "M:\BrianNewCaptures-TEMP\iId_1_aid_0_2024-05-07@08_58_58_2710_01.wav" -metadata encoding_tool="Hybrid 2024.04.06.1" -c:v copy -c:1 copy -map 0:0  -map 1:0  -aspect 1920:1080 -r 30000/1001 -f mov "M:\BrianNewCaptures-OUT\Eye Satan-5994Final-INT.mov"

When the muxing starts, video is still reported as tff interlaced:
self.clip ffmpeg version N-114692-gdcf073e9ab-g6f13f5dd59+1 Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 13.2.0 (Rev5, Built by MSYS2 project)
  configuration:  --pkg-config=pkgconf --cc='ccache gcc' --cxx='ccache g++' --ld='ccache g++' --extra-cxxflags=-fpermissive --extra-cflags=-Wno-int-conversion --extra-ldflags='-Wl,--allow-multiple-definition' --disable-autodetect --enable-amf --enable-bzlib --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-iconv --enable-lzma --enable-nvenc --enable-zlib --enable-sdl2 --enable-ffnvcodec --enable-nvdec --enable-cuda-llvm --disable-doc --enable-gmp --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libdav1d --enable-libaom --disable-debug --enable-fontconfig --enable-libass --enable-libbluray --enable-libfreetype --enable-libmfx --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libwebp --enable-libxml2 --enable-libzimg --enable-libshine --enable-gpl --enable-avisynth --enable-libxvid --enable-libopenmpt --enable-version3 --enable-librav1e --enable-libsrt --enable-libgsm --enable-libvmaf --enable-libsvtav1 --enable-gnutls --extra-cflags=-DLIBTWOLAME_STATIC --extra-libs=-lstdc++ --extra-cflags=-DLIBXML_STATIC --extra-libs=-liconv --disable-w32threads
  libavutil      59. 13.100 / 59. 13.100
  libavcodec     61.  5.101 / 61.  5.101
  libavformat    61.  3.100 / 61.  3.100
  libavdevice    61.  2.100 / 61.  2.100
  libavfilter    10.  2.101 / 10.  2.101
  libswscale      8.  2.100 /  8.  2.100
  libswresample   5.  2.100 /  5.  2.100
  libpostproc    58.  2.100 / 58.  2.100

self.clip Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'M:\BrianNewCaptures-TEMP\Eye Satan-5994Final-INT_1_2024-05-07@08_58_58_2710_02.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 512
    compatible_brands: qt  
    encoder         : Lavf61.3.100
  Duration: 01:19:01.65, start: 0.000000, bitrate: 283872 kb/s
  Stream #0:0[0x1]: Video: prores (Standard) (apcn / 0x6E637061), yuv422p10le(bt709, top coded first (swapped)), 1920x1080, 283866 kb/s, SAR 1:1 DAR 16:9, 59.94 fps, 59.94 tbr, 60k tbn (default)
      Metadata:
        handler_name    : Core Media Video
        vendor_id       : FFMP
        encoder         : Lavc61.5.101 prores_ks
        timecode        : 00:00:00:00

self.clip   Stream #0:1[0x2](eng): Data: none (tmcd / 0x64636D74)
      Metadata:
        handler_name    : Core Media Video
        timecode        : 00:00:00:00

self.clip Input #1, wav, from 'M:\BrianNewCaptures-TEMP\iId_1_aid_0_2024-05-07@08_58_58_2710_01.wav':
  Metadata:
    encoder         : Lavf61.3.100
  Duration: 01:19:01.74, bitrate: 2304 kb/s
  Stream #1:0: Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s32 (24 bit), 2304 kb/s

self.clip [vost#0:0/copy @ 00000162065485c0] Overriding aspect ratio with stream copy may produce invalid files

self.clip Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)

self.clip Output #0, mov, to 'M:\BrianNewCaptures-OUT\Eye Satan-5994Final-INT.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 512
    compatible_brands: qt  
    encoding_tool   : Hybrid 2024.04.06.1
    encoder         : Lavf61.3.100
  Stream #0:0: Video: prores (Standard) (apcn / 0x6E637061), yuv422p10le(bt709, top coded first (swapped)), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 283866 kb/s, 59.94 fps, 59.94 tbr, 30k tbn (default)
      Metadata:
        handler_name    : Core Media Video
        vendor_id       : FFMP
        encoder         : Lavc61.5.101 prores_ks
        timecode        : 00:00:00:00

self.clip   Stream #0:1: Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, stereo, s32 (24 bit), 2304 kb/s

=> I don't see any problem.
Can you share a small cut of your source? So I can try to reproduce this here with your file?
According to what the debug shows, the output should be interlaced.

Cu Selur

Ps.: check whether it's the muxing call, also check whether this happens if you do not add audio.
(can't reproduce the problem independent of whether I mux, so this might be a long shot)


RE: 59.94 progressive to 29.97 interlaced? - Selur - 07.05.2024

With mov output.
Using 'ProRes 422' I get:
Video
ID                                       : 1
Format                                   : ProRes
Format version                           : Version 0
Format profile                           : 422
Codec ID                                 : apcn
Duration                                 : 1 min 14 s
Bit rate mode                            : Variable
Bit rate                                 : 283 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 59.940 FPS
Minimum frame rate                       : 59.880 FPS
Maximum frame rate                       : 60.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:2
Scan type                                : Interlaced
Scan type, store method                  : Interleaved fields
Scan order                               : Top Field First
Bits/(Pixel*Frame)                       : 2.276
Stream size                              : 2.46 GiB (99%)
Title                                    : Core Media Video
Writing library                          : Lavc
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

using 'ProRes 422HQ' I get:
Video
ID                                       : 1
Format                                   : ProRes
Format version                           : Version 0
Format profile                           : 422 HQ
Codec ID                                 : apch
Duration                                 : 1 min 14 s
Bit rate mode                            : Variable
Bit rate                                 : 419 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 59.940 FPS
Minimum frame rate                       : 59.880 FPS
Maximum frame rate                       : 60.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:2
Scan type                                : Interlaced
Scan type, store method                  : Interleaved fields
Scan order                               : Top Field First
Bits/(Pixel*Frame)                       : 3.368
Stream size                              : 3.64 GiB (99%)
Title                                    : Core Media Video
Writing library                          : Lavc
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

using 'ProRes 422 LT':
Video
ID                                       : 1
Format                                   : ProRes
Format version                           : Version 0
Format profile                           : 422 LT
Codec ID                                 : apcs
Duration                                 : 1 min 14 s
Bit rate mode                            : Variable
Bit rate                                 : 202 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 59.940 FPS
Minimum frame rate                       : 59.880 FPS
Maximum frame rate                       : 60.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:2
Scan type                                : Interlaced
Scan type, store method                  : Interleaved fields
Scan order                               : Top Field First
Bits/(Pixel*Frame)                       : 1.623
Stream size                              : 1.75 GiB (99%)
Title                                    : Core Media Video
Writing library                          : Lavc
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

using 'ProRes 422 Proxy:
Video
ID                                       : 1
Format                                   : ProRes
Format version                           : Version 0
Format profile                           : 422 Proxy
Codec ID                                 : apco
Duration                                 : 1 min 14 s
Bit rate mode                            : Variable
Bit rate                                 : 88.3 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 59.940 FPS
Minimum frame rate                       : 59.880 FPS
Maximum frame rate                       : 60.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:2
Scan type                                : Interlaced
Scan type, store method                  : Interleaved fields
Scan order                               : Top Field First
Bits/(Pixel*Frame)                       : 0.711
Stream size                              : 787 MiB (97%)
Title                                    : Core Media Video
Writing library                          : Lavc
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

No clue why they are detected as variable.
Playback seems sync.

Using mkv output, I get:
Video
ID                                       : 1
Format                                   : ProRes
Codec ID                                 : V_PRORES
Duration                                 : 2 min 29 s
Bit rate                                 : 44.2 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 29.970 (30000/1001) FPS
Color space                              : YUV
Bits/(Pixel*Frame)                       : 0.711
Stream size                              : 787 MiB (97%)
Title                                    : Core Media Video
Default                                  : Yes
Forced                                   : Yes
Color range                              : Limited
Matrix coefficients                      : BT.709
output is async.
=> I'll look into it some more.

Cu Selur

Ps.: the unmuxed videostream shows as:
Frame rate mode                          : Constant
Frame rate                               : 59.940 (60000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:2
Scan type                                : Interlaced
Scan type, store method                  : Interleaved fields
Scan order                               : Top Field First



RE: 59.94 progressive to 29.97 interlaced? - Selur - 07.05.2024

Okay, something is wrong with the ffmpeg encoding call when doing progressive to interlaced encoding.
As a workaround, enable "Filtering->Vapoursynth->Misc->Script->Always use Vapoursynth" the output then for me is:
Video
ID                                       : 1
Format                                   : ProRes
Format version                           : Version 0
Format profile                           : 422 Proxy
Codec ID                                 : apco
Duration                                 : 1 min 14 s
Bit rate mode                            : Variable
Bit rate                                 : 44.2 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 29.970 (30000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:2
Scan type                                : Interlaced
Scan type, store method                  : Interleaved fields
Scan order                               : Top Field First
Bits/(Pixel*Frame)                       : 0.711
Stream size                              : 393 MiB (95%)
Writing library                          : Lavc
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : in24
Duration                                 : 1 min 14 s
Bit rate mode                            : Constant
Bit rate                                 : 2 304 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Bit depth                                : 24 bits
Stream size                              : 20.5 MiB (5%)
Default                                  : Yes
Alternate group                          : 1

Cu Selur


RE: 59.94 progressive to 29.97 interlaced? - Miranda - 07.05.2024

The project is from a 59.94 Final Cut project, so the frame rate should be constant.