Open
Description
Hi, I'm following the steps at https://brandur.org/fragments/ffmpeg-h265 to allow ffmpeg-converted H.265 videos to be playable on QuickTime. However, I'm still unsure on how to set that properly using this library.
In a batch processing Go script, I decided to use the following examples to convert H.264 videos to H.265.
trans.MediaFile().SetPreset("fast")
trans.MediaFile().SetVideoCodec("libx265")
trans.MediaFile().SetVideoProfile("main")
trans.MediaFile().SetTags(map[string]string{"p": "hvc1"})
trans.MediaFile().SetFrameRate(VIDEO_FRAME_RATE)
trans.MediaFile().SetAudioCodec("aac")
trans.MediaFile().SetAudioRate(AUDIO_SAMPLING_RATE)
In this case, the tag is still not applied properly.
I've also replaced trans.MediaFile().SetTags(map[string]string{"p": "hvc1"})
with others, including:
trans.MediaFile().SetTags(map[string]string{"hvc1": ""})
(same behavior)trans.MediaFile().SetRawOutputArgs([]string{"-tag:v hvc1"})
- Error: failed finish ffmpeg ([-y -i videos/orig/58.mp4 -r 30 -ar 44100 -c:v libx265 -profile:v main -c:a aac -preset fast -tag:v hvc1 -hls_list_size 0 videos/h265-aac-mp4/58.mp4]) with exit status 1 message
- However, running
ffmpeg -y -i videos/orig/58.mp4 -r 30 -ar 44100 -c:v libx265 -profile:v main -c:a aac -preset fast -tag:v hvc1 -hls_list_size 0 videos/h265-aac-mp4/58.mp4
manually works and produces the QuickTime-playable HEVC video.
Metadata
Metadata
Assignees
Labels
No labels