Custom ffmpeg - XDCAMHD 1080i50

Questions and answers on how to get the most out of FFAStrans
Post Reply
Tomical
Posts: 5
Joined: Wed Apr 08, 2020 10:39 am

Custom ffmpeg - XDCAMHD 1080i50

Post by Tomical » Wed Apr 08, 2020 10:53 am

Hello,

I would like to use "custom ffmpeg" to burn subtitles and transcode my file to XDCAMHD 1080i50. I'm almost there but I'm missing command lines for example to have the right color space (BT. 709), interlaced ==> top field first, etc.
Here are the properties I would like to have for my output file:

Video
ID : 512
Format : MPEG Video
Commercial name : XDCAM HD422
Format version : Version 2
Format profile : 4:2:2@High
Format settings : CustomMatrix / BVOP
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 : 3 min 55 s
Bit rate mode : Constant
Bit rate : 50.0 Mb/s
Width : 1 920 pixels
Height : 1 080 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) : 0.965
Time code of first frame : 00:00:00:00
Time code source : Group of pictures header
Stream size : 1.37 GiB (97%)
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709

Actually in my custom ffmpeg :
Video codec : mpeg2video Audio codec : pcm_s16le
Bitrate : 50000 Bitrate : 768

Options =
-map 0:0 -map 0:1 -map 0:2 -vf "subtitles='c\:\\subs\\%s_original_name%.srt':force_style='FontName=Arial,fontsize=16,Alignment=2,outlinecolour=&h80000000,MarginL=5,MarginV=25'"


If someone has the good command lines, it would be great !!!

Thanks

emcodem
Posts: 586
Joined: Wed Sep 19, 2018 8:11 am

Re: Custom ffmpeg - XDCAMHD 1080i50

Post by emcodem » Wed Apr 08, 2020 11:19 am

Aye @Tomical
welcome to the forum and thank you for using ffastrans!

Thats a good question but as i see it, what you want to do is to copy the command that is generated by the xdcamhd processor. To get the full command, follow this thread:
viewtopic.php?f=5&t=849&p=4486&hilit=beginners#p3641

This tutorial was written for version 9.4, these days it is best if you just use the webinterface to access the logs because the logs are in JSON format now...
Note that lots of parameters are calculated dynamically and depend on the source file, i am sure you figure that out on your own :-)

admin
Site Admin
Posts: 1442
Joined: Sat Feb 08, 2014 10:39 pm

Re: Custom ffmpeg - XDCAMHD 1080i50

Post by admin » Wed Apr 08, 2020 4:11 pm

Hi Tomical,

These encoding parameters should get you going:

-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 -color_primaries bt709 -color_trc bt709 -colorspace bt709 -seq_disp_ext 1 -video_format component -color_range 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 -c:a pcm_s24le -ar:a 48000

Note that this says nothing about audio mapping or any kind of filter processing. These are just the parameters needed to make a compilant(ish) XDCAM-HD 422 file.

-steinar

Tomical
Posts: 5
Joined: Wed Apr 08, 2020 10:39 am

Re: Custom ffmpeg - XDCAMHD 1080i50

Post by Tomical » Thu Apr 09, 2020 8:07 am

Hello,

Thank you very much, everything works !

Regards,
Thomas

Post Reply