Page 1 of 1

Is it possible to use command line and stream internal cam?

Posted: 06 Feb 2013 00:49
by blueice_haller
Hello,
I have an Samsung Galaxy S2 with old not rooted 2.3.x Android (but I will update/root if needed) and want to stream to VLC like on computer.
Is it possible to execute an start script like this? Perhaps with V4L or Android's Camera API's?
II know that already apps exist that are made for this job, spydroid-ipcamera for example.

Code: Select all

@C:\Progra~1\VideoLAN\VLC\vlc.exe dshow:// :dshow-vdev="Smart Cam, WDM Video Capture" :dshow-adev="Internal Microphone (Conexant 2" :dshow-size="640x480" :dshow-fps=30.000000 :sout=#duplicate{dst=display,dst='transcode{vcodec=mp2v,vb=300,deinterlace,ab=64,fps=30,width=640,height=480,acodec=mpga,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=ts},dst=:1234}}'}

Code: Select all

# Source: http://serverfault.com/questions/288137/how-to-stream-live-video-from-a-linux-server vlc v4l:// :v4l-vdev="/dev/video0" :v4l-adev="/dev/audio2" --sout '#transcode{vcodec=FLV1,vb=512,acodec=mpga,ab=64,samplerate=44100}:std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/stream.flv}'
Ressources:
http://pickerwengs.blogspot.de/2011/05/ ... e-and.html
http://comments.gmane.org/gmane.comp.ha ... ting/12285
https://www.google.de/search?q=android+v4l

Thanks

Re: Is it possible to use command line and stream internal c

Posted: 06 Feb 2013 05:01
by edwardw
Android does not expose any V4L2 APIs. See the previous discussion on this: viewtopic.php?f=35&t=102184