mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	Determine merge container better (See desc) (#1482)
* Determine the container early. Closes #4069 * Use codecs instead of just file extensions * Obey `--prefer-free-formats` * Allow fallbacks in `--merge-output` Authored by: pukkandan, selfisekai
This commit is contained in:
		 Lauren N. Liberda
					Lauren N. Liberda
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							fe0918bb65
						
					
				
				
					commit
					fc61aff41b
				
			| @@ -228,7 +228,8 @@ def validate_options(opts): | ||||
|         validate_regex('format sorting', f, InfoExtractor.FormatSort.regex) | ||||
| 
 | ||||
|     # Postprocessor formats | ||||
|     validate_in('merge output format', opts.merge_output_format, FFmpegMergerPP.SUPPORTED_EXTS) | ||||
|     validate_regex('merge output format', opts.merge_output_format, | ||||
|                    r'({0})(/({0}))*'.format('|'.join(map(re.escape, FFmpegMergerPP.SUPPORTED_EXTS)))) | ||||
|     validate_regex('audio format', opts.audioformat, FFmpegExtractAudioPP.FORMAT_RE) | ||||
|     validate_in('subtitle format', opts.convertsubtitles, FFmpegSubtitlesConvertorPP.SUPPORTED_EXTS) | ||||
|     validate_regex('thumbnail format', opts.convertthumbnails, FFmpegThumbnailsConvertorPP.FORMAT_RE) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user