03/14/19 [linux-elphel][rocko] by AndreyFilippov: Used @suppress() at few lines to test
Used @suppress() at few lines to test
03/14/19 [linux-elphel][rocko] by AndreyFilippov: updated project setup, remove multiple errors in Eclipse
updated project setup, remove multiple errors in Eclipse
Poky manual
Setup
← Older revision Revision as of 21:51, 13 March 2019 (2 intermediate revisions by the same user not shown)Line 77: Line 77: ==<font color="blue">Setup</font>== ==<font color="blue">Setup</font>== + +* Poky 2.4 Rocko (Kubuntu 16.04) +<font size='2'> + git clone -b '''rocko''' https://git.elphel.com/Elphel/elphel393.git + cd elphel393 + ./setup.py + cd poky + . ./oe-init-build-env + bitbake u-boot device-tree linux-xlnx core-image-elphel393 +</font> + * Poky 2.6 Thud (Kubuntu 18.04) * Poky 2.6 Thud (Kubuntu 18.04) <font size='2'> <font size='2'> − git clone -b thud https://git.elphel.com/Elphel/elphel393.git+ git clone -b '''thud''' https://git.elphel.com/Elphel/elphel393.git cd elphel393 cd elphel393 ./setup.py ./setup.py OlegUsing gstreamer
Live RTSP stream
← Older revision Revision as of 18:33, 13 March 2019 Line 91: Line 91: * careful with streams at higher resolution than 1920x1088 * careful with streams at higher resolution than 1920x1088 * 10353 - works * 10353 - works −* <b>10393 - doesn't have a streamer yet</b>+* <b>10393 - works</b> =====native resolution===== =====native resolution===== <font size='2'> <font size='2'> OlegAbout Elphel, Inc
File:Elphel andrey oleg olga.jpeg
Andrey.filippov uploaded File:Elphel andrey oleg olga.jpeg
New page
== Licensing =={{CC }} Andrey.filippov
About Elphel, Inc
File:Txt.jpg
Oleg changed visibility of 2 revisions on page File:Txt.jpg: content hidden, edit summary hidden and username hidden Inappropriate comment or personal information
OlegAbout Elphel, Inc
Using gstreamer
Latency tests
← Older revision Revision as of 21:56, 21 February 2019 (2 intermediate revisions by the same user not shown)Line 157: Line 157: * Receive rtsp stream and re-stream as rtp: * Receive rtsp stream and re-stream as rtp: gst-launch-1.0 -e rtspsrc location='rtsp://192.168.0.9:554' latency=0 ! udpsink host=127.0.0.1 port=5000 gst-launch-1.0 -e rtspsrc location='rtsp://192.168.0.9:554' latency=0 ! udpsink host=127.0.0.1 port=5000 +* Receive rtsp stream then re-stream as rtp and display at the same time + gst-launch-1.0 -e rtspsrc location='rtsp://192.168.0.37:554' latency=0 ! rtpjpegdepay ! jpegdec ! timeoverlay ! tee name=t ! queue ! xvimagesink t. ! jpegenc ! rtpjpegpay ! udpsink host=127.0.0.1 port=5000 To play that rtp with vlc one would need an sdp file (somefile.sdp): To play that rtp with vlc one would need an sdp file (somefile.sdp): v=0 v=0 Line 168: Line 170: gst-launch-1.0 udpsrc uri=udp://127.0.0.1:5000 ! rtpjpegdepay ! jpegdec ! autovideosink gst-launch-1.0 udpsrc uri=udp://127.0.0.1:5000 ! rtpjpegdepay ! jpegdec ! autovideosink +=Latency tests= +==Test 1: vlc relative to gstreamer== +* Camera: + <font size=2>elphel393~# /usr/bin/str</font> +* PC, console 1 - restream and display at the same time: + <font size=2>~$ gst-launch-1.0 -e rtspsrc location='rtsp://192.168.0.9:554' latency=0 ! rtpjpegdepay ! jpegdec ! timeoverlay ! tee name=t ! queue ! xvimagesink t. ! jpegenc ! rtpjpegpay ! udpsink host=127.0.0.1 port=5000</font> +* PC, console 2 - run vlc: + <font size=2>~$ vlc test.sdp --network-caching=0</font> +where ''test.sdp'': + <font size=2>v=0 + m=video 5000 RTP/AVP 26 + c=IN IP4 127.0.0.1 + a=rtpmap:26 JPEG/90000</font> [[Category:393]] [[Category:393]] [[Category:353]] [[Category:353]] OlegUsing gstreamer
Latency tests
← Older revision Revision as of 21:56, 21 February 2019 (4 intermediate revisions by the same user not shown)Line 146: Line 146: * I did some benchmarks; a Core 2 Quad Q6600 (2.4 Ghz) is not powerful enough for h264 encoding @fullHD resolution (using 4 treads). * I did some benchmarks; a Core 2 Quad Q6600 (2.4 Ghz) is not powerful enough for h264 encoding @fullHD resolution (using 4 treads). −==Useful links==+=Useful links= * [http://wiki.oz9aec.net/index.php/Gstreamer_cheat_sheet GStreamer cheat sheet] * [http://wiki.oz9aec.net/index.php/Gstreamer_cheat_sheet GStreamer cheat sheet] * [http://processors.wiki.ti.com/index.php/Example_GStreamer_Pipelines Example GStreamer pipelines] * [http://processors.wiki.ti.com/index.php/Example_GStreamer_Pipelines Example GStreamer pipelines] * [https://coaxion.net/blog/2014/01/gstreamer-dynamic-pipelines/ GStreamer dynamic pipelines] * [https://coaxion.net/blog/2014/01/gstreamer-dynamic-pipelines/ GStreamer dynamic pipelines] * [https://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-dynamic-pipelines.html Dynamic pipelines] * [https://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-dynamic-pipelines.html Dynamic pipelines] + +=Some other examples= +* Simply playing stream + gst-launch-1.0 -v playbin uri=rtsp://192.168.0.9:554 uridecodebin0::source::latency=0 +* Receive rtsp stream and re-stream as rtp: + gst-launch-1.0 -e rtspsrc location='rtsp://192.168.0.9:554' latency=0 ! udpsink host=127.0.0.1 port=5000 +* Receive rtsp stream then re-stream as rtp and display at the same time + gst-launch-1.0 -e rtspsrc location='rtsp://192.168.0.37:554' latency=0 ! rtpjpegdepay ! jpegdec ! timeoverlay ! tee name=t ! queue ! xvimagesink t. ! jpegenc ! rtpjpegpay ! udpsink host=127.0.0.1 port=5000 +To play that rtp with vlc one would need an sdp file (somefile.sdp): + v=0 + m=video 5000 RTP/AVP 26 + c=IN IP4 127.0.0.1 + a=rtpmap:26 JPEG/90000 + +To play with vlc: + vlc somefile.sdp --network-caching=0 +To play with gstreamer (sdp is not required): + gst-launch-1.0 udpsrc uri=udp://127.0.0.1:5000 ! rtpjpegdepay ! jpegdec ! autovideosink + +=Latency tests= +==Test 1: vlc relative to gstreamer== +* Camera: + <font size=2>elphel393~# /usr/bin/str</font> +* PC, console 1 - restream and display at the same time: + <font size=2>~$ gst-launch-1.0 -e rtspsrc location='rtsp://192.168.0.9:554' latency=0 ! rtpjpegdepay ! jpegdec ! timeoverlay ! tee name=t ! queue ! xvimagesink t. ! jpegenc ! rtpjpegpay ! udpsink host=127.0.0.1 port=5000</font> +* PC, console 2 - run vlc: + <font size=2>~$ vlc test.sdp --network-caching=0</font> +where ''test.sdp'': + <font size=2>v=0 + m=video 5000 RTP/AVP 26 + c=IN IP4 127.0.0.1 + a=rtpmap:26 JPEG/90000</font> [[Category:393]] [[Category:393]] [[Category:353]] [[Category:353]] OlegUsing gstreamer
Test 1: vlc relative to gstreamer
← Older revision Revision as of 21:22, 21 February 2019 (3 intermediate revisions by the same user not shown)Line 146: Line 146: * I did some benchmarks; a Core 2 Quad Q6600 (2.4 Ghz) is not powerful enough for h264 encoding @fullHD resolution (using 4 treads). * I did some benchmarks; a Core 2 Quad Q6600 (2.4 Ghz) is not powerful enough for h264 encoding @fullHD resolution (using 4 treads). −==Useful links==+=Useful links= * [http://wiki.oz9aec.net/index.php/Gstreamer_cheat_sheet GStreamer cheat sheet] * [http://wiki.oz9aec.net/index.php/Gstreamer_cheat_sheet GStreamer cheat sheet] * [http://processors.wiki.ti.com/index.php/Example_GStreamer_Pipelines Example GStreamer pipelines] * [http://processors.wiki.ti.com/index.php/Example_GStreamer_Pipelines Example GStreamer pipelines] * [https://coaxion.net/blog/2014/01/gstreamer-dynamic-pipelines/ GStreamer dynamic pipelines] * [https://coaxion.net/blog/2014/01/gstreamer-dynamic-pipelines/ GStreamer dynamic pipelines] * [https://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-dynamic-pipelines.html Dynamic pipelines] * [https://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-dynamic-pipelines.html Dynamic pipelines] + +=Some other examples= +* Simply playing stream + gst-launch-1.0 -v playbin uri=rtsp://192.168.0.9:554 uridecodebin0::source::latency=0 +* Receive rtsp stream and re-stream as rtp: + gst-launch-1.0 -e rtspsrc location='rtsp://192.168.0.9:554' latency=0 ! udpsink host=127.0.0.1 port=5000 +* Receive rtsp stream then re-stream as rtp and display at the same time + gst-launch-1.0 -e rtspsrc location='rtsp://192.168.0.37:554' latency=0 ! rtpjpegdepay ! jpegdec ! timeoverlay ! tee name=t ! queue ! xvimagesink t. ! jpegenc ! rtpjpegpay ! udpsink host=127.0.0.1 port=5000 +To play that rtp with vlc one would need an sdp file (somefile.sdp): + v=0 + m=video 5000 RTP/AVP 26 + c=IN IP4 127.0.0.1 + a=rtpmap:26 JPEG/90000 + +To play with vlc: + vlc somefile.sdp --network-caching=0 +To play with gstreamer (sdp is not required): + gst-launch-1.0 udpsrc uri=udp://127.0.0.1:5000 ! rtpjpegdepay ! jpegdec ! autovideosink + +=Latency tests= +==Test 1: vlc relative to gstreamer== +* Camera: + elphel393~# /usr/bin/str +* PC, console 1 - restream and display at the same time: + ~$ gst-launch-1.0 -e rtspsrc location='rtsp://192.168.0.9:554' latency=0 ! rtpjpegdepay ! jpegdec ! timeoverlay ! tee name=t ! queue ! xvimagesink t. ! jpegenc ! rtpjpegpay ! udpsink host=127.0.0.1 port=5000 +* PC, console 2 - run vlc: + ~$ vlc test.sdp --network-caching=0 +where ''test.sdp'': + v=0 + m=video 5000 RTP/AVP 26 + c=IN IP4 127.0.0.1 + a=rtpmap:26 JPEG/90000 [[Category:393]] [[Category:393]] [[Category:353]] [[Category:353]] OlegUsing gstreamer
File:103992 assy.tar.gz
Andrey.filippov uploaded a new version of File:103992 assy.tar.gz
New page
== Licensing =={{CERN OHLv1.1 }} Andrey.filippov
File:103992 gerber.tar.gz
Andrey.filippov uploaded a new version of File:103992 gerber.tar.gz
New page
== Licensing =={{CERN OHLv1.1 }} Andrey.filippov
File:103992 sch.pdf
Andrey.filippov uploaded a new version of File:103992 sch.pdf
New page
== Licensing =={{CERN OHLv1.1 }} Andrey.filippov
Publications
10393 manual
RTSP
← Older revision Revision as of 21:05, 31 January 2019 (7 intermediate revisions by the same user not shown)Line 151: Line 151: </font> </font> ====RTSP==== ====RTSP==== +* Streams with either '''w''' or '''h''' >2040 might not get played - not supported by live555 often used by various media players. But there's a [https://git.elphel.com/Elphel/live555_patch live555_patch]. * turn on: * turn on: <font size='2'> <font size='2'> Line 162: Line 163: rtsp://192.168.0.9:560 rtsp://192.168.0.9:560 </font> </font> + ====GStreamer==== ====GStreamer==== <font size='2'> <font size='2'> + gst-launch-1.0 -v playbin uri=rtsp://192.168.0.9:554 uridecodebin0::source::latency=0 +or gst-launch-1.0 souphttpsrc is-live=true location=http://192.168.0.9:2323/mimg ! jpegdec ! xvimagesink gst-launch-1.0 souphttpsrc is-live=true location=http://192.168.0.9:2323/mimg ! jpegdec ! xvimagesink </font> </font> Oleg01/30/19 [elphel-apps-imgsrv][] by Oleg Dzhimiev: forgot changes in another branch
forgot changes in another branch
01/29/19 [elphel-init][] by Oleg Dzhimiev: updated cproject, was not really needed as there's no c files
updated cproject, was not really needed as there's no c files
Pages
