AirenSoft / OvenMediaEngine

OvenMediaEngine (OME) is a Sub-Second Latency Live Streaming Server with Large-Scale and High-Definition. #WebRTC #LLHLS
https://airensoft.com/ome.html
GNU Affero General Public License v3.0
2.61k stars 1.06k forks source link

Timestamp has changed abnormally #516

Closed nikell28 closed 2 years ago

nikell28 commented 3 years ago

Hello!

I'm trying to get stream from gstreamer by RTMP and push his by HLS Gstreamer use nanoseconds for timestamp but ffmpeg mileseconds

My error

W [InboundWorker:34] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:1 last.pts: 4294967339, cur.pts: 8589934656, tb(1/1000), diff: 4294967ms
W [Decaac:43] Transcoder | transcoder_filter.cpp:94   | Timestamp has changed abnormally.  4294967339 -> 8589934656
E [AW-DASH0:38] FFmpeg | third_parties.cpp:111  | [AVFormatContext: 0x7f8fdc01d9c0] Application provided duration: 206158431216 is invalid
E [AW-DASH0:38] Writer | writer.cpp:722  | [0x7f8ff400a4b8] Could not write the frame: Invalid argument

Help me please!

getroot commented 3 years ago

Please post the full log. Not all logs can analyze the problem. And how do I reproduce this? Please be specific.

nikell28 commented 3 years ago

Please post the full log. Not all logs can analyze the problem. And how do I reproduce this? Please be specific.

I use this https://github.com/bbc/brave to generate a stream This worked fine with https://github.com/aler9/rtsp-simple-server or from YouTube

But when I use OME as a media server, I get the logs specified above, they are output separately Here's what I see when starting OME

ovenmediaengine_1  | [2021-09-22 08:32:31.055] I [OvenMediaEngine:1] Config | config_manager.cpp:264  | Trying to set logfile in directory... (/var/log/ovenmediaengine)
ovenmediaengine_1  | [2021-09-22 08:32:31.055] I [OvenMediaEngine:1] Config | config_manager.cpp:93   | Trying to load configurations... (origin_conf/Server.xml)
ovenmediaengine_1  | [2021-09-22 08:32:31.055] I [OvenMediaEngine:1] Config.DataSource | data_source.cpp:42   | Trying to load data source from ./origin_conf/Server.xml
ovenmediaengine_1  | [2021-09-22 08:32:31.059] I [OvenMediaEngine:1] OvenMediaEngine | banner.cpp:28   | OvenMediaEngine v0.12.4 is started on [c6e8725d2017] (Linux x86_64 - 5.8.0-1041-aws, #43~20.04.1-Ubuntu SMP Thu Jul 15 11:07:29 UTC 2021)
ovenmediaengine_1  | [2021-09-22 08:32:31.059] I [OvenMediaEngine:1] OvenMediaEngine | banner.cpp:30   | With modules:
ovenmediaengine_1  | [2021-09-22 08:32:31.059] I [OvenMediaEngine:1] OvenMediaEngine | banner.cpp:31   |   FFmpeg 4.3.2
ovenmediaengine_1  | [2021-09-22 08:32:31.059] I [OvenMediaEngine:1] OvenMediaEngine | banner.cpp:32   |     Configuration: --prefix=/opt/ovenmediaengine --enable-gpl --enable-nonfree --extra-cflags=-I/opt/ovenmediaengine/include --extra-ldflags='-L/opt/ovenmediaengine/lib -Wl,-rpath,/opt/ovenmediaengine/lib' --extra-libs=-ldl --enable-shared --disable-static --disable-debug --disable-doc --disable-programs --disable-avdevice --disable-dct --disable-dwt --disable-lsp --disable-lzo --disable-rdft --disable-faan --disable-pixelutils --enable-zlib --enable-libopus --enable-libvpx --enable-libfdk_aac --enable-libx264 --enable-libx265 --disable-everything --enable-encoder='libvpx_vp8,libvpx_vp9,libopus,libfdk_aac,libx264,libx265,mjpeg,png' --enable-decoder='aac,aac_latm,aac_fixed,h264,hevc,opus,vp8' --enable-parser='aac,aac_latm,aac_fixed,h264,hevc,opus,vp8' --enable-network --enable-protocol=tcp --enable-protocol=udp --enable-protocol='rtp,file,rtmp' --enable-demuxer=rtsp --enable-muxer='mp4,webm,mpegts,flv,mpjpeg' --enable-filter='asetnsamples,aresample,aformat,channelmap,channelsplit,scale,transpose,fps,settb,asettb,format'
ovenmediaengine_1  | [2021-09-22 08:32:31.059] I [OvenMediaEngine:1] OvenMediaEngine | banner.cpp:33   |     libavformat: 58.45.100
ovenmediaengine_1  | [2021-09-22 08:32:31.059] I [OvenMediaEngine:1] OvenMediaEngine | banner.cpp:34   |     libavcodec: 58.91.100
ovenmediaengine_1  | [2021-09-22 08:32:31.059] I [OvenMediaEngine:1] OvenMediaEngine | banner.cpp:35   |     libavutil: 56.51.100
ovenmediaengine_1  | [2021-09-22 08:32:31.059] I [OvenMediaEngine:1] OvenMediaEngine | banner.cpp:36   |     libavfilter: 7.85.100
ovenmediaengine_1  | [2021-09-22 08:32:31.059] I [OvenMediaEngine:1] OvenMediaEngine | banner.cpp:37   |     libswresample: 3.7.100
ovenmediaengine_1  | [2021-09-22 08:32:31.059] I [OvenMediaEngine:1] OvenMediaEngine | banner.cpp:38   |     libswscale: 5.7.100
ovenmediaengine_1  | [2021-09-22 08:32:31.059] I [OvenMediaEngine:1] OvenMediaEngine | banner.cpp:39   |   SRT: 1.4.2
ovenmediaengine_1  | [2021-09-22 08:32:31.059] I [OvenMediaEngine:1] OvenMediaEngine | banner.cpp:40   |   SRTP: libsrtp2 2.4.0
ovenmediaengine_1  | [2021-09-22 08:32:31.059] I [OvenMediaEngine:1] OvenMediaEngine | banner.cpp:41   |   OpenSSL: OpenSSL 3.0.0-beta1 17 Jun 2021
ovenmediaengine_1  | [2021-09-22 08:32:31.059] I [OvenMediaEngine:1] OvenMediaEngine | banner.cpp:42   |     Configuration: compiler: gcc -fPIC -pthread -m64 -Wa,--noexecstack -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_BUILDING_OPENSSL -DNDEBUG
ovenmediaengine_1  | [2021-09-22 08:32:31.059] I [OvenMediaEngine:1] OvenMediaEngine | banner.cpp:43   |   JsonCpp: 1.9.3
ovenmediaengine_1  | [2021-09-22 08:32:31.060] I [OvenMediaEngine:1] OvenMediaEngine | banner.cpp:44   |   jemalloc: 5.2.1-0-gea6b3e973b477b8061e0076bb257dbd7f3faa756
ovenmediaengine_1  | [2021-09-22 08:32:31.060] I [OvenMediaEngine:1] Monitor | monitoring.cpp:72   | OvenMediaEngine(13a06d3e-efa9-43a7-b135-7bb49330d6c7) ServerMetric has been started for monitoring - �ݱ�MV
ovenmediaengine_1  | [2021-09-22 08:32:31.060] I [OvenMediaEngine:1] OvenMediaEngine | main.cpp:69   | Server ID : 13a06d3e-efa9-43a7-b135-7bb49330d6c7
ovenmediaengine_1  | [2021-09-22 08:32:31.091] I [OvenMediaEngine:1] OvenMediaEngine | main.cpp:78   | Resolved public IP address (3.141.69.56) from stun server (stun.l.google.com:19302)
ovenmediaengine_1  | [2021-09-22 08:32:31.092] I [OvenMediaEngine:1] APIServer | api_server.cpp:30   | API Server is disabled
ovenmediaengine_1  | [2021-09-22 08:32:31.098] I [OvenMediaEngine:1] OvenMediaEngine | main.cpp:129  | Trying to create a MediaRouter module
ovenmediaengine_1  | [2021-09-22 08:32:31.098] I [OvenMediaEngine:1] MediaRouter | mediarouter.cpp:40   | Mediarouter has been started.
ovenmediaengine_1  | [2021-09-22 08:32:31.098] I [OvenMediaEngine:1] OvenMediaEngine | main.cpp:132  | Trying to create a WebRTC Publisher module
ovenmediaengine_1  | [2021-09-22 08:32:31.098] I [OvenMediaEngine:1] Signalling.P2P | rtc_p2p_manager.cpp:27   | P2P is disabled in the configuration
ovenmediaengine_1  | [2021-09-22 08:32:31.099] I [OvenMediaEngine:1] ICE | ice_port.cpp:86   | ICE port is bound to 0.0.0.0:10000/UDP (0x564da8bfc0a0)
ovenmediaengine_1  | [2021-09-22 08:32:31.100] I [OvenMediaEngine:1] ICE | ice_port.cpp:128  | ICE port is bound to 0.0.0.0:3478/TCP (0x564da8c00c60)
ovenmediaengine_1  | [2021-09-22 08:32:31.100] I [OvenMediaEngine:1] ICE | ice_port_manager.cpp:94   | RelayServer is created successfully: host:3478?transport=tcp
ovenmediaengine_1  | [2021-09-22 08:32:31.100] I [OvenMediaEngine:1] WebRTC Publisher | webrtc_publisher.cpp:121  | WebRTC Publisher is listening on *:3333...
ovenmediaengine_1  | [2021-09-22 08:32:31.100] I [OvenMediaEngine:1] Publisher | publisher.cpp:18   | WebRTC Publisher has been started.
ovenmediaengine_1  | [2021-09-22 08:32:31.100] I [OvenMediaEngine:1] OvenMediaEngine | main.cpp:133  | Trying to create a HLS Publisher module
ovenmediaengine_1  | [2021-09-22 08:32:31.100] I [OvenMediaEngine:1] HTTPPublisher | segment_publisher.cpp:57   | HLS Publisher is listening on *:8080...
ovenmediaengine_1  | [2021-09-22 08:32:31.100] I [OvenMediaEngine:1] Publisher | publisher.cpp:18   | HLS Publisher has been started.
ovenmediaengine_1  | [2021-09-22 08:32:31.101] I [OvenMediaEngine:1] OvenMediaEngine | main.cpp:134  | Trying to create a MPEG-DASH Publisher module
ovenmediaengine_1  | [2021-09-22 08:32:31.101] I [OvenMediaEngine:1] DASH | dash_publisher.cpp:35   | DASH Publisher is disabled by configuration
ovenmediaengine_1  | [2021-09-22 08:32:31.101] I [OvenMediaEngine:1] OvenMediaEngine | main.cpp:135  | Trying to create a Low-Latency MPEG-DASH Publisher module
ovenmediaengine_1  | [2021-09-22 08:32:31.101] I [OvenMediaEngine:1] LLDASH | cmaf_publisher.cpp:36   | LLDASH Publisher is disabled by configuration
ovenmediaengine_1  | [2021-09-22 08:32:31.101] I [OvenMediaEngine:1] OvenMediaEngine | main.cpp:136  | Trying to create a OVT Publisher module
ovenmediaengine_1  | [2021-09-22 08:32:31.101] I [OvenMediaEngine:1] OVT | ovt_publisher.cpp:58   | OVTPublisher is listening on *:9000/TCP
ovenmediaengine_1  | [2021-09-22 08:32:31.101] I [OvenMediaEngine:1] Publisher | publisher.cpp:18   | OVTPublisher has been started.
ovenmediaengine_1  | [2021-09-22 08:32:31.102] I [OvenMediaEngine:1] OvenMediaEngine | main.cpp:137  | Trying to create a File Publisher module
ovenmediaengine_1  | [2021-09-22 08:32:31.102] I [OvenMediaEngine:1] Publisher | publisher.cpp:18   | FilePublisher has been started.
ovenmediaengine_1  | [2021-09-22 08:32:31.102] I [OvenMediaEngine:1] OvenMediaEngine | main.cpp:138  | Trying to create a RtmpPush Publisher module
ovenmediaengine_1  | [2021-09-22 08:32:31.102] I [OvenMediaEngine:1] Publisher | publisher.cpp:18   | RTMPPushPublisher has been started.
ovenmediaengine_1  | [2021-09-22 08:32:31.102] I [OvenMediaEngine:1] OvenMediaEngine | main.cpp:139  | Trying to create a Thumbnail Publisher module
ovenmediaengine_1  | [2021-09-22 08:32:31.102] I [OvenMediaEngine:1] Thumbnail | thumbnail_publisher.cpp:45   | ThumbnailPublisher is disabled by configuration
ovenmediaengine_1  | [2021-09-22 08:32:31.102] I [OvenMediaEngine:1] OvenMediaEngine | main.cpp:142  | Trying to create a Transcoder module
ovenmediaengine_1  | [2021-09-22 08:32:31.102] I [OvenMediaEngine:1] Transcoder | transcoder_gpu.cpp:61   | There is no supported hardware accelerator
ovenmediaengine_1  | [2021-09-22 08:32:31.102] I [OvenMediaEngine:1] OvenMediaEngine | main.cpp:145  | Trying to create a WebRTC Provider module
ovenmediaengine_1  | [2021-09-22 08:32:31.103] I [OvenMediaEngine:1] Signalling.P2P | rtc_p2p_manager.cpp:27   | P2P is disabled in the configuration
ovenmediaengine_1  | [2021-09-22 08:32:31.103] I [OvenMediaEngine:1] ICE | ice_port.cpp:86   | ICE port is bound to 0.0.0.0:10000/UDP (0x564da8bfc0a0)
ovenmediaengine_1  | [2021-09-22 08:32:31.103] I [OvenMediaEngine:1] ICE | ice_port.cpp:128  | ICE port is bound to 0.0.0.0:3478/TCP (0x564da8c00c60)
ovenmediaengine_1  | [2021-09-22 08:32:31.103] I [OvenMediaEngine:1] ICE | ice_port_manager.cpp:94   | RelayServer is created successfully: host:3478?transport=tcp
ovenmediaengine_1  | [2021-09-22 08:32:31.105] I [OvenMediaEngine:1] WebRTC Provider | webrtc_provider.cpp:134  | WebRTCProvider is listening on *:3333...
ovenmediaengine_1  | [2021-09-22 08:32:31.105] I [OvenMediaEngine:1] Provider | provider.cpp:37   | WebRTCProvider has been started.
ovenmediaengine_1  | [2021-09-22 08:32:31.105] I [OvenMediaEngine:1] OvenMediaEngine | main.cpp:146  | Trying to create a MPEG-TS Provider module
ovenmediaengine_1  | [2021-09-22 08:32:31.105] I [OvenMediaEngine:1] MpegtsProvider | mpegts_provider.cpp:140  | MPEGTSProvider is listening on *:4000/UDP
ovenmediaengine_1  | [2021-09-22 08:32:31.105] I [OvenMediaEngine:1] Provider | provider.cpp:37   | MPEGTSProvider has been started.
ovenmediaengine_1  | [2021-09-22 08:32:31.106] I [OvenMediaEngine:1] OvenMediaEngine | main.cpp:147  | Trying to create a SRT Provider module
ovenmediaengine_1  | [2021-09-22 08:32:31.107] I [OvenMediaEngine:1] SrtProvider | srt_provider.cpp:66   | SrtProvider is listening on *:9999/SRT
ovenmediaengine_1  | [2021-09-22 08:32:31.107] I [OvenMediaEngine:1] Provider | provider.cpp:37   | SrtProvider has been started.
ovenmediaengine_1  | [2021-09-22 08:32:31.107] I [OvenMediaEngine:1] OvenMediaEngine | main.cpp:148  | Trying to create a RTMP Provider module
ovenmediaengine_1  | [2021-09-22 08:32:31.107] I [OvenMediaEngine:1] RTMPProvider | rtmp_provider.cpp:77   | RTMPProvider is listening on *:1935/TCP
ovenmediaengine_1  | [2021-09-22 08:32:31.107] I [OvenMediaEngine:1] Provider | provider.cpp:37   | RTMPProvider has been started.
ovenmediaengine_1  | [2021-09-22 08:32:31.107] I [OvenMediaEngine:1] OvenMediaEngine | main.cpp:149  | Trying to create a OVT Provider module
ovenmediaengine_1  | [2021-09-22 08:32:31.108] I [OvenMediaEngine:1] Provider | provider.cpp:37   | OVTProvider has been started.
ovenmediaengine_1  | [2021-09-22 08:32:31.108] I [OvenMediaEngine:1] OvenMediaEngine | main.cpp:150  | Trying to create a RTSPC Provider module
ovenmediaengine_1  | [2021-09-22 08:32:31.108] I [OvenMediaEngine:1] Provider | provider.cpp:37   | RTSPCProvider has been started.
ovenmediaengine_1  | [2021-09-22 08:32:31.108] I [OvenMediaEngine:1] OvenMediaEngine | main.cpp:153  | All modules are initialized successfully
ovenmediaengine_1  | [2021-09-22 08:32:31.108] I [OvenMediaEngine:1] Monitor | server_metrics.cpp:55   | Create HostMetrics(default/13a06d3e-efa9-43a7-b135-7bb49330d6c7/default) for monitoring
ovenmediaengine_1  | [2021-09-22 08:32:31.108] I [OvenMediaEngine:1] Orchestrator | orchestrator_internal.cpp:607  | Trying to create an application: [#default#app]
ovenmediaengine_1  | [2021-09-22 08:32:31.108] I [OvenMediaEngine:1] Monitor | host_metrics.cpp:52   | Create ApplicationMetrics(#default#app/13a06d3e-efa9-43a7-b135-7bb49330d6c7/default/#default#app) for monitoring
ovenmediaengine_1  | [2021-09-22 08:32:31.108] I [OvenMediaEngine:1] MediaRouter | mediarouter_application.cpp:44   | Created Mediarouter application. application id(0), app(#default#app), worker(1)
ovenmediaengine_1  | [2021-09-22 08:32:31.108] I [OvenMediaEngine:1] MediaRouter | mediarouter_application.cpp:99   | Started Mediarouter application. application id(0), app(#default#app)
ovenmediaengine_1  | [2021-09-22 08:32:31.108] I [OvenMediaEngine:1] MediaRouter | mediarouter.cpp:71   | Created Mediarouter. app(#default#app)
ovenmediaengine_1  | [2021-09-22 08:32:31.110] I [OvenMediaEngine:1] Publisher | application.cpp:31   | WebRTC ApplicationWorker has been created
ovenmediaengine_1  | [2021-09-22 08:32:31.110] I [OvenMediaEngine:1] Publisher | application.cpp:197  | WebRTC Publisher Application has created [#default#app] application
ovenmediaengine_1  | [2021-09-22 08:32:31.110] I [OvenMediaEngine:1] Publisher | application.cpp:31   | HLS ApplicationWorker has been created
ovenmediaengine_1  | [2021-09-22 08:32:31.110] I [OvenMediaEngine:1] Publisher | application.cpp:197  | HLS Publisher Application has created [#default#app] application
ovenmediaengine_1  | [2021-09-22 08:32:31.110] I [OvenMediaEngine:1] Publisher | publisher.cpp:69   | DASH publisher is disabled in #default#app application, so it was not created
ovenmediaengine_1  | [2021-09-22 08:32:31.110] I [OvenMediaEngine:1] Publisher | publisher.cpp:69   | LLDASH publisher is disabled in #default#app application, so it was not created
ovenmediaengine_1  | [2021-09-22 08:32:31.110] I [OvenMediaEngine:1] Publisher | application.cpp:31   | OVT ApplicationWorker has been created
ovenmediaengine_1  | [2021-09-22 08:32:31.110] I [OvenMediaEngine:1] Publisher | application.cpp:197  | OVTPublisher Application has created [#default#app] application
ovenmediaengine_1  | [2021-09-22 08:32:31.110] I [OvenMediaEngine:1] Publisher | publisher.cpp:69   | File publisher is disabled in #default#app application, so it was not created
ovenmediaengine_1  | [2021-09-22 08:32:31.110] I [OvenMediaEngine:1] Publisher | publisher.cpp:69   | RTMPPush publisher is disabled in #default#app application, so it was not created
ovenmediaengine_1  | [2021-09-22 08:32:31.110] I [OvenMediaEngine:1] Publisher | publisher.cpp:69   | Thumbnail publisher is disabled in #default#app application, so it was not created
ovenmediaengine_1  | [2021-09-22 08:32:31.110] I [OvenMediaEngine:1] Transcoder | transcoder_application.cpp:32   | Created transcoder application. app(#default#app)
ovenmediaengine_1  | [2021-09-22 08:32:31.110] I [OvenMediaEngine:1] Transcoder | transcoder.cpp:79   | Transcoder has created [config][#default#app] application
ovenmediaengine_1  | [2021-09-22 08:32:31.111] I [OvenMediaEngine:1] Provider | application.cpp:46   | WebRTCProvider has created [#default#app] application
ovenmediaengine_1  | [2021-09-22 08:32:31.111] I [OvenMediaEngine:1] Monitor | application_metrics.cpp:106  | MPEG-TS has reserved stream_4000 stream linked to UDP://0.0.0.0:4000
ovenmediaengine_1  | [2021-09-22 08:32:31.111] I [OvenMediaEngine:1] Provider | application.cpp:46   | MPEGTSProvider has created [#default#app] application
ovenmediaengine_1  | [2021-09-22 08:32:31.111] I [OvenMediaEngine:1] Provider | application.cpp:46   | SrtProvider has created [#default#app] application
ovenmediaengine_1  | [2021-09-22 08:32:31.111] I [OvenMediaEngine:1] Provider | application.cpp:46   | RTMPProvider has created [#default#app] application
ovenmediaengine_1  | [2021-09-22 08:32:31.111] I [OvenMediaEngine:1] Provider | application.cpp:46   | OVTProvider has created [#default#app] application
ovenmediaengine_1  | [2021-09-22 08:32:31.111] I [OvenMediaEngine:1] Provider | application.cpp:46   | RTSPCProvider has created [#default#app] application
nikell28 commented 3 years ago

I change my config

<?xml version="1.0" encoding="UTF-8"?>

<Server version="8">
    <Name>OvenMediaEngine</Name>
    <!-- Host type (origin/edge) -->
    <Type>origin</Type>
    <!-- Specify IP address to bind (* means all IPs) -->
    <IP>*</IP>

    <StunServer>stun.l.google.com:19302</StunServer>

    <!-- Settings for the ports to bind -->
    <Bind>
        <Providers>
            <!-- Push providers -->
            <RTMP>
                <Port>1935</Port>
                <WorkerCount>1</WorkerCount>
            </RTMP>
        </Providers>

        <Publishers>
            <HLS>
                <Port>8080</Port>
                <!-- If you want to use TLS, specify the TLS port -->
                <!-- <TLSPort>443</TLSPort> -->
                <WorkerCount>1</WorkerCount>
            </HLS>
        </Publishers>
    </Bind>

    <VirtualHosts>
        <!-- You can use wildcard like this to include multiple XMLs -->
        <VirtualHost include="VHost*.xml" />
        <VirtualHost>
            <Name>default</Name>
            <!--Distribution is a value that can be used when grouping the same vhost distributed across multiple servers. This value is output to the events log, so you can use it to aggregate statistics. -->
            <Distribution>ovenmediaengine.com</Distribution>

            <!-- Settings for multi ip/domain and TLS -->
            <Host>
                <Names>
                    <Name>*</Name>
                </Names>
            </Host>

            <!-- Settings for applications -->
            <Applications>
                <Application>
                    <Name>app</Name>
                    <!-- Application type (live/vod) -->
                    <Type>live</Type>
                    <OutputProfiles>
                        <!-- Enable this configuration if you want to hardware acceleration using GPU -->
                        <!-- 
                        <HardwareAcceleration>false</HardwareAcceleration>
                        -->

                        <OutputProfile>
                            <Name>bypass_stream</Name>
                            <OutputStreamName>${OriginStreamName}</OutputStreamName>
                            <Encodes>
                                <Video>
                                    <Bypass>true</Bypass>
                                    <Framerate>30.0</Framerate>
                                </Video>
                                <Audio>
                                    <Bypass>true</Bypass>
                                </Audio>
                            </Encodes>
                        </OutputProfile>
                    </OutputProfiles>

                    <Providers>
                        <RTMP>
                            <BlockDuplicateStreamName>true</BlockDuplicateStreamName>
                        </RTMP>                     
                    </Providers>

                    <Publishers>
                        <AppWorkerCount>1</AppWorkerCount>
                        <StreamWorkerCount>8</StreamWorkerCount>
                        <HLS>
                            <SegmentDuration>5</SegmentDuration>
                            <SegmentCount>3</SegmentCount>
                            <CrossDomains>
                                <Url>*</Url>
                            </CrossDomains>
                        </HLS>
                    </Publishers>
                </Application>
            </Applications>
        </VirtualHost>
    </VirtualHosts>
</Server>

And give this logs

ovenmediaengine_1  | [2021-09-22 11:27:58.245] W [InboundWorker:16] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:0 last.pts: 9792525510845, cur.pts: 9796820478175, tb(1/1000), diff: 4294967ms
ovenmediaengine_1  | [2021-09-22 11:27:58.255] W [InboundWorker:16] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:1 last.pts: 9792525510869, cur.pts: 9796820478186, tb(1/1000), diff: 4294967ms
ovenmediaengine_1  | [2021-09-22 11:27:58.276] W [InboundWorker:16] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:1 last.pts: 9796820478186, cur.pts: 9801115445504, tb(1/1000), diff: 4294967ms
ovenmediaengine_1  | [2021-09-22 11:27:58.278] W [InboundWorker:16] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:0 last.pts: 9796820478175, cur.pts: 9801115445504, tb(1/1000), diff: 4294967ms
ovenmediaengine_1  | [2021-09-22 11:27:58.319] W [InboundWorker:16] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:1 last.pts: 9801115445525, cur.pts: 9805410412842, tb(1/1000), diff: 4294967ms
ovenmediaengine_1  | [2021-09-22 11:27:58.319] W [InboundWorker:16] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:0 last.pts: 9801115445504, cur.pts: 9805410412867, tb(1/1000), diff: 4294967ms
ovenmediaengine_1  | [2021-09-22 11:27:58.342] W [InboundWorker:16] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:0 last.pts: 9805410412867, cur.pts: 9809705380129, tb(1/1000), diff: 4294967ms
ovenmediaengine_1  | [2021-09-22 11:27:58.361] W [InboundWorker:16] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:1 last.pts: 9805410412864, cur.pts: 9809705380181, tb(1/1000), diff: 4294967ms
ovenmediaengine_1  | [2021-09-22 11:27:58.383] W [InboundWorker:16] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:1 last.pts: 9809705380181, cur.pts: 9814000347498, tb(1/1000), diff: 4294967ms
ovenmediaengine_1  | [2021-09-22 11:27:58.384] W [InboundWorker:16] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:0 last.pts: 9809705380129, cur.pts: 9814000347492, tb(1/1000), diff: 4294967ms
ovenmediaengine_1  | [2021-09-22 11:27:58.406] W [InboundWorker:16] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:0 last.pts: 9814000347492, cur.pts: 9818295314821, tb(1/1000), diff: 4294967ms
ovenmediaengine_1  | [2021-09-22 11:27:58.425] W [InboundWorker:16] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:1 last.pts: 9814000347520, cur.pts: 9818295314837, tb(1/1000), diff: 4294967ms
ovenmediaengine_1  | [2021-09-22 11:27:58.447] W [InboundWorker:16] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:1 last.pts: 9818295314837, cur.pts: 9822590282154, tb(1/1000), diff: 4294967ms
ovenmediaengine_1  | [2021-09-22 11:27:58.449] W [InboundWorker:16] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:0 last.pts: 9818295314821, cur.pts: 9822590282151, tb(1/1000), diff: 4294967ms
ovenmediaengine_1  | [2021-09-22 11:27:58.468] W [InboundWorker:16] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:0 last.pts: 9822590282151, cur.pts: 9826885249513, tb(1/1000), diff: 4294967ms
ovenmediaengine_1  | [2021-09-22 11:27:58.489] W [InboundWorker:16] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:1 last.pts: 9822590282176, cur.pts: 9826885249493, tb(1/1000), diff: 4294967ms
ovenmediaengine_1  | [2021-09-22 11:27:58.511] W [InboundWorker:16] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:1 last.pts: 9826885249493, cur.pts: 9831180216810, tb(1/1000), diff: 4294967ms
ovenmediaengine_1  | [2021-09-22 11:27:58.513] W [InboundWorker:16] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:0 last.pts: 9826885249513, cur.pts: 9831180216776, tb(1/1000), diff: 4294967ms
ovenmediaengine_1  | [2021-09-22 11:27:58.553] W [InboundWorker:16] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:1 last.pts: 9831180216832, cur.pts: 9835475184149, tb(1/1000), diff: 4294967ms
ovenmediaengine_1  | [2021-09-22 11:27:58.555] W [InboundWorker:16] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:0 last.pts: 9831180216776, cur.pts: 9835475184139, tb(1/1000), diff: 4294967ms
ovenmediaengine_1  | [2021-09-22 11:27:58.576] W [InboundWorker:16] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:0 last.pts: 9835475184139, cur.pts: 9839770151468, tb(1/1000), diff: 4294967ms

My HLS stream it opens once and is immediately interrupted

getroot commented 3 years ago

Please upload the entire log file. I need the full log so I can analyze the problem quickly.

getroot commented 3 years ago

The timebase of RTMP is 1/1000. Therefore, when a PTS or DTS with nanosecond (1/1000000) as the timebase comes in, it cannot be handled in a normal way. How should I handle this? Please let me know if I'm wrong about anything.

https://wwwimages2.adobe.com/content/dam/acom/en/devnet/rtmp/pdf/rtmp_specification_1.0.pdf

See page 5 of the document.

nikell28 commented 3 years ago

Here is the full log of several minutes of work ome.log

getroot commented 3 years ago

RTMP input is weird like this:

It is assumed that the encoder is handling the timestamp of the RTMP protocol out of specification. Youtube or other streaming servers may have code to correct this, but OvenMediaEngine does not have a code to correct out-of-standard timestamps.

I'll look into this more when the urgent task is done. Before that, if you know something, I'd appreciate it if you could share it.

nikell28 commented 3 years ago

I will try to solve this problem from the outside I'll let you know if something comes out But you should still add code to work around this situatio

getroot commented 3 years ago

Could you please retest this issue with the latest master branch? There was a commit that handled this exception a while ago.

getroot commented 2 years ago

This issue has been closed since it has been inactive for quite some time. If you want to continue discussing this issue, please feel free to reopen it.