mediafilesegmenter error with hvc1

I'm using mediafilesegmenter with input as a fragmented mp4 hvc1 file and got this error:

Nov 23 2023 17:48:25.948: Fragmented MP4 is the only supported container format for the segmentation of HEVC content Nov 23 2023 17:48:25.948: Unsupported media type 'hvc1' in track 0 Nov 23 2023 17:48:25.948: Unable to find any valid tracks to segment. Segmenting failed (-12780).

Post not yet marked as solved Up vote post of liao1105 Down vote post of liao1105
486 views

Replies

Hey did you get around this? Additionally, what file types were you looking to segment?

I'm running into this error as well with Version 1.20.9 (618.21b-230614), while trying to segment MV-HEVC which uses the mvhevc1440x1440 AVOutputSettingsPreset with some overrides. However, I my codec key is still hvc1 from the preset. What is confusing is that the hls recommendations 1.10 recommend hvc1.

Provided your source is MP4 and you are converting to fragmented MP$, I came to a conclusion on the below post.

Stereo video HLS - https://developer.apple.com/forums/thread/743503?answerId=775862022#775862022

I arrived at a solution. I came to realized that fMP4 (fragmented MP4) in the error was in reference to the output format rather than the source format. mediafilesegmenter defaults to ts segmentation rather than fMP4. I added -iso-fragmented option to the command so it looked similar to the demo script below.

mediafilesegmenter -iso-fragmented -t 4 -b https://www.example.com/spatial_video_stream/ -f ~/path/to/dir/with/file spatial_video.mov