python - Streaming media files via DLNA/UPnP -
I am currently running Raspbmc on my Raspberry P and am enabling UPnP rendering streaming.
My goal is to write a simple python to stream a video or music playlist.
I have tried, but I'm throwing it off with a bunch and I do not really get this point. So I'm looking for an easy way / library.
What is the easiest way to stream media files through Python in my TV?
For audio only, I will get good results with Riggle Hard part , Configure GstLaunch pulseaudio connector in .config / rygel.conf. Here's my section, but you can get the correct PulseDown source with the following pulse:
pactl list | Egrep -A2 '^ (\ * \ * \ *)? Source # '| Grep 'name:. *. Monitor $ '| Awk '{print $ NF}' | Here's my GestLaunch section:
enabled [true] - myaudiowpeg myaudiowpeg myaudiowav-title = WAV audio @ HOSTNAME @ myaudiowav-mime = Audio / x-wav myaudiowav-launch = pulsesrc device = alsa_output.pci-0000_00_14.2.analog-stereo.monitor! Audio / X-Raw, Channel = 2! Wavpackenc myaudiompeg-title = @ HOSTNAME @ myaudiompeg-mime = audio / mpeg myaudiompeg-launch = audio audio on pulsesrc device = alsa_output.pci-0000_00_14.2.analog-stereo.monitor! Audio / X-Raw, Channel = 2! Lamemp3enc target = quality q uality = 6
Comments
Post a Comment