| | 363 | |
| | 364 | == RTMP Youtube Streaming == |
| | 365 | |
| | 366 | |
| | 367 | |
| | 368 | It is possible to stream video to Youtube Live Streaming from the Gateworks board. |
| | 369 | |
| | 370 | Please note this requires the rtmpsink gstreamer plugin which is available on the Gateworks Trusty Multimedia Ubuntu image (which uses the Gateworks 3.14 kernel and gstreamer) |
| | 371 | |
| | 372 | Below is an example pipeline (which needs to be adjusted with the right youtube RTMP address). The pipeline will playback a colorbar pattern live on youtube. |
| | 373 | {{{ |
| | 374 | gst-launch-1.0 videotestsrc do-timestamp=true is-live=true ! \ |
| | 375 | "video/x-raw,width=640,height=360,framerate=15/1" ! queue ! \ |
| | 376 | autovideoconvert ! imxvpuenc_h264 bitrate=600 idr-interval=4 ! \ |
| | 377 | h264parse ! "video/x-h264,level=4.1,profile=main" ! queue ! \ |
| | 378 | mux. audiotestsrc is-live=true ! \ |
| | 379 | "audio/x-raw, format=S16LE, endianness=1234, signed=true, width=16, depth=16, rate=44100,channels=2" ! \ |
| | 380 | queue ! voaacenc bitrate=128000 ! aacparse ! \ |
| | 381 | audio/mpeg,mpegversion=4,stream-format=raw ! queue ! \ |
| | 382 | flvmux streamable=true name=mux ! queue ! \ |
| | 383 | rtmpsink location="rtmp://a.rtmp.youtube.com/live2/gwtest-0665.yvr6-25sv-7gth-dff1 live=true" |
| | 384 | }}} |
| | 385 | |
| | 386 | Another example below using a !GoPro camera via HDMI input: |
| | 387 | {{{ |
| | 388 | gst-launch-1.0 imxv4l2videosrc device=/dev/video0 ! imxipuvideotransform ! imxvpuenc_h264 bitrate=5000 idr-interval=4 ! h264parse ! "video/x-h264,level=4.1,profile=main" ! queue ! mux. audiotestsrc is-live=true ! "audio/x-raw, format=S16LE, endianness=1234, signed=true, width=16, depth=16, rate=44100,channels=2" ! queue ! voaacenc bitrate=128000 ! aacparse ! audio/mpeg,mpegversion=4,stream-format=raw ! queue ! flvmux streamable=true name=mux ! queue ! rtmpsink location="rtmp://a.rtmp.youtube.com/live2/test.ygg4-24rv-54gh-dtt1 live=true" |
| | 389 | }}} |
| | 390 | |
| | 391 | |