AirenSoft / OvenPlayer

OvenPlayer is JavaScript-based LLHLS and WebRTC Player for OvenMediaEngine.
https://airensoft.com/ome.html
MIT License
508 stars 126 forks source link

Not Working when No Audio Source #304

Closed viaesys closed 1 year ago

viaesys commented 2 years ago

Hi I am publishing to RTMP and using the demo player to play WebRTC.

If the video + audio stream is enabled, then everything works fine. However, when only video stream is enabled, the demo player never plays anything.

Server logs for video + audio (everything works ok):

[2022-09-26 04:14:41.126] I [SPRTMP-T1935:30] Provider | stream.cpp:48   | Unknown/(33) has been started stream
[2022-09-26 04:14:41.127] I [SPRTMP-T1935:30] RTMPProvider | rtmp_provider.cpp:152  | A RTMP client has connected from <ClientSocket: 0x7f21f00c8e20, #33, Connected, TCP, Nonblocking, 104.247.228.16:38197>
[2022-09-26 04:14:41.693] I [SPRTMP-T1935:30] MediaRouter | mediarouter_application.cpp:245  | [#default#app/G6WCONIFGEAA8PHI(33)] Trying to create a stream 
[Stream Info]
id(33), msid(0), output(G6WCONIFGEAA8PHI), SourceType(Rtmp), RepresentationType(Source), Created Time (Mon Sep 26 04:14:41 2022) UUID(637dd632-d3d3-4291-8cb5-e9c539da5767/default/#default#app/G6WCONIFGEAA8PHI/i)

    Video Track #0: Bypass(false) Bitrate(1.54Mb) codec(1, H264) resolution(960x540) framerate(30.00fps) timebase(1/1000)
    Audio Track #1: Bypass(false) Bitrate(18.00Kb) codec(6, AAC) samplerate(16.0K) format(s16, 16) channel(mono, 1) timebase(1/1000)
[2022-09-26 04:14:41.694] I [SPRTMP-T1935:30] MediaRouter | mediarouter_stream.cpp:54   | [#default#app/G6WCONIFGEAA8PHI(33)] Trying to create media route stream
[2022-09-26 04:14:41.694] I [SPRTMP-T1935:30] Monitor | application_metrics.cpp:57   | Create StreamMetrics(G6WCONIFGEAA8PHI/637dd632-d3d3-4291-8cb5-e9c539da5767/default/#default#app/G6WCONIFGEAA8PHI/i) for monitoring
[2022-09-26 04:14:41.694] I [SPRTMP-T1935:30] Transcoder | transcoder_stream.cpp:570  | [#default#app/G6WCONIFGEAA8PHI(33)] Output stream has been created. [#default#app/G6WCONIFGEAA8PHI(4213854236)]
[2022-09-26 04:14:41.695] I [SPRTMP-T1935:30] MediaRouter | mediarouter_application.cpp:245  | [#default#app/G6WCONIFGEAA8PHI(4213854236)] Trying to create a stream 
[Stream Info]
id(4213854236), msid(0), output(G6WCONIFGEAA8PHI), SourceType(Transcoder), RepresentationType(Source), Created Time (Mon Sep 26 04:14:41 2022) UUID(637dd632-d3d3-4291-8cb5-e9c539da5767/default/#default#app/G6WCONIFGEAA8PHI/o)
    >> Origin Stream Info
    id(33), output(G6WCONIFGEAA8PHI), SourceType(Rtmp), Created Time (Mon Sep 26 04:14:41 2022)

    Video Track #0: Bypass(true) Bitrate(1.54Mb) codec(1, H264) resolution(960x540) framerate(30.00fps) timebase(1/1000)
    Audio Track #1: Bypass(true) Bitrate(18.00Kb) codec(6, AAC) samplerate(16.0K) format(s16, 16) channel(mono, 1) timebase(1/1000)
    Audio Track #2: Bypass(false) Bitrate(128.00Kb) codec(8, OPUS) samplerate(48.0K) format(s16, 16) channel(stereo, 2) timebase(1/48000)
[2022-09-26 04:14:41.695] I [SPRTMP-T1935:30] MediaRouter | mediarouter_stream.cpp:54   | [#default#app/G6WCONIFGEAA8PHI(4213854236)] Trying to create media route stream
[2022-09-26 04:14:41.695] I [SPRTMP-T1935:30] Monitor | application_metrics.cpp:57   | Create StreamMetrics(G6WCONIFGEAA8PHI/637dd632-d3d3-4291-8cb5-e9c539da5767/default/#default#app/G6WCONIFGEAA8PHI/o) for monitoring
[2022-09-26 04:14:41.696] I [SPRTMP-T1935:30] Transcoder | transcoder_stream.cpp:90   | [#default#app/G6WCONIFGEAA8PHI(33)] Transcoder stream has been started.
[2022-09-26 04:14:42.680] I [Decaac:17093] Transcoder | decoder_aac.cpp:221  | [#default#app/G6WCONIFGEAA8PHI(33)] input track information: [audio] aac (LC), 16000 Hz, mono, fltp, 94 kbps, timebase: 1/1000, frame_size: 1024
[2022-09-26 04:14:42.828] I [OutboundWorker:32] WebRTC Publisher | rtc_stream.cpp:205  | WebRTC Stream has been created : G6WCONIFGEAA8PHI/4213854236
Rtx(false) Ulpfec(false) JitterBuffer(false) PlayoutDelay(false min:0 max: 0)
[2022-09-26 04:14:42.829] I [OutboundWorker:32] Publisher | stream.cpp:202  | WebRTC Publisher Application application has started [G6WCONIFGEAA8PHI(4213854236)] stream (MSID : 0)
[2022-09-26 04:14:42.829] I [OutboundWorker:32] Publisher | stream.cpp:202  | OVTPublisher Application application has started [G6WCONIFGEAA8PHI(4213854236)] stream (MSID : 0)
[2022-09-26 04:15:21.081] I [SPRTMP-T1935:30] RTMPProvider | rtmp_provider.cpp:179  | The RTMP client has disconnected: [#default#app/G6WCONIFGEAA8PHI], remote: <ClientSocket: 0x7f21f00c8e20, #33, Disconnected, TCP, Nonblocking, 104.247.228.16:38197>
[2022-09-26 04:15:21.082] I [SPRTMP-T1935:30] Provider | stream.cpp:63   | #default#app/G6WCONIFGEAA8PHI(33) has been stopped playing stream
[2022-09-26 04:15:21.082] I [SPRTMP-T1935:30] MediaRouter | mediarouter_application.cpp:468  | [#default#app/G6WCONIFGEAA8PHI(33)] Trying to delete a stream
[2022-09-26 04:15:21.082] I [SPRTMP-T1935:30] Monitor | application_metrics.cpp:69   | Delete StreamMetrics(G6WCONIFGEAA8PHI/637dd632-d3d3-4291-8cb5-e9c539da5767/default/#default#app/G6WCONIFGEAA8PHI/i) for monitoring
[2022-09-26 04:15:21.082] I [SPRTMP-T1935:30] Monitor | stream_metrics.cpp:31   | 
[Stream Info]
id(33), msid(0), output(G6WCONIFGEAA8PHI), SourceType(Rtmp), RepresentationType(Source), Created Time (Mon Sep 26 04:14:41 2022) UUID(637dd632-d3d3-4291-8cb5-e9c539da5767/default/#default#app/G6WCONIFGEAA8PHI/i)

    Video Track #0: Bypass(false) Bitrate(1.54Mb) codec(1, H264) resolution(960x540) framerate(30.00fps) timebase(1/1000)
    Audio Track #1: Bypass(false) Bitrate(18.00Kb) codec(6, AAC) samplerate(16.0K) format(fltp, 32) channel(mono, 1) timebase(1/1000)

    >> Statistics
    Last update time : Mon Sep 26 04:15:21 2022, Last sent time : Mon Sep 26 04:14:41 2022
    Bytes in : 4.33MB, Bytes out : 0B, Concurrent connections : 0, Max connections : 0 (Mon Sep 26 04:14:41 2022)

        >>>> By publisher
        - Unknown : Bytes out(0B) Concurrent Connections (0)
        - WebRTC : Bytes out(0B) Concurrent Connections (0)
        - MPEGTSPush : Bytes out(0B) Concurrent Connections (0)
        - RTMPPush : Bytes out(0B) Concurrent Connections (0)
        - HLS : Bytes out(0B) Concurrent Connections (0)
        - DASH : Bytes out(0B) Concurrent Connections (0)
        - LLDASH : Bytes out(0B) Concurrent Connections (0)
        - LLHLS : Bytes out(0B) Concurrent Connections (0)
        - OVT : Bytes out(0B) Concurrent Connections (0)
        - File : Bytes out(0B) Concurrent Connections (0)
        - Thumbnail : Bytes out(0B) Concurrent Connections (0)

[2022-09-26 04:15:21.083] I [SPRTMP-T1935:30] Transcoder | transcoder_stream.cpp:1334 | [#default#app/G6WCONIFGEAA8PHI(33)] -> [#default#app/G6WCONIFGEAA8PHI(4213854236)] Transcoder output stream has been deleted.
[2022-09-26 04:15:21.083] I [SPRTMP-T1935:30] MediaRouter | mediarouter_application.cpp:468  | [#default#app/G6WCONIFGEAA8PHI(4213854236)] Trying to delete a stream
[2022-09-26 04:15:21.083] I [SPRTMP-T1935:30] Monitor | application_metrics.cpp:69   | Delete StreamMetrics(G6WCONIFGEAA8PHI/637dd632-d3d3-4291-8cb5-e9c539da5767/default/#default#app/G6WCONIFGEAA8PHI/o) for monitoring
[2022-09-26 04:15:21.083] I [SPRTMP-T1935:30] Monitor | stream_metrics.cpp:31   | 
[Stream Info]
id(4213854236), msid(0), output(G6WCONIFGEAA8PHI), SourceType(Transcoder), RepresentationType(Source), Created Time (Mon Sep 26 04:14:41 2022) UUID(637dd632-d3d3-4291-8cb5-e9c539da5767/default/#default#app/G6WCONIFGEAA8PHI/o)
    >> Origin Stream Info
    id(33), output(G6WCONIFGEAA8PHI), SourceType(Rtmp), Created Time (Mon Sep 26 04:14:41 2022)

    Video Track #0: Bypass(true) Bitrate(1.54Mb) codec(1, H264) resolution(960x540) framerate(30.00fps) timebase(1/1000)
    Audio Track #1: Bypass(true) Bitrate(18.00Kb) codec(6, AAC) samplerate(16.0K) format(fltp, 32) channel(mono, 1) timebase(1/1000)
    Audio Track #2: Bypass(false) Bitrate(128.00Kb) codec(8, OPUS) samplerate(48.0K) format(s16, 16) channel(stereo, 2) timebase(1/48000)

    >> Statistics
    Last update time : Mon Sep 26 04:14:41 2022, Last sent time : Mon Sep 26 04:14:41 2022
    Bytes in : 0B, Bytes out : 0B, Concurrent connections : 0, Max connections : 0 (Mon Sep 26 04:14:41 2022)

        >>>> By publisher
        - Unknown : Bytes out(0B) Concurrent Connections (0)
        - WebRTC : Bytes out(0B) Concurrent Connections (0)
        - MPEGTSPush : Bytes out(0B) Concurrent Connections (0)
        - RTMPPush : Bytes out(0B) Concurrent Connections (0)
        - HLS : Bytes out(0B) Concurrent Connections (0)
        - DASH : Bytes out(0B) Concurrent Connections (0)
        - LLDASH : Bytes out(0B) Concurrent Connections (0)
        - LLHLS : Bytes out(0B) Concurrent Connections (0)
        - OVT : Bytes out(0B) Concurrent Connections (0)
        - File : Bytes out(0B) Concurrent Connections (0)
        - Thumbnail : Bytes out(0B) Concurrent Connections (0)

[2022-09-26 04:15:21.084] I [SPRTMP-T1935:30] Publisher | stream.cpp:282  | [G6WCONIFGEAA8PHI(4213854236)] WebRTC Publisher Application stream has been stopped
[2022-09-26 04:15:21.085] I [SPRTMP-T1935:30] Publisher | stream.cpp:282  | [G6WCONIFGEAA8PHI(4213854236)] OVTPublisher Application stream has been stopped
[2022-09-26 04:15:21.085] I [SPRTMP-T1935:30] MediaRouter | mediarouter_stream.cpp:71   | [#default#app/G6WCONIFGEAA8PHI(4213854236)] Delete media route stream 
[2022-09-26 04:15:21.085] I [SPRTMP-T1935:30] Transcoder | transcoder_stream.cpp:104  | [#default#app/G6WCONIFGEAA8PHI(33)] Transcoder stream has been stopped.
[2022-09-26 04:15:21.085] I [SPRTMP-T1935:30] Transcoder | transcoder_stream.cpp:104  | [#default#app/G6WCONIFGEAA8PHI(33)] Transcoder stream has been stopped.
[2022-09-26 04:15:21.085] I [SPRTMP-T1935:30] MediaRouter | mediarouter_stream.cpp:71   | [#default#app/G6WCONIFGEAA8PHI(33)] Delete media route stream

Server logs for audio stream only:

[2022-09-26 04:17:15.588] I [SPRTMP-T1935:30] Provider | stream.cpp:48   | Unknown/(33) has been started stream
[2022-09-26 04:17:15.592] I [SPRTMP-T1935:30] RTMPProvider | rtmp_provider.cpp:152  | A RTMP client has connected from <ClientSocket: 0x7f21f00c8e20, #33, Connected, TCP, Nonblocking, 104.247.228.16:38198>
[2022-09-26 04:17:32.510] I [SPRTMP-T1935:30] MediaRouter | mediarouter_application.cpp:245  | [#default#app/G6WCONIFGEAA8PHI(33)] Trying to create a stream 
[Stream Info]
id(33), msid(0), output(G6WCONIFGEAA8PHI), SourceType(Rtmp), RepresentationType(Source), Created Time (Mon Sep 26 04:17:15 2022) UUID(637dd632-d3d3-4291-8cb5-e9c539da5767/default/#default#app/G6WCONIFGEAA8PHI/i)

    Video Track #0: Bypass(false) Bitrate(1.54Mb) codec(1, H264) resolution(960x540) framerate(30.00fps) timebase(1/1000)
[2022-09-26 04:17:32.511] I [SPRTMP-T1935:30] MediaRouter | mediarouter_stream.cpp:54   | [#default#app/G6WCONIFGEAA8PHI(33)] Trying to create media route stream
[2022-09-26 04:17:32.511] I [SPRTMP-T1935:30] Monitor | application_metrics.cpp:57   | Create StreamMetrics(G6WCONIFGEAA8PHI/637dd632-d3d3-4291-8cb5-e9c539da5767/default/#default#app/G6WCONIFGEAA8PHI/i) for monitoring
[2022-09-26 04:17:32.511] I [SPRTMP-T1935:30] Transcoder | transcoder_stream.cpp:570  | [#default#app/G6WCONIFGEAA8PHI(33)] Output stream has been created. [#default#app/G6WCONIFGEAA8PHI(2054673816)]
[2022-09-26 04:17:32.511] I [SPRTMP-T1935:30] Transcoder | transcoder_stream.cpp:84   | No decoder generated
[2022-09-26 04:17:32.512] I [SPRTMP-T1935:30] MediaRouter | mediarouter_application.cpp:245  | [#default#app/G6WCONIFGEAA8PHI(2054673816)] Trying to create a stream 
[Stream Info]
id(2054673816), msid(0), output(G6WCONIFGEAA8PHI), SourceType(Transcoder), RepresentationType(Source), Created Time (Mon Sep 26 04:17:32 2022) UUID(637dd632-d3d3-4291-8cb5-e9c539da5767/default/#default#app/G6WCONIFGEAA8PHI/o)
    >> Origin Stream Info
    id(33), output(G6WCONIFGEAA8PHI), SourceType(Rtmp), Created Time (Mon Sep 26 04:17:15 2022)

    Video Track #0: Bypass(true) Bitrate(1.54Mb) codec(1, H264) resolution(960x540) framerate(30.00fps) timebase(1/1000)
[2022-09-26 04:17:32.512] I [SPRTMP-T1935:30] MediaRouter | mediarouter_stream.cpp:54   | [#default#app/G6WCONIFGEAA8PHI(2054673816)] Trying to create media route stream
[2022-09-26 04:17:32.512] I [SPRTMP-T1935:30] Monitor | application_metrics.cpp:57   | Create StreamMetrics(G6WCONIFGEAA8PHI/637dd632-d3d3-4291-8cb5-e9c539da5767/default/#default#app/G6WCONIFGEAA8PHI/o) for monitoring
[2022-09-26 04:17:32.512] I [SPRTMP-T1935:30] Transcoder | transcoder_stream.cpp:90   | [#default#app/G6WCONIFGEAA8PHI(33)] Transcoder stream has been started.
[2022-09-26 04:17:32.513] I [OutboundWorker:32] WebRTC Publisher | rtc_stream.cpp:205  | WebRTC Stream has been created : G6WCONIFGEAA8PHI/2054673816
Rtx(false) Ulpfec(false) JitterBuffer(false) PlayoutDelay(false min:0 max: 0)
[2022-09-26 04:17:32.513] I [OutboundWorker:32] Publisher | stream.cpp:202  | WebRTC Publisher Application application has started [G6WCONIFGEAA8PHI(2054673816)] stream (MSID : 0)
[2022-09-26 04:17:32.514] I [OutboundWorker:32] Publisher | stream.cpp:202  | OVTPublisher Application application has started [G6WCONIFGEAA8PHI(2054673816)] stream (MSID : 0)
[2022-09-26 04:17:54.753] I [SPRTMP-T1935:30] RTMPProvider | rtmp_provider.cpp:179  | The RTMP client has disconnected: [#default#app/G6WCONIFGEAA8PHI], remote: <ClientSocket: 0x7f21f00c8e20, #33, Disconnected, TCP, Nonblocking, 104.247.228.16:38198>
[2022-09-26 04:17:54.753] I [SPRTMP-T1935:30] Provider | stream.cpp:63   | #default#app/G6WCONIFGEAA8PHI(33) has been stopped playing stream
[2022-09-26 04:17:54.753] I [SPRTMP-T1935:30] MediaRouter | mediarouter_application.cpp:468  | [#default#app/G6WCONIFGEAA8PHI(33)] Trying to delete a stream
[2022-09-26 04:17:54.754] I [SPRTMP-T1935:30] Monitor | application_metrics.cpp:69   | Delete StreamMetrics(G6WCONIFGEAA8PHI/637dd632-d3d3-4291-8cb5-e9c539da5767/default/#default#app/G6WCONIFGEAA8PHI/i) for monitoring
[2022-09-26 04:17:54.754] I [SPRTMP-T1935:30] Monitor | stream_metrics.cpp:31   | 
[Stream Info]
id(33), msid(0), output(G6WCONIFGEAA8PHI), SourceType(Rtmp), RepresentationType(Source), Created Time (Mon Sep 26 04:17:15 2022) UUID(637dd632-d3d3-4291-8cb5-e9c539da5767/default/#default#app/G6WCONIFGEAA8PHI/i)

    Video Track #0: Bypass(false) Bitrate(1.54Mb) codec(1, H264) resolution(960x540) framerate(30.00fps) timebase(1/1000)

    >> Statistics
    Last update time : Mon Sep 26 04:17:54 2022, Last sent time : Mon Sep 26 04:17:32 2022
    Bytes in : 3.85MB, Bytes out : 0B, Concurrent connections : 0, Max connections : 0 (Mon Sep 26 04:17:32 2022)

        >>>> By publisher
        - Unknown : Bytes out(0B) Concurrent Connections (0)
        - WebRTC : Bytes out(0B) Concurrent Connections (0)
        - MPEGTSPush : Bytes out(0B) Concurrent Connections (0)
        - RTMPPush : Bytes out(0B) Concurrent Connections (0)
        - HLS : Bytes out(0B) Concurrent Connections (0)
        - DASH : Bytes out(0B) Concurrent Connections (0)
        - LLDASH : Bytes out(0B) Concurrent Connections (0)
        - LLHLS : Bytes out(0B) Concurrent Connections (0)
        - OVT : Bytes out(0B) Concurrent Connections (0)
        - File : Bytes out(0B) Concurrent Connections (0)
        - Thumbnail : Bytes out(0B) Concurrent Connections (0)

[2022-09-26 04:17:54.754] I [SPRTMP-T1935:30] Transcoder | transcoder_stream.cpp:1334 | [#default#app/G6WCONIFGEAA8PHI(33)] -> [#default#app/G6WCONIFGEAA8PHI(2054673816)] Transcoder output stream has been deleted.
[2022-09-26 04:17:54.754] I [SPRTMP-T1935:30] MediaRouter | mediarouter_application.cpp:468  | [#default#app/G6WCONIFGEAA8PHI(2054673816)] Trying to delete a stream
[2022-09-26 04:17:54.755] I [SPRTMP-T1935:30] Monitor | application_metrics.cpp:69   | Delete StreamMetrics(G6WCONIFGEAA8PHI/637dd632-d3d3-4291-8cb5-e9c539da5767/default/#default#app/G6WCONIFGEAA8PHI/o) for monitoring
[2022-09-26 04:17:54.755] I [SPRTMP-T1935:30] Monitor | stream_metrics.cpp:31   | 
[Stream Info]
id(2054673816), msid(0), output(G6WCONIFGEAA8PHI), SourceType(Transcoder), RepresentationType(Source), Created Time (Mon Sep 26 04:17:32 2022) UUID(637dd632-d3d3-4291-8cb5-e9c539da5767/default/#default#app/G6WCONIFGEAA8PHI/o)
    >> Origin Stream Info
    id(33), output(G6WCONIFGEAA8PHI), SourceType(Rtmp), Created Time (Mon Sep 26 04:17:15 2022)

    Video Track #0: Bypass(true) Bitrate(1.54Mb) codec(1, H264) resolution(960x540) framerate(30.00fps) timebase(1/1000)

    >> Statistics
    Last update time : Mon Sep 26 04:17:32 2022, Last sent time : Mon Sep 26 04:17:32 2022
    Bytes in : 0B, Bytes out : 0B, Concurrent connections : 0, Max connections : 0 (Mon Sep 26 04:17:32 2022)

        >>>> By publisher
        - Unknown : Bytes out(0B) Concurrent Connections (0)
        - WebRTC : Bytes out(0B) Concurrent Connections (0)
        - MPEGTSPush : Bytes out(0B) Concurrent Connections (0)
        - RTMPPush : Bytes out(0B) Concurrent Connections (0)
        - HLS : Bytes out(0B) Concurrent Connections (0)
        - DASH : Bytes out(0B) Concurrent Connections (0)
        - LLDASH : Bytes out(0B) Concurrent Connections (0)
        - LLHLS : Bytes out(0B) Concurrent Connections (0)
        - OVT : Bytes out(0B) Concurrent Connections (0)
        - File : Bytes out(0B) Concurrent Connections (0)
        - Thumbnail : Bytes out(0B) Concurrent Connections (0)

[2022-09-26 04:17:54.755] I [SPRTMP-T1935:30] Publisher | stream.cpp:282  | [G6WCONIFGEAA8PHI(2054673816)] WebRTC Publisher Application stream has been stopped
[2022-09-26 04:17:54.756] I [SPRTMP-T1935:30] Publisher | stream.cpp:282  | [G6WCONIFGEAA8PHI(2054673816)] OVTPublisher Application stream has been stopped
[2022-09-26 04:17:54.756] I [SPRTMP-T1935:30] MediaRouter | mediarouter_stream.cpp:71   | [#default#app/G6WCONIFGEAA8PHI(2054673816)] Delete media route stream 
[2022-09-26 04:17:54.756] I [SPRTMP-T1935:30] Transcoder | transcoder_stream.cpp:104  | [#default#app/G6WCONIFGEAA8PHI(33)] Transcoder stream has been stopped.
[2022-09-26 04:17:54.756] I [SPRTMP-T1935:30] Transcoder | transcoder_stream.cpp:104  | [#default#app/G6WCONIFGEAA8PHI(33)] Transcoder stream has been stopped.
[2022-09-26 04:17:54.757] I [SPRTMP-T1935:30] MediaRouter | mediarouter_stream.cpp:71   | [#default#app/G6WCONIFGEAA8PHI(33)] Delete media route stream

I am using the dev docker from two two months ago.

Appreciate your help thanks.

getroot commented 1 year ago

Does this reproduce with the latest version of OvenMediaEngine? If it reproduces, please post this issue in the OvenMediaEngine repo.

rrauf commented 1 year ago

Hi. Thanks for the reply. I was able to get rid of the issue by using the latest docker. This issue can be closed.