mirror of
				https://github.com/facebookresearch/pytorch3d.git
				synced 2025-11-04 18:02:14 +08:00 
			
		
		
		
	suppress ffmpeg output
Summary: Restore the suppression of ffmpeg output. Reviewed By: shapovalov Differential Revision: D40296595 fbshipit-source-id: 41b2c14b6f6245f77e0ef6cc94fa7b41fbb83e33
This commit is contained in:
		
							parent
							
								
									f13086779d
								
							
						
					
					
						commit
						3b3306f9b4
					
				@ -116,7 +116,7 @@ class VideoWriter:
 | 
			
		||||
        self.frames.append(outfile)
 | 
			
		||||
        self.frame_num += 1
 | 
			
		||||
 | 
			
		||||
    def get_video(self) -> str:
 | 
			
		||||
    def get_video(self, quiet: bool = True) -> str:
 | 
			
		||||
        """
 | 
			
		||||
        Generate the video from the written frames.
 | 
			
		||||
 | 
			
		||||
@ -155,8 +155,12 @@ class VideoWriter:
 | 
			
		||||
                "yuv420p",
 | 
			
		||||
                self.out_path,
 | 
			
		||||
            ]
 | 
			
		||||
 | 
			
		||||
            subprocess.check_call(args)
 | 
			
		||||
            if quiet:
 | 
			
		||||
                subprocess.check_call(
 | 
			
		||||
                    args, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL
 | 
			
		||||
                )
 | 
			
		||||
            else:
 | 
			
		||||
                subprocess.check_call(args)
 | 
			
		||||
        else:
 | 
			
		||||
            raise ValueError("no such output type %s" % str(self.output_format))
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user