[FFmpeg-user] communicate between ffserver and ffmpeg without socket, is it possible?

Diaz Soho soho123.2012 at gmail.com
Wed Aug 6 11:12:39 CEST 2014


Hi all,

as my understanding,
ffserver and ffmpeg use tcp socket to communicate with each other.

is it possible to use global buffer for communication?
because both ffserver and ffmpeg are user space process, if use tcp socket
to do communication,
then all data have to go through a normal network path , such that ffserver
can get the video data or audio data .
it seems take a redundant effort to transfer data from ffmpeg to ffserver.
for example:
in video case,
ffmpeg read video data from usb webcam (that is the device  in kernel
space), then send  the data via tcp socket to ffserver, then ffmpeg put the
data into kernel space,
in advance, ffserver receive the data from tcp socket (the buffer is in
user space),
the data has been transfered for a long path!!!!!
Does anyone have ideas?


Thanks!

Soho


More information about the ffmpeg-user mailing list