mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-29 13:42:37 +00:00
fix ffmpeg metadatapp
This commit is contained in:
parent
149254d0d5
commit
39c68260c0
1 changed files with 5 additions and 1 deletions
|
@ -464,7 +464,11 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
|
||||||
filename = info['filepath']
|
filename = info['filepath']
|
||||||
temp_filename = prepend_extension(filename, 'temp')
|
temp_filename = prepend_extension(filename, 'temp')
|
||||||
|
|
||||||
|
if info['ext'] == u'm4a':
|
||||||
|
options = ['-vn', '-acodec', 'copy']
|
||||||
|
else:
|
||||||
options = ['-c', 'copy']
|
options = ['-c', 'copy']
|
||||||
|
|
||||||
for (name, value) in metadata.items():
|
for (name, value) in metadata.items():
|
||||||
options.extend(['-metadata', '%s=%s' % (name, value)])
|
options.extend(['-metadata', '%s=%s' % (name, value)])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue