Page 2 of 2

Re: Encode to XDCAMHD 422 Freeze Frame

Posted: Sat Jul 28, 2018 6:03 am
by admin
Can you please try these encoding options in a custom encoder and see how you NLE reacts?

-c:v mpeg2video -r 25 -pix_fmt yuv422p -aspect 16:9 -intra_vlc 1 -b:v 50000000 -minrate 50000000 -maxrate 50000000 -bufsize 17825792 -rc_init_occupancy 17825792 -bf 2 -non_linear_quant 1 -seq_disp_ext 1 -video_format component -color_range 1 -color_primaries 1 -color_trc 1 -colorspace 1 -chroma_sample_location topleft -signal_standard 4 -dc 8 -qmin 3 -qmax 28 -g 12 -field_order tt -top 1 -flags +ildct+ilme -alternate_scan 1 -intra_matrix 8,10,22,27,29,37,37,40,9,12,14,28,29,37,39,40,9,14,27,31,34,37,40,48,12,22,27,29,34,37,40,58,26,27,29,34,37,38,48,58,26,27,29,36,38,38,48,69,18,27,34,36,38,38,48,69,26,26,34,34,38,40,58,79 -inter_matrix 16,20,22,26,28,32,32,36,18,20,22,28,28,32,34,36,18,22,26,30,30,32,36,38,20,22,26,28,30,32,36,42,24,26,28,30,32,34,38,40,24,26,28,32,34,34,38,42,24,26,30,32,34,34,38,42,24,24,30,30,34,36,40,44 -metadata "creation_time=now"

-steinar

Re: Encode to XDCAMHD 422 Freeze Frame

Posted: Tue Jul 31, 2018 10:40 am
by Jakida
I am posting media info output. As you can see on Audio tab, there is only 1 audio track includes 32 channels. Native XDCAM codec should have 8 mono audio channels.
And more thing is Overall bitrate, Video has 50mbit but why Audio bitrate is too high ?

General
Complete name : Y:\INCOMING\Deal\mp4 test.mxf
Format : MXF
Commercial name : XDCAM HD422
Format version : 1.3
Format profile : OP-1a
Format settings : Closed / Complete
File size : 111 MiB
Duration : 12s 440ms
Overall bit rate : 74.9 Mbps
Encoded date : 2018-07-31 10:36:12.000
Writing application : FFmpeg OP1a Muxer 58.17.101.0.0

Video
ID : 2
Format : MPEG Video
Commercial name : XDCAM HD422
Format version : Version 2
Format profile : 4:2:2@High
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Format settings, GOP : M=3, N=12
Format settings, picture structure : Frame
Format settings, wrapping mode : Frame
Codec ID : 0D01030102046001-0401020201040300
Duration : 12s 440ms
Bit rate : 50.0 Mbps
Width : 1 256 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Standard : Component
Color space : YUV
Chroma subsampling : 4:2:2
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 2.212
Time code of first frame : 00:00:00:00
Time code source : Group of pictures header
GOP, Open/Closed : Open
GOP, Open/Closed of first frame : Closed
Stream size : 74.1 MiB (67%)
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 3
Format : PCM
Format settings, Endianness : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 12s 440ms
Bit rate mode : Constant
Bit rate : 24.6 Mbps
Channel(s) : 32 channels
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Stream size : 36.4 MiB (33%)

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

Other #3
Type : Time code
Format : SMPTE TC
Muxing mode : SDTI
Time code of first frame : 00:00:00:00

Re: Encode to XDCAMHD 422 Freeze Frame

Posted: Tue Jul 31, 2018 11:59 am
by admin
Ok, lets sort some things out.

First, you are right about the audio if you're strictly reffering to the Sony XDCAM-HD 422 specs. It's 8 mono channel 24 bit. BUT, that's not to say you are limited to those specs. There are other implementations like the Canon XF which creates XDCAM-HD like files where the video is practically indistinguishable from the Sony flavor. However, Canon XF does not use 8 mono channels but might use only two in 16 bit. And others have their variants. The common part is the video but audio implementations may vary. So with FFAStrans you have the flexibility to accommodate to various implementations, including Sonys. It's up to the user to decide.

Second, the reason you have 32 audio channels in one stream is probably because you have used the "A/V Meida" decoder. It will always output 32 channels in one stream. This is not a problem as the encoders will still comply with audio layout specified, unless chosen "Same as source". But obviously, the output from mediainfo comes from a custom ffmpeg encoding and it does not look like you have used any audio mappings in your command. Anyway, the extra bitrate is exactly what 32 channels of audio in 16 bit 48 kHz adds up to. So there is nothing wrong with it, except that it does not comply with the Sony XDCAM-HD 422 specs.

Third, the command line I gave you was for 1080i50 material, which seemed to be the setting in you NLE but it would not resize if your input was f.ex. 720. So what you have now is a 720 raster file with interlacing. Sure, you can create it but it really does not excist in any specs. 720 rasters are always progressive. It's not direcly related to the other issues but I just wanted to bring it to your attention in case you use this file for video tests and find errors.

Is it possible for you to create a 1080i50 file using the custom ffmpeg encoder with the video encoding options I gave you that works OK with your NLE?

-steinar

Re: Encode to XDCAMHD 422 Freeze Frame

Posted: Tue Jul 31, 2018 1:40 pm
by Jakida
Thank you for your detailed answer.

For your question, video encoding options are correct. I've looked every frame that i converted couple videos like *.mov, *.mpg and *.mp4 files, there is no freeze or empty frame.

Re: Encode to XDCAMHD 422 Freeze Frame

Posted: Tue Jul 31, 2018 8:19 pm
by admin
Ok, so this suggest there might be a problem with the MXF wrapper, not the video essence. Could you please try a transwarp using bmxtranswrap? Use the inbuilt XDCAM-HD encoder for this test.

viewtopic.php?f=4&t=714#p2707

-steinar