Skip to content

Commit

Permalink
update for chh1 generation - cta-wave/Test-Content#38
Browse files Browse the repository at this point in the history
  • Loading branch information
rbouqueau committed May 12, 2023
1 parent a5672f1 commit b6c4019
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
13 changes: 10 additions & 3 deletions encode_dash.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def dash_package_command(self, index_v, index_a, output_file):
#### input: Input file name. The media type mentioned in “type” will be extracted from this input file for the Representation
#### codec: codec value for the media. Can be “h264”, “h265”, “aac”, or "copy" to disable transcoding.
#### bitrate: encoding bitrate for the media in kbits/s
#### cmaf: cmaf profile that is desired. Supported ones are avcsd, avchd, avchdhf (taken from 23000-19 A.1)
#### cmaf: cmaf profile that is desired. Supported ones are avcsd, avchd, avchdhf, chh1 (taken from 23000-19 A.1)
#### res: resolution width and resolution height provided as “wxh”
#### fps: framerate
#### sar: aspect ratio provided as “x/y”
Expand Down Expand Up @@ -417,6 +417,8 @@ def form_command(self, index):
input_file_command += ":#IsoBrand=cfhd"
elif self.m_cmaf_profile == "avchdhf":
input_file_command += ":#IsoBrand=chdf"
elif self.m_cmaf_profile == "chh1":
input_file_command += ":#IsoBrand=chh1"
elif self.m_cmaf_profile == "caac":
input_file_command += ":#IsoBrand=caac"
# other media need to have the brand embedded in the source
Expand All @@ -427,6 +429,8 @@ def form_command(self, index):
if self.m_media_type in ("v", "video"):
# Resize
command += "ffsws:osize=" + self.m_resolution_w + "x" + self.m_resolution_h
if self.m_cmaf_profile == "chh1":
command += ":ofmt=yuv420_10"
command += ":SID=" + "GEN" + self.m_id

# Encode
Expand All @@ -438,8 +442,11 @@ def form_command(self, index):
if self.m_num_b_frames != 0:
command += ":b_strategy=0"
command += ":fintra=" + self.m_segment_duration
command += ":gop=" + self.m_segment_duration
command += ":profile=" + self.m_profile
if self.m_cmaf_profile == "chh1":
command += ":profile=" + self.m_profile + "10"
else:
command += ":gop=" + self.m_segment_duration
command += ":profile=" + self.m_profile
command += ":color_primaries=" + self.m_color_primary
command += ":color_trc=" + self.m_color_primary
command += ":colorspace=" + self.m_color_primary
Expand Down
2 changes: 1 addition & 1 deletion run-all.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# More at https://github.com/cta-wave/dpctf-tests/issues/59

# Current subfolder
batch_folder = "2023-04-28/"
batch_folder = "2023-05-12/"

# Mezzanine characteristics:
class InputContent:
Expand Down
2 changes: 1 addition & 1 deletion switching_sets_single_track.csv
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ Stream ID,mezzanine radius,pic timing,VUI timing,sample entry,CMAF frag dur,init
33,A1_480x270,TRUE,FALSE,avc1,2,regular,duration,480x270,0.5,400,60,cfhd
34,A1_480x270,TRUE,FALSE,avc1,2,regular,duration,480x270,0.25,300,60,cfhd
audio,A1_480x270,FALSE,FALSE,avc1,2,regular,duration,480x270,0.25,128,60,caac
1,L1_1920x1080,TRUE,FALSE,hvc1,2,regular,duration,1920x1080,0.5,3500,30,chh1
1,L1_1920x1080,FALSE,TRUE,hvc1,2,regular,duration,1920x1080,0.5,3500,30,chh1
LD,LD1_1920x1080,TRUE,FALSE,avc1,2,regular,duration,1920x1080,0.5,5100,7200,cfhd

0 comments on commit b6c4019

Please sign in to comment.