forked from kenzuya/unshackle
Remove hybrid havc temp file
Add a hybrid track to the track processing list to fix the problem that the hybrid-processed hevc file remains in the temp folder.
This commit is contained in:
@@ -1910,9 +1910,11 @@ class dl:
|
|||||||
|
|
||||||
# Create a new video track for the hybrid output
|
# Create a new video track for the hybrid output
|
||||||
hybrid_track = deepcopy(hdr10_track)
|
hybrid_track = deepcopy(hdr10_track)
|
||||||
|
hybrid_track.id = f"hybrid_{hdr10_track.id}_{resolution}"
|
||||||
hybrid_track.path = hybrid_output_path
|
hybrid_track.path = hybrid_output_path
|
||||||
hybrid_track.range = Video.Range.DV # It's now a DV track
|
hybrid_track.range = Video.Range.DV # It's now a DV track
|
||||||
hybrid_track.needs_duration_fix = True
|
hybrid_track.needs_duration_fix = True
|
||||||
|
title.tracks.add(hybrid_track)
|
||||||
task_tracks.videos = [hybrid_track]
|
task_tracks.videos = [hybrid_track]
|
||||||
|
|
||||||
enqueue_mux_tasks(task_description, task_tracks)
|
enqueue_mux_tasks(task_description, task_tracks)
|
||||||
|
|||||||
Reference in New Issue
Block a user