sxmo_camera.sh: Set cache-secs and demuxer-readahead-secs to 0 to prevent lag
Stops camera stream in mpv from falling behind
This commit is contained in:
		
							parent
							
								
									fbb431bf7a
								
							
						
					
					
						commit
						561122b07c
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -41,6 +41,7 @@ startmpv() {
 | 
				
			||||||
	# in mpv; but this is simpler and more reliable for now.
 | 
						# in mpv; but this is simpler and more reliable for now.
 | 
				
			||||||
	ffmpeg -re -fflags nobuffer -f v4l2 -video_size $RES -i /dev/video1 -f rawvideo - |
 | 
						ffmpeg -re -fflags nobuffer -f v4l2 -video_size $RES -i /dev/video1 -f rawvideo - |
 | 
				
			||||||
	mpv \
 | 
						mpv \
 | 
				
			||||||
 | 
							--cache-secs=0 --demuxer-readahead-secs=0 \
 | 
				
			||||||
		--demuxer-rawvideo-w=$WIDTH --demuxer-rawvideo-h=$HEIGHT \
 | 
							--demuxer-rawvideo-w=$WIDTH --demuxer-rawvideo-h=$HEIGHT \
 | 
				
			||||||
		--untimed --vo=xv --cache-pause=no --no-demuxer-thread \
 | 
							--untimed --vo=xv --cache-pause=no --no-demuxer-thread \
 | 
				
			||||||
		--profile=low-latency --demuxer=rawvideo -vf transpose=$TRANSPOSE \
 | 
							--profile=low-latency --demuxer=rawvideo -vf transpose=$TRANSPOSE \
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue