How to send a series of zipped bitmaps files / raw video frames by tcp with gstreamer?

F32 feng32 at 163.com
Mon Jun 15 09:28:41 UTC 2020


Hi,


I'm trying to send a series of zipped bitmap files / raw frames over network (because it consumes much less cpu than h264).
The following command works and all files are copied correctly:


> gst-launch-1.0 multifilesrc location="/dev/shm/1/%05d.bmp" index=1 ! multifilesink location="%05d.bmp"


However, when I tried to transfer these files over tcp:


 > gst-launch-1.0 multifilesrc location="%05d.bmp" index=1 ! tcpclientsink port=3000
 > gst-launch-1.0 tcpserversrc port=3000 ! multifilesink location="%05d.bmp"


The result is incorrect. What I got is numerous 4KB files instead of large bitmap files.


I have learned that for raw video over tcp, we need to add a "rawvideoparse" element after tcpserversrc, but it does not seem to support generic compression (zip, gzip, etc.)


What is the simplest way to support transferring a series of zipped bitmap files / raw video frames by tcp with gstreamer? Do I need to extend the rawvideoaprse, write a special zipdec element, or something else?


Regards,
Windy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200615/11e2f179/attachment-0001.htm>


More information about the gstreamer-devel mailing list