jlanza
jlanza

Reputation: 1258

VLC live http streaming to Android

I'm trying to do http live streaming from VLC to an android app using VideoView.

I have 3gp video and use vlc to stream it:

cvlc -vvv video.3gp --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128}:standard{access=http,mux=ogg,‌​dst=128.0.0.6:9090/jlanza}' 

In my android I set the videoview source to http:// and to httplive:// but nothing is displayed. I always get an error.

Can anybody explain to me how to configure vlc for http live streaming?

Edit: Solution to my problem

cvlc -vvv video.mp4 --sout '#transcode{vcodec=h264,vb=100}:standard{access=http,mux=ts{use-key-frames},dst=:9090}'

then the url is http://@server:9090

Upvotes: 4

Views: 20892

Answers (1)

jlanza
jlanza

Reputation: 1258

Solution to my problem

cvlc -vvv video.mp4 --sout '#transcode{vcodec=h264,vb=100}:standard{access=http,mux=ts{use-key-frames},dst=:9090}'

then the url is http://@server:9090

Upvotes: 6

Related Questions