Rpi: v4l2src + omxh264enc + tcpserversink

Krutskikh Ivan stein.hak at gmail.com
Wed Jun 3 08:58:39 PDT 2015


Update: streaming to local file with both raw h264 and mpegts mux goes
fine. I have 2 samples playable with vlc

2015-06-03 18:25 GMT+03:00 Krutskikh Ivan <stein.hak at gmail.com>:

> Hi,
>
> My goal is to develop a hardware screen capturing device using raspberry
> pi 2 and epiphan vga2usb screencaster (
> http://www.epiphan.com/products/vga2usb/)
>
> I've build the epiphan driver and tested the solutin with software
> mpeg4/jpeg encoders:
>
> gst-launch-1.0 v4l2src device=/dev/video0 ! videoscale ! videoconvert !
> videorate ! video/x-raw,framerate=9/1  ! avenc_mpeg4 ! mpegtsmux !
> tcpserversink host=0.0.0.0 port=5000
>
> gst-launch-1.0 v4l2src device=/dev/video0 ! videoscale ! videoconvert !
> videorate ! video/x-raw,framerate=9/1  ! jpegenc ! multipartmux !
> tcpserversink host=0.0.0.0 port=5000
>
> Both pipelines are working fine except for cpu performance.
>
>
> I can view both streams with vlc tcp://ip:5000
>
> But when I try to power the omxh264enc both vlc and tcpclientsink fail to
> buffer video:
>
> gst-launch-1.0 v4l2src device=/dev/video0 ! videoscale ! videoconvert !
> videorate ! omxh264enc target-bitrate=1000000 control-rate=1 !
> “video/x-h264,profile=high" ! h264parse ! mpegtsmux !  tcpserversink
> host=0.0.0.0 port=5000
>
> The weirdest thing is that when I try to stream to local file using
> filesink, I can play it with ffplay but vlc freezes at first frame.
>
> What's wrong with my setup?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150603/8682a9b0/attachment-0001.html>


More information about the gstreamer-devel mailing list