mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	Ensure all streams are copied when using ffmpeg
This commit is contained in:
		| @@ -94,7 +94,8 @@ class EmbedThumbnailPP(FFmpegPostProcessor): | ||||
|             thumbnail_filename = 'cover.jpg' | ||||
|  | ||||
|             options = [ | ||||
|                 '-c', 'copy', '-attach', thumbnail_filename, '-metadata:s:t', 'mimetype=image/jpeg'] | ||||
|                 '-c', 'copy', '-map', '0', | ||||
|                 '-attach', thumbnail_filename, '-metadata:s:t', 'mimetype=image/jpeg'] | ||||
|  | ||||
|             self._downloader.to_screen('[ffmpeg] Adding thumbnail to "%s"' % filename) | ||||
|  | ||||
| @@ -140,6 +141,6 @@ class EmbedThumbnailPP(FFmpegPostProcessor): | ||||
|                 os.remove(encodeFilename(filename)) | ||||
|                 os.rename(encodeFilename(temp_filename), encodeFilename(filename)) | ||||
|         else: | ||||
|             raise EmbedThumbnailPPError('Only mp3 and m4a/mp4 are supported for thumbnail embedding for now.') | ||||
|             raise EmbedThumbnailPPError('Only mp3, mkv, m4a and mp4 are supported for thumbnail embedding for now.') | ||||
|  | ||||
|         return [], info | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan