Live Webcam stream to android lag

About encoding, codec settings, muxers and filter usage
bignick
New Cone
New Cone
Posts: 5
Joined: 24 Apr 2013 21:46

Live Webcam stream to android lag

Postby bignick » 24 Apr 2013 21:56

I want to stream y webcam live to my android smartphone on my local network. But I keep getting a huge 15-18 second delay!
My vlc settings:
HTTP streaming
Encapsulation: MPEG-TS
Video Codec: H-264
Bitrate: 300kb/s
FPS: 12
Resolution: 640x480
No audio
VLC output string:
:sout=#transcode{vcodec=h264,vb=300,fps=12,scale=1,width=640,height=480,acodec=none}:http{mux=ts,dst=:8080/stream} :sout-all :sout-keep

I have searched everywhere for this problem but with no luck, so if anybody can help e out that would be highly appreciated :)

bignick
New Cone
New Cone
Posts: 5
Joined: 24 Apr 2013 21:46

Re: Live Webcam stream to android lag

Postby bignick » 25 Apr 2013 11:34

no help?? :(

ibstars
Blank Cone
Blank Cone
Posts: 42
Joined: 20 Feb 2009 21:57
VLC version: Mul-versions
Operating System: Windows
Location: The richest man in Babylon

Re: Live Webcam stream to android lag

Postby ibstars » 26 Apr 2013 18:09

Try removing fps and for mux use asf instead of ts.
You have to experiment, i know it sounds a bit strange but that's what i do.
Let me know if that worked.

#transcode{vcodec=h264,vb=300,width=640,acodec=none}:duplicate{dst=standard{access=http,mux=asf,dst=127.0.0.1:1234}}
IBstars

bignick
New Cone
New Cone
Posts: 5
Joined: 24 Apr 2013 21:46

Re: Live Webcam stream to android lag

Postby bignick » 26 Apr 2013 19:39

I tried it locally on my laptop it's a lot faster. But tried (knowing it won't work) it on my android phone and it didn't work because android doesn't support asf, that's why i used ts.

ibstars
Blank Cone
Blank Cone
Posts: 42
Joined: 20 Feb 2009 21:57
VLC version: Mul-versions
Operating System: Windows
Location: The richest man in Babylon

Re: Live Webcam stream to android lag

Postby ibstars » 26 Apr 2013 22:01

I tried it locally on my laptop it's a lot faster. But tried (knowing it won't work) it on my android phone and it didn't work because android doesn't support asf, that's why i used ts.

Try to experiment with this. If your phone supports flash then this should work. Let me know.

#transcode{vcodec=h264,vb=300,width=320,acodec=none}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=/mediaplayer/stream.flv},dst=none}
IBstars

bignick
New Cone
New Cone
Posts: 5
Joined: 24 Apr 2013 21:46

Re: Live Webcam stream to android lag

Postby bignick » 27 Apr 2013 19:05

sorry for the simply question but what's the url that i should use to recieve the stream.
I tried replacing dst=none with dst=:8080/stream. for example i use http://192.168.1.101:8080/stream on the phone.
But that didn't work.

ibstars
Blank Cone
Blank Cone
Posts: 42
Joined: 20 Feb 2009 21:57
VLC version: Mul-versions
Operating System: Windows
Location: The richest man in Babylon

Re: Live Webcam stream to android lag

Postby ibstars » 27 Apr 2013 19:41

sorry for the simply question but what's the url that i should use to recieve the stream.
I tried replacing dst=none with dst=:8080/stream. for example i use http://192.168.1.101:8080/stream on the phone.
But that didn't work.
This is for testing locally and globally - For this to work you need wamp server , just install it , put it online and Ur done.
This is for local stream - http://localhost:8080/mediaplayer/stream.flv (This will work when wampserver is installed -For local no need to open ports)
Global stream internet - http://yourglobalip:8080/mediaplayer/stream.flv (This will work when wampserver is installed and the 2ports as mentioned to be opened)
So to be able to view the stream globally you need a web server as i mentioned and requires to open 2 ports basically on your router.
Port 80 and 8080.
For local stream you don't need to open ports.
Last edited by ibstars on 28 Apr 2013 01:45, edited 2 times in total.
IBstars

ibstars
Blank Cone
Blank Cone
Posts: 42
Joined: 20 Feb 2009 21:57
VLC version: Mul-versions
Operating System: Windows
Location: The richest man in Babylon

Re: Live Webcam stream to android lag

Postby ibstars » 28 Apr 2013 01:10

sorry for the simply question but what's the url that i should use to recieve the stream.
I tried replacing dst=none with dst=:8080/stream. for example i use http://192.168.1.101:8080/stream on the phone.
But that didn't work.
You don't have to replace dst=none. The dst has already been defined.
IBstars

bignick
New Cone
New Cone
Posts: 5
Joined: 24 Apr 2013 21:46

Re: Live Webcam stream to android lag

Postby bignick » 28 Apr 2013 13:29

i downloaded and installed wampserver but didn't figure out how it should help me stream. Sorry but i got no experience with it, plus is it available for linux because I need run this setup on linux later on. Right now i'm testing on windows 8.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 8 guests