To convert a media file with FFmpeg, identify whether you need to change only its container or also its encoded audio or video. Use -c copy to copy compatible streams without re-encoding; choose codecs with -c:v and -c:a when the destination requires different streams. Then test the output in the player, editor, or upload service you actually plan to use: an .mp4 extension alone does not guarantee compatibility.
How FFmpeg conversion works
A media file has a container and one or more encoded streams. The container organizes the streams and related data; codecs determine how audio and video are encoded. Changing a container does not necessarily change the streams inside it. FFmpeg handles formats through libraries including libavformat and codecs through libavcodec, but exact support depends on the build installed on your system. See the FFmpeg supported formats and codecs reference.
FFmpeg reads an input specified with -i, applies options, then writes an output path. Its command-line options generally apply to the next input or output file, so put output settings before the output filename. The destination extension helps FFmpeg infer an output container, but it does not prove that the selected streams will work in that container or that the result will suit a particular device.
Choose between streamcopy and transcoding
| Approach | What changes | When to use it | Trade-offs |
|---|---|---|---|
Streamcopy (-c copy) |
Copies encoded streams into an output container without decoding and re-encoding. | The destination accepts the existing codecs and the requested change is only to the container. | Usually avoids another lossy encode and its encoding work, but an incompatible stream/container combination can fail or produce an unusable result. |
| Transcoding | Decodes and then encodes one or more streams. | A destination needs different codecs, or you need to filter, resize, deinterlace, resample audio, or mix streams. | Encoding can be computationally expensive; lossy re-encoding can reduce quality. |
The FFmpeg documentation defines transcoding as “the process of decoding a stream and then encoding it again.” Use it when the output needs processed or differently encoded streams, not just because the filename should change.
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
Check your FFmpeg build first
Support varies with the installed FFmpeg version, build configuration, and external libraries. The online documentation is regenerated nightly and describes the newest revision, so it can differ from the help or capabilities on your computer. Check the FFmpeg documentation index and inspect the local build before relying on a format or codec.
-
List formats recognized by the installed build:
ffmpeg -formats. -
List codecs reported by the installed build:
ffmpeg -codecs. -
For details about command options and stream selection, consult FFmpeg’s ffmpeg command reference. A listed format or codec does not by itself establish that every input, output container, and stream combination will work.
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Convert a video or audio file
Start with a basic conversion
A basic command that asks FFmpeg to convert an AVI input to an MP4 output is:
ffmpeg -i input.avi output.mp4
FFmpeg chooses output encoders based on its defaults and the output format. That is a starting point, not a compatibility or quality guarantee. If the destination has specific codec requirements, select those explicitly rather than assuming the extension is enough.
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
Convert to MP4 with explicit video and audio codecs
For example, to encode video with the H.264 encoder and audio with the AAC encoder, use:
ffmpeg -i input.avi -c:v libx264 -c:a aac output.mp4
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
This requires the installed build to support those encoders. The command specifies codecs, not a universal quality level or file size: choose any additional encoder settings to meet the destination’s documented requirements, and check the resulting file in that destination.
Convert audio to MP3
To encode an input’s audio as MP3, specify the audio encoder:
ffmpeg -i input.wav -c:a libmp3lame output.mp3
The example assumes the installed build supports libmp3lame. If the input contains video as well as audio, an output audio file needs only the intended audio stream; explicitly map it when there are multiple audio tracks.
Change the container without re-encoding
Try streamcopy when you want to put existing streams into a different container and they are suitable for that destination:
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
ffmpeg -i input.mkv -c copy output.mp4
This copies streams; it does not turn their codecs into MP4-compatible codecs. If the output container rejects a stream, use a compatible alternative container or transcode only the incompatible stream. A changed extension without a successful container conversion is not a substitute for this operation.
Transcode only the stream that needs to change
You can encode video while copying compatible audio, for example:
ffmpeg -i input.mkv -c:v libx264 -c:a copy output.mp4
Here, video is transcoded and audio is streamcopied. The combination is appropriate only if the input audio codec is accepted by the output container and intended player. FFmpeg’s command reference documents stream-specific codec options such as -c:v and -c:a.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchSelect the right streams
Files may contain multiple video or audio tracks, subtitles, attachments, or data streams. FFmpeg’s automatic stream selection may not match what you want in the output. Use -map to choose input streams deliberately; stream specifiers can target a type or index. For example, mapping the first video stream and second audio stream is written as:
ffmpeg -i input.mkv -map 0:v:0 -map 0:a:1 -c:v libx264 -c:a aac output.mp4
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
This example assumes those streams exist; stream indexes are zero-based. Inspect the input’s reported streams and adjust the maps to match. Explicit mapping is particularly useful when a file has several language tracks or when you want to omit subtitles, attachments, or other streams. See the official stream-selection documentation.
Convert with the destination in mind
Before choosing codecs or options, check the receiving device, editor, or upload service for its accepted containers, codecs, and any limits. A container and codec that work in one player may not work in another. Decide whether you also need to change dimensions, frame appearance, audio sampling, or other media properties; those operations require processing rather than pure streamcopy. There is no single bitrate, preset, or codec setting that can be recommended for every target from the file extension alone.
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →After conversion, play or import the result in the actual target application. Check that picture and sound are present, the intended tracks were selected, playback timing is acceptable, and the file meets the receiving service’s requirements. FFmpeg cautions that it does not validate whether an encoder can convert every selected stream or whether the result is acceptable for the output format.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Troubleshoot common conversion problems
The output will not play or upload
The chosen container may not support one of the copied streams, or the destination may not accept the codec combination. Check the target’s requirements and the input streams. If only the container needs to change, try a supported container with streamcopy; if a codec must change, transcode that stream with -c:v or -c:a.
FFmpeg reports that an encoder or format is unavailable
The installed build may not include the requested encoder, decoder, or format support. Run ffmpeg -formats or ffmpeg -codecs and use an available option, or install a build whose documented capabilities meet the need. The general support reference is useful, but local build output is the relevant check for your installation.
The wrong language or track appears
Automatic stream selection may have chosen a different audio or video stream from the one you intended. Use -map with the correct input index and stream specifier, and omit mappings for tracks you do not want in the output.
Free tools Windows power users keep installed
One-click scans. No signup required.
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
The command changes the wrong file or option
FFmpeg option order matters: options generally apply to the next input or output. Put input options before the relevant -i and output options before the output filename. Review the command reference if a setting is being applied to a different file than intended.
The output quality or size is not what you expected
Streamcopy preserves the encoded streams, while transcoding creates newly encoded streams. A lossy re-encode can reduce quality, and file size depends on the source, selected encoder, settings, and content. Avoid treating a particular extension or generic setting as a guarantee; verify against the quality and size requirements of your workflow.
The conversion takes a long time
Transcoding requires decoding and encoding and can be computationally expensive. If no codec or processing change is required, streamcopy can avoid that encoding work. If filtering, resizing, resampling, or a new codec is necessary, processing is part of the job; allow time for the selected operation rather than expecting a container-only remux speed.
Or skip the browser setup
For website screenshots rather than media conversion, ScreenshotNeo is a screenshot API and MCP server. Its one-call API example is:
Recommended Free Tools
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 API documentation. It removes cookie banners, popups, and chat widgets before the shot; bot checks, blank pages, and failed loads are never billed. An MCP server lets AI agents take screenshots. The free plan includes 1,000 screenshots a month with no card, and paid plans start at $5 for 3,000. Sign up for free.
Frequently Asked Questions
Does changing a file extension convert its format?
No. Renaming a file changes its name, not its container or encoded streams. Use FFmpeg to write an output in the intended container, and select or transcode streams as needed.
Can streamcopy reduce quality?
Streamcopy does not re-encode the streams, so it avoids quality loss from another lossy encode. It still depends on the destination accepting those streams.
Why does FFmpeg online documentation differ from my installed command?
The online documentation is regenerated nightly for the newest FFmpeg revision, while local capabilities vary by version and build. Check your installed build’s reported formats and codecs.
Quick Recap
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.

