![firefox upnp player firefox upnp player](https://monobit.ru/wp-content/uploads/2017/05/aosyikowqirqwr2.png)
Pactl load-module module-rygel-media-server Myaudiompeg-title=MPEG audio on device=upnp.monitor ! lamemp3enc target=quality quality=6Įxecute the following commands from the commandline (these could be put into a script if desired): pactl load-module module-http-protocol-tcp Myaudioflac-title=FLAC audio on device=upnp.monitor ! flacenc quality=8
FIREFOX UPNP PLAYER INSTALL
Install any needed packages: sudo apt-get install rygel rygel-preferences rygel-gst-launchĬreate the file ~/.config/nf that contains the following: stream Here's an answer for Ubuntu 14.04 (also tested and working on 15.04), for completeness: NOTE: This solution works, but a newer and probably better solution has been proposed by Massimo. But it should work with any DLNA compliant devices.
FIREFOX UPNP PLAYER ANDROID
It worked for me with a WDTV as renderer and an Android phone with BubbleUPnP as control point (You can type in the stream URL when adding a new item to the playlist manually). Httpd = SocketServer.TCPServer(("", PORT), Handler)Īdjust the parameters, run it, and point the DLNA renderer to your machine.
![firefox upnp player firefox upnp player](https://i.ebayimg.com/images/g/ZVQAAOSwCoRdO2gA/s-l400.jpg)
Pa = subprocess.Popen('parec -d '.format(MONITOR, ENCODER), shell = True, bufsize = BUFFER, stdout = subprocess.PIPE) Print s.client_address, s.path, s.command # add null sink with "pactl load-module module-null-sink"ĮNCODER = 'flac -c -channels 2 -bps 16 -sample-rate 44100 -endian little -sign signed'Ĭlass Handler(BaseHTTPServer.BaseHTTPRequestHandler): # you may add a null sink for streaming, so that what is streamed is not played back locally # run "pactl list short |grep monitor" to see what monitors are available It works with the following (very simple) script: #!/usr/bin/python It gets the audio stream from pulse with parec, encodes it with flac (or lame or whatever you want) and sets the mime type correctly. The next idea was to write a http server in python that serves the stream instead. VLC does serve the transcoded stream correctly, but it does not allow to set the mime type, so the renderer refuses to play it. Then I wanted to use some DLNA control point to let the renderer play taht stream. One idea I had to stream "what I hear" to a DLNA renderer (like WDTV) was to server the stream with VLC as http stream with pulse://alsa_ as input and transcode it to MP3 or FLAC. Hopefully if you haven't already got it solved that's given you a few ideas. It should locate OutputStream.flac and then be accessible from your network device. Then boot up miniDLNA in another terminal window: minidlna -d -f ~/stream/nf -P ~/stream/minidlna.pid Another option is vlc is you have a GUI available and this doesn't work. Googling for "FFmpeg record sound card audio" yielded this command ffmpeg -f alsa -i default -acodec flac ~/stream/OutputStream.flacīut I didn't have much luck with it. Then save the stream to an audiofile in that directory. Create ~/stream/nf network_interface=wlan0Īlbum_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg The principle is get a program to record the stream to an audiofile, then launch miniDLNA with a custom config which points to the directory that stream is in.Įxample: Say we're working in ~/stream/. I'm sorry I can't help you with Rygel at all, but there may be an alternative which may work for you. Audio metadata were not transmitted.Īre there any other alternatives for sending the audio of our soundcard as live stream to a DLNA client? Still, we needed to select an established stream after we started rygel and were unable to push a new stream to our UPnP devices.
FIREFOX UPNP PLAYER UPGRADE
Only after a distribution upgrade to 14.04 LTS we were able to select a live stream on our DLNA renderers from settings nicely outlined in below answer. There was no way to listen to live audio streams on the client. In 12.04 LTS we can select the local audio device, or our GST-Launch stream in the DLNA client but Rygel displays the following message and the client states it reached the end of the playlist: (rygel:7380): Rygel-WARNING **: rygel-http-request.vala:97: Invalid seek request We followed the steps outlined in, this answer here, and also in another similar guide. Pulseaudio claims to have a DLNA/UPnP media server that together with Rygel is supposed to do just this. Is there a way to stream the live output of the soundcard from our 12.04.1 LTS amd64 desktop to a DLNA-compliant external device in our network? Selecting media content in shared directories using Rygel, miniDLNA, and uShare is always fine - but so far we completely failed to get a live audio stream to a client via DLNA.