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.
- Open the XSPF file and identify each
<location>. Resolve relative paths against the playlist directory, convert a localfile://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. - 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" - 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" - 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.
| 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.
Additional formats for
xspf file conversion
Convert to mpeg from
other formats
- exe to mpeg
- jpg to mpeg
- amv to mpeg
- vob to mpeg
- ts to mpeg
- dat to mpeg
- m4a to mpeg
- mkv to mpeg
- h265 to mpeg
- ogv to mpeg
- 264 to mpeg
- 3g2 to mpeg
- 3ga to mpeg
- 3gp to mpeg
- 3gpp to mpeg
- 3pg to mpeg
- adts to mpeg
- amr to mpeg
- asf to mpeg
- avc to mpeg
- avi to mpeg
- bik to mpeg
- bnk to mpeg
- bup to mpeg
- bvr to mpeg
- ced to mpeg
- dash to mpeg
- dav to mpeg
- divx to mpeg
- dpg to mpeg
- dts to mpeg
- dv to mpeg
- dv4 to mpeg
- dvr-ms to mpeg
- dvr to mpeg
- evo to mpeg
- f4f to mpeg
- f4v to mpeg
- fbr to mpeg
- fla to mpeg
- flac to mpeg
- flc to mpeg
- flv to mpeg
- h264 to mpeg
- hevc to mpeg
- ifo to mpeg
- ifv to mpeg
- ismv to mpeg
- jpeg to mpeg
- kux to mpeg
- m2t to mpeg
- m2ts to mpeg
- m2v to mpeg
- m4r to mpeg
- m4v to mpeg
- mepj to mpeg
- mepx to mpeg
- mjpg to mpeg
- mk3d to mpeg
- mod to mpeg
- mov to mpeg
- mp2 to mpeg
- mp3 to mpeg
- mp4 to mpeg
- mpe to mpeg
- mpeg2 to mpeg
- mpg to mpeg
- mpj to mpeg
- mpv to mpeg
- mts to mpeg
- mxf to mpeg
- nmv to mpeg
- ogm to mpeg
- png to mpeg
- rm to mpeg
- rmvb to mpeg
- swf to mpeg
- thumbdata3 to mpeg
- tod to mpeg
- tp to mpeg
- tpr to mpeg
- trec to mpeg
- trp to mpeg
- tscproj to mpeg
- undf to mpeg
- usm to mpeg
- vep to mpeg
- vfo to mpeg
- viv to mpeg
- vp6 to mpeg
- vpg to mpeg
- vpj to mpeg
- vro to mpeg
- vsp to mpeg
- vvf to mpeg
- wave to mpeg
- webm to mpeg
- wmv to mpeg
- wtv to mpeg
- wve to mpeg
- xvid to mpeg