Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

live video streaming made easy

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Video Streaming
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Fri May 26, 2006 10:02 pm    Post subject: live video streaming made easy Reply with quote

hi,

just had a quick go on streaming video from a dv camera with an icecast-server ... seems like one must use theora as video codec, because icecast cannot handle other codecs (right?).
this is a bit of a drawback, because mpeg4 codecs like xvid or x264 are much more efficient - and bandwidth is always in short supply. otoh, theora is free as speech.

anyway, on to streaming ... things you need, besides a linux distro:

- dvgrab - grabs frames from your camera
- ffmpeg2theora - encodes audio and video
- oggfwd_im - a minimalistic ice source

with a little luck, the first two are readily available for your distro - i checked with gentoo and debian (its ~x86 masked in gentoo and unstable in debian, the latter should be useable with ubuntu). you probably need to build oggfwd_im yourself: don't panic, it's only a single c file, and you should already have all dependencies if you have the other apps installed. download the archive (http://darksnow.radiolivre.org/oggfwd_im/), untar and run make and make install. you are set.

now, to start streaming, all you have to do is to turn your camera on and run a command like this, all in one line:
Code:
vj@thoralf-pc ~ $  dvgrab --format raw - |ffmpeg2theora -f dv -x 320 -y 240 --deinterlace -v 4 -a -1 -o /dev/stdout |oggfwd yourserver yourport yourpass /yourmountpoint.ogg

this lets dvgrab grab frames from the dv cam, pipes the output to fmpeg which encodes the audio as vorbis (at around ~50kb), and the video as theora (~100kb). the video will be deinterlaced and resized to 320x240 beforehand. These streams are then encapsulated into an ogg container and forwarded to your icecast server by oggfwd.

play around with these settings, i used them on a p4/2.6ghz (~ 90% cpu) to stream stuff over a freifunk wlan. it has limited bandwidth, so you may want to use higher bitrates on your lan - tweak them with -a and -v.

to watch such a stream on windows, you need either vlc player or, if your favourite player is directshow-based, the ogg splitter/codec package from illiminable - grab them at http://www.illiminable.com/ogg/.


forget about windows, btw. i played around with vlc player, which is allegedly capable to act as an ice source from version 0.8.4 onwards, but it just didn't work. it did crash all the time, it wasn't able to maintain a stable connection to the icecast server, it has a horrendous syntax, it was only able to encode something like 80x60 in realtime, and no player could play the resulting streams, not even vlc itself.

hope this helps -
thoralf.
Back to top
Sankt



Joined: 12 Apr 2006
Posts: 82

PostPosted: Sun May 28, 2006 12:25 am    Post subject: Reply with quote

You can also stream video content using the NSV format, with the Icecast server.

The NSV format currently supports the VP3, VP6.1, VP6.2 and the x.264 video codecs.

The NSV format is open source and now fully documented.
www.scvi.net/open.htm

There is also a plugin SDK for using additional video formats with NSV.
www.nullsoft.com/nsv/nsv_codec_sdk.zip


There is a offshooot of the Dirac video codec project ( Another open source codec ) , that is implimenting the Dirac codec within the Ogg format - http://schrodinger.sourceforge.net

Dirac video codec site - http://dirac.sourceforge.net
_________________
Using NSV with Icecast : www.scvi.net/nsvice.htm
Society of Motion Picture and Television Engineers
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Video Streaming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber