forked from kenzuya/unshackle
fix(tracks): keep the Dolby Vision record when remuxing video with ffmpeg
The MP4 muxer drops dvcC/dvvC unless -strict unofficial is set, so a repacked DV track muxed as plain HEVC and lost its DV tag
This commit is contained in:
@@ -1160,6 +1160,8 @@ class Track:
|
||||
"bitexact",
|
||||
"-codec",
|
||||
"copy",
|
||||
"-strict",
|
||||
"unofficial",
|
||||
]
|
||||
)
|
||||
if bsf:
|
||||
|
||||
@@ -392,6 +392,8 @@ class Video(Track):
|
||||
original_path,
|
||||
"-codec",
|
||||
"copy",
|
||||
"-strict",
|
||||
"unofficial",
|
||||
"-bsf:v",
|
||||
f"{filter_key}=video_full_range_flag={range_}",
|
||||
str(output_path),
|
||||
@@ -503,6 +505,8 @@ class Video(Track):
|
||||
str(original_path),
|
||||
"-codec",
|
||||
"copy",
|
||||
"-strict",
|
||||
"unofficial",
|
||||
"-bsf:v",
|
||||
bsf,
|
||||
str(output_path),
|
||||
|
||||
Reference in New Issue
Block a user