fix: add ffmpeg flags fix frame delay
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build Worker Base and Application Images / check-base-changes (push) Successful in 7s
				
			
		
			
				
	
				Build Worker Base and Application Images / build-base (push) Has been skipped
				
			
		
			
				
	
				Build Worker Base and Application Images / build-docker (push) Successful in 2m58s
				
			
		
			
				
	
				Build Worker Base and Application Images / deploy-stack (push) Successful in 14s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build Worker Base and Application Images / check-base-changes (push) Successful in 7s
				
			Build Worker Base and Application Images / build-base (push) Has been skipped
				
			Build Worker Base and Application Images / build-docker (push) Successful in 2m58s
				
			Build Worker Base and Application Images / deploy-stack (push) Successful in 14s
				
			This commit is contained in:
		
							parent
							
								
									fa0f865319
								
							
						
					
					
						commit
						31bc91d57b
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -115,10 +115,17 @@ class FFmpegRTSPReader(VideoReader):
 | 
			
		|||
            # DO NOT REMOVE
 | 
			
		||||
            '-hwaccel', 'cuda',
 | 
			
		||||
            '-hwaccel_device', '0',
 | 
			
		||||
            # Real-time input flags
 | 
			
		||||
            '-fflags', 'nobuffer+genpts+discardcorrupt',
 | 
			
		||||
            '-flags', 'low_delay',
 | 
			
		||||
            '-max_delay', '0',             # No reordering delay
 | 
			
		||||
            # RTSP configuration
 | 
			
		||||
            '-rtsp_transport', 'tcp',
 | 
			
		||||
            '-i', self.rtsp_url,
 | 
			
		||||
            # Output configuration (keeping BMP)
 | 
			
		||||
            '-f', 'image2pipe',  # Output images to pipe
 | 
			
		||||
            '-vcodec', 'bmp',    # BMP format with header containing dimensions
 | 
			
		||||
            '-vsync', 'passthrough',       # Pass frames as-is
 | 
			
		||||
            # Use native stream resolution and framerate
 | 
			
		||||
            '-an',               # No audio
 | 
			
		||||
            '-'                  # Output to stdout
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue