-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Armbian no RTSP support #930
Comments
Does this work?
|
Installed ffmpeg $ ffplay rtsp://wowza.radia.cz:1935/CRo/DDur.stream |
Headless server. $ export DISPLAY=:0 did not help. |
Try
If that fails post
and
|
$ ffplay -nodisp rtsp://wowza.radia.cz:1935/CRo/DDur.stream $ ffmpeg -demuxers |grep rtsp $ ffmpeg -muxers |grep rtsp |
The stream doesn't play here
I have rtsp protocol listed
mpd.conf
ffplay can play it, note it switches from UDP to TCP to play.
|
What makes you believe this is specific to Armbian? |
You are right it. It applies to x86_64 Linux too. |
I forgot to mention I was using x86_64
|
I also experience this issue here on x86_64, NixOS. I get |
The fix is to remove RTSP from the list of supported protocols, unfortunately. MPD expects input plugins to provide a stream of data, but FFmpeg implements RTSP as a demuxer plugin and not protocol handler (https://ffmpeg.org/ffmpeg-protocols.html#rtsp), which MPD cannot support currently. |
I don't know a thing about demuxing / streaming. But, it's a bit surprising, because I was able to use https://github.com/aler9/rtsp-simple-server#installation-and-basic-usage |
True, because |
You don't need ffplay, ffmpeg can do it directly get device number from
It connects quicker if you specify tcp for this stream.
|
Thanks @MaxKellermann & @leigh123linux for explaining. In general, I'd love to have some kind of ability to stream a media file from my desktop, to an mpd server, using Besides RTSP, for which I found https://github.com/aler9/rtsp-simple-server which made the streaming setup somewhat easy, I wasn't able to setup something that works with the other supposedly supported protocols. I tried RTP with instructions from here and after trying to play the stream by mpd, it got stuck, and I don't know if it's the way I called P.S the |
It's cool that ffmpeg can be setup to stream these urls directly, but it could be awesome to be able to control it all via an mpd client such as ncmpcpp. |
I'll write a new decoder plugin for MPD 0.22 which uses FFmpeg demuxers like RTSP. Do you want to write a new issue requesting this feature? |
That'd probably be helpful. Great :). I'm not sure I need to open a new issue, because I don't know if MPD is missing the feature I'm looking for. Basically, I'm only looking for an easy enough setup that will allow me to stream from a desktop to an MPD instance that's connected to my high end DAC and speakers. For comparison, the curl based http:// plugin would require me to run a web server, and write a script that will modify it to stream an arbitrary file on the fly. With the other network protocols supported by ffmpeg's plugin, |
This implements the feature that was missing/broken in this bug report: #930
Done - the FFmpeg decoder plugin can now play |
Bug report
Describe the bug
MPD is compiled with ffmpeg support but rtsp is not listed as supported protocol. See mpd --version below.
Expected Behavior
List and support rtsp.
Actual Behavior
$ mpc add rtsp://wowza.radia.cz:1935/CRo/DDur.stream
error adding rtsp://wowza.radia.cz:1935/CRo/DDur.stream: Unsupported URI scheme
Version
$ uname -a
Linux hostname 5.4.45-sunxi #20.05.3 SMP Wed Jun 10 12:09:20 CEST 2020 armv7l GNU/Linux
$ mpd --version
Music Player Daemon 0.22~git (v0.21.25-1041-gdbdf782e5)
Copyright 2003-2007 Warren Dukes [email protected]
Copyright 2008-2018 Max Kellermann [email protected]
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 udisks
Neighbor plugins:
udisks
Decoders plugins:
[mad] mp3 mp2
[mpg123] mp3
[vorbis] ogg oga
[oggflac] ogg oga
[flac] flac
[opus] opus ogg oga
[sndfile] wav aiff aif au snd paf iff svx sf voc w64 pvf xi htk caf sd2
[audiofile] wav au aiff aif
[faad] aac
[mpcdec] mpc
[wavpack] wv
[modplug] 669 amf ams dbm dfm dsm far it med mdl mod mtm mt2 okt s3m stm ult umx xm
[mikmod] amf dsm far gdm imf it med mod mtm s3m stm stx ult uni xm
[sidplay] sid mus str prg P00
[wildmidi] mid
[fluidsynth] 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:
libsamplerate soxr
Tag plugins:
id3tag
Output plugins:
null fifo pipe alsa httpd
Encoder plugins:
null vorbis opus lame flac
Archive plugins:
[bz2] bz2
[zzip] zip
[iso] iso
Input plugins:
file io_uring archive alsa curl ffmpeg mms
Playlist plugins:
extm3u m3u pls xspf asx rss flac cue embcue
Protocols:
file:// alsa:// ftp:// ftps:// gopher:// http:// https:// mms:// mmsh:// mmst:// mmsu:// rtmp:// rtmps:// rtmpt:// rtmpts:// rtp:// scp:// sftp:// smb:// srtp://
Other features:
avahi dbus udisks epoll icu inotify systemd tcp un
Log
mpd --stdout --no-daemon --verbose
config_file: loading file /etc/mpd.conf
path: SetFSCharset: fs charset is:
libsamplerate: libsamplerate converter 'Fastest Sinc Interpolator'
vorbis: Xiph.Org libVorbis 1.3.6
opus: libopus 1.3
sndfile: libsndfile-1.0.28
simple_db: reading DB
curl: version 7.68.0
curl: with GnuTLS/3.6.14
avahi: Initializing interface
exception: RTIOThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted
avahi: Client changed to state 101
avahi: Client is CONNECTING
state_file: Loading state file /var/lib/mpd/state
client: [0] opened from 127.0.0.1:43000
client: [0] process command list
client: process command "add "rtsp://wowza.radia.cz:1935/CRo/DDur.stream""
exception: Unsupported URI scheme
client: command returned 3
client: [0] process command list returned 3
client: [0] closed
The text was updated successfully, but these errors were encountered: