To show captions from an external SRT file over video in GStreamer, connect the decoded video to textoverlay.video_sink and parse the SRT with subparse into textoverlay.text_sink. The command below plays video with visible captions; it does not create a permanently captioned output file. YouTube playlist retrieval is a separate step: the official GStreamer references cited here do not verify direct YouTube watch-URL or playlist support.
Play a video with SRT captions overlaid
Use this documented gst-launch-1.0 pipeline, replacing the example filenames with your own:
gst-launch-1.0 textoverlay name=overlay ! videoconvert ! videoscale ! autovideosink
filesrc location=movie.avi ! decodebin3 ! videoconvert ! overlay.video_sink
filesrc location=movie.srt ! subparse ! overlay.text_sink
GStreamer’s gst-launch documentation demonstrates named-pad linking for this arrangement. decodebin3 decodes the video; subparse parses the SRT cues; and textoverlay renders the cue text over the video. The overlay matches subtitle and video timestamps to determine when captions appear. The final conversion, scaling, and sink elements send the result to a local video output. See the textoverlay documentation for its behavior and properties.
Element and codec availability depends on your GStreamer installation. If the command reports a missing element or cannot decode the file, check which plugins and decoders are installed for your version before changing the graph.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →#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.
What this pipeline does—and does not do
It displays captions during playback
The SRT is an external, timestamped input. subparse sends its cues to the overlay’s text pad, while decoded video goes to its video pad. textoverlay combines them for display. Its text can also be set statically with the text property when the text sink is not connected; for SRT captions, connect the parsed text stream instead.
It does not save a captioned video
The example ends at autovideosink, so it plays the composited result rather than writing a new file. If you need captions permanently rendered into a video, the pipeline must continue through a video encoder, a container muxer, and an output sink. The cited subtitle example does not specify those encoding and container choices; select and verify them for your intended format and GStreamer installation.
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.
Use playbin3 for a simpler playback setup
If you do not need to wire the overlay pads yourself, GStreamer documents playbin3 with a media uri and an external subtitle suburi. This lets the player manage subtitle playback and is a simpler alternative when its default behavior is suitable. It is not a YouTube playlist recipe. See the playbin documentation.
Handle YouTube playlist entries separately
The reviewed GStreamer references cover generic URI playback and network streaming, but do not document resolving YouTube watch URLs, extracting YouTube playlist entries, or advancing directly through a YouTube playlist. Do not assume that passing a YouTube playlist URL as uri will work.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →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.
For a playlist workflow, treat YouTube retrieval and iteration as an upstream concern: resolve each playlist entry to a media URI GStreamer can read, then provide those entries to the playback or processing pipeline. The resolver, access conditions, and current compatibility with YouTube are not established by the cited GStreamer documentation. Verify the approach in your environment rather than treating it as a supported GStreamer feature.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Check timing, encoding, and buffering
Subtitle timing
Because textoverlay matches the timestamps of the video and text streams, captions depend on the SRT cue times aligning with the video timeline. If captions appear at the wrong point, check the SRT timestamps and whether the video has an offset before changing the pipeline.
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
Character encoding and overlay controls
For a player-managed subtitle path, GStreamer’s subtitleoverlay documentation lists controls including font-desc, subtitle-encoding, subtitle-ts-offset, and silent. The documented offset is in nanoseconds and defaults to zero. If no subtitle encoding is set, the documented fallback is GST_SUBTITLE_ENCODING, then ISO-8859-15. These controls belong to subtitleoverlay; do not assume they are all properties of the explicit textoverlay graph.
Network buffering in an application
For network playback managed through playbin, the documentation describes buffering messages: keep or set the pipeline to PAUSED while buffering is below 100%, then return it to PLAYING at 100% if playback is desired. This is application-level handling, not an instruction to paste into the gst-launch-1.0 example.
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.
Or let it run in the cloud
If your goal is to keep a YouTube channel live with uploaded documentary videos, rather than build and operate a GStreamer pipeline, StreamNeo is a cloud service for looping uploaded videos and playlists on YouTube. Upload your recording or build a playlist, add your YouTube stream key, and go live. Nothing has to stay on at home; uploads stream as made, up to 4K 60fps at one flat price per slot, and StreamNeo automatically recovers if YouTube drops the stream. The first day is free with no card. Monthly: $9.99 per month.
Quick Recap
Start your free StreamNeo 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.




