From: <gsb...@ya...> - 2002-11-25 03:44:07
|
Hello, I'm quite deseperate looking for a solution to my problem (that I'll describe below). I'm trying ffmpeg/ffserver and mencoder but none suffice my needs until now. Here it goes: I want to build a "Security Camera Recorder" to my father. I want it maily because I want record to a disk and stream it (both "live" and recorded). The problems are: 1) I want to have the input from v4l device cropped to remove border noises AND the time of each frame recorded on it (a little clock on the top of the image). So ffmpeg can't be used. 2) I want to record 1 hour movies and save them to /movies/<WEEK_DAY>/<HOUR>.<Extension> so I can stream it later (or at least download), but while saving them I want to be able to stream it as "live" recording. (2 outputs: 1 to disk, 1 to the net). So mencoder is out. 3) I want to be able to seek in the stream(both live and already recorded), so I can go to directly to the minutes I want (from the file named as the hour it was recorded) 4) In future I want to make one v4l card to record 2 or more channels at the same time (swaping between channels each frame, so I can record 2 or more cameras with only 1 v4l device) Basicaly is it: .--------. .----. .-----. |HardDisc|--------->|PC_1| |CAM_1|\ /'--------'\_ /'----' '-----' \ .---------. / \_ / . . \ |Server |/ \_ / . . +->|(Encoder+| /\_ . . / | Crop+ |\ / \.----. .-----. / | "Clock")| \ .-----------. /---->|PC_N| |CAM_N|/ '---------' \|Live stream|/ '----' '-----' '-----------' With that I can see the cameras from home and in my father drugstore. Since I cannot find a ready to use solution I'll develop mine and I'm thinking about gstreamer as my framework. But I want to know if it is possible to do and how to do that (basic guidelines). And some specific things about GStreamer: 1) There is a v4l capture interface? 2) There is any crop plugin so I can crop the border noise? 3) There is any bitmap overlay plugin (so I can put the "clock" over the frames) 4) There is any stream server inside gstreamer that is seek capable and can output to any type of player (mplayer and windows media player by instance). What is the best format to stream? 5) How optimized are GStreamer encoders? It's possible to record 4 v4l inputs at 640x480 @ 25 fps? It's possible to use lavcodec (from ffmpeg, very optimized) Really thanks, Gustavo _______________________________________________________________________ Yahoo! GeoCities Tudo para criar o seu site: ferramentas fáceis de usar, espaço de sobra e acessórios. http://br.geocities.yahoo.com/ |
From: Ronald B. <rb...@ro...> - 2002-11-25 12:04:32
|
Hi Gustavo, On Mon, 2002-11-25 at 04:44, Gustavo Sverzut Barbieri wrote: > 3) I want to be able to seek in the stream(both live and already > recorded), so I can go to directly to the minutes I want (from the file > named as the hour it was recorded) Then you definately need MPEG. > 4) In future I want to make one v4l card to record 2 or more > channels at the same time (swaping between channels each frame, so I > can record 2 or more cameras with only 1 v4l device) I would *highly* disagree here. The card needs several moments to sync with the new input, which would leave you with a framerate of maybe 2 fps per input. Using two cards is so much easier, and these cards are cheap anyway. > Since I cannot find a ready to use solution I'll develop mine and > I'm thinking about gstreamer as my framework. But I want to know if it > is possible to do and how to do that (basic guidelines). And some > specific things about GStreamer: > 1) There is a v4l capture interface? Yes. v4lsrc (video4linux) and v4l2src (video4linux2) both exist. > 2) There is any crop plugin so I can crop the border noise? Not that I know of. You'd have to write your own. > 3) There is any bitmap overlay plugin (so I can put the "clock" over > the frames) Nope. > 4) There is any stream server inside gstreamer that is seek capable > and can output to any type of player (mplayer and windows media player > by instance). What is the best format to stream? There is no stream server plugin in Gst for video. We do have several audio stream server plugins. MPEG is your choice, I guess... > 5) How optimized are GStreamer encoders? It's possible to record 4 > v4l inputs at 640x480 @ 25 fps? It's possible to use lavcodec (from > ffmpeg, very optimized) We have ffmpeg encoder plugins. HTH, -- Ronald Bultje <rb...@ro...> Linux Video/Multimedia developer |
From: Thomas V. S. <th...@ur...> - 2002-11-25 12:29:13
|
Hey Gustavo, (I'm not a video person, but I can answer some of the questions) > 1) I want to have the input from v4l device cropped to remove border > noises AND the time of each frame recorded on it (a little clock on the > top of the image). So ffmpeg can't be used. Don't think we have that yet, but it should be very easy to write, and there are quite a few people interested in having this, so you'll get a lot of help if you have questions. It'd be great if you could write a plugin that does this. > 3) I want to be able to seek in the stream(both live and already > recorded), so I can go to directly to the minutes I want (from the file > named as the hour it was recorded) you need MPEG or a raw format. > 3) There is any bitmap overlay plugin (so I can put the "clock" over > the frames) this one is one some of us have wanted as well, so again you'll get a lot of help for it. > 4) There is any stream server inside gstreamer that is seek capable > and can output to any type of player (mplayer and windows media player > by instance). What is the best format to stream? no, there isn't. There's a good chance though that you would be able to integrate one of our plug-ins to send stuff across the network with vlc. Hope you join us ;-) Thomas -- The Dave/Dina Project : future TV today ! - http://davedina.apestaart.org/ <-*- thomas (dot) apestaart (dot) org -*-> slips her dress like a fly to the floor hands in the sky surrenders it all <-*- thomas (at) apestaart (dot) org -*-> URGent, the best radio on the Internet - 24/7 ! - http://urgent.rug.ac.be/ |