Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请问如何使用 debian linux创建一个 .m3u 播放列表文件.mp3和其中的文件?.m4a
.mp3
.m4a
我试过这个,但最终结果是不可玩的ls -w 1 *.m4a *.mp3> ~/.mpd/playlists/beeb-radio.m3u。
ls -w 1 *.m4a *.mp3> ~/.mpd/playlists/beeb-radio.m3u
它列出了所有具有正确扩展名的文件,但是当我尝试在 MPD 中加载它时,它说这首歌是不可播放的。
源目录是~/Music/beeb-radio/,目标目录是~/.mpd/playlists
相关代码是 -
cd ~/Music ls -1 beeb-radio/*.{mp3,m4a} > ~/.mpd/playlists/beeb-radio.m3u'
这将创建文件“beeb-radio.m3u”,如果将其放入其播放列表目录,则 MPD 可以立即播放该文件。