<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.hydrogenaudio.org/index.php?action=history&amp;feed=atom&amp;title=Foobar2000%3AComponents%2FCommand-Line_Decoder_Wrapper_%28foo_input_exe%29</id>
	<title>Foobar2000:Components/Command-Line Decoder Wrapper (foo input exe) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.hydrogenaudio.org/index.php?action=history&amp;feed=atom&amp;title=Foobar2000%3AComponents%2FCommand-Line_Decoder_Wrapper_%28foo_input_exe%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Command-Line_Decoder_Wrapper_(foo_input_exe)&amp;action=history"/>
	<updated>2026-04-28T23:06:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Command-Line_Decoder_Wrapper_(foo_input_exe)&amp;diff=35890&amp;oldid=prev</id>
		<title>Thorna: Foobar 2.0 update</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Command-Line_Decoder_Wrapper_(foo_input_exe)&amp;diff=35890&amp;oldid=prev"/>
		<updated>2022-09-20T15:17:26Z</updated>

		<summary type="html">&lt;p&gt;Foobar 2.0 update&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:foobar2000:Command-Line Decoder Wrapper (foo input exe)}}&lt;br /&gt;
{{infobox foobar2000 component&lt;br /&gt;
| name                 = Command-Line Decoder Wrapper&lt;br /&gt;
| screenshot           = &lt;br /&gt;
| caption              = &lt;br /&gt;
| module_name          = foo_input&lt;br /&gt;
| developer            = Peter Pawlowski&lt;br /&gt;
| repository           = &lt;br /&gt;
| released             = &lt;br /&gt;
| released_ref         = &lt;br /&gt;
| stable_release       = 0.7&lt;br /&gt;
| stable_release_date  = 2022-09-19&lt;br /&gt;
| preview_release      = &lt;br /&gt;
| preview_release_date = &lt;br /&gt;
| foobar2000_minimum   = 1.6&lt;br /&gt;
| foobar2000_maximum   = &lt;br /&gt;
| foobar2000_ui_module = &lt;br /&gt;
| use                  = &lt;br /&gt;
| license              = &lt;br /&gt;
}}&lt;br /&gt;
=Description=&lt;br /&gt;
&lt;br /&gt;
The Command-Line Decoder Wrapper allows you to play almost any otherwise unsupported audio format through foobar2000. All you need is a standalone command-line decoder executable that converts your files to one of the supported formats, such as WAV. Such decoders are available for nearly every audio format in existence.&lt;br /&gt;
&lt;br /&gt;
In certain cases, the Command-Line Decoder Wrapper is a superior alternative to the available native foobar2000 decoders if the native decoders are plagued by bugs; this component is inherently multi-instance safe and makes foobar2000 immune to crashes caused by buggy decoders.&lt;br /&gt;
&lt;br /&gt;
== Using FFmpeg ==&lt;br /&gt;
It is possible to use FFmpeg.exe with this component. However, spin-off of Command-Line Decoder Wrapper - [[Foobar2000:Components 0.9/FFmpeg Decoder Wrapper (foo input ffmpeg)|FFmpeg Decoder Wrapper]] - is now available as a separate component. It works in similar manner, but was specialized for use with FFmpeg/FFprobe rather than arbitrary command-line decoders; among other things it supports seeking by FFmpeg -ss and reading of tags via FFprobe.&lt;br /&gt;
&lt;br /&gt;
=Drawbacks=&lt;br /&gt;
&lt;br /&gt;
When decoding to temporary files (%d):&lt;br /&gt;
Because the whole file is decoded in advance, this component stalls for a while before playback of each file can begin. To avoid playback interruptions when changing songs, you might want to increase your playback buffer length (in Preferences / Playback / Output).&lt;br /&gt;
&lt;br /&gt;
When decoding via stdout (no %d):&lt;br /&gt;
Slow seeking within the decoded audio. Playback will start instantly in most cases though.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
Before using, you must configure the component for use with specific decoders.&lt;br /&gt;
The decoder configuration page consists of four fields:&lt;br /&gt;
===Format name===&lt;br /&gt;
The name you wish to refer to the format by. It will be reported in %codec% of relevant files.&lt;br /&gt;
===Decode command===&lt;br /&gt;
The command line to execute when decoding your files. Refer to the individual decoder&amp;#039;s manual for details.&lt;br /&gt;
&lt;br /&gt;
Use %s to specify the source file and %d to specify the destination file. If you do not include %d, foobar2000 will expect the decoder to write to stdout.&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
* For TAK files: takc -d %s %d&lt;br /&gt;
* For any format supported by FFmpeg, live decoding (faster but wrong duration shown): ffmpeg -i %s -f W64 -&lt;br /&gt;
* For any format supported by FFmpeg, decode whole file first (slower): ffmpeg -i %s %d&lt;br /&gt;
===File type mask===&lt;br /&gt;
A wildcard-pattern that defines what files should be fed to this decoder.&lt;br /&gt;
&lt;br /&gt;
Example: *.TAK for TAK files.&lt;br /&gt;
&lt;br /&gt;
Multiple patterns may be specified per one decoder, delimited by semicolon.&lt;br /&gt;
&lt;br /&gt;
This is intentionally kept separate from &amp;quot;format name&amp;quot; to allow alternate extensions and prefix extensions.&lt;br /&gt;
&lt;br /&gt;
Since version 0.5 of the component, you can specify protocols, eg. rtmp://*&lt;br /&gt;
&lt;br /&gt;
===Decoder output format===&lt;br /&gt;
Format (to be exact: file type extension) that this decoder produces.&lt;br /&gt;
&lt;br /&gt;
This value should be set to WAV (the default) in most cases. Some exotic decoders may only support decoding to another format, hence this has been made configurable.&lt;br /&gt;
&lt;br /&gt;
===Write tag types===&lt;br /&gt;
Tag types to write to when the user attempts to edit tags on the file.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;USE WITH CAUTION&amp;#039;&amp;#039;&amp;#039; - this feature may damage your files if used incorrectly; enable only after checking file format specifications for the file format you&amp;#039;re dealing with!&lt;br /&gt;
&lt;br /&gt;
You do not need to enable this to read tags from your files, the Command-Line Decoder Wrapper component will attempt to read popular tag types (ID3v1/v2, APEv2) from your files regardless of this setting.&lt;br /&gt;
&lt;br /&gt;
Use the bottom pane of the preferences page to specify folders containing your decoder binaries. If your binaries are present in %PATH%, there&amp;#039;s no need to do so.&lt;br /&gt;
&lt;br /&gt;
=Link=&lt;br /&gt;
* [http://www.foobar2000.org/components/view/foo_input_exe Official Website]&lt;/div&gt;</summary>
		<author><name>Thorna</name></author>
	</entry>
</feed>