AVC H264 to MXF for Harmonic Omneon

Questions involving a Windows version of FFmpeg.
Post Reply
marq1968
Posts: 2
Joined: Wed May 16, 2018 7:07 pm

AVC H264 to MXF for Harmonic Omneon

Post by marq1968 » Wed May 16, 2018 7:13 pm

I'm trying to encode some video into a 19Mbit H264 Interlace MXF format. I'm close but upon playback on my Omneon it is jittery and it looks like the wrong frame size.
Here is my command:
ffmpeg -i "inputDVCPROHDvideo.mxf" -f mxf -filter:vf scale=1920:1080 -b:v 19000k -bufsize 19000k -vcodec libx264 "01InterlacedTestForOmneon-J.mxf"
It makes "Interlaced" and not Interleaved or progressive which is good.
Do you think it has anything to do with Profile, ReFrames or Chroma Subsampling?
Thoughts on how to get to what I need?

An example file that I know works reports with MediaInfo looks like (which is different than what I'm making):
General
Complete name : \\10.120.13.21\fs0\clip.dir\timecodeburntest00842513.mxf
Format : MXF
Format version : 1.2
Format profile : OP-1a
Format settings : Closed / Complete
File size : 30.2 MiB
Duration : 1mn 15s
Overall bit rate : 3 377 Kbps
Encoded date : 2015-09-30 19:30:57.880
Writing application : Omneon Inc. Omneon Media Subsystem 7.8.0.0.1
Writing library : Omneon Media Api (mqx)

Video
ID : 2
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Codec ID : 0D010301020F6101-0401020201312001
Duration : 1mn 15s
Bit rate mode : Constant
Bit rate : 1 798 Kbps
Width : 1 920 pixels
Height : 2 160 pixels
Original height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 29.970 (30000/1001) fps
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan type, store method : Separated fields
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.014
Stream size : 16.1 MiB (53%)
Color range : Limited

Audio
ID : 3
Format : PCM
Format settings, Endianness : Little
Format settings, wrapping mode : Frame (BWF)
Codec ID : 0D01030102060100
Duration : 1mn 15s
Bit rate mode : Constant
Bit rate : 1 536 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Frame rate : 29.970 fps (1601.6 spf)
Bit depth : 16 bits
Stream size : 13.7 MiB (45%)

Other #1
ID : 1-Material
Type : Time code
Format : MXF TC
Time code of first frame : 00:00:00:00
Time code settings : Material Package
Time code, striped : Yes

Other #2
ID : 1-Source
Type : Time code
Format : MXF TC
Time code of first frame : 00:00:00:00
Time code settings : Source Package
Time code, striped : Yes

pandy
Posts: 91
Joined: Mon Feb 24, 2014 1:46 pm

Re: AVC H264 to MXF for Harmonic Omneon

Post by pandy » Tue May 22, 2018 10:43 am

You may wish to refine h.264 settings by using proprietary configuration for libx264 by using command

Code: Select all

-x264-params
.
As i see your pursuing 19Mbps for US 8-VSB, seem that for source you wish to use delivered bitrate was around 2Mbps.
You may wish to use instead bitrate a quality with maximum peak bitrate (it will require to configure vbv buffer size and other related parameters), it may be not possible to reach high bitrate case if source complexity is low (coding gain is high).
My way to deal with such issue is to add small number of noise to luma plane - it will help to stabilize quantizer and will raise bitrate.

btw - are you sure about your video size? 1920x2160 seem to be non standard.

If your goal is consumer HD with HW decoders then i would strongly advise to follow ge3neral BD compliance settings.
I use something like this:
@SET x264opts="crf=%vq%:vbv_maxrate=10240:vbv_bufsize=5120:level=4.0:qpmin=12:ref=3:cabac=1:tff=1:interlaced=0:fake-interlaced=1:no_psnr=1:no_ssim=1:bluray_compat=1:open-gop=0:pic_struct=1:aud=1:nal_hrd=vbr:force_cfr=1:fullrange=off:overscan=show:colorprim=bt709:transfer=bt709:colormatrix=bt709:stitchable=0"

marq1968
Posts: 2
Joined: Wed May 16, 2018 7:07 pm

Re: AVC H264 to MXF for Harmonic Omneon

Post by marq1968 » Fri May 25, 2018 3:23 pm

Thanks I'll give that a try. My video size really should be 1920 x 1080

Post Reply