feat: Preserve metadata during conversion
Added '-map_metadata', '0' to the ffmpeg command to ensure all metadata from the input file is preserved in the output file. This change enhances the output quality by retaining important information such as title, year, and other metadata associated with the media files.
This commit is contained in:
parent
8319851836
commit
53f6da9835
@ -176,7 +176,7 @@ class Video():
|
||||
# Setting ffmpeg
|
||||
args = [
|
||||
'ffmpeg', '-i', self.path + self.filename_origin, '-map', '0:v',
|
||||
'-map', '0:a?', '-map', '0:s?'
|
||||
'-map', '0:a?', '-map', '0:s?', '-map_metadata', '0'
|
||||
]
|
||||
|
||||
# Conversion options
|
||||
@ -193,6 +193,7 @@ class Video():
|
||||
|
||||
# Add mapping for video, audio, and subtitle streams
|
||||
args += ['-c:a', 'copy', '-c:s', 'copy']
|
||||
|
||||
# Conversion output
|
||||
args += [self.path + self.filename_tmp]
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user