v4l2src x265enc with Redistribute latency... no image show
Nicolas Dufresne
nicolas at ndufresne.ca
Sat Mar 24 17:42:20 UTC 2018
Le vendredi 23 mars 2018 à 23:06 -0700, Erickson.LU a écrit :
> I tried the pipline /"GST_DEBUG=4 gst-launch-1.0 videotestsrc !
> "video/x-raw,
> format=(string)I420" ! x265enc ! avdec_h265 ! autovideosink"/. It
> worked
>
> *But , pipline*
> /GST_DEBUG=3 gst-launch-1.0 v4l2src device="/dev/video0" num-
> buffers=300 !
> "video/x-raw, format=(string)I420, width=(int)800, height=(int)600,
> pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
> framerate=(fraction)30/1" ! x265enc ! avdec_h265 ! xvimagesink /
> *or*
> /GST_DEBUG=3 gst-launch-1.0 v4l2src device="/dev/video0" num-
> buffers=300 !
> "video/x-raw, format=(string)I420, width=(int)800, height=(int)600,
> pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
> framerate=(fraction)30/1" ! x265enc ! avdec_h265 ! autovideosink/
> *did not.*
>
> They just leave a warning info
> /0:00:00.568824628 16861 0x1dd08a0 WARN v4l2bufferpool
> gstv4l2bufferpool.c:540:gst_v4l2_buffer_pool_set_config:<v4l2src0:poo
> l:src>
> libv4l2 converter detected, disabling CREATE_BUFS/
>
> I can use /*gst-launch-1.0 v4l2src ! "video/x-raw,
> format=(string)I420" !
> autovideosink*/ to show the camera.
No idea why this makes a difference. Though, assuming CREATE_BUFS is
disabled and it stalls, it would be x265enc does not request enough
buffers. Meanwhile, you can workaround by not letting libv4l2 decode
jpegs like it does now:
v4l2src ! jpegdec ! x265enc ! ...
>
> But i really need the H265 encode, someone said it's the buffer
> problem or
> gstreamer bug, but i can't fixed it. Could you show me something i
> can fix
> that thing.
> Truly Thanks...
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list