Raspberry Pi: Timestamped Live-Stream

waymond91 waymond91 at gmail.com
Fri May 18 01:54:05 UTC 2018


Ok. I have been working at. My biggest problem is: I don't really know how to
probe the format my stream is in at different states of the pipeline. This
makes it difficult for me to discover what filter element I should use. Any
advice on this?

I know how to use the gst-inspect-1.0 tool, but it seems like filters like
videoconvert and sinks like filesink & autovideosink accept and output such
a wide range of formats, so its not clear to me what is exactly happening.

Since I know that the autovideosink is working well I am simply dropping the
tee and looking for a new way to filesink the stream after the timeoverlay.
I feel like this is very doable, I am just inexperienced!

Here is how it looks:

gst-launch-1.0 -e udpsrc port=5000 \
   ! gdpdepay \
   ! rtph264depay \
   ! queue ! avdec_h264 ! videoconvert ! timeoverlay ! filesink
location=tee.mp4 \

Unfortunately, this throws no errors when I run the stream, the video simply
won't play back.
Are there filters available that make this possible? i.e:

gst-launch-1.0 -e udpsrc port=5000 \
   ! gdpdepay \
   ! rtph264depay \
   ! queue ! avdec_h264 ! videoconvert ! timeoverlay ! something ! else !
here ! filesink location=tee.mp4 \

Even just a way to probe the exact format of whats coming out of the
timeoverlay would be a huge help. 
Inspecting the timeoverlay sources shows:

Capabilities:
      video/x-raw
                 format: { BGRx, RGBx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR,
RGB, BGR, I420, YV12, AYUV, YUY2, UYVY, v308, Y41B, Y42B, Y444, NV12, NV21,
A420, YUV9, YVU9, IYU1, GRAY8 }
                  width: [ 1, 2147483647 ]
                 height: [ 1, 2147483647 ]
              framerate: [ 0/1, 2147483647/1 ]
      video/x-raw(ANY)
                 format: { I420, YV12, YUY2, UYVY, AYUV, RGBx, BGRx, xRGB,
xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216,
NV12, NV21, NV16, NV61, NV24, GRAY8, GRAY16_BE, GRAY16_LE, v308, RGB16,
BGR16, RGB15, BGR15, UYVP, A420, RGB8P, YUV9, YVU9, IYU1, ARGB64, AYUV64,
r210, I420_10LE, I420_10BE, I422_10LE, I422_10BE, Y444_10LE, Y444_10BE, GBR,
GBR_10LE, GBR_10BE, NV12_64Z32, A420_10LE, A420_10BE, A422_10LE, A422_10BE,
A444_10LE, A444_10BE }

But how do I know which one it actually is??

Cheers!
Brett




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list