Hello:
I am trying to capture the content of the secondary monitor on Windows10 with the typical command:
If the secondary monitor is to the left of the main desktop, it captures both monitors with a width of 3840px (1920+1920). However, if the secondary monitor is located to the right of the primary monitor, the maximum capture width is 3200px and the second monitor's content appears cropped.Code:ffmpeg -f gdigrab -i desktop -pix_fmt yuv420p output.mp4
I have tried setting an offset to capture only the secondary monitor:
But in this case it doesn't even start capturing it gives me an error indicating that the area to capture exceeds the limits:Code:ffmpeg -f gdigrab -offset_x 1920 -offset_y 0 -video_size 1920x1080 -i desktop -pix_fmt yuv420p output.mp4
However when the secondary monitor is on the left it seamlessly captures the full width of both monitors (3840px). I can 'solve' the problem by placing the monitor (in Windows settings) on the left but it is counter-intuitive because I have the physical monitor on the right.Code:Capture area (1920,0),(3840,1080) extends outside window area (0,0),(3200,1200)desktop: I/O error.
Any suggestions on how to correct this problem?
Thanks
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 4 of 4
Thread
-
-
Yes. That is precisely what I am already doing.
The command works correctly when the secondary monitor is on the left but not when the secondary monitor is on the right.
When it is on the left it captures the 3840px width but when it is on the right it only captures 3200px.
In both cases the total width is the same (1920+1920=3840).
What parameter or option needs to be changed to correct this difference?
Similar Threads
-
VHS directshow capture using ffmpeg
By vidblue in forum Newbie / General discussionsReplies: 8Last Post: 14th Dec 2021, 17:18 -
ffmpeg: tee muxer to monitor a recording in real time, and save it to disk
By Sentinel166 in forum LinuxReplies: 9Last Post: 29th Oct 2021, 08:00 -
Monitor screen video & audio capture
By carlmart in forum CapturingReplies: 4Last Post: 19th Jun 2021, 06:09 -
Terrible picture problem with new monitor and graphic card
By kodec in forum Newbie / General discussionsReplies: 11Last Post: 17th Jun 2018, 14:46 -
ffmpeg: Fixing delay during capture?
By esoul in forum Video Streaming DownloadingReplies: 0Last Post: 31st Mar 2018, 05:35