GT-Robotics / odroid_vlink

network video streaming module for UAV, UGV, etc..
8 stars 1 forks source link

Reduces Video Streaming Latency #2

Open galch opened 9 years ago

galch commented 9 years ago

Challenge

galch commented 9 years ago

setting

latency : 400ms

http://flash-clocks.com/free-flash-clocks-blog-topics/free-flash-clock-180.swf latency_20150321_endoscope_vga_mpeg1

galch commented 9 years ago

odroid U3 에서 gstreamer x264enc plugin 관련 버그, 패키지 설치해도 인식 못함.

avconv streaming server를 거치지 않고 udp로 바로 전송하는 방식으로 변경..

avconv -f video4linux2 -s vga -i /dev/video0 -c:v mpeg2video -f mpegts udp://192.168.0.2:5555

galch commented 9 years ago

gstreamer 1.4 에서 x264enc plugin을 발견하지 못할 때 apt-get install gstreamer1.0-plugins-ugly를 사용하여 해결.

정상 작동은 하는 것 같지만, streaming에서 not-negotiated 문제 발생. videotestsrc로 확인해야함

galch commented 9 years ago

gstreamer example for v4l2 http://www.z25.org/static/_rd_/videostreaming_intro_plab/

galch commented 9 years ago

changed setting

640x480 latency : ~120ms

image

MJPEG supported webcam Ver.

1280x720 latency : ~120ms

image

TKoma commented 9 years ago

USB 연결 시 Latency 측정 HD-3000

usb-pc latency : ~ 80ms

default

internal network : 80 ~ 120ms

image

TKoma commented 9 years ago

Look for fastest video encoder with least lag to stream webcam streaming to ipad stackoverflow

http://stackoverflow.com/questions/12020430/look-for-fastest-video-encoder-with-least-lag-to-stream-webcam-streaming-to-ipad

TKoma commented 9 years ago

https://obsproject.com/forum/threads/webcam-latency-question-logitech-c910-c920.10517/

http://arstechnica.com/civis/viewtopic.php?f=6&t=1220783

galch commented 2 years ago

https://docs.aws.amazon.com/kinesis/index.html

galch commented 2 years ago

gst-launch-1.0 autovideosrc ! queue ! videoconvert ! video/x-raw,width=640,height=480,framerate=[30/1,10000000/333333] ! x264enc bframes=0 speed-preset=ultrafast bitrate=512 byte-stream=TRUE tune=zerolatency ! video/x-h264,stream-format=byte-stream,alignment=au,profile=baseline ! rtph264pay ! udpsink host=127.0.0.1 port=5000

gst-launch-1.0 udpsrc port=5000 caps = "application/x-rtp, media=video, clock-rate=90000, encoding-name=H264, payload=96" ! rtph264depay ! avdec_h264 ! autovideosink