M
M
Michael Galyuk2014-07-07 08:26:28
X Window System
Michael Galyuk, 2014-07-07 08:26:28

How to output raw video stream to X11 window and Win?

Previously, I used GStreamer to capture video from a webcam and output a video stream to an X window. To output the stream, I slipped the window handle window.xid (in Windows window.handle) to the "xvimagesink" component and the picture went into the window.
Now I'm capturing the stream through FFMpeg (aka LibAV), but I still don't understand how to display it in an X11 window. I rummaged all over Google, found that X11 uses the XVideo subsystem for output . But its API was not found.
Question : how to output a raw (RAW: RGB or YUV) video stream to a window, knowing its descriptor/handle (X11 and WinAPI)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
monah_tuk, 2015-04-05
@monah_tuk

Try: https://www.ffmpeg.org/ffmpeg-devices.html#xv
in general output devices: https://www.ffmpeg.org/ffmpeg-devices.html#Output-...
PS under Windows I don't know.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question