'ffmpeg' - no protocol error

Need help with MPD?
Post Reply
eitanc
Posts: 10
Joined: November 1st, 2020, 9:59 am

'ffmpeg' - no protocol error

Post by eitanc »

Hello,

I use the latest MPD for windows executable, and when I try to run it I get an error of "exception: Input plugin 'ffmpeg' is unavailable: No protocol".

My "--version" output is:
"
Music Player Daemon 0.22.2 (0.22.2)
Copyright 2003-2007 Warren Dukes <warren.dukes@gmail.com>
Copyright 2008-2018 Max Kellermann <max.kellermann@gmail.com>
This is free software; see the source for copying conditions. There is NO
warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Database plugins:
simple proxy

Storage plugins:
local nfs curl


Decoders plugins:
[vorbis] ogg oga
[oggflac] ogg oga
[flac] flac
[opus] opus ogg oga
[dsdiff] dff
[dsf] dsf
[hybrid_dsd] m4a
[modplug] 669 amf ams dbm dfm dsm far it med mdl mod mtm mt2 okt s3m stm ult umx xm
[wildmidi] mid
[ffmpeg] 16sv 3g2 3gp 4xm 8svx aa3 aac ac3 adx afc aif aifc aiff al alaw amr anim apc ape asf atrac au aud avi avm2 avs bap bfi c93 cak cin cmv cpk daud dct divx dts dv dvd dxa eac3 film flac flc fli fll flx flv g726 gsm gxf iss m1v m2v m2t m2ts m4a m4b m4v mad mj2 mjpeg mjpg mka mkv mlp mm mmf mov mp+ mp1 mp2 mp3 mp4 mpc mpeg mpg mpga mpp mpu mve mvi mxf nc nsv nut nuv oga ogm ogv ogx oma ogg omg opus psp pva qcp qt r3d ra ram rl2 rm rmvb roq rpl rvc shn smk snd sol son spx str swf tak tgi tgq tgv thp ts tsp tta xa xvid uv uv2 vb vid vob voc vp6 vmd wav webm wma wmv wsaud wsvga wv wve
[gme] ay gbs gym hes kss nsf nsfe sap spc vgm vgz
[pcm]

Filters:


Tag plugins:


Output plugins:
null httpd recorder winmm wasapi

Encoder plugins:
null vorbis opus lame wave flac

Input plugins:
file curl ffmpeg nfs

Playlist plugins:
extm3u m3u pls xspf asx rss flac cue embcue

Protocols:
http:// nfs://

Other features:
ipv6 tcp
"
My config is:
"
bind_to_address "10.1.1.11"
port "6600"
log_file "C:\Temp\mpd\mpd.log"
connection_timeout "5"
music_directory "d:\mp3"
audio_output {
type "httpd"
name "My HTTP Stream"
encoder "lame"
port "8000"
bitrate "320" # do not define if quality is defined
format "44100:16:1"
always_on "yes" # prevent MPD from disconnecting all listeners when playback is stopped.
tags "yes" # httpd supports sending tags to listening streams.
}
"
Any idea how I can solve this?

Thanks!
max
Forum team
Posts: 1179
Joined: January 15th, 2013, 3:43 pm

Re: 'ffmpeg' - no protocol error

Post by max »

What, other than the visible message, is your real problem?
eitanc
Posts: 10
Joined: November 1st, 2020, 9:59 am

Re: 'ffmpeg' - no protocol error

Post by eitanc »

I have on the same PC, Windows, running well Shoutcast server and I wish to stream to it a folder tree of MP3 file. That is the goal. I try to make MPD the client which will stream these files to this Shoutcast server - but I cannot. Also the shout option failed as missing.
max
Forum team
Posts: 1179
Joined: January 15th, 2013, 3:43 pm

Re: 'ffmpeg' - no protocol error

Post by max »

None of what you wrote has anything to do with the FFmpeg input plugin.
But I don't understand your problem - you need to post more information about what you did and what exactly did not work (and what you saw instead).
eitanc
Posts: 10
Joined: November 1st, 2020, 9:59 am

Re: 'ffmpeg' - no protocol error

Post by eitanc »

My problem is the MPD is not connecting to the shoutcast server and I get this error.
My config files is as I wrote it, the version output supplied and so the error I get. What else exactly do you need?
eitanc
Posts: 10
Joined: November 1st, 2020, 9:59 am

Re: 'ffmpeg' - no protocol error

Post by eitanc »

Sorry, the full output is:
"
Nov 02 17:04 : exception: Decoder plugin 'wildmidi' is unavailable: configuration file does not exist: /etc/timidity/timidity.cfg
Nov 02 17:04 : exception: Input plugin 'ffmpeg' is unavailable: No protocol
"
eitanc
Posts: 10
Joined: November 1st, 2020, 9:59 am

Re: 'ffmpeg' - no protocol error

Post by eitanc »

I run: C:\Temp\mpd>mpd .\mpd.conf
max
Forum team
Posts: 1179
Joined: January 15th, 2013, 3:43 pm

Re: 'ffmpeg' - no protocol error

Post by max »

https://www.musicpd.org/help/
You did not post your log.
The messages you posted are not relevant for your problem, as I already said.
eitanc
Posts: 10
Joined: November 1st, 2020, 9:59 am

Re: 'ffmpeg' - no protocol error

Post by eitanc »

As you can see my config - I set a log file but it is not created. I only get a the console errors.
For all my files in the MPD folder - my user have permissions of "Full Control".

"
C:\Temp\mpd>mpd .\mpd.conf --stderr --no-daemon --verbose
config_file: loading file ./mpd.conf
vorbis: Xiph.Org libVorbis 1.3.7
opus: libopus 1.3.1
hybrid_dsd: The Hybrid DSD decoder is disabled because it was not explicitly enabled
exception: Decoder plugin 'wildmidi' is unavailable: configuration file does not exist: /etc/timidity/timidity.cfg
curl: version 7.73.0
exception: Input plugin 'ffmpeg' is unavailable: No protocol
"
I don't understand why are you saying this - "The messages you posted are not relevant for your problem, as I already said."
I explained what I wish to get and sent all my current config and output.
max
Forum team
Posts: 1179
Joined: January 15th, 2013, 3:43 pm

Re: 'ffmpeg' - no protocol error

Post by max »

Your latest output shows that MPD starts succesfully, and is now running, but you never tried to connect with a client. You never tried to play something.

You wrote: "MPD is not connecting to the shoutcast server"
Of course it's not. You did not tell it to. Your configuration shows you configured an "httpd" output, but not a "shout" output. The "httpd" output accepts incoming connections and has nothing to do with shoutcast.
eitanc
Posts: 10
Joined: November 1st, 2020, 9:59 am

Re: 'ffmpeg' - no protocol error

Post by eitanc »

(BTW, at https://www.musicpd.org/doc/html/user.h ... dio-output there is a typo, the letter "L" is missing at "enabed yes|no")

That's because I tried "shout" before but it didn't work, So I was looking for another way and I thought the "httpd" option is referring to accessing external server using HTTP.

Anyway, I tried the following shout config:
"
log_file "C:\Temp\mpd\mpd.log"
music_directory "d:\mp3"
audio_output {
type "shout"
protocol "shoutcast"
name "Home"
description "My Home Radio Station"
host "10.1.1.11"
port "8000"
timeout "2"
user ""
tags "yes"
always_on "yes"
public "no"
mount ""
password "topaz"
bitrate "320"
format "44100:16:2"
encoder "lame"
}
"
And I get:
"
C:\Temp\mpd>mpd .\mpd.conf --stderr --no-daemon --verbose
config_file: loading file ./mpd.conf
vorbis: Xiph.Org libVorbis 1.3.7
opus: libopus 1.3.1
hybrid_dsd: The Hybrid DSD decoder is disabled because it was not explicitly enabled
exception: Decoder plugin 'wildmidi' is unavailable: configuration file does not exist: /etc/timidity/timidity.cfg
exception: Failed to configure output in line 3; No such audio output plugin: shout
"
As if the "shout" plugin is somehow not enabled or not part of the mpd.exe file.
max
Forum team
Posts: 1179
Joined: January 15th, 2013, 3:43 pm

Re: 'ffmpeg' - no protocol error

Post by max »

Now that's the proper error message! And true, the "shout" plugin is not enabled in the official MPD binary for Windows.
The "httpd" output can be used instead of Shoutcast. It cannot talk to Shoutcast, it replaces Shoutcast.
eitanc
Posts: 10
Joined: November 1st, 2020, 9:59 am

Re: 'ffmpeg' - no protocol error

Post by eitanc »

Thanks.

1. Why the MPD binary for Windows is without shoutcast?

2. I think I may not explained myself well before - I wish to use MPD only as a client source to push/play a stream of music, based on MP3 files in a folders tree, to a running shoutcast server, so the httpd option is not relevant for me, I do not wish for MPD to listen on any port.
So, if shoutcast is not available - how can I reach my goal?
max
Forum team
Posts: 1179
Joined: January 15th, 2013, 3:43 pm

Re: 'ffmpeg' - no protocol error

Post by max »

1. Because nobody spent time on making libshout available in the MPD Windows build.

2. Only with the "shout" output plugin. Your option is to build MPD for Windows manually, after porting libshout to Windows. It's open source! Power to everybody!
eitanc
Posts: 10
Joined: November 1st, 2020, 9:59 am

Re: 'ffmpeg' - no protocol error

Post by eitanc »

Thanks, but I am powerless... I do not have the knowledge to do this, and I don't have the time to learn and do all this.
Thank you for your replies.
Post Reply