mirror of
				https://github.com/k4yt3x/video2x.git
				synced 2025-11-04 06:31:00 +01:00 
			
		
		
		
	removed fps_mode since it causes incompatibility issues
This commit is contained in:
		
							parent
							
								
									44238aed35
								
							
						
					
					
						commit
						176ae90bbb
					
				@ -79,7 +79,7 @@ class VideoDecoder:
 | 
			
		||||
        self.decoder = subprocess.Popen(
 | 
			
		||||
            ffmpeg.compile(
 | 
			
		||||
                ffmpeg.input(input_path, r=frame_rate)["v"]
 | 
			
		||||
                .output("pipe:1", format="rawvideo", pix_fmt="rgb24", fps_mode="cfr")
 | 
			
		||||
                .output("pipe:1", format="rawvideo", pix_fmt="rgb24")
 | 
			
		||||
                .global_args("-hide_banner")
 | 
			
		||||
                .global_args("-nostats")
 | 
			
		||||
                .global_args("-nostdin")
 | 
			
		||||
 | 
			
		||||
@ -89,7 +89,6 @@ class VideoEncoder:
 | 
			
		||||
                    str(output_path),
 | 
			
		||||
                    vcodec="libx264",
 | 
			
		||||
                    scodec="copy",
 | 
			
		||||
                    fps_mode="cfr",
 | 
			
		||||
                    pix_fmt="yuv420p",
 | 
			
		||||
                    crf=17,
 | 
			
		||||
                    preset="veryslow",
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user