[vlc] Re: broadcast TV from VLC to mobile

Siegfried Wagner wagner at ftw.at
Fri Mar 2 09:38:58 CET 2007


Hi,

Am Freitag, den 02.03.2007, 11:25 +0530 schrieb Avnish Joy:
> Hi all I want to live broadcast a TV channel through VLC on mobile
> 
> I am able to broadcast TV channel using windows media encoder but what
> codecs should be configured in VLC so that it can be seen on Nokia N80 in
> Real Media player
> 
> Please help

>From my point of view vlc is not able to do the necessary rtsp streaming
for realplayer clients itself. That's why we use for this case a darwin
streaming server with its reflector functionality as middleware to
communicate with nokia devices.

Concerning codecs needed the vlc player needs to support AMR for audio
codec, which can be established via ffmpeg. Get the latest version of
ffmpeg, look at ffmpeg/libavcodec/amr.c and follow the instructions in
this file to enable amr/3gp support.

Assuming you're trying this on linux, here are the instructions to get
things running:

Then you can compile vlc with following options:
./configure --with-ffmpeg-tree=/path/to/your/ffmpeg/ --enable-pvr
--enable-v4l

If you get the following error message:
configure: error: cannot find libpostproc.a
in /home/amuse/install/ffmpeg-svn-20061220-vlc/libavcodec/libpostproc/.
Make sure you configured ffmpeg with --enable-pp

Then recompile ffmpeg with settings: ./configure --enable-amr_nb
--enable-amr_wb --enable-gpl --enable-pp
(Don't try this in the first place without getting the error message
because of a wrong behaviour of vlc configure!)

Check if your ffmpeg supports amr: ffmpeg -formats | grep amr
FFmpeg version SVN-r7333, Copyright (c) 2000-2006 Fabrice Bellard, et
al.
  configuration:  --enable-amr_nb --enable-amr_wb 
  libavutil version: 49.1.0
  libavcodec version: 51.27.0
  libavformat version: 51.6.0
  built on Dec 30 2006 18:08:52, gcc: 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
 DE amr             3gpp amr file format
 DEA    amr_nb
 DEA    amr_wb

Now recompile vlc:
./configure --with-ffmpeg-tree=/path/to/your/ffmpeg/ --enable-pvr
--enable-v4l
make

Install Darwin streaming server:
Get a precompiled version from
http://developer.apple.com/opensource/server/streaming/index.html and
use it out of the box. Usually no special configuration is needed.

If everything went fine you should be able to do something like this:
high quality:
vlc -vvv --color pvr:/dev/video0:norm=pal:size=720x576:frequency=471250:bitrate=3000000:maxbitrate=4000000 --cr-average 1000 --sout '#transcode{vcodec=mp4v,vb=160,width=320,height=240,aenc=ffmpeg,samplerate=16000,channels=1,acodec=sawb,ab=16}:rtp{dst=127.0.0.1,port=1234,sdp=file:///usr/local/movies/stream.sdp}'
low quality:
vlc -vvv --color pvr:/dev/video0:norm=pal:size=720x576:frequency=471250:bitrate=3000000:maxbitrate=4000000 --cr-average 1000 --sout '#transcode{vcodec=mp4v,vb=96,width=176,height=144,aenc=ffmpeg,samplerate=8000,channels=1,acodec=samr,ab=8}:rtp{dst=127.0.0.1,port=1234,sdp=file:///usr/local/movies/stream.sdp}'

You then can access the stream from your mobile phone by entering the
rtsp address of the darwin server accessing the stream.sdp (e.g.
rtsp://192.168.0.1:554/stream.sdp) in the mobile browser which
automatically starts realplayer app.

Pay attention to the realplayer network settings because it ignores the
system access point selection and always takes the one which is
configured in its own configuration!

Good luck!
Siegfried Wagner.

-- 
Dipl.-Inform. Siegfried Wagner
Researcher
Multimedia and Interactive Services
ftw. Forschungszentrum Telekommunikation Wien Betriebs-GmbH
Donau-City-Straße 1 / 3. Stock, A-1220 Wien / Austria
phone: +43 1 505 28 30-11
fax: +43 1 505 28 30-99
email: wagner at ftw.at
web: http://amuse.ftw.at

-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html



More information about the vlc mailing list