Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stream works in local machine but crashes when deployed on the server #623

Closed
Ramy-Ab opened this issue Jan 4, 2022 · 5 comments
Closed
Labels

Comments

@Ramy-Ab
Copy link

Ramy-Ab commented Jan 4, 2022

I was trying rtmp stream locally and it works perfectly but when i deployed the docker image on the server i couldn't play my stream in ovenPlayer "it keep say : " can not play for unknown reasons "
i made my test using OvenStreamEncoder android app and the stream sent successfully to my local network but when i tried to sent it to the server using this configuration it didn't work :

  • ip : rtmp://server_ip:1935/app
  • stream key : stream
  • OvenPlayer : ws://server_ip:3333/app/stream

Also when i try to display the logs of ports 1935 and 3333 using command : tcpdump -i any port
i can see that the input port "1935" recives the stream paquets successfully but the output port "3333" didn't send back anything

ps : all the ports mentioned in OVM docs installion are opened

So what can be the cause of this problem ?any suggestion ?

@Ramy-Ab Ramy-Ab added the bug Confirmed as bug label Jan 4, 2022
@fcqpl
Copy link
Contributor

fcqpl commented Jan 4, 2022

Please attach full log from OME and Server.xml

@Ramy-Ab
Copy link
Author

Ramy-Ab commented Jan 4, 2022

@fcqpl for the Server.xml I used the one that comes by default and here u can see the logs :

[2022-01-04 22:22:37.028] I [SPRTMP-T1935:31] Transcoder | transcoder_stream.cpp:1372 | [#default#app/stream(21)] -> [#default#app/stream(3990553218)] Transcoder output stream has been deleted.
[2022-01-04 22:22:37.028] I [SPRTMP-T1935:31] MediaRouter | mediarouter_application.cpp:466  | Trying to delete a stream: [#default#app/stream(3990553218)]
[2022-01-04 22:22:37.028] I [SPRTMP-T1935:31] Monitor | application_metrics.cpp:69   | Delete StreamMetrics(stream/d8078846-6136-4c3e-876f-f55e9dd38dbb/default/#default#app/stream/o) for monitoring
[2022-01-04 22:22:37.029] I [SPRTMP-T1935:31] Monitor | stream_metrics.cpp:31   |
[Stream Info]
id(3990553218), msid(0), output(stream), SourceType(Transcoder), Created Time (Tue Jan  4 22:22:24 2022) UUID(d8078846-6136-4c3e-876f-f55e9dd38dbb/default/#default#app/stream/o)
        >> Origin Stream Info
        id(21), output(stream), SourceType(Rtmp), Created Time (Tue Jan  4 22:22:23 2022)

        Video Track #0: Bypass(true) Bitrate(683.00Kb) codec(1, H264) resolution(480x720) framerate(30.00fps) timebase(1/1000)
        Audio Track #1: Bypass(true) Bitrate(62.00Kb) codec(6, AAC) samplerate(48.0K) format(fltp, 32) channel(stereo, 2) 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 : Tue Jan  4 22:22:24 2022, Last sent time : Tue Jan  4 22:22:24 2022
        Bytes in : 0B, Bytes out : 0B, Concurrent connections : 0, Max connections : 0 (Tue Jan  4 22:22:24 2022)

                >>>> By publisher
                - Unknown : Bytes out(0B) Concurrent Connections (0)
                - WebRTC : Bytes out(0B) Concurrent Connections (0)
                - RTMP : 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)
                - OVT : Bytes out(0B) Concurrent Connections (0)
                - File : Bytes out(0B) Concurrent Connections (0)
                - Thumbnail : Bytes out(0B) Concurrent Connections (0)

[2022-01-04 22:22:37.029] I [SPRTMP-T1935:31] Publisher | stream.cpp:259  | [stream(3990553218)] WebRTC Publisher Application stream has been stopped
[2022-01-04 22:22:37.029] I [SPRTMP-T1935:31] Publisher | stream.cpp:259  | [stream(3990553218)] HLS Publisher Application stream has been stopped
[2022-01-04 22:22:37.030] I [SPRTMP-T1935:31] Publisher | stream.cpp:259  | [stream(3990553218)] DASH Publisher Application stream has been stopped
[2022-01-04 22:22:37.030] I [SPRTMP-T1935:31] Publisher | stream.cpp:259  | [stream(3990553218)] LLDASH Publisher Application stream has been stopped
[2022-01-04 22:22:37.030] I [SPRTMP-T1935:31] Publisher | stream.cpp:259  | [stream(3990553218)] OVTPublisher Application stream has been stopped
[2022-01-04 22:22:37.030] I [SPRTMP-T1935:31] MediaRouter | mediarouter_stream.cpp:71   | Delete media route stream name(stream) id(3990553218)
[2022-01-04 22:22:37.030] I [SPRTMP-T1935:31] Transcoder | transcoder_stream.cpp:115  | [#default#app/stream(21)] Transcoder stream has been stopped.
[2022-01-04 22:22:37.030] I [SPRTMP-T1935:31] Transcoder | transcoder_stream.cpp:115  | [#default#app/stream(21)] Transcoder stream has been stopped.
[2022-01-04 22:22:37.031] I [SPRTMP-T1935:31] MediaRouter | mediarouter_stream.cpp:71   | Delete media route stream name(stream) id(21)
[2022-01-04 22:23:59.177] I [SPRTMP-T1935:31] Provider | stream.cpp:49   | Unknown/(21) has been started stream
[2022-01-04 22:23:59.177] I [SPRTMP-T1935:31] RTMPProvider | rtmp_provider.cpp:141  | A RTMP client has connected from <ClientSocket: 0x7fb1a8001130, #21, Connected, TCP, Nonblocking, 105.104.200.9:41908>
[2022-01-04 22:23:59.776] W [SPRTMP-T1935:31] RTMPProvider | rtmp_stream.cpp:654  | AmfMeta has incompatible codec information. - stream(#default#app/stream) id(0/21) video(h264) audio(aac)
[2022-01-04 22:23:59.776] I [SPRTMP-T1935:31] MediaRouter | mediarouter_application.cpp:244  | Trying to create a stream: [#default#app/stream(21)]
[2022-01-04 22:23:59.777] I [SPRTMP-T1935:31] MediaRouter | mediarouter_application.cpp:245  |
[Stream Info]
id(21), msid(0), output(stream), SourceType(Rtmp), Created Time (Tue Jan  4 22:23:59 2022) UUID(d8078846-6136-4c3e-876f-f55e9dd38dbb/default/#default#app/stream/i)

        Video Track #0: Bypass(false) Bitrate(683.00Kb) codec(1, H264) resolution(480x720) framerate(30.00fps) timebase(1/1000)
        Audio Track #1: Bypass(false) Bitrate(62.00Kb) codec(6, AAC) samplerate(44.1K) format(s16, 16) channel(mono, 1) timebase(1/1000)
[2022-01-04 22:23:59.777] I [SPRTMP-T1935:31] MediaRouter | mediarouter_stream.cpp:54   | Trying to create media route stream: name(stream) id(21)
[2022-01-04 22:23:59.777] I [SPRTMP-T1935:31] Monitor | application_metrics.cpp:57   | Create StreamMetrics(stream/d8078846-6136-4c3e-876f-f55e9dd38dbb/default/#default#app/stream/i) for monitoring
[2022-01-04 22:23:59.778] I [SPRTMP-T1935:31] Transcoder | transcoder_stream.cpp:523  | [#default#app/stream(21)] -> [#default#app/stream(1505607058)] Output stream has been created.
[2022-01-04 22:23:59.779] I [SPRTMP-T1935:31] MediaRouter | mediarouter_application.cpp:244  | Trying to create a stream: [#default#app/stream(1505607058)]
[2022-01-04 22:23:59.779] I [SPRTMP-T1935:31] MediaRouter | mediarouter_application.cpp:245  |
[Stream Info]
id(1505607058), msid(0), output(stream), SourceType(Transcoder), Created Time (Tue Jan  4 22:23:59 2022) UUID(d8078846-6136-4c3e-876f-f55e9dd38dbb/default/#default#app/stream/o)
        >> Origin Stream Info
        id(21), output(stream), SourceType(Rtmp), Created Time (Tue Jan  4 22:23:59 2022)

        Video Track #0: Bypass(true) Bitrate(683.00Kb) codec(1, H264) resolution(480x720) framerate(30.00fps) timebase(1/1000)
        Audio Track #1: Bypass(true) Bitrate(62.00Kb) codec(6, AAC) samplerate(1.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-01-04 22:23:59.779] I [SPRTMP-T1935:31] MediaRouter | mediarouter_stream.cpp:54   | Trying to create media route stream: name(stream) id(1505607058)
[2022-01-04 22:23:59.779] I [SPRTMP-T1935:31] Monitor | application_metrics.cpp:57   | Create StreamMetrics(stream/d8078846-6136-4c3e-876f-f55e9dd38dbb/default/#default#app/stream/o) for monitoring
[2022-01-04 22:23:59.779] I [SPRTMP-T1935:31] Transcoder | transcoder_stream.cpp:100  | [#default#app/stream(21)] Transcoder input stream has been started. Status : (1) Decoders, (0) Encoders
[2022-01-04 22:23:59.851] E [Decaac:165] FFmpeg | third_parties.cpp:111  | [AVCodecContext: 0x7fb1a801a940] Input buffer exhausted before END element found
[2022-01-04 22:23:59.851] E [Decaac:165] Transcoder | decoder_aac.cpp:168  | An error occurred while sending a packet for decoding: Unhandled error (-1094995529:Invalid data found when processing input)
[2022-01-04 22:23:59.852] I [Decaac:165] Transcoder | decoder_aac.cpp:223  | [#default#app/stream(21)] input stream information: [audio] aac (LC), 48000 Hz, stereo, fltp, 70 kbps, timebase: 1/1000, frame_size: 1024
[2022-01-04 22:23:59.892] I [OutboundWorker:33] WebRTC Publisher | rtc_stream.cpp:279  | Unsupported codec(Audio/AAC) is being input from media track
[2022-01-04 22:23:59.892] I [OutboundWorker:33] WebRTC Publisher | rtc_stream.cpp:353  | WebRTC Stream has been created : stream/1505607058
Rtx(FALSE) Ulpfec(FALSE) JitterBuffer(FALSE) PlayoutDelay(FALSE min:0 max: 0)
[2022-01-04 22:23:59.893] I [OutboundWorker:33] Publisher | stream.cpp:181  | WebRTC Publisher Application application has started [stream(1505607058)] stream (MSID : 0)
[2022-01-04 22:23:59.893] I [OutboundWorker:33] HLS | hls_packetizer.cpp:152  | [#default#app/stream] HLS: Packetizer will be reset: 0
[2022-01-04 22:23:59.893] I [OutboundWorker:33] Publisher | stream.cpp:181  | HLS Publisher Application application has started [stream(1505607058)] stream (MSID : 0)
[2022-01-04 22:23:59.893] I [OutboundWorker:33] Publisher | stream.cpp:181  | DASH Publisher Application application has started [stream(1505607058)] stream (MSID : 0)
[2022-01-04 22:23:59.893] I [OutboundWorker:33] Publisher | stream.cpp:181  | LLDASH Publisher Application application has started [stream(1505607058)] stream (MSID : 0)
[2022-01-04 22:23:59.894] I [OutboundWorker:33] Publisher | stream.cpp:181  | OVTPublisher Application application has started [stream(1505607058)] stream (MSID : 0)
[2022-01-04 22:23:59.894] I [AW-DASH0:36] DASH | dash_packetizer.cpp:237  | [#default#app/stream] DASH: init_video.m4s has created
[2022-01-04 22:23:59.907] I [AW-DASH0:36] DASH | dash_packetizer.cpp:271  | [#default#app/stream] DASH: init_audio.m4s has created
[2022-01-04 22:24:04.152] I [AW-LLDASH0:37] LLDASH | cmaf_packetizer.cpp:765  | [0x7fb198019a90] LLDASH segment is ready to stream [#default#app/stream], segment duration: 5.000000s, count: 1
[2022-01-04 22:24:13.982] I [AW-HLS0:35] HLS | hls_packetizer.cpp:496  | [#default#app/stream] HLS: Segments are ready, segment duration: 5.000000s, count: 3
[2022-01-04 22:24:13.983] I [AW-DASH0:36] DASH | dash_packetizer.cpp:801  | [#default#app/stream] DASH: Segments are ready to stream, segment duration: 5.000000s, count: 3
[2022-01-04 22:24:42.153] E [AW-LLDASH0:37] LLDASH | cmaf_packetizer.cpp:866  | [#default#app/stream] Because the jitter is too high, playback may not be possible (2022-01-04T22:23:59.894+00:00 => 2022-01-04T22:24:00.894+00:00, 1000ms)
  - Elapsed: 42259ms (current: 1641335082153ms, start: 1641335039894ms)
  - Jitter: 2262ms (2262ms - 0ms), correction: 0ms => 1000ms (-1000ms)
  - Stream delta: 39997ms
    - Video: last PTS: 40068ms, start: 0ms, delta: 40068ms
    - Audio: last PTS: 40067ms, start: 70ms, delta: 39997ms
    - A-V Sync: -71 (A: 39997, V: 40068)
[2022-01-04 22:25:38.500] E [AW-LLDASH0:37] LLDASH | cmaf_packetizer.cpp:866  | [#default#app/stream] Because the jitter is too high, playback may not be possible (2022-01-04T22:24:00.894+00:00 => 2022-01-04T22:24:01.894+00:00, 2000ms)
  - Elapsed: 98606ms (current: 1641335138500ms, start: 1641335039894ms)
  - Jitter: 2625ms (3625ms - 1000ms), correction: 1000ms => 2000ms (-1000ms)
  - Stream delta: 94981ms
    - Video: last PTS: 95037ms, start: 0ms, delta: 95037ms
    - Audio: last PTS: 95051ms, start: 70ms, delta: 94981ms
    - A-V Sync: -56 (A: 94981, V: 95037)
[2022-01-04 22:25:38.502] W [InboundWorker:32] ov.Queue | queue.h:268  | [0x7fb1a8035b08] #default#app/stream - Mediarouter stream packet Outbound size has exceeded the threshold: queue: 100, threshold: 100, peak: 100
[2022-01-04 22:25:44.843] W [AW-LLDASH0:37] LLDASH | cmaf_packetizer.cpp:872  | [#default#app/stream] Jitter has been reduced, but playback may not be possible (2022-01-04T22:24:01.894+00:00 => 2022-01-04T22:24:00.894+00:00, 1000ms)
  - Elapsed: 104949ms (current: 1641335144843ms, start: 1641335039894ms)
  - Jitter: -2040ms (-40ms - 2000ms), correction: 2000ms => 1000ms (1000ms)
  - Stream delta: 104989ms
    - Video: last PTS: 105050ms, start: 0ms, delta: 105050ms
    - Audio: last PTS: 105059ms, start: 70ms, delta: 104989ms
    - A-V Sync: -61 (A: 104989, V: 105050)
[2022-01-04 22:25:50.182] W [AW-LLDASH0:37] LLDASH | cmaf_packetizer.cpp:872  | [#default#app/stream] Jitter has been reduced, but playback may not be possible (2022-01-04T22:24:00.894+00:00 => 2022-01-04T22:23:59.894+00:00, 0ms)
  - Elapsed: 110288ms (current: 1641335150182ms, start: 1641335039894ms)
  - Jitter: -693ms (307ms - 1000ms), correction: 1000ms => 0ms (1000ms)
  - Stream delta: 109981ms
    - Video: last PTS: 110023ms, start: 0ms, delta: 110023ms
    - Audio: last PTS: 110051ms, start: 70ms, delta: 109981ms
    - A-V Sync: -42 (A: 109981, V: 110023)
[2022-01-04 22:26:22.719] E [AW-LLDASH0:37] LLDASH | cmaf_packetizer.cpp:866  | [#default#app/stream] Because the jitter is too high, playback may not be possible (2022-01-04T22:23:59.894+00:00 => 2022-01-04T22:24:00.894+00:00, 1000ms)
  - Elapsed: 142825ms (current: 1641335182719ms, start: 1641335039894ms)
  - Jitter: 2124ms (2124ms - 0ms), correction: 0ms => 1000ms (-1000ms)
  - Stream delta: 140701ms
    - Video: last PTS: 140728ms, start: 0ms, delta: 140728ms
    - Audio: last PTS: 140771ms, start: 70ms, delta: 140701ms
    - A-V Sync: -27 (A: 140701, V: 140728)
[2022-01-04 22:26:42.987] W [SPRTMP-T1935:31] ov.Queue | queue.h:268  | [0x7fb1a8007d18] #default#app/stream - Mediarouter stream packet Inbound size has exceeded the threshold: queue: 100, threshold: 100, peak: 100
[2022-01-04 22:26:42.988] W [InboundWorker:32] ov.Queue | queue.h:268  | [0x7fb1a8035b08] #default#app/stream - Mediarouter stream packet Outbound size has exceeded the threshold: queue: 100, threshold: 100, peak: 153
[2022-01-04 22:26:42.988] W [InboundWorker:32] ov.Queue | queue.h:268  | [0x7fb1a80447f8] Input queue of Decoder. codec(aac/86018) size has exceeded the threshold: queue: 120, threshold: 120, peak: 120
[2022-01-04 22:26:42.993] W [Decaac:165] ov.Queue | queue.h:268  | [0x7fb134003998] Input queue of media resampler filter size has exceeded the threshold: queue: 100, threshold: 100, peak: 100
[2022-01-04 22:26:43.010] W [Resampler:167] ov.Queue | queue.h:268  | [0x7fb134003ae8] Output queue of media resampler filter size has exceeded the threshold: queue: 100, threshold: 100, peak: 100
[2022-01-04 22:26:43.014] W [Decaac:165] ov.Queue | queue.h:268  | [0x7fb134010868] Input queue of Encoder. codec(opus/86076) size has exceeded the threshold: queue: 120, threshold: 120, peak: 120
[2022-01-04 22:26:51.528] W [AW-LLDASH0:37] LLDASH | cmaf_packetizer.cpp:872  | [#default#app/stream] Jitter has been reduced, but playback may not be possible (2022-01-04T22:24:00.894+00:00 => 2022-01-04T22:23:59.894+00:00, 0ms)
  - Elapsed: 171634ms (current: 1641335211528ms, start: 1641335039894ms)
  - Jitter: -161ms (839ms - 1000ms), correction: 1000ms => 0ms (1000ms)
  - Stream delta: 170795ms
    - Video: last PTS: 170832ms, start: 0ms, delta: 170832ms
    - Audio: last PTS: 170865ms, start: 70ms, delta: 170795ms
    - A-V Sync: -37 (A: 170795, V: 170832)
[2022-01-04 22:28:21.925] E [AW-LLDASH0:37] LLDASH | cmaf_packetizer.cpp:866  | [#default#app/stream] Because the jitter is too high, playback may not be possible (2022-01-04T22:23:59.894+00:00 => 2022-01-04T22:24:00.894+00:00, 1000ms)
  - Elapsed: 262031ms (current: 1641335301925ms, start: 1641335039894ms)
  - Jitter: 2049ms (2049ms - 0ms), correction: 0ms => 1000ms (-1000ms)
  - Stream delta: 259982ms
    - Video: last PTS: 260044ms, start: 0ms, delta: 260044ms
    - Audio: last PTS: 260052ms, start: 70ms, delta: 259982ms
    - A-V Sync: -62 (A: 259982, V: 260044)
[2022-01-04 22:29:16.958] W [InboundWorker:32] ov.Queue | queue.h:268  | [0x7fb1a8035b08] #default#app/stream - Mediarouter stream packet Outbound size has exceeded the threshold: queue: 100, threshold: 100, peak: 161
[2022-01-04 22:29:33.212] E [AW-LLDASH0:37] LLDASH | cmaf_packetizer.cpp:866  | [#default#app/stream] Because the jitter is too high, playback may not be possible (2022-01-04T22:24:00.894+00:00 => 2022-01-04T22:24:01.894+00:00, 2000ms)
  - Elapsed: 333318ms (current: 1641335373212ms, start: 1641335039894ms)
  - Jitter: 2327ms (3327ms - 1000ms), correction: 1000ms => 2000ms (-1000ms)
  - Stream delta: 329991ms
    - Video: last PTS: 330032ms, start: 0ms, delta: 330032ms
    - Audio: last PTS: 330061ms, start: 70ms, delta: 329991ms
    - A-V Sync: -41 (A: 329991, V: 330032)
[2022-01-04 22:29:44.450] E [AW-LLDASH0:37] LLDASH | cmaf_packetizer.cpp:866  | [#default#app/stream] Because the jitter is too high, playback may not be possible (2022-01-04T22:24:01.894+00:00 => 2022-01-04T22:24:02.894+00:00, 3000ms)
  - Elapsed: 344556ms (current: 1641335384450ms, start: 1641335039894ms)
  - Jitter: 2558ms (4558ms - 2000ms), correction: 2000ms => 3000ms (-1000ms)
  - Stream delta: 339998ms
    - Video: last PTS: 340045ms, start: 0ms, delta: 340045ms
    - Audio: last PTS: 340068ms, start: 70ms, delta: 339998ms
    - A-V Sync: -47 (A: 339998, V: 340045)

@Ramy-Ab
Copy link
Author

Ramy-Ab commented Jan 5, 2022

@fcqpl Im stucking with my project and i really need help here bro ,please give me some suggestions if you have

@getroot getroot removed the bug Confirmed as bug label Jan 17, 2022
@getroot
Copy link
Member

getroot commented Jan 17, 2022

There is no log of attempts to connect to the WebRTC signaling port(default 3333/tcp). Check the error message displayed on the OvenPlayer console. The command to run docker may be wrong, or it may be a mixed contents issue (problem when trying to connect from https to ws)

(This has nothing to do with this issue) Your server seems to be very underpowered. If the message that the queue is full continues to be output, even if it is played, the playback may be interrupted.

Check out the troubleshooting documentation.
https://airensoft.gitbook.io/ovenmediaengine/troubleshooting

@stale
Copy link

stale bot commented Jun 2, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 2, 2022
@stale stale bot closed this as completed Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants