Gstreamer h264 udp stream is to laggy
kingalione
ali.karadag at chronext.com
Thu Nov 3 14:11:46 UTC 2016
Hello, I'm very new in gstreamer and have a problem:
I'm using gstreamer to stream a h264 encoded udp stream to an iPad. It works
but there is one big problem. The stream is way to laggy. I mean if I do
something in front of the camera, I see it on the iPad after 3-6 Seconds
which is way to much.
this is how my pipeline looks:
sudo gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,
width=3072,height=2048,framerate=15/1 ! videoconvert ! queue ! videoscale !
video/x-raw, width=600,height=450,framerate=15/1 ! x264enc tune=zerolatency
speed-preset=ultrafast bitrate=500 ! queue ! rtph264pay config-interval=2
pt=96 ! udpsink host=192.168.178.141 port=5000
The camera is plugged-in to a intel nuc celeron and if I run the pipeline I
get about 80% processor usage on both cores.
I use this camera to stream:
sudo v4l2-ctl --all
Driver Info (not using libv4l2):
Driver name : uvcvideo
Card type : DFK 33UX178
Bus info : usb-0000:00:14.0-1
Driver version: 3.16.7
Capabilities : 0x84000001
Video Capture
Streaming
Device Capabilities
Device Caps : 0x04000001
Video Capture
Streaming
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
Width/Height : 3072/2048
Pixel Format : 'YUYV'
Field : None
Bytes per Line: 6144
Size Image : 12582912
Colorspace : Unknown (00000000)
Crop Capability Video Capture:
Bounds : Left 0, Top 0, Width 3072, Height 2048
Default : Left 0, Top 0, Width 3072, Height 2048
Pixel Aspect: 1/1
Streaming Parameters Video Capture:
Capabilities : timeperframe
Frames per second: 15.000 (15/1)
Read buffers : 0
brightness (int) : min=0 max=4095 step=1 default=200
value=333
saturation (int) : min=0 max=255 step=1 default=64
value=240
hue (int) : min=-180 max=180 step=1 default=0
value=0
white_balance_component_auto (bool) : default=1 value=0
white_balance_red_component (int) : min=0 max=255 step=1 default=64
value=112
white_balance_blue_component (int) : min=0 max=255 step=1 default=64
value=136
gamma (int) : min=1 max=500 step=1 default=100
value=100
gain (int) : min=0 max=480 step=1 default=0
value=0
exposure_time_us (int) : min=20 max=60000000 step=1
default=333 value=50000
auto_shutter (bool) : default=1 value=0
auto_exposure_reference (int) : min=0 max=255 step=1 default=128
value=128
gain_auto (bool) : default=1 value=0
trigger_mode (bool) : default=0 value=0
software_trigger (button) : flags=write-only
trigger_delay (int) : min=0 max=1000000 step=1
default=0 value=31
strobe_enable (bool) : default=0 value=0
strobe_polarity (bool) : default=0 value=0
strobe_exposure (bool) : default=1 value=1
strobe_duration (int) : min=0 max=32767 step=1
default=100 value=100
strobe_delay (int) : min=0 max=32767 step=1 default=0
value=0
gpout (bool) : default=0 value=0
gpin (bool) : default=0 value=0
roi_offset_x (int) : min=0 max=2816 step=4 default=0
value=0
roi_offset_y (int) : min=0 max=2044 step=4 default=0
value=0
roi_auto_center (bool) : default=1 value=1
trigger_polarity (menu) : min=0 max=1 default=0 value=1
trigger_burst_count (int) : min=1 max=1000 step=1 default=1
value=1
trigger_debounce_time_us (int) : min=0 max=1000000 step=1
default=0 value=0
trigger_mask_time_us (int) : min=0 max=1000000 step=1
default=0 value=0
trigger_noise_supression_time (int) : min=0 max=1000000 step=1
default=0 value=0
auto_functions_roi_control (bool) : default=1 value=1
auto_functions_roi_left (int) : min=0 max=3056 step=1 default=0
value=768
auto_functions_roi_top (int) : min=0 max=2032 step=1 default=0
value=512
auto_functions_roi_width (int) : min=16 max=3072 step=1 default=0
value=1536
auto_functions_roi_height (int) : min=16 max=2048 step=1 default=0
value=1024
whitebalance_mode (menu) : min=0 max=1 default=0 value=0
white_balance_auto_preset (menu) : min=0 max=4 default=0 value=0
white_balance_green_component (int) : min=0 max=255 step=1 default=64
value=64
whitebalance_temperature_preset (menu) : min=0 max=8 default=6500 value=4
white_balance_temperature (int) : min=2500 max=10000 step=100
default=6500 value=4000
flip_horizontal (bool) : default=0 value=0
exposure_auto_upper_limit_auto (bool) : default=1 value=0
exposure_auto_upper_limit (int) : min=20 max=1000000 step=1
default=333 value=50000
So what is the problem here to get a smooth live stream? I tried to play a
bit with the framerates up and down but got no significant difference on the
lagging time.
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-h264-udp-stream-is-to-laggy-tp4680421.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list