642
edits
(→Code) |
|||
Line 347: | Line 347: | ||
===How to execute the application=== | ===How to execute the application=== | ||
1. | 1. Open a terminal to run the GStreamer pipeline who will get the streaming from the application. </br> | ||
Run this command: | |||
<pre> | <pre> | ||
gst-launch-1.0 -e udpsrc port=5000 ! 'video/mpegts, systemstream=(boolean)true, packetsize=(int)188' ! tsdemux name=demux demux. ! queue ! h264parse ! 'video/x-h264, stream-format=byte-stream, alignment=au' ! avdec_h264 ! autovideosink sync=false demux. ! queue ! 'meta/x-klv' ! metasink async=false | |||
</pre> | </pre> | ||
2. Open a terminal to run the GStreamer | 2. Open a different terminal to run the GStreamer application. </br> | ||
To run it you must provide an IP address, port and the JSON file path where that you want to encode and send through the streaming, for default we recommend to use 127.0.0.1 for the IP address, and 5000 for the port. The command to run it is: | |||
<pre> | <pre> | ||
./main 127.0.0.1 5000 misb_ST0601_sample.json | |||
</pre> | </pre> | ||