Sunday, January 20, 2013

Video Streaming with VLC to 4 Ubuntu PCs

Below is a demo of video streaming to 4 Ubuntu PCs using VLC.

On the server I execute: vlc --sout udp:239.255.12.42

On the clients I execute: vlc udp://@239.255.12.42

Stream: MPEG2 720p video

Software:

  • VLC media player 2.0.5
  • Ubuntu 12.04 and 12.10

Hardware from left to right:

  • Quad core server.
  • Zotac ION HTPC.
  • Lenovo X1 Carbon laptop
  • Asus UX13 laptop

Streamed over wired 1000Mb/s LAN.

Friday, January 18, 2013

Associating myth:// URI scheme with mythavtest

This shows how to associate URI scheme myth:// with mythavtest in Ubuntu 12.04.

Create the desktop file.

sudo nano /usr/share/applications/mythhandler.desktop
Insert the following text in to the desktop file.
[Desktop Entry]
Encoding=UTF-8
Name=Myth protocol handler
Comment=MythTV protocol handler
Exec=/usr/bin/mythavtest %U
Terminal=false
Type=Application
Icon=MythTV
Categories=Application;Utility;Video;
MimeType=video/mpeg;x-scheme-handler/myth;
StartupNotify=true
StartupWMClass=MythTV
Save the file and issue the following command:
sudo update-desktop-database
Now you could run the following command to view a MythTV recording:
xdg-open myth://Default@192.168.1.5:6544/1323_20130118070000.mpg
Or in a node-webkit app you could do this:
var gui = require('nw.gui');
gui.Shell.openExternal("myth://Default@192.168.1.5:6544/1323_20130118070000.mpg");
I use this method in my MythTV Gadget.