CasparCG / server

CasparCG Server is a Windows and Linux software used to play out professional graphics, audio and video to multiple outputs. It has been in 24/7 broadcast production since 2006. Ready-to-use downloads are available under the Releases tab https://casparcg.com.
GNU General Public License v3.0
904 stars 269 forks source link

interlace information is not set in recorder files #660

Closed TKooijmans closed 6 years ago

TKooijmans commented 6 years ago

With CasperCG 2.07 I use this code to record an interlaced HD file (upper field HD1080i50 channel)

ADD 1 FILE "FILENAME.mp4" -b 12000k -preset ultrafast
If you check this file with mediainfo, you can see the proper info and Premiere Pro imports this alright.. image

With CasperCG 2.1 v3440 I use this code

ADD 1 FILE "FILENAME.mp4" -pix_fmt yuv420p -vcodec libx264 -preset ultrafast -tune film -crf 20 it shows this with FileInfo, Premiere Pro does not see this as interlaced upper field, it imports as progressive. How can I set this interlaced upper field option?

image

dimitry-ishenko commented 6 years ago

Shooting in the dark here, but maybe try adding -flags +ildct ffmpeg option

TKooijmans commented 6 years ago

This does not do the trick, for the record, the file are recorded as interlaced video. If we manual overrule fieldsettings in Premiere Pro the file is ok. Only the scan type info is not set correct

TKooijmans commented 6 years ago

just adding -x264opts tff=1 does the trick so ADD 1 FILE "FILENAME.mp4" -pix_fmt yuv420p -vcodec libx264 -preset ultrafast -tune film -crf 20 -x264opts tff=1 Now this works fine for mp4 files but not for recording of MXF files.

TKooijmans commented 6 years ago

This is what I use to record 35mbit MXF files (HDcamEX35 PAL) ADD 1 FILE "FILENAME.MXF" -target xdcamhd422 -vtag xd5c -pix_fmt yuv422p -b 35000k

TKooijmans commented 6 years ago

Ok usefull info for others! ADD 1 FILE "FILENAME.MXF" -b 50000000 -acodec pcm_s24le -vcodec mpeg2video -pix_fmt yuv422p -alternate_scan 1 -g 12 -bf 2 -minrate 50000k -maxrate 50000k -color_primaries bt709 -color_trc 1 -colorspace 1 -f mxf_d10 This creates a 50 Mbit HDCam50 MXF with the right upper field settings

TKooijmans commented 6 years ago

I got above info from the CasperCG board, a small correction to this, you have to remove -f mxf_d10. This belongs to IMX50 format which is SD.

So it should be ADD 1 FILE "FILENAME.MXF" -b 50000000 -acodec pcm_s24le -vcodec mpeg2video -pix_fmt yuv422p -alternate_scan 1 -g 12 -bf 2 -minrate 50000k -maxrate 50000k -color_primaries bt709 -color_trc 1 -colorspace 1

This result in this Premiere Pro info image

ronag commented 6 years ago

Note to self. Need to verify in 2.2

premultiply commented 6 years ago

Interlaced encoding in ffmpeg: -flags +ilme+ildct -field_order tt

ronag commented 6 years ago

You need to manually send the flags in 2.2. -flags:v +ilme+ildct -field_order:v tt.