Hi,
on a jetson nano dev - it is not possible for me to setup a simple webcam stream to a tcp port:
-v v4l2src device=/dev/video1 ! video/x-h264,width=1920,height=1080,type=video,framerate=30/1,format=YUY2 ! h264parse ! nvv4l2decoder ! video/x-raw(memory:NVMM),format=NV12 ! nvv4l2h264enc ! video/x-h264,stream-format=byte-stream ! h264parse ! qtmux ! tcpserversink port=5100 host=0.0.0.0 -e
But this works fine and write a file:
-v v4l2src device=/dev/video1 ! video/x-h264,width=1920,height=1080,type=video,framerate=30/1,format=YUY2 ! h264parse ! nvv4l2decoder ! video/x-raw(memory:NVMM),format=NV12 ! nvv4l2h264enc ! video/x-h264,stream-format=byte-stream ! h264parse ! qtmux ! filesink location=./test.mp4 -e
Anybody an idea, what i can do for the tcpserversink?
This for example works well for the sink:
videotestsrc is-live=true ! queue ! videoconvert ! videoscale ! video/x-raw,width=320,height=180 ! clockoverlay shaded-background=true font-desc="Sans 38" ! theoraenc ! oggmux ! tcpserversink host=0.0.0.0 port=5100
with a GST_DEBUG=3, i get many many rows of that:
0:00:11.223881241 29427 0x55b9736b20 WARN v4l2bufferpool gstv4l2bufferpool.c:1483:gst_v4l2_buffer_pool_dqbuf:nvv4l2h264enc0:pool:sink V4L2 provided buffer has bytesused 0 which is too small to include data_offset 0
with this line:
-v v4l2src device=/dev/video1 ! video/x-h264,width=1920,height=1080,type=video,framerate=30/1,format=YUY2 ! h264parse ! nvv4l2decoder ! video/x-raw(memory:NVMM),format=NV12 ! nvv4l2h264enc profile=4 ! video/x-h264,stream-format=byte-stream ! h264parse ! rtph264pay mtu=1400 ! udpsink host=0.0.0.0 port=5100 sync=false async=false -e
(without quotes)
Hi,
Do you have a working pipeline to run tcpserversink with x264enc? It should work fine by replacing x264enc with nvv4l2h264enc.
this works:
-v -e v4l2src device=/dev/video1 ! image/jpeg,width=1920,height=1080,type=video,framerate=15/1 ! jpegparse ! jpegdec ! videoconvert ! clockoverlay text="TC:" halignment=center valignment=bottom shaded-background=true font-desc="Sans 10" ! nvvidconv ! video/x-raw(memory:NVMM) ! nvv4l2h264enc preset-level=4 maxperf-enable=true ! video/x-h264,stream-format=byte-stream ! h264parse ! mpegtsmux ! tcpserversink port=5200 host=0.0.0.0 buffers-min=50000
(without quotes)