I am trying to convert an AVI media file to a clean format for editing in Final Cut.
When I convert using "Constant Frame Rate" at 30fps (or any fps setting) I get stutter.
Specifically, if I advance the output file in VLC or Quick time one frame at a time,
I see that every 3rd and 4th frame are the same, which causes a jerky appearance on playback.
Here are some facts:
- MediaInfo says the encoding is MJPG at 30fps (details below)
- If I use "Peak Framerate" playback is smooth, but then FCP causes jerky conversion
- I get the same results for all combinations of codec (h264 and h265), framerate, and detelecine
Does anyone have a theory for the cause and remedy to try?
MediaInfo report on the source file:
Code: Select all
General
Complete name : /Volumes/PACK/VIDEO/MOVI0006.avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 185 MiB
Duration : 1mn 17s
Overall bit rate : 20.0 Mbps
Video
ID : 0
Format : JPEG
Codec ID : MJPG
Duration : 1mn 17s
Bit rate : 19.5 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 30.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.314
Stream size : 180 MiB (97%)
Audio
ID : 1
Format : PCM
Format settings : Little / Signed
Codec ID : 1
Duration : 1mn 17s
Bit rate mode : Constant
Bit rate : 512 Kbps
Channel(s) : 1 channel
Sampling rate : 32.0 KHz
Bit depth : 16 bits
Stream size : 4.70 MiB (3%)
Alignment : Aligned on interleaves
Interleave, duration : 1006 ms (30.17 video frames)
1.2.2
Operating system and version:
Mac OS Mojave 10.14.6
HandBrake Activity Log:
Code: Select all
HandBrake Activity Log for Session: 2019-10-28T13:10:06Z
Handbrake Version: 1.2.2 (2019022300)
264-30-cf.mp4
Preset: Production Standard (Modified)
[22:10:06] macgui: QueueCore prevented sleep
[22:10:06] macgui: QueueCore scanning specifically for title: 1
[22:10:06] CPU: Intel(R) Core(TM) i7-8700B CPU @ 3.20GHz
[22:10:06] - Intel microarchitecture Kaby Lake
[22:10:06] - logical processor count: 12
[22:10:06] hb_scan: path=/Volumes/PACK/VIDEO/MOVI0006.avi, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Volumes/PACK/VIDEO/MOVI0006.avi
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[22:10:06] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[22:10:06] dvd: not a dvd - trying as a stream/file instead
Input #0, avi, from '/Volumes/PACK/VIDEO/MOVI0006.avi':
Duration: 00:01:17.43, start: 0.000000, bitrate: 20034 kb/s
Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080, 19515 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc
Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 32000 Hz, 1 channels, s16, 512 kb/s
[22:10:06] scan: decoding previews for title 1
[22:10:06] scan: audio 0x1: pcm_s16le, rate=32000Hz, bitrate=512000 Unknown (pcm_s16le) (1.0 ch)
[22:10:07] scan: 10 previews, 1920x1080, 30.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[22:10:07] libhb: scan thread found 1 valid title(s)
[22:10:07] macgui: QueueCore scan done
[22:10:07] 1 job(s) to process
[22:10:07] starting job
[22:10:07] work: only 1 chapter, disabling chapter markers
[22:10:07] job configuration:
[22:10:07] * source
[22:10:07] + /Volumes/PACK/VIDEO/MOVI0006.avi
[22:10:07] + title 1, chapter(s) 1 to 1
[22:10:07] + container: avi
[22:10:07] + data rate: 20034 kbps
[22:10:07] * destination
[22:10:07] + /Users/Mike/Desktop/test/264-30-cf.mp4
[22:10:07] + container: MPEG-4 (libavformat)
[22:10:07] * video track
[22:10:07] + decoder: mjpeg
[22:10:07] + bitrate 19515 kbps
[22:10:07] + filters
[22:10:07] + Detelecine (pullup) (skip-left=1:skip-right=1:skip-top=4:skip-bottom=4:plane=0)
[22:10:07] + Framerate Shaper (mode=1:rate=27000000/900000)
[22:10:07] + frame rate: 30.000 fps -> constant 30.000 fps
[22:10:07] + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[22:10:07] + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[22:10:07] + Output geometry
[22:10:07] + storage dimensions: 1920 x 1080
[22:10:07] + pixel aspect ratio: 1 : 1
[22:10:07] + display dimensions: 1920 x 1080
[22:10:07] + encoder: H.264 (libx264)
[22:10:07] + preset: fast
[22:10:07] + profile: auto
[22:10:07] + level: auto
[22:10:07] + quality: 10.00 (RF)
[22:10:07] + color profile: 1-1-6
[22:10:07] * audio track 1
[22:10:07] + decoder: Unknown (pcm_s16le) (1.0 ch) (track 1, id 0x1)
[22:10:07] + bitrate: 512 kbps, samplerate: 32000 Hz
[22:10:07] + mixdown: Mono
[22:10:07] + dither: triangular
[22:10:07] + encoder: AAC (Apple AudioToolbox)
[22:10:07] + bitrate: 96 kbps, samplerate: 32000 Hz
[22:10:07] macgui: QueueCore started encoding 264-30-cf.mp4
[22:10:07] macgui: QueueCore with preset Production Standard (Modified)
[22:10:07] sync: expecting 2322 video frames
[22:10:07] encx264: min-keyint: 30, keyint: 300
[22:10:07] encx264: encoding at constant RF 10.000000
[22:10:07] encx264: unparsed options: ref=2:weightp=1:subme=6:rc-lookahead=30
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile High, level 4.0, 4:2:0, 8-bit
[22:10:07] sync: first pts video is 0
[22:10:07] sync: "Chapter 1" (1) at frame 1 time 0
[22:10:07] sync: first pts audio 0x1 is 0
[22:10:50] reader: done. 1 scr changes
[22:10:53] work: average encoding speed for job is 33.869503 fps
[22:10:53] vfr: 2323 frames output, 1 dropped and 814 duped for CFR/PFR
[22:10:53] vfr: lost time: 9000 (0 frames)
[22:10:53] vfr: gained time: 9000 (4 frames) (0 not accounted for)
[22:10:53] pcm_s16le-decoder done: 2464 frames, 0 decoder errors
[22:10:53] mjpeg-decoder done: 1511 frames, 0 decoder errors
[22:10:53] sync: got 1511 frames, 2322 expected
[22:10:53] sync: framerate min 15.000 fps, max 30.000 fps, avg 19.514 fps
x264 [info]: frame I:9 Avg QP: 7.17 size:259011
x264 [info]: frame P:630 Avg QP:10.12 size:164565
x264 [info]: frame B:1684 Avg QP:13.42 size: 68590
x264 [info]: consecutive B-frames: 1.2% 5.8% 1.9% 91.1%
x264 [info]: mb I I16..4: 17.9% 68.4% 13.8%
x264 [info]: mb P I16..4: 6.4% 30.3% 4.6% P16..4: 24.4% 19.2% 13.3% 0.0% 0.0% skip: 1.8%
x264 [info]: mb B I16..4: 1.1% 4.9% 1.4% B16..8: 8.1% 14.8% 15.7% direct: 8.9% skip:45.0% L0:51.2% L1:35.7% BI:13.1%
x264 [info]: 8x8 transform intra:71.1% inter:76.1%
x264 [info]: coded y,uvDC,uvAC intra: 61.5% 73.4% 40.2% inter: 29.7% 52.6% 30.5%
x264 [info]: i16 v,h,dc,p: 57% 31% 9% 3%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 31% 22% 2% 2% 2% 2% 2% 2%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 33% 11% 3% 4% 4% 4% 3% 4%
x264 [info]: i8c dc,h,v,p: 34% 29% 33% 4%
x264 [info]: Weighted P-Frames: Y:4.9% UV:4.9%
x264 [info]: ref P L0: 57.8% 42.2%
x264 [info]: ref B L0: 63.2% 36.8%
x264 [info]: ref B L1: 90.7% 9.3%
x264 [info]: kb/s:22885.55
[22:10:53] mux: track 0, 2323 frames, 221512720 bytes, 22875.67 kbps, fifo 256
[22:10:53] mux: track 1, 2409 frames, 949540 bytes, 98.06 kbps, fifo 512
[22:10:53] libhb: work result = 0