FAPG(1)
π FAPG(1) π
okay so bestie, buckle up, we're talking about fapg, the Fast Audio Playlist Generator, from the User Manuals corner of the universe. she's giving speed, she's giving C, she's giving let me make you a playlist in like two seconds. π
β¨ NAME β¨
fapg β Fast Audio Playlist Generator π§β¨
π¦ SYNOPSIS π¦
fapg [ options ] /path/to/mp3/dir1 [ /path/to/mp3/dir2 ... ]
π DESCRIPTION π
so fapg is literally a tool that generates a list of your audio files (Wav, MP2, MP3, Ogg, etc) and spits them out in a bunch of different formats (M3U, PLS, XSPF, HTML, RSS, etc). ngl if you have a massive pile of audio files and you want to build a playlist quickly and constantly, this is your girl. π
she's coded in C to be as fast as humanly possible, and she does not use any specific audio library (like ID3Lib, no shade). the way that works is: you get to deploy her faster and easier, and you get better performances since the less informations are loaded. <em>on the other hand</em> β and this is the part where I hold your hand β this tool is not (yet) compatible with all the known formats. π«Ά
πΈ OPTIONS πΈ
-b,--backslashβ swaps the/for\in your Unix path. backslash girlie behavior fr fr.-d,--debugβ shows you useful messages if the program fails ;) (yes the winky face is in the original, I'm keeping it, it's iconic)-f,--format=m3u|pls|xspf|html|rss|pla|txxβ pick which format of playlist you wanna generate. the default ism3u. π-g,--genre=#:#:...β choose which genres (numerical values only, bestie, don't try to write "pop") will be included in the generated playlist. default is all of them.-n,--nohardlinkβ avoids parsing twice the files because of hardlinks. efficiency queen. β¨-o,--output=/path/to/file.m3uβ choose the name of the playlist file to generate. default behavior is to display on standard output, so if you don't say anything she just yells it at your terminal. π’-p,--prefix=/the/prefixβ replaces the Unix path with another string. super useful if you wanna give a Samba path for example. π§-r,--recursiveβ recursively reads the subdirectories. go deep, we love that. π-w,--windowsβ replaces all Unix characters with Windows characters. πͺ-x,--exclude=#:#:...β choose which genres (numerical values only) will be excluded in the generated playlist. default is none.-c,--command=<intern|...>β external binary or script that produces additional fields for RSS feeds. heads up, this one is slow. π-s,--stdinβ reads filenames and/or directories from standard input instead of the command line. piping era. π
π₯ EXAMPLES π₯
generate a PLS playlist for an album:
fapg --format=pls --output=~/path/to/album/list.pls ~/path/to/album
the Samba file server situation: you've got a file server using Samba which shares a large amount of audio files for Windows powered computers using Winamp. the directory on the server containing the files is /samba/mp3 and it's visible on the Windows network as \\server\mp3 :
cd /samba/mp3 && fapg --backslash --output=/samba/mp3/list.m3u --prefix='\\server\mp3\' --recursive --windows ./
an HTML playlist for an album:
fapg --output=fapg.html ~/path/to/album
a playlist that contains all your classical tracks may receive the genres to include (or exclude) in one or multiple portions:
fapg --genre=32:105 --genre=106:104:103 /path/to/all/music
generate a podcasting XML file using an external program rss.sh to generate a detailed description:
fapg --output=dir.xml -f rss -c /usr/local/bin/rss.sh -r --prefix=http://thisserver/basedir path/to/mp3
generate a playlist that will work on a Sansa e200 series MP3 player:
fapg -f pla -o /path/to/playlist.pla /path/to/all/music
π if command starts withinternthe build-in description (Author,Title,Link) is generated. Please note that in all given directories ( and in ...basedir/xml) files calledpodcast.jpgare referenced. Many header fields are set to defaults using environment variables likeLOGNAMEorLANG.
π AUTHOR π
Antoine Jacquet <royale@zerezo.com>, http://royale.zerezo.com/fapg/. π Manpage by Thomas Kappler <thomas.kappler@stud.uni-karlsruhe.de>.
okay that's the whole thing bestie, no cap, you're fully caught up. this lil masterpiece is a Linux situation, dated JANUARY 2007, and it answers to the name FAPG(1). go make some playlists, ily πβ¨π¦π
π¦ where this page comes from
- debian trixie: fapg 0.44-1
- fedora 43: fapg 0.45-2.fc43 Β· GPL-2.0-or-later
- fedora 44: fapg 0.45-4.fc44 Β· GPL-2.0-or-later
- ubuntu questing: fapg 0.44-1
- ubuntu resolute: fapg 0.44-3
- ubuntu stonking: fapg 0.44-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms