Skip to content

Convert XSPF to MPEG

Extract videos from an XSPF playlist and encode them as MPEG with FFmpeg or VLC.

Convert XSPF files online

We don’t have a dedicated online converter for XSPF to MPEG yet, but you can convert XSPF files online to these formats:

Want to convert XSPF to MPEG?

Let us know. We pick the conversions to add next by how many people ask for them.

How to convert xspf to mpeg file

  • Video
  • No ratings yet.

A DVD authoring application, legacy player, or editor may require an MPEG video while your media is listed in an XSPF playlist. Because XSPF contains references rather than video data, you must extract the referenced files and encode those files separately.

What the XSPF format is

XSPF (XML Shareable Playlist Format) is an XML playlist format used by VLC, Audacious, Clementine, Kodi, and other media-library software. It stores <location> elements for local files or streaming URLs, plus optional titles, durations, and other metadata.

An XSPF file does not contain the referenced videos or subtitle tracks. A playlist associated with subtitled videos does not embed the subtitle text. Locations may be relative paths, file:// URIs, or network URLs, and XML or URL escaping may need decoding before you use them. Open the playlist in a text editor or media player and verify that every source is accessible.

What MPEG means here

For video conversion, “MPEG” usually means an .mpg or .mpeg program stream containing MPEG-1 or MPEG-2 video and compatible audio. MPEG-4 is a different codec family and is commonly delivered in an .mp4 container; an MP4 file is not automatically the MPEG program stream requested by older software.

MPEG-1 and MPEG-2 remain useful for legacy players, DVD-related workflows, some broadcast systems, and applications that specifically require an MPEG program stream. They generally produce larger files than H.264 or H.265 at comparable visual quality. A generic MPEG file is not necessarily DVD-compliant; DVD authoring software may require specific resolution, frame rate, bitrate, audio, and aspect-ratio settings.

How to convert the referenced videos

FFmpeg is the most controllable desktop option for batch conversion, stream selection, and subtitle handling. VLC can convert an individual source through Media → Convert/Save → Add → Convert/Save, but opening an XSPF playlist does not automatically create one MPEG file from all its entries.

  1. Open the XSPF file and identify each <location>. Resolve relative paths against the playlist directory, convert a local file:// URI to a normal filesystem path, and confirm that the files exist. Do not submit a private local path or an untrusted streaming URL to an online service.
  2. Convert one video to an MPEG-2 program stream with MP2 audio:
    ffmpeg -i "input.mp4" -c:v mpeg2video -q:v 3 -c:a mp2 -b:a 192k -f mpeg "output.mpg"
  3. For an older MPEG-1-only device, use a compatible MPEG-1 video stream instead:
    ffmpeg -i "input.mp4" -c:v mpeg1video -b:v 1500k -c:a mp2 -b:a 192k -f mpeg "output.mpg"
  4. Run the appropriate command for each playlist entry. The resulting files are separate; the XSPF playlist metadata is not transferred into them.

To create one MPEG containing several items, first make a concat list such as files.txt:

file '/path/first.mp4'
file '/path/second.mp4'

Then run:

ffmpeg -f concat -safe 0 -i "files.txt" -c:v mpeg2video -q:v 3 -c:a mp2 -b:a 192k -f mpeg "playlist.mpg"

The concat demuxer expects sources with matching stream layouts, dimensions, frame rates, time bases, and usually codecs. If they differ, convert every source to the same intermediate format first, or encode each source separately and join them with a video editor or authoring application. Check the joined file for unwanted gaps, timestamp problems, and changes in aspect ratio.

Handling subtitle tracks

For an external SubRip file, burn the subtitles into the picture during encoding:

ffmpeg -i "input.mp4" -vf "subtitles=subtitles.srt" -c:v mpeg2video -q:v 3 -c:a mp2 -b:a 192k -f mpeg "output.mpg"

The subtitles filter requires an FFmpeg build with libass. Escape special characters in filenames according to the operating system, and provide a matching character encoding if the subtitle file contains non-ASCII text. Burning makes subtitles permanent and requires re-encoding the video.

Inspect embedded streams with ffprobe "input.mkv". Use -map 0:v:0 -map 0:a:0 when selecting the first video and audio streams. Generic MPEG program streams do not reliably preserve external .srt subtitles or modern bitmap subtitle tracks as selectable streams, so burning is usually the most compatible option. DVD subtitles are a separate authoring format and normally must be created by DVD-authoring software rather than copied into an arbitrary .mpg file.

Quality and online conversion limits

Encoding changes the video; XSPF itself has no audiovisual quality to preserve. In the MPEG-2 command, lower -q:v values generally mean higher quality and larger files. Replace constant-quality encoding with a target such as -b:v 5000k when a device or authoring specification requires a predictable bitrate, and check its maximum supported resolution, frame rate, audio codec, and bitrate.

CloudConvert or Convertio can convert an individually uploaded video to an MPEG-compatible output when their current format options include the required MPEG profile. They cannot normally follow local paths inside an XSPF file, combine an inaccessible playlist into one output, or guarantee subtitle preservation. For private media, many files, or burned subtitles, use local FFmpeg or VLC instead.

XSPF vs MPEG: format comparison

How the XSPF and MPEG formats compare on the properties that matter most for this conversion.

Comparison of the XSPF and MPEG file formats
Property .XSPF XML Shareable Playlist Format .MPEG Moving Picture Experts Group video file
Open standard Yes Yes
Compression Uncompressed Both
Typical file size Very small Large
Opens in a web browser Partial Partial
Further editing Easy Limited
Metadata support Extensive Basic
Plain-text readable Yes No
Best used for Music Streaming
Introduced 2004 1993
Developer XSPF Project Moving Picture Experts Group (MPEG), ISO/IEC
MIME type application/xspf+xml video/mpeg

Information about file extensions and file types is provided by File-Extensions.org

The database currently does not contain any direct xspf file converter links.

Frequently asked questions

Does converting XSPF to MPEG include the actual videos?

No, an XSPF file is a playlist that normally contains references to media files rather than the video data itself. Every referenced video must be available and readable, or it will be skipped or cause the conversion to fail.

Will my XSPF playlist order and metadata be preserved in MPEG?

The playlist order can be used to process the referenced videos, but XSPF titles, locations, and other playlist metadata are not preserved as MPEG video content. If multiple entries are combined, the result becomes one video; otherwise, the entries produce separate MPEG files.

Does converting XSPF to MPEG reduce video quality?

Usually yes, because the referenced videos are decoded and encoded again, and the result depends on the selected MPEG codec, resolution, bitrate, and quality settings. Re-encoding cannot restore detail that was already lost in the source videos.

Why does my XSPF to MPEG conversion fail or produce missing videos?

It often fails because an XSPF entry points to a moved, unavailable, unsupported, or inaccessible media file. Relative paths and network locations can also stop working when the playlist is used in a different folder or environment.

Already downloaded

This file has already been downloaded. For your privacy it was deleted from our server right after the download, so it cannot be downloaded again. To get it once more, convert the file again.