DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
Mountain View desk5 min

How to Encode a Long YouTube Playlist with FFmpeg and Preserve Chapter Markers

Keep playlist order, join compatible files without re-encoding, or normalize them with a concat-filter workflow—and check that the finished output contains usable chapter markers.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Keep the playlist videos as separate, numbered files, then join them with FFmpeg’s concat demuxer when their streams are compatible. Enable one chapter per input file, check that the file durations are known, and verify the finished chapter list with ffprobe. If the files need different codecs or stream layouts, use a concat-filter re-encode and create or map chapter metadata deliberately.

Choose the workflow before downloading or encoding

The right method depends on whether the playlist items have compatible streams and whether you need to re-encode. A stream-copy join avoids another lossy encode, but it is not a safe way to combine arbitrary files. FFmpeg’s concat demuxer expects compatible stream layouts, codecs and time bases; duration errors can shift later timestamps and cause gaps or artifacts.

As an Amazon Associate I earn from qualifying purchases.

Method Use it when Trade-offs
Separate files plus concat demuxer The inputs have compatible streams and you want to join them without re-encoding. Fast and avoids generation loss; requires compatible streams and accurate durations. Check chapter support in the output container.
Separate files plus concat filter The inputs need normalization, their stream layouts differ, or you need a new output profile. Allows control over output codec, resolution, frame rate and audio layout, but takes more processing and can introduce lossy generation. Chapter positions must be calculated and mapped deliberately.
yt-dlp playlist concatenation The files meet yt-dlp’s concatenation requirements and a concatenated download is the intended result. Its policy can be never, always or multi_video; the files must have the same codecs and number of streams. Handle chapter creation and validation separately.

For a long job, retain the individual downloads and a record of the command and file order. Do not rely on a blind stream-copy join for mixed formats.

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

Download the playlist in a stable order

Capture the playlist index in each filename so the intended order survives sorting, interruptions and later checks. yt-dlp documents output templates using playlist index, and its download archive can track completed items so a rerun can skip them.

#1 Best Overall
Sale
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
  • Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.
  1. Choose a filename template that includes the playlist index, playlist name and item title, for example a pattern based on %(playlist_index)s, %(playlist)s and %(title)s. Keep the resulting names as your authoritative ordered list.

  2. Use yt-dlp’s download archive option if you may need to resume. Keep the archive, command log and downloaded files together with the job record.

  3. Before joining, inspect the downloaded files’ streams and durations. Decide whether they can be stream-copied or need a common output profile and re-encode.

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

The needed encoding time, output size and quality cannot be predicted from playlist length alone; they depend on duration, resolution, codec, bitrate and hardware.

Rank #2
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
  • Easily store and access 5TB of content on the go with the Seagate portable drive, a USB external hard Drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Join compatible files and create one chapter per item

Build an ordered concat manifest

Create a text manifest with one file entry per downloaded part, in playlist order. For example:

file '0001 - Opening.mp4'
file '0002 - Session.mp4'
file '0003 - Closing.mp4'

Use paths and escaping that conform to FFmpeg concat-script syntax. The concat demuxer’s safe-path behavior is enabled by default; -safe 0 permits arbitrary paths, so use it only with a manifest you control.

Run the concat demuxer

For a compatible set of inputs, use the concat demuxer, enable chapter_per_file, map the input streams and stream-copy them into an output container that supports the needed streams and chapters. A typical command-line shape is:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
ffmpeg -f concat -safe 0 -chapter_per_file 1 -i playlist.ffconcat -map 0 -c copy output.mkv

Confirm that your installed FFmpeg build accepts the demuxer option as shown; command-line options can vary with version. Put input-specific options before the relevant -i. If the files are not compatible, stop rather than forcing a stream-copy join.

Rank #3
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
  • Easily store and access 1TB to content on the go with the Seagate Portable Drive, a USB external hard drive.Specific uses: Personal
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop. Reformatting may be required for Mac
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

With chapter_per_file enabled, FFmpeg creates a chapter for each file and uses its title metadata when available, otherwise its filename. Chapter boundaries depend on each file’s duration. An unknown duration interrupts reliable duration discovery and can leave that file as the last chapter; when all durations are known, the total duration is known and the output is seekable.

Re-encode incompatible inputs and handle chapters explicitly

When inputs differ in codec or stream layout, use a concat-filter workflow that normalizes the segments to a common profile before encoding. FFmpeg’s concat filter is the appropriate direction when re-encoding is needed, but the exact filter graph depends on the actual number and layout of video and audio streams. Inspect the files first, then set the output resolution, frame rate, video and audio codecs to values all segments can meet. Do not assume that a re-encode automatically creates a chapter for each playlist item.

Preserve chapters already present

FFmpeg normally maps chapters from the first input that contains chapters. Use -map_chapters input_index to select a specific chapter source when needed; a negative input index disables chapter copying. If there is any ambiguity about which input supplies the chapters, choose explicitly. Stream mapping and chapter mapping are separate concerns: mapping video and audio does not, by itself, express which chapter table should be used.

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

Author custom chapter markers

For missing or custom boundaries, create an FFMETADATA file. It begins with ;FFMETADATA and can contain chapter sections with a time base, start, end and title. For example, values below are illustrative only; replace them with measured segment boundaries in the chosen time base.

Rank #4
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
  • Easily store and access 4TB of content on the go with the Seagate Portable Drive, a USB external hard drive.Specific uses: Personal
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.
;FFMETADATA1
[CHAPTER]
TIMEBASE=1/1000
START=0
END=125000
 title=Opening
[CHAPTER]
TIMEBASE=1/1000
START=125000
END=280000
 title=Session

Use non-overlapping start and end values that cover the intended segments, and ensure the chapter times match the final encoded timeline. Map the metadata/chapter input into the output, selecting it with -map_chapters when necessary. Metadata mapping can change FFmpeg’s automatic mapping behavior, so explicitly retain the streams and metadata you intend to keep.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Verify chapters, streams and playback

A successful encode does not guarantee that every container and player will expose chapter navigation. Check the output file itself, then test it in the application where viewers will watch it.

  • Use ffprobe to inspect output streams, total duration, and the chapter start, end and title values.

    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.
  • Check that chapter boundaries follow the intended playlist order and align with segment transitions. Investigate unexpected gaps, overlaps or shifted later chapters against the source durations.

    Best Value
    Sale
    UnionSine 500GB Ultra Slim Portable External Hard Drive HDD-USB 3.0
    • [Upgraded Version] - This external hard drive features a mirrored logo stripe combined with a striped anti-slip design, and the rounded corners of the casing make it easier to grip. The stripes also have a heat dissipation function, ensuring stable and fast data transfer.
    • 【Ultra-thin and quiet】 - The motherboard adopts JMicron 578 noise-free solution, giving you a quiet working environment. Lightweight and portable size designed to fit in your pocket for easy portability.
    • 【Ultra-Fast Data Transfers】 - Pairing this external hard drive with JMicron 578 solution USB 3.0 and USB 2.0 interfaces enables blazing-fast data transfer. It boasts theoretical read speeds of up to 125MB/s and write speeds of up to 103MB/s.
    • 【Plug and Play】 - With no software to install, just plug it in and the drive is ready to use.The hard disk chip is wrapped with an aluminum anti-interference layer to increase heat dissipation and protect data.
    • 【What You Get】 - 1 x Portable Hard Drive, 1 x USB 3.0 Cable, 1 x User Manual, Gift-type shell packaging ,Three-year manufacturer's warranty and free technical support services.
  • Play representative transitions in the target application and confirm that its interface displays and seeks to chapters. Container and player support can differ.

Make a long job recoverable

Keep the source downloads until the final output has been checked. Store the ordered manifest, any FFMETADATA file, the exact command line and the yt-dlp download archive with the job. Keep temporary and final outputs separate so an interrupted encode cannot overwrite the only copy of the inputs. Playlist-indexed names and an archive make it easier to identify completed downloads and resume without losing item order.

Or let it run in the cloud

If the goal is to keep a YouTube channel live from pre-recorded videos after preparing them, StreamNeo is a separate option from encoding: upload a recording or playlist, add your YouTube stream key, and go live. It loops uploaded videos from the cloud, so nothing has to stay on at home. Each slot streams the files as uploaded, up to 4K 60fps, at one flat price per slot; it also automatically recovers if YouTube drops the stream. The first day is free with no card. Monthly billing is $9.99 per month. StreamNeo is for YouTube, not camera-based live capture. Learn more at StreamNeo, or start the free day.

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.

Quick Recap

SaleBestseller No. 1
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$129.99
Bestseller No. 2
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
Bestseller No. 3
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$119.80
Bestseller No. 4
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$208.99

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

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

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.