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 DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
DocumentaryTube
concat demuxer

Fix FFmpeg Playlist File Paths for a YouTube Live Shop Promo on Ubuntu

Fix unsafe or missing FFmpeg concat playlist paths on Ubuntu, then verify media compatibility and the correct YouTube ingest protocol.

By DocumentaryTube Team 6 min read
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If FFmpeg reports Unsafe file name, the concat demuxer is rejecting a playlist entry under its default path-safety rules. If it reports No such file or directory, the entry is not resolving to a readable file from the playlist’s effective location. Keep the playlist beside its clips and use safe relative paths when possible; for intentional absolute paths to files you trust, put -safe 0 before -i.

First, identify which path problem you have

FFmpeg’s concat demuxer reads a text playlist containing one file directive for each input. The two common errors point to different checks:

  • Unsafe file name: the entry was rejected by the concat demuxer’s safety validation. Absolute paths commonly trigger this when the default safe=1 is in effect.
  • No such file or directory: the entry did not resolve to a file at the path FFmpeg tried, or the file is missing or inaccessible.

Fixing a path only gets FFmpeg to the media. It does not establish that the clips can be joined without re-encoding, or that the output options match YouTube’s selected ingest protocol.

Make the playlist paths resolve predictably

Use relative paths from a persistent playlist

For the least surprising setup, put the playlist in the same directory as the promo clips and use filenames relative to that playlist. For example, if the files are in /home/ubuntu/shop-promo/, save this as /home/ubuntu/shop-promo/playlist.ffconcat:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • 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.
ffconcat version 1.0
file 'promo-01.mp4'
file 'promo-02.mp4'

The first line identifies the concat script format. Each following file line adds one media input, in playlist order. With the playlist alongside the clips, these relative entries have an uncomplicated base location.

Use absolute paths only when you intend to bypass the default check

The concat demuxer defaults to safe=1. Under that setting, a path must be relative, contain no protocol specification, and use permitted portable characters in each component; components cannot begin with a period. If files live elsewhere and you want to name them absolutely, use entries such as:

ffconcat version 1.0
file '/home/ubuntu/shop-promo/promo-01.mp4'
file '/home/ubuntu/shop-promo/promo-02.mp4'

For trusted playlist contents, disable that path screening with -safe 0 as an input option before -i. This permits unsafe path forms; it is not a repair for a misspelled path, missing file, or permission problem. Do not use it casually with playlist contents you do not trust.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 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.

Quote names with spaces and special characters

Quote or escape whitespace and special characters using the concat script’s syntax. For example, a filename containing spaces can be represented as file 'promo day one.mp4'. An embedded single quote requires FFmpeg’s concat-script quoting and escaping rules; shell quoting rules alone do not define how the text inside the playlist is parsed. When possible, rename clips to simple portable filenames to reduce quoting errors.

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

Run FFmpeg with the matching input option

Relative-path example

From the directory containing playlist.ffconcat and the clips, a basic stream-copy pattern is:

ffmpeg -re -stream_loop -1 -f concat -i playlist.ffconcat -c copy -f flv "$YOUTUBE_RTMP_URL"

This is an illustrative RTMP-shaped command, not a tested, complete YouTube encoder configuration. The source streams must be suitable for stream-copy concatenation, and your output settings and destination must match the ingest setup actually selected in YouTube Studio.

Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • 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.

Absolute-path example

For a playlist with trusted absolute entries, add -safe 0 before the input:

ffmpeg -re -stream_loop -1 -f concat -safe 0 -i playlist.ffconcat -c copy -f flv "$YOUTUBE_RTMP_URL"

Options that configure an input belong before that input’s -i; placing -safe 0 after -i will not configure the concat input as intended. Store the actual ingest URL and stream key securely. Do not put a stream key in a public script, article, or logs that others can read.

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

Check the playlist’s actual base location

Relative paths must be written for the playlist’s effective location, not automatically for the directory where you launched the shell. A normal playlist saved beside the clips makes that location easy to reason about. A playlist supplied through process substitution can instead be presented through a temporary path; relative entries may then be resolved from a different location than expected.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • 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

If paths work from a saved playlist but fail when you switch to process substitution, keep the playlist as a persistent file or use a path strategy that matches its effective location. For diagnosis, print or inspect the exact playlist contents and confirm where that playlist is stored before changing the entries.

Verify every file and the Ubuntu permissions

  1. Open the playlist and check every filename, directory component, capitalization, and extension against the actual file. Linux paths are case-sensitive.
  2. Check that each listed file exists at the path represented by the entry, relative to the playlist when using a relative path.
  3. Confirm the same Ubuntu user that runs FFmpeg can read the playlist and every media file. A path can be correct but inaccessible because of ownership or permissions.
  4. Rerun FFmpeg and read the exact error. If it changes from an unsafe-name error to a missing-file error, the safety check was bypassed, but path resolution still needs correction.

No specific installed FFmpeg version, playlist, command, file permissions, or media properties are known here. If the general checks do not resolve the problem, those details are needed to diagnose the individual setup.

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

After paths work, check whether the clips can be concatenated

The concat demuxer expects compatible streams. If clips differ in stream layout or codecs, -c copy may fail or produce unsuitable output even though every path is valid. Compare their video and audio streams after resolving the path error. Where they cannot be concatenated as-is, FFmpeg’s concat filter can be used with re-encoding to normalize the inputs; that is a media-compatibility solution, not a path fix.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 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.

Do not mix up YouTube RTMP and HLS ingest

The command examples above show an RTMP-shaped output, but the title alone does not establish which ingest protocol you selected. YouTube’s HLS requirements apply specifically when sending HLS: use TS segments of 1–4 seconds, a rolling playlist with no more than five outstanding segments, no byte ranges, HTTPS POST/PUT, and no encryption beyond HTTPS. YouTube also notes that HLS has higher latency than continuous RTMP. These HLS settings should not be copied into an RTMP setup; confirm the protocol and its settings in your YouTube streaming configuration.

Troubleshoot by symptom

Symptom Likely cause What to check or change
Unsafe file name The entry violates concat demuxer safe-path validation, often because it is absolute. Prefer a safe relative path. If an absolute path is intentional and the playlist is trusted, add -safe 0 before -i.
No such file or directory The path is relative to a different playlist location than expected, or the name does not match. Check the playlist’s effective location, filename spelling and case, and whether the file exists there.
The path appears correct, but FFmpeg cannot read it The FFmpeg process’s Ubuntu user may not have access to the playlist or media. Check readability and permissions for the same user that launches FFmpeg.
Paths resolve, but stream-copy concat fails The clips’ streams may not be compatible for concat demuxer stream copying. Compare stream layouts and codecs; use a concat-filter workflow with re-encoding if normalization is required.
FFmpeg runs, but YouTube does not accept the stream The output protocol or settings may not match the selected YouTube ingest method. Confirm RTMP versus HLS before applying protocol-specific output settings. For HLS, follow YouTube’s HLS requirements rather than assuming RTMP options apply.

Or let it run in the cloud

If the goal is to keep a prerecorded shop promo looping on YouTube, StreamNeo is an alternative to running FFmpeg continuously on Ubuntu: upload the video, add your YouTube stream key once, and go live. The cloud keeps it running, so nothing has to stay on at home; it streams the upload as made, up to 4K 60fps, at one price per slot; and it automatically recovers if YouTube drops the stream. The first day is free with no card. Monthly pricing is $9.99 per month. StreamNeo plays uploaded videos and streams to YouTube only. See StreamNeo, or start the free first day.

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 Screening Room

Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

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.