[mythtv-users] Request for help: Myth on-demand streaming to android device

Richard Shaw hobbes1069 at gmail.com
Mon Mar 21 02:17:45 UTC 2011


I've made some progress just getting a video to stream, however, the
only player I've found for android that can handle rtsp streams,
VPlayer, doesn't appear to be using accelerated playback as it's quite
jerky even though I'm scaling it down to the native resolution and
only using 500kbps video bitrate. Script posted on the bottom.

Richard

---
stream-android.sh
---
#!/bin/bash

# specify path to vlc here
vlc=/usr/bin/vlc

$vlc \
--intf=lua \
 --lua-intf=http \
--lua-config="http={host='0.0.0.0:8080'}" \
--verbose=2 \
--http-album-art \
--audio-language=en --sub-language=en \
--audio-desync=-50 \
--no-sout-rtp-sap --sout-rtp-caching=2000 \
--sout-transcode-threads=4 --sout-transcode-high-priority \
--sout-keep \
--sout="#duplicate{ \
  dst='transcode{ \
    venc=x264{ \
      profile=baseline,level=3, \
      keyint=50,bframes=0,no-cabac,ref=1,no-interlaced, \
      vbv-maxrate=512,vbv-bufsize=256,aq-mode=0,no-mbtree, \
      partitions=none,no-weightb,weightp=0,me=dia,subme=0,no-mixed-refs,no-8x8dct,trellis=0
\
    }, \
    vcodec=h264,vb=512, \
    vfilter=canvas{width=480,height=320,aspect=480:320,padd}, \
    soverlay, \
    aenc=ffmpeg{ \
      aac-profile=low \
    }, \
    acodec=mp4a,ab=128,channels=2,audio-sync \
  }:gather:rtp{ \
    sdp=rtsp://0.0.0.0:5554/android.sdp,mp4a-latm \
  }', \
  dst='transcode{ \
    vcodec=null, \
    acodec=mp3,ab=160,channels=2 \
  }:gather:std{ \
    access=http,mux=raw,dst=0.0.0.0:8081 \
  }' \
}"


More information about the mythtv-users mailing list