Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

Short answer: Chrome Headless can save a screenshot of a page, but its --screenshot flag is not a video-frame extractor. For a one-off page image, run Chrome with --headless, --screenshot, and --window-size. To capture a frame from an HTML video, first make the page seek and render the video at the required time, then take the screenshot. Puppeteer is the practical choice when that state must be scripted and repeated.

What Headless Chrome actually captures

The documented command-line screenshot mode captures the rendered target page and writes screenshot.png in the current working directory. It does not accept a video filename or a timestamp and does not promise that a particular decoded video frame has been painted. See the Chrome Headless command-line reference.

That distinction matters because an HTML <video> element is only one part of a page. The browser may still be loading media, the element may be paused, the requested time may not be a keyframe, or an overlay may cover it. A screenshot records whatever Chrome has painted when capture occurs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

One-off page screenshot from the command line

Use the Chrome executable installed on your system. This example sets a 1280×720 viewport and saves screenshot.png:

#1 Best Overall
Guermok Video Capture Card, 4K USB3.0 HDMI to USB C, 1080P 60FPS & 2K 30FPS
  • 【1080P 60FPS Video Capture Card】 This HDMI game capture card is based on USB3.0 high speed transmission port, input resolution up to 4K@30HZ, output resolution up to 2K@30Hz or 1920×1080@60Hz. Type c and USB interface can meet most of the devices in daily life. Easily meet the online capture, real-time recording, online meetings, live gaming and other functions, so you have a better visual enjoyment. Note: For capture use only; requires capture software to function and is not intended for direct screen casting to a monitor or TV
  • 【Ultra Low Latency Screen Sharing】 HDMI capture card is made of good quality aluminum alloy with strong heat dissipation, allowing you to enjoy ultra low latency while live gaming or video recording or live streaming, avoiding blue screens and lag. This HDMI to USBC capture card supports easy recording of good quality audio or HD video and transferring it to your computer or streaming platform, allowing you to record 60 fps HD video directly on your hard drive and real-time preview
  • 【Plug and Play, Easy to Carry】 This HDMI 1080P video capture card does not require any additional drivers or external power supply, just plug and play for fast capture. The capture card is small and lightweight, so you can put it in your bag for emergencies, making it very portable for outdoor live streaming. It's also a great way to share content in game recording, video conference, video recorder and online teaching
  • 【Wide Compatibility USB Capture Card】 Easily streams to Facebook, Youtube or Twitch. With the connection, this HDMI to USB C/3.0 video capture devices can be working on several Operating Systems and various software: Windows 7/ 8/ 10, Mac OS or above, Linux, Android, Laptop, Xbox One, PS3/PS4/PS5, Camera, DVDs, Set Top Box, Webcame, DSLR, Switch/Switch 2, TV BOX, HDTV, Potplayer/VLC, ZOOM, OBS Studio etc.
  • 【Package Content & Note】 1x HD Audio Capture Card , 1x USB 3.0 to USB C Adapter (A-side 3.0, B-side 2.0), 1x user manual. Please note that you need to restart the OBS Studio software after the audio setup is complete, otherwise it will result in no sound output. When using an adapter, if the device is recognized as USB 2.0, try using the other side with the USB-C port. Simply flip the capture card and reconnect it to be recognized as USB 3.0
chrome --headless --screenshot --window-size=1280,720 'https://example.com/page'

On some Linux installations the executable is named google-chrome or chromium. Replace chrome with that path. The output file is created in the directory from which you run the command. Add an explicit output path when your Chrome build supports the corresponding screenshot option, or run the command from a dedicated output directory so automation can find the file reliably.

Wait for a page to finish loading

--timeout=MS sets the maximum wait before Chrome captures. It is useful for a page that reveals its player or other content after a delay:

chrome --headless --screenshot --window-size=1280,720 --timeout=10000 'https://example.com/video'

The timeout is a ceiling, not proof that a video frame is ready. A slow media request can still be incomplete when the screenshot is taken.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Advance timers with virtual time

--virtual-time-budget=MS fast-forwards time-dependent JavaScript such as setTimeout and setInterval:

chrome --headless --screenshot --window-size=1280,720 --virtual-time-budget=5000 'https://example.com/countdown'

This can expose content controlled by page timers. Chrome’s documentation does not describe it as seeking an HTML video, synchronizing a decoder, or guaranteeing a frame at a requested timestamp. Treat it as a page-script timing control, not a video extraction API.

Rank #2
Capture Card, USB Video Capture Card Device, Audio Video Converter Grabber for RCA to USB-Convert VHS Mini DV VCR Hi8 DVD to Digital, for PC TV Tape Player Camcorder, MAC Windows Vista Compatible
  • AV TO USB Converter: Capture videos and audios from VHS, VCR, Hi8, DV tapes to a PC, with the help of our USB Video Converter. Save room while digitizing your favorite old memories
  • Quality Capture Card: Our USB Video Capture Card converting anolog RCA composite input into HD 720P USB output and capturing audio without any sound card. Advanced signal processing technology provides you with great precision, colors, resolutions, and details.
  • Plug and Play: Automatically install the driver once you hook up this RCA to USB Converter to a PC. No external power is needed. User-friendly and easy to operate
  • Wide Compatibility: The Video Capture Card can work with video devices with RCA connector or S-Video connector, such as VHS, VCR, Hi8, camcorder, compatible with Windows and Mac OS. Support video formats like NTSC, PAL, and support brightness, contrast, hue, and saturation control
  • Note: The Video Converter is used with acquisition software. We recommend OBS Studio or PotPlayer for Windows, and QuickTime Player for Mac. They can be downloaded for free online. Please operate according to the steps in User Manual or contact us if you have any questions

Why an exact video timestamp needs page logic

To obtain a meaningful video frame, the page normally has to perform these operations:

  1. Find the correct <video> element (or the player’s internal element).
  2. Ensure metadata and media are available.
  3. Set currentTime to the desired position.
  4. Wait for the seek operation and for a decoded frame to be painted.
  5. Hide controls or overlays if they should not appear.
  6. Ask Chrome to screenshot the resulting page or element.

Not every player exposes a plain video element. Cross-origin media, DRM, canvas-based players, advertisements, lazy mounting, and site-specific controls can all change the workflow. The official Headless documentation establishes the screenshot and timing flags, but it does not provide a dedicated video-frame command or a universal seek-and-capture recipe. Test the target page and regard the timestamp as an application-level request rather than a guarantee of exact decoded-frame selection.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use Puppeteer for repeatable video-page captures

Puppeteer is Chrome’s JavaScript automation library and includes screenshot support. It lets you navigate, run page code, wait for state, and capture repeatedly. The current Headless documentation shows Puppeteer launching Headless Chrome; modern Headless uses the regular Chrome implementation, while the old standalone Headless Shell was separated from the Chrome binary starting with Chrome 132. See Chrome Headless mode.

Install and run a basic capture

mkdir headless-video-capture
cd headless-video-capture
npm init -y
npm install puppeteer
const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch({headless: true});
  const page = await browser.newPage();
  await page.setViewport({width: 1280, height: 720, deviceScaleFactor: 1});
  await page.goto('https://example.com/video', {waitUntil: 'networkidle2', timeout: 60000});
  await page.screenshot({path: 'page.png', fullPage: false});
  await browser.close();
})();

networkidle2 is a navigation heuristic, not a statement that a video has decoded the requested frame. For media-heavy pages, add a page-specific readiness check.

Seek a video, then screenshot

The following pattern illustrates page-level control for a normal HTML video. Change the URL, selector, and timestamp for your page:

