Re: Input video-data to v4l from userspace



On a sunny day (Wed, 28 Mar 2007 13:01:11 +0200) it happened Johannes Dohmen
<johannes.dohmen@xxxxxx> wrote in <eudhu3$ct7$03$1@xxxxxxxxxxxxxxxxx>:

Hi there,

HI

First of all I have to say that I'm new to this newsgroup and I hope it
is the right one for my question:

WHO KNOWS, COULD BE COULD BE NOT.


Is there a way to INPUT video-data to v4l from the user-space?

NO IDEA.


I'm writing a voip-program

COOL

(c++)

MY CONDOLATIONS.

which uses rtp for transport (with GNUs
ccrtp) and alsa for audio i/o
I need now to handle video-data as well. Capturing the data at the
sender does not seem the problem to me, but i'm searching for good
solution, what to do with the video data at the receiving end.


I DUNNO v4l, BUT FROM MY TECHNICAL PERSPECTIVE IT SUCKS LIKE THE VACUUM OF SPACE.
THIS IS *my* OPINION, OTHERS USE FOR EXAMPE DRUGS TOO.


I realy don't want to write a new video-player (there are so many so
good players around).

IT IS NOT REALLY _THAT_ HARD TO GET VIDEO TO A X WINDOW.


It occured a good idea to me, to somehow get the data in the v4l-layer,
that any v4l-able program (mplayer, xawtv, xine etc) could playback the
data... what do you think about this idea? Good/bad

SEE ABOVE.

(why?)?
YES WTF SHOULD ONE.

Possible/impossible?

THERE IS A DIFFERENT WAY THAT YOU CAN DO THIS, USE mjpegtools YUV FORMAT.
mplayer ACCEPTS THIS, AS DOES ffmpeg, AS DO MANY OTHER VIDEO RELATED TOOLS AND FILTERS.


THIS HAS THE ADVANTAGE THAT YOU CAN, JUST IN THE TRADIONAL uNIX WAY, STREAM TO STDOUT AND
READ FROM STDIN, AND CAN CHAIN FILTERS / DECODERS / ENCODERS IN SERIES.

THE mjpegtools yuv FORMAT IS REALLY EASY, ALL IT DOES IS WRITE A HEADER, AND THEN WRITES A
YUYV FORMAT STREAM.
IF YOU WANT A SIMPLE SOURCE CODE EXAMPLE THAT USES THIS, LOOK UP MY MCAMIP SOURCE:
http://panteltje.com/panteltje/mcamip/



Regards from Germany

THANK YOU FOR READING THIS.

joe

J
.



Relevant Pages

  • Re: After running for hours, deadlocks on return m_pInputPin->Receive(pSample)
    ... After running my application for hours with fine video at a good ... rebuilt (without stopping the streaming from the camera). ... causing an infinite wait for a free buffer. ... If you don't have the source code for that Receive, ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: replacing intel-agp.o
    ... onboard Intel 946GZ video chipset. ... source code. ... All in all this solved the first 2 of my 5 video problems with the i810 driver: ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Defendant wins breathalyzer source code
    ... If I was ordered to hand over source code, I sure as hell wouldn't be ... offering a version that had comments in it!!! ... If a shoplifter is caught on video, couldn't they then ask to see the ...
    (comp.arch.embedded)
  • Re: DHGR Correction for KEGS32 & AppleWin
    ... AppleWin is currently undergoing a massive video rewrite (since I'm the ... Michael - AppleWin debugger guy ... I do not mind when source code is in mess. ...
    (comp.emulators.apple2)
  • Re: VGA
    ... >> I need small source code which can set graphics or text mode on VGA ... > graphic adapters (so perhaps a start might be looking for any ... Incidently these are the I/O address space registers that will be used so ... VGA/Monochrome Video: 3B0-3BBh ...
    (comp.lang.asm.x86)