[mythtv-users] mythtv streaming for android

Andy Wettstein ajw1980 at gmail.com
Wed Jan 12 16:28:55 UTC 2011


On Wed, Jan 12, 2011 at 10:24:25AM +0100, Sven Bretfeld wrote:
> Hi Andy
> 
> Thanks for hinting us to this and thanks for sharing the script.
> 
> I tried it today with only minor success. Sound works good but lags
> every 3 seconds for 1 second (for both, video and music). What is worse,
> when playing a video there is nothing to view. The screen stays black,
> only sound.
> 
> I had a picture when I tried for the very first time, but it was in very
> gross resolution, rather bricks than pixels. After the first time no
> picture ever appeared again.
> 
> I strictly followed your setup, using your script, but with the standard
> vlc from the Ubuntu repository on Mythbuntu 10.10. The Android device
> (HTC Magic, Froyo) is connected via WLAN within a local network. I run
> the pro version of VLC S&C. The option "Override command line" is
> unchecked. 
> 
> What could be the problem? Simply the speed of the LAN? Can it be solved
> by adjusting the encoding parameters? In the long run I would like to
> stream remotely via VPN. Help would be very welcome.
 
VLC from ubuntu has the x264 encoder enabled?

You may want to try streaming from http. That is audio only but you can
at least check if you get pauses with that.

It certainly might be necessary to adjust the encoding parameters both
for available wireless bandwidth as well as processing power on both 
the machine you are streaming from and the android device.

You may also want to change the VLC S&C playback resolution. 

When I was testing things out, I also did some manual streaming from 
the VLC interface using rtsp and http streams and played them with mplayer 
to make sure the streaming was working ok. Just right click a file in
vlc and select stream. Add an rtsp stream and make sure transcoding is
activated with the x264+aac profile. Then start the stream.
If you used the defaults, you can play it in mplayer with something like 
this (trailing slash is important):
mplayer rtsp://hostname:5544/ 

That will at least let you know if the vlc server is working as
expected.


More information about the mythtv-users mailing list