Rank #3
Video Capture Card, 4K USB3.0 HDMI to USB C, 1080P60FPS HDMI Capture Card for Streaming, Gaming, Video Recording Compatible with Switch, Xbox, PS4/5, OBS,iPad Mac OS Windows,Camera, Zoom(Silver)
  • 【4K HDMI Input, 2K@30Hz Recording】Powered by a true USB 3.0 high-speed interface, the capture card supports up to 4K@30Hz HDMI input and records at 2K@30Hz or 1080P@60Hz. Perfect for gamers, streamers, and professionals who need crisp, smooth video for live streaming, gameplay recording, or online meetings.
  • 【Ultra Low Latency Screen Sharing】Built with a premium aluminum alloy shell and advanced chipset for stable heat dissipation, ensuring ultra-low latency transmission. Capture high-quality video and dual-channel audio in real time—no lag, no frame drop—ideal for Twitch, YouTube, or OBS streaming.
  • 【Easy Plug and Play, Compact & Portable】No driver or external power required—just plug and play via USB 3.0 or Type-C connection to your Windows or macOS computer. Lightweight and compact design makes it easy to carry for outdoor streaming, live shows, or mobile recording setups.
  • 【Wide Compatibility & Multi-Device Support】Compatible with Windows 7 8 10 11, macOS, Linux,Android and supports most popular software such as OBS, Zoom, VLC, Twitch Studio, and more. Works seamlessly with PS4, PS5, Xbox, Switch, DSLR cameras, TV boxes, and other HDMI-output devices for streaming to YouTube, Twitch, etc.
  • 【What You Get】Includes: HDMI Capture Card, USB 3.0 to USB-C Adapter, User Manual. Tips: Make sure your tablet’s OTG function is enabled before connecting. Test your HDMI device with a monitor first to confirm video and audio output, then connect to the Video Capture Card for recording.
const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch({headless: true});
  const page = await browser.newPage();
  await page.setViewport({width: 1280, height: 720, deviceScaleFactor: 1});
  await page.goto('https://example.com/video', {waitUntil: 'domcontentloaded', timeout: 60000});

  await page.waitForSelector('video');
  await page.evaluate(async ({selector, seconds}) => {
    const video = document.querySelector(selector);
    if (!video) throw new Error('Video element not found');
    if (video.readyState < 1) {
      await new Promise((resolve, reject) => {
        const done = () => { cleanup(); resolve(); };
        const fail = () => { cleanup(); reject(new Error('Video metadata failed to load')); };
        const cleanup = () => {
          video.removeEventListener('loadedmetadata', done);
          video.removeEventListener('error', fail);
        };
        video.addEventListener('loadedmetadata', done, {once: true});
        video.addEventListener('error', fail, {once: true});
      });
    }
    video.currentTime = seconds;
    await new Promise((resolve, reject) => {
      const done = () => { cleanup(); resolve(); };
      const fail = () => { cleanup(); reject(new Error('Video seek failed')); };
      const cleanup = () => {
        video.removeEventListener('seeked', done);
        video.removeEventListener('error', fail);
      };
      video.addEventListener('seeked', done, {once: true});
      video.addEventListener('error', fail, {once: true});
    });
    video.pause();
  }, {selector: 'video', seconds: 12.5});

  await page.screenshot({path: 'frame-12-5s.png'});
  await browser.close();
})();

This waits for metadata and the element’s seeked event, then pauses before capture. It does not overcome DRM, a custom player that replaces the element, a cross-origin restriction, or a browser/codec failure. If the page draws video into a canvas, screenshot that canvas or the containing region after the page has updated it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Capture only the player

const player = await page.$('.player');
if (!player) throw new Error('Player not found');
await player.screenshot({path: 'player.png'});

Element screenshots avoid unrelated page content. Verify the selector is stable and that the element is visible at the selected viewport.

Choosing CLI or Puppeteer

Need Best fit Reason
One known URL and a normal page image Headless CLI One command with --screenshot and --window-size.
Delayed page content CLI or Puppeteer Use --timeout or a scripted, page-specific wait.
Timers that reveal content CLI or Puppeteer --virtual-time-budget can fast-forward JavaScript timers; Puppeteer provides finer control.
Seek a video and repeat at many timestamps Puppeteer Run JavaScript in the page, wait for state, and capture in a loop.
Player interaction, login, cookies, or custom headers Puppeteer Automation can establish the required browser state before capture.

The sources document these roles, not a timing-precision comparison for decoded video. Do not select a tool on the assumption that either guarantees frame-accurate codec seeking.

Reliability checklist

  • Pin the viewport and device scale factor so output dimensions are predictable.
  • Wait for the selector that proves the player exists, then wait for media metadata.
  • Pause the video before capture if playback would change the image during screenshotting.
  • Disable or hide controls, cookie dialogs, chat widgets, and overlays when they are not part of the desired frame.
  • Use a generous navigation timeout, but add a separate media readiness timeout so a stalled stream fails clearly.
  • Log the URL, timestamp, viewport, browser version, and output filename for reproducibility.
  • For batches, reuse one browser process and create isolated pages; close pages after each capture to limit memory growth.

Troubleshooting

The output is blank or shows a loading spinner

Increase the navigation wait, wait for the player selector, and verify that the media request succeeds in the page. A CLI timeout only controls when capture happens; it cannot repair a failed request.

The screenshot shows the wrong video moment

Check that you selected the intended video, waited for seeked, and paused playback. Some streams seek approximately or require additional data before painting. Capture after a page-specific rendered-frame signal when the player provides one.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Audio Express AXHDCAP 4K HDMI Video Capture Card, Cam Link Card Game Audio Adapter HDMI to USB 2.0 Record Capture Device for Streaming, Live Broadcasting, Video Conference, Teaching, Gaming
  • [Enhanced 4K-1080P Video Capture Experience] Capture the Magic: Elevate your video recordings to new heights with our upgraded anti-static 1080P Video Capture Card. Immerse yourself in stunning visuals, supporting HDMI input at 4K 60FPS and USB output for capturing in 1080P, complete with rich stereo sound. Enjoy crystal-clear video recordings, dynamic gaming live streams, and professional conference broadcasts. Note: HDMI resolution: Max input can be 3840×2160@30Hz / Video output resolution: Max output can be 1920×1080@30Hz
  • [Seamless Real-Time Preview] Stay in the Moment: Our advanced ultra-low latency technology ensures seamless real-time transmission of video streams. Experience instant, lag-free previews, allowing you to capture every detail precisely. Effortlessly record video directly to your hard disk, all without compromising on quality or introducing any delays.
  • [Versatility and Broad Compatibility] Your Creative Hub: Connect your DSLR, camcorder, or action camera to a wide range of operating systems, including Windows, MacOS, and Linux. Unlock a world of possibilities with real-time streaming to popular platforms like Twitch, Youtube, OBS, Zoom, Potplayer, and VLC, giving you the tools to share your content effortlessly.
  • [Effortless Plug and Play] Simplicity Redefined: Say goodbye to complex installations. Our plug-and-play design eliminates the need for drivers or external power supplies. Seamlessly integrate high-definition acquisition into various scenarios, whether it's educational recordings, immersive gaming, precise medical imaging, captivating live streams, or professional broadcasting.
  • [Seize Every Detail with Precision] Unleash your creativity and attention to detail with our video capture card. Capture every nuance, every color, and every moment with precision, thanks to the enhanced capabilities of our technology. Whether you're a content creator, a gamer, or a professional, our capture card empowers you to seize the finest elements and bring them to life in your recordings and live streams.

There is no video element

Inspect the page after it loads. The player may be inside an iframe, shadow DOM, or canvas. Switch Puppeteer to the relevant frame or capture the rendered container; a generic selector cannot discover every player implementation.

Headless Chrome cannot play the media

Confirm the codec is supported by the installed Chrome build, the URL is reachable from the runtime, and authentication or cookies are present. DRM-protected playback may intentionally prevent ordinary screenshot automation.

Controls, consent banners, or chat cover the frame

Dismiss them through page code before capture, or hide their selectors with CSS. Keep a record of those changes so the image remains explainable.

The command is not found

Use the actual executable name or absolute path for Chrome, Chromium, or a managed Chrome-for-Testing installation. Chrome’s automation overview lists compatible components and downloads at Automation and testing with Chrome.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

ScreenshotNeo provides a website screenshot API and MCP server. A single GET request returns PNG, JPEG, WebP, or PDF; it is suited to page captures when you do not need to write and maintain a browser script. It does not replace page-level video seeking, so use Puppeteer when an exact media state is essential.

Best Value
Capture Card, 4K HDMI Video Capture Card, Game Capture Card, 1080P 60FPS Video Capture Device, HDMI to USB 3.0 Capture Card for Streaming, Work with Camera/Xbox/PS4/PS5/PC/OBS
  • 【1080P HD High Quality】Capture resolution up to 1080p for video source and it is ideal for all HDMI devices such as PS4, PS3, Xbox One, Xbox 360, Wii U, DVDs, DSLR, Camera, Security Camera and set top box. Note: Video input supports 4K30/60Hz and 1080p120/144Hz. Does not support 4K120Hz/144Hz. Output supports up to 2K30Hz.
  • 【Plug and Play】No driver or external power supply required, true PnP. Once plugged in, the device is identified automatically as a webcam. Detect input and adjust output automatically. Won't occupy CPU, optional audio capture. No freeze with correct setting.
  • 【Compatible with Multiple Systems】suitable for Windows and Mac OS. High speed USB 3.0 technology and superior low latency technology makes it easier for you to transmit live streaming to Twitch, Youtube, Facebook, Twitter, OBS, Potplayer and VLC.
  • 【HDMI LOOP-OUT】Based on the high-speed USB 3.0 technology, it can capture one single channel HD HDMI video signal. There is no delay when you are playing game live.
  • 【Support Mic-in for Commentary】Rybozen capture card has microphone input and you can use it to add external commentary when playing a game. Please note: it only accepts 3.5mm TRS standard microphone headset.

Before capture, ScreenshotNeo can accept cookie or consent banners and remove more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers report the page verdict and billing status. Its MCP server exposes take_screenshot, get_page_info, and capture_pdf for Claude, Cursor, and other MCP clients. Every plan includes the features; 1,000 screenshots per month are free with no card, and paid plans start at $5 for 3,000 shots.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo documentation for parameters and response details. You can also use these clients:

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

Sign up for 1,000 free screenshots a month with no card.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Cost and operational considerations

Running Chrome yourself means budgeting CPU, memory, browser downloads, storage, and maintenance. Video pages are heavier than static pages because media, JavaScript, and ads may continue loading. Reusing a browser process improves throughput, while isolating pages prevents cookies and player state from leaking between jobs. For a small number of captures, the CLI is simplest; for a service, Puppeteer gives explicit control over retries, waits, and failures. An API can remove browser setup, but you still need to decide whether a page screenshot—not a decoded video extraction—is the result you require.

Frequently Asked Questions

Can Chrome Headless extract a JPEG frame directly from an MP4 at 00:01:23?

The documented --screenshot command captures a rendered page, not a media file at a timestamp. Put the video in a page, seek it with page-level code, and then screenshot the rendered result, or use a media-processing tool designed for file extraction.

Does --virtual-time-budget seek video playback?

No documented guarantee exists. It fast-forwards time-dependent JavaScript; it is not specified as a video decoder seek or frame-synchronization option.

When should I use the old Headless Shell binary?

For ordinary automation, use current Chrome Headless. Chrome’s documentation says the old Headless mode became a separate chrome-headless-shell binary starting with Chrome 132.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.