mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-05 02:52:50 +08:00
parent
ad0c0ad3b4
commit
13fcf981c0
@ -216,7 +216,7 @@ class FFmpegExtractAudioPP(FFmpegPostProcessor):
|
|||||||
# Lossless, but in another container
|
# Lossless, but in another container
|
||||||
acodec = 'copy'
|
acodec = 'copy'
|
||||||
extension = 'm4a'
|
extension = 'm4a'
|
||||||
more_opts = ['-bsf:a', 'aac_adtstoasc']
|
more_opts = ['-bsf:a', 'aac_adtstoasc', '-movflags', 'faststart']
|
||||||
elif filecodec in ['aac', 'mp3', 'vorbis', 'opus']:
|
elif filecodec in ['aac', 'mp3', 'vorbis', 'opus']:
|
||||||
# Lossless if possible
|
# Lossless if possible
|
||||||
acodec = 'copy'
|
acodec = 'copy'
|
||||||
@ -567,7 +567,7 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
|
|||||||
temp_filename = prepend_extension(filename, 'temp')
|
temp_filename = prepend_extension(filename, 'temp')
|
||||||
|
|
||||||
if info['ext'] == 'm4a':
|
if info['ext'] == 'm4a':
|
||||||
options = ['-vn', '-acodec', 'copy']
|
options = ['-vn', '-acodec', 'copy', '-movflags', 'faststart']
|
||||||
else:
|
else:
|
||||||
options = ['-c', 'copy']
|
options = ['-c', 'copy']
|
||||||
|
|
||||||
@ -619,7 +619,7 @@ class FFmpegFixupM4aPP(FFmpegPostProcessor):
|
|||||||
filename = info['filepath']
|
filename = info['filepath']
|
||||||
temp_filename = prepend_extension(filename, 'temp')
|
temp_filename = prepend_extension(filename, 'temp')
|
||||||
|
|
||||||
options = ['-c', 'copy', '-f', 'mp4']
|
options = ['-c', 'copy', '-f', 'mp4', '-movflags', 'faststart']
|
||||||
self._downloader.to_screen('[ffmpeg] Correcting container in "%s"' % filename)
|
self._downloader.to_screen('[ffmpeg] Correcting container in "%s"' % filename)
|
||||||
self.run_ffmpeg(filename, temp_filename, options)
|
self.run_ffmpeg(filename, temp_filename, options)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user