[Libav-user] problems using libav via MPD for rtsp stream
KeithG
ys3al35l at gmail.com
Tue Jul 28 16:51:24 EEST 2020
I have been using ffmpeg on this RPi based audio appliance for a while. I
recently tried to add an rtsp stream to mpd whichuses libav to play the
stream. When I do so I get an error from MPD:
Jul 28 08:43 : exception: Failed to decode rtsp://
wowza.radia.cz:1935/CRo/DDur.stream; Protocol not found
Jul 28 08:43 : player: played "rtsp://wowza.radia.cz:1935/CRo/DDur.stream"
Jul 28 08:43 : exception: Failed to decode rtsp://
wowza.radia.cz:1935/CRo/DDur.stream; Protocol not found
Jul 28 08:43 : exception: Failed to decode rtsp://
wowza.radia.cz:1935/CRo/DDur.stream; Protocol not found
Jul 28 08:43 : player: played "rtsp://wowza.radia.cz:1935/CRo/DDur.stream"
When I use ffmpeg from the cli it works fine:
# ffmpeg -rtsp_transport tcp -i rtsp://wowza.radia.cz:1935/CRo/DDur.stream
-f alsa hw:1,0
ffmpeg version n4.2.3 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9.3.0 (GCC)
configuration: --prefix=/usr --disable-debug --disable-static
--disable-stripping --enable-avisynth --enable-fontconfig --enable-gmp
--enable-gnutls --enable-gpl --enable-ladspa --enable-libass
--enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype
--enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack
--enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb
--enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus
--enable-libpulse --enable-libsoxr --enable-libspeex --enable-libsrt
--enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab
--enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid
--enable-omx --enable-shared --enable-version3 --host-cflags='"-fPIC"'
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
Input #0, rtsp, from 'rtsp://wowza.radia.cz:1935/CRo/DDur.stream':
Metadata:
title : DDur.stream
Duration: N/A, start: 0.093016, bitrate: N/A
Stream #0:0: Audio: aac (HE-AAC), 44100 Hz, stereo, fltp
Stream mapping:
Stream #0:0 -> #0:0 (aac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, alsa, to 'hw:1,0':
Metadata:
title : DDur.stream
encoder : Lavf58.29.100
Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Metadata:
encoder : Lavc58.54.100 pcm_s16le
size=N/A time=00:00:16.85 bitrate=N/A speed=0.988x
Do I need to specify something when sent from MPD? Can it be that the flag
"-rtsp_transport tcp" is needed for an immediate connection? If I omit
this, it will connect, it just takes it a bit of time to figure out that
udp does not work and then falls back on tcp.
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20200728/ea175199/attachment.html>
More information about the Libav-user
mailing list