Command Line

This is recommended for advanced users. Uncheck "Override command line" in app settings when using a script.

These are sample command lines for use with the new VLC Stream & Convert Pro version.

Scenario 1: Start VLC for remote playback

vlc
--extraintf=http:logger
--http-host=0.0.0.0:8080
--verbose=2
--http-album-art
--video-on-top

Scenario 2: Start VLC for streaming to phone (dual rtsp+http)

Works best with VLC 1.1.0 or later. For older versions remove --sout-rtp-caching and add samplerate to rtsp and http streams but audio sync is usually not good. Haven't tested this on Mac or Linux.

For higher video bitrate (vb) you should also increase vbv-maxrate, vbv-bufsize, and --sout-rtp-caching.
Note that depending on the H.264 level you are using there are certain restrictions, e.g. baseline level 3 (supported by most mobile devices) allows vbv-maxrate<=10000 and a resolution up to 720x480@30.0 or 720x576@25.0.

vlc
--extraintf=http:logger
--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
  }'
}

Scenario 3: Start VLC for file conversion

(coming soon)

Reference

VLC command-line help
How To Start VLC Server with http Interface (Windows)
x264 Settings
Android Supported Media Formats
 

AttachmentSize
vlc_play_remote_v110.bat96 bytes
vlc_stream_dual_v110_2.bat829 bytes