I'm trying to capture video from webcam. I tried with codec libx264 and rawvideo but both result in slow speed (about 0.5).
I'm using Windows 10, intel core i5, 8gb ram. download ffmpeg from: https://www.gyan.dev/ffmpeg/builds/
I use this command:
output:Code:ffmpeg ^ -f dshow -r 5 -s 640x480 -i video="Sony Visual Communication Camera" ^ -f rawvideo output.raw
[Attachment 66797 - Click to enlarge]
task manager: cpu, ram, disk basically low.
If I try recoding with command above and change fps to 30: "-r 30" . the result is: fps 7.9, speed 0.261. cpu usage is still low about 0.1%.
But I can easily record 30fps webcam using Directshow GraphEdit:
[Attachment 66798 - Click to enlarge]
So my question is why does ffmpeg produce such poor performance even with 5 fps? Any help is appreciated.
		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 3 of 3
			
		- 
	
- 
	try ffmpeg -f dshow -s 640x480 -r 30 see here - https://www.bogotobogo.com/VideoStreaming/ffmpeg_webcam_capture_Windows_Linux.php 
- 
	@october262 I believe I said trying with -r 30 in my first post. But unfortunately, it didn't work. the speed is around 0.3 and fps is 8. 
Similar Threads
- 
  Can ffmpeg be throttled down to not use all of the CPU cycles?By BosseB in forum Video Streaming DownloadingReplies: 8Last Post: 14th Mar 2021, 10:53
- 
  CPU benchmark (HardInfo) - what result most relevant for x265 encodingBy Prototype v1.0 in forum ComputerReplies: 5Last Post: 24th Jan 2021, 19:41
- 
  Optimising Performance of NLMeans in FFmpegBy Guanadon in forum Newbie / General discussionsReplies: 5Last Post: 12th Oct 2020, 10:24
- 
  i7-9700K but extremely low performance enconding of FFMPEG/x264?By marcorocchini in forum Newbie / General discussionsReplies: 48Last Post: 26th Dec 2018, 19:47
- 
  What pc notebook best performance to encode with ffmpeg x264?By marcorocchini in forum Newbie / General discussionsReplies: 2Last Post: 10th Sep 2018, 10:58


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			

 Quote
 Quote