Kaltura-CE 16.14 CentOS 7 no Live Stream

I have an apparently working Kaltura CE installation. Uploading and playing videos works perfectly. Howeve, live streaming is not working as intended.

My system:

cat /etc/redhat-release 
CentOS Linux release 7.9.2009 (Core)

kaltura-ffmpeg-aux-2.1.3-2.x86_64
kaltura-kclip-v1.1.2.1-2.noarch
kaltura-flexwrapper-v1.2-1.noarch
kaltura-widgets-1.0.0-9.noarch
kaltura-kmc-v5.43.13-137.noarch
kaltura-kmcng-analytics-front-v0.1-1.noarch
kaltura-librtmp-2.3-5.x86_64
kaltura-html5-analytics-v0.3-2.noarch
kaltura-monit-5.25.3-1.x86_64
kaltura-clipapp-1.3-2.noarch
kaltura-kdp3-v3.9.9-2.noarch
kaltura-html5lib3-1.2.1-4.noarch
kaltura-lame-3.99.5-3.x86_64
kaltura-sshpass-1.05-1.x86_64
kaltura-live-analytics-front-v2.7.3-2.noarch
kaltura-html5-studio3-v3.8.0-1.noarch
kaltura-dwh-15.1.0-3.noarch
kaltura-a52dec-0.7.4-11.x86_64
kaltura-libmediainfo-0.7.61-9.x86_64
kaltura-libvpx-1.7.0-1.x86_64
kaltura-ffmpeg-4.0.2-1.x86_64
kaltura-postinst-1.0.33-109.noarch
kaltura-html5-studio-v2.2.3-1.noarch
kaltura-kdpwrapper-v11.0-1.noarch
kaltura-kupload-v1.2.16-2.noarch
kaltura-kcw-1.0.0-6.noarch
kaltura-kmcng-v5.17.0-1.noarch
kaltura-base-16.14.0-2.noarch
kaltura-pentaho-4.2.1-2.x86_64
kaltura-playkit-bundler-1.2.0-14.noarch
kaltura-front-16.14.0-1.noarch
kaltura-server-16.14.0-1.noarch
kaltura-release-16.14.0-1.noarch
kaltura-mediainfo-0.7.61-9.x86_64
kaltura-nginx-1.17.10-2.x86_64
kaltura-sphinx-2.2.1-21.x86_64
kaltura-kdp-v2.7.0-1.noarch
kaltura-html5lib-v2.85-2.noarch
kaltura-libopencore-amr-0.1.3-1.x86_64
kaltura-x264-0.140-2.20140104.x86_64
kaltura-krecord-1.0.0-1.noarch
kaltura-live-13.20.0-1.noarch
kaltura-kdp3wrapper-v37.0-1.noarch
kaltura-elasticsearch-1.0.0-7.noarch
kaltura-batch-16.14.0-1.noarch

I have SELinux on permissive
There are firewalls but all ports are open and services enabled.


I have the default config shipped in /etc/nginx/nginx.conf

I followed different instructions to make create a stream and it seems happen correctly.
If follow this example:


I can create the stream entry perfectly and, aside from getting any content, everything else is there.

I get a Stream URL such as:

http://kaltura.xxxxxx.com/hlsme/test.m3u8


I can send a video like this:

ffmpeg -re -i Downloads/video.mp4 -c:v copy -c copy -f flv "http://kaltura.xxxxxx.com/hlsme/test.m3u8"

in the API log i see:

2021-01-21 17:04:44 [0.000089] [94.252.xx.xx] [2055625477] [2] [API] [global] INFO: API-start pid:25601
2021-01-21 17:04:44 [0.000041] [94.252.xx.xx] [2055625477] [3] [API] [kInfraMemcacheCacheWrapper::outputStats] NOTICE: instance:127.0.0.1:11211, conn_count:2, conn_time:0.00034999847412109, op_count:3, op_time:0.00040364265441895
2021-01-21 17:04:44 [0.000399] [94.252.xx.xx] [2055625477] [7] [API] [Propel::initConnection] NOTICE: total conn took 0.0010590553283691 mysql:host=127.0.0.1;port=3306;dbname=kaltura;
2021-01-21 17:04:44 [0.013661] [94.252.xx.xx] [2055625477] [25] [API] [LiveEntry->checkIsLiveByProtocol] INFO: Determining status of live stream URL [ http://kaltura.xxxxxx.com/hlsme/test.m3u8 ] and Backup URL [  ]
2021-01-21 17:04:44 [0.007393] [94.252.xx.xx] [2055625477] [28] [API] [DeliveryProfilePeer::getLiveDeliveryProfileByHostName] INFO: Delivery ID for Host Name: [kaltura.xxxxxx.com] and streamer type: [applehttp] is [306
2021-01-21 17:04:44 [0.000122] [94.252.xx.xx] [2055625477] [29] [API] [DeliveryProfileLive->urlExists] NOTICE: Checking URL [http://kaltura.xxxxxx.com/hlsme/test.m3u8] with range []
2021-01-21 17:04:44 [0.000121] [94.252.xx.xx] [2055625477] [32] [API] [DeliveryProfilePeer::getLiveDeliveryProfileByHostName] INFO: Delivery ID for Host Name: [] and streamer type: [applehttp] is [3
2021-01-21 17:04:44 [0.000056] [94.252.xx.xx] [2055625477] [37] [API] [KalturaMonitorClient::monitorRequestEnd] INFO: Session counters pid:107 S:liveStream A:islive db:0 sphinx:0 couchbase:0 elastic:0 druid:0 filesystem:0 
2021-01-21 17:04:44 [0.000045] [94.252.xx.xx] [2055625477] [38] [API] [global] INFO: API-end [0.13088607788086]
2021-01-21 17:04:49 [0.000073] [94.252.xx.xx] [1051766134] [2] [API] [global] INFO: API-start pid:17109
2021-01-21 17:04:49 [0.000057] [94.252.xx.xx] [1051766134] [3] [API] [kInfraMemcacheCacheWrapper::outputStats] NOTICE: instance:127.0.0.1:11211, conn_count:2, conn_time:0.0004119873046875, op_count:6, op_time:0.00097870826721191
2021-01-21 17:04:49 [0.000341] [94.252.xx.xx] [1051766134] [7] [API] [Propel::initConnection] NOTICE: total conn took 0.0010008811950684 mysql:host=127.0.0.1;port=3306;dbname=kaltura;

From client with ffmpeg:

ffmpeg -re -i Downloads/video.mp4 -c:v copy -c copy -f flv "http://kaltura.xxxx.com/hlsme/test.m3u8"
ffmpeg version 4.2.4 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 10 (GCC)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-libjack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-libsrt --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libxml2 --enable-libzimg --enable-libzvbi --enable-lv2 --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Downloads/video.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41isomavc1
    creation_time   : 2019-12-06T12:17:18.000000Z
  Duration: 00:00:38.95, start: 0.000000, bitrate: 5682 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 5426 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc (default)
    Metadata:
      creation_time   : 2019-12-06T12:17:18.000000Z
      handler_name    : L-SMASH Video Handler
      encoder         : AVC Coding
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 253 kb/s (default)
    Metadata:
      creation_time   : 2019-12-06T12:17:18.000000Z
      handler_name    : L-SMASH Audio Handler
Output #0, flv, to 'http://kaltura.xxxx.com/hlsme/test.m3u8':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41isomavc1
    encoder         : Lavf58.29.100
    Stream #0:0(und): Video: h264 (High) ([7][0][0][0] / 0x0007), yuv420p(tv, bt709), 1920x1080, q=2-31, 5426 kb/s, 29.97 fps, 29.97 tbr, 1k tbn, 30k tbc (default)
    Metadata:
      creation_time   : 2019-12-06T12:17:18.000000Z
      handler_name    : L-SMASH Video Handler
      encoder         : AVC Coding
    Stream #0:1(und): Audio: aac (LC) ([10][0][0][0] / 0x000A), 48000 Hz, stereo, fltp, 253 kb/s (default)
    Metadata:
      creation_time   : 2019-12-06T12:17:18.000000Z
      handler_name    : L-SMASH Audio Handler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[flv @ 0x560ac00cdc40] Failed to update header with correct duration.688.6kbits/s speed=   1x     
[flv @ 0x560ac00cdc40] Failed to update header with correct filesize.
frame= 1167 fps= 30 q=-1.0 Lsize=   27051kB time=00:00:38.93 bitrate=5691.9kbits/s speed=   1x    
video:25792kB audio:1205kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.198544%

In KMC I can get to the preview:

http://kaltura.xxxxxx.com/index.php/extwidget/preview/partner_id/107/uiconf_id/23448178/entry_id/0_ml70up99/embed/auto?

However, this shows only:

" Currently not broadcasting, video will play once broadcasting starts "


I am at loss, as I do not see any obvious error.


I tried using "Kaltura Live Streaming " instead of Manual Live Stream URLs but with very similar effect.

I tried with both ffmpeg and OBS studio, with equal negative results.


Can someone help me troubleshoot this? Many thanks in advance.

We also followed this but with the same result:


The nginx is working correctly:

http://kaltura.xxxxxxxx.com:88/nginx_status
Active connections: 1
server accepts handled requests
1119 1119 1133
Reading: 0 Writing: 1 Waiting: 0

Hello @guillem_liarte

This is incorrect. The streaming needs to be done over RTMP, the content serving (using HLS) is done over HTTP[s]. See https://github.com/kaltura/platform-install-packages/blob/Propus-16.15.0/doc/nginx-rtmp-live-streaming.md#streaming

And the live entry type should be Manual Live Stream URLs, see https://github.com/kaltura/platform-install-packages/blob/Propus-16.15.0/doc/nginx-rtmp-live-streaming.md#creating-a-live-stream-entry

Cheers,

Hello @jess thanks for the reply.

Yes, I tried something like this:
My Manual Live stream looks like this:

http://kaltura.xxxxxx.com/:88/hlsme/test.m3u8

And i try to feed it with that:

ffmpeg -re -i Downloads/video.mp4 -c copy -f flv "rtmp://kaltura.xxxxx.com/kLive/test"

I get the entries looking like this:

So everything seems to be in place, but no show :frowning:


And yes the ffmpeg does not give error:

ffmpeg -re -i Downloads/video.mp4 -c copy -f flv "rtmp://kaltura.xxxxx.com/kLive/test"


ffmpeg version 4.2.4 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 10 (GCC)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-libjack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-libsrt --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libxml2 --enable-libzimg --enable-libzvbi --enable-lv2 --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Downloads/video.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41isomavc1
    creation_time   : 2019-12-06T12:17:18.000000Z
  Duration: 00:00:38.95, start: 0.000000, bitrate: 5682 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 5426 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc (default)
    Metadata:
      creation_time   : 2019-12-06T12:17:18.000000Z
      handler_name    : L-SMASH Video Handler
      encoder         : AVC Coding
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 253 kb/s (default)
    Metadata:
      creation_time   : 2019-12-06T12:17:18.000000Z
      handler_name    : L-SMASH Audio Handler
Output #0, flv, to 'rtmp://kaltura.xxxxxxx.com/kLive/test':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41isomavc1
    encoder         : Lavf58.29.100
    Stream #0:0(und): Video: h264 (High) ([7][0][0][0] / 0x0007), yuv420p(tv, bt709), 1920x1080, q=2-31, 5426 kb/s, 29.97 fps, 29.97 tbr, 1k tbn, 30k tbc (default)
    Metadata:
      creation_time   : 2019-12-06T12:17:18.000000Z
      handler_name    : L-SMASH Video Handler
      encoder         : AVC Coding
    Stream #0:1(und): Audio: aac (LC) ([10][0][0][0] / 0x000A), 48000 Hz, stereo, fltp, 253 kb/s (default)
    Metadata:
      creation_time   : 2019-12-06T12:17:18.000000Z
      handler_name    : L-SMASH Audio Handler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[flv @ 0x55e00bc0dd40] Failed to update header with correct duration.685.5kbits/s speed=   1x     
[flv @ 0x55e00bc0dd40] Failed to update header with correct filesize.
frame= 1167 fps= 30 q=-1.0 Lsize=   27051kB time=00:00:38.93 bitrate=5691.9kbits/s speed=   1x    
video:25792kB audio:1205kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.198544%

Hello,

Should be:
http://kaltura.xxxxxx.com:88/hlsme/test.m3u8

Correct. Apologies for the typo.

So, Manual live entries work.

Thank you.

I understand that Kaltura Live is not OK to use in Kaltura CE? Only Manual streams are contemplated, correct?

Hello @guillem_liarte,

That’s correct, for CE, you should always use “Manual Live Stream” entries.

Thanks you @jess most appreciated.

Let’s imagine we upgrade our CE installation to self hosted, but with comercial/support license. Would that feature become live then?

This is a very likely scenario. How would we proceed?

Hello @guillem_liarte,

Please contact our sales team and they’ll be glad to explain the various offerings.

Cheers,