Coder Social home page Coder Social logo

Comments (19)

xia-chu avatar xia-chu commented on June 30, 2024

这是播放器主动断开的 需要提供播放器的日志

from zlmediakit.

ruikc avatar ruikc commented on June 30, 2024

播放器的播放日志

Jessibuca: [decoderWorker] onmessage: init
jessibuca.js:1 Jessibuca: [player] has loaded
jessibuca.js:1 Jessibuca: [player events] decoderWorkerInit undefined
jessibuca.js:1 Jessibuca: [player events] mute false
JessibucaDemo.vue:262 on mute false
JessibucaDemo.vue:267 on mute2 false
jessibuca.js:1 Jessibuca: [player events] volumechange 0.5
jessibuca.js:1 Jessibuca: [player events] volume 0.5
jessibuca.js:1 Jessibuca: [FetchStream] fetchStream http://192.168.3.65:8088/rtp/0BEBC204.live.flv {}
decoder.js:1 Jessibuca: [worker] init
jessibuca.js:1 Jessibuca: [Video] play and readyState: 0
jessibuca.js:1  Jessibuca: [Video] readyState is 0 and set _delayPlay to true
warn @ jessibuca.js:1
play @ jessibuca.js:1
(匿名) @ jessibuca.js:1
r @ jessibuca.js:1
emit @ jessibuca.js:1
(匿名) @ jessibuca.js:1
Promise.then(异步)
fetchStream @ jessibuca.js:1
(匿名) @ jessibuca.js:1
Promise.then(异步)
(匿名) @ jessibuca.js:1
play @ jessibuca.js:1
(匿名) @ jessibuca.js:1
_play @ jessibuca.js:1
(匿名) @ jessibuca.js:1
Promise.then(异步)
(匿名) @ jessibuca.js:1
play @ jessibuca.js:1
play @ JessibucaDemo.vue:336
handler @ JessibucaDemo.vue:164
run @ vue.runtime.esm.js:4562
flushSchedulerQueue @ vue.runtime.esm.js:4304
eval @ vue.runtime.esm.js:1980
flushCallbacks @ vue.runtime.esm.js:1906
Promise.then(异步)
timerFunc @ vue.runtime.esm.js:1933
nextTick @ vue.runtime.esm.js:1990
queueWatcher @ vue.runtime.esm.js:4396
update @ vue.runtime.esm.js:4538
notify @ vue.runtime.esm.js:730
reactiveSetter @ vue.runtime.esm.js:1055
proxySetter @ vue.runtime.esm.js:4625
eval @ equipment-list.vue:574
Promise.then(异步)
lookDetail @ equipment-list.vue:572
click @ equipment-list.vue:220
invokeWithErrorHandling @ vue.runtime.esm.js:1854
invoker @ vue.runtime.esm.js:2179
invokeWithErrorHandling @ vue.runtime.esm.js:1854
Vue.$emit @ vue.runtime.esm.js:3882
handleClick @ element-ui.common.js:9417
invokeWithErrorHandling @ vue.runtime.esm.js:1854
invoker @ vue.runtime.esm.js:2179
original._wrapper @ vue.runtime.esm.js:6911
显示 19 更多框架
显示简略信息
jessibuca.js:1 Jessibuca: [decoderWorker] onmessage: audioCode 7
decoder.js:1  Jessibuca: [worker]: [pcm_alaw @ 0x61e9d0] Warning: not compiled with thread support, using thread emulation
printErr @ decoder.js:1
put_char @ decoder.js:1
write @ decoder.js:1
write @ decoder.js:1
doWritev @ decoder.js:1
fd_write @ decoder.js:1
$func2273 @ decoder.wasm:0xaf7a4
$func2312 @ decoder.wasm:0xb205e
$func2082 @ decoder.wasm:0xa2c0f
$func2080 @ decoder.wasm:0xa24c0
$func2084 @ decoder.wasm:0xa2ca7
$func2083 @ decoder.wasm:0xa2c39
$func1984 @ decoder.wasm:0x9cb8c
$func58 @ decoder.wasm:0x2bca
$func73 @ decoder.wasm:0x5e83
AudioDecoder$decode @ VM12:10
self.onmessage @ decoder.js:1
jessibuca.js:1 Jessibuca: [decoderWorker] onmessage: initAudio channels:1,sampleRate:48000
jessibuca.js:1 Jessibuca: [player events] audioInfo {"encType":"ALAW","channels":1,"sampleRate":48000,"encTypeCode":7}
JessibucaDemo.vue:271 audioInfo {encTypeCode: 7, __ob__: Observer}
jessibuca.js:1  [Deprecation]The ScriptProcessorNode is deprecated. Use AudioWorkletNode instead. (https://bit.ly/audio-worklet)
initScriptNode @ jessibuca.js:1
decoderWorker.onmessage @ jessibuca.js:1
jessibuca.js:1 Jessibuca: [MediaSource] timeInit set false , cacheTrack = {}
jessibuca.js:1 Jessibuca: [MediaSource] updateVideoInfo: 1920,1080
jessibuca.js:1 Jessibuca: [player events] videoInfo {"width":1920,"height":1080,"encType":"H264(AVC)","encTypeCode":7}
JessibucaDemo.vue:284 videoInfo {__ob__: Observer}
jessibuca.js:1 Jessibuca: [player events] start undefined
JessibucaDemo.vue:296 frame start
jessibuca.js:1 Jessibuca: [player events] loading false
jessibuca.js:1 Jessibuca: [player events] playing true
jessibuca.js:1 Jessibuca: [player events] volumechange 0.5
jessibuca.js:1 Jessibuca: [player events] play undefined
JessibucaDemo.vue:254 on play
jessibuca.js:1 Jessibuca: [player events] playToRenderTimes {"playInitStart":1717986578753,"playStart":1717986578776,"streamStart":1717986578776,"streamResponse":1717986579098,"demuxStart":1717986579098,"decodeStart":1717986579105,"videoStart":1717986579536,"playTimestamp":23,"streamTimestamp":0,"streamResponseTimestamp":322,"demuxTimestamp":0,"decodeTimestamp":7,"videoTimestamp":431,"allTimestamp":783}
jessibuca.js:1 Jessibuca: [MediaSource] timeInit set true
jessibuca.js:1 Jessibuca: [Video] timeupdate and this.isPlaying is false and retry play
jessibuca.js:1 Jessibuca: [Video] canplay
jessibuca.js:1 Jessibuca: [Video] canplay and _delayPlay is true and next play()
jessibuca.js:1 Jessibuca: [Video] _play success
jessibuca.js:1 Jessibuca: [Video] waiting
jessibuca.js:1 Jessibuca: [Video] canplay
jessibuca.js:1 Jessibuca: [player events] kBps 389.92
JessibucaDemo.vue:317 kBps 389.92
jessibuca.js:1 Jessibuca: [player events] stats {"buf":209,"fps":13,"abps":7704,"vbps":640290,"ts":604}
JessibucaDemo.vue:313 stats {…}
jessibuca.js:1 Jessibuca: [player events] performance 0
jessibuca.js:1 Jessibuca: [player events] kBps 828.12
JessibucaDemo.vue:317 kBps 828.12
jessibuca.js:1 Jessibuca: [player events] stats {"buf":-1,"fps":16,"abps":8346,"vbps":883913,"ts":1840}
JessibucaDemo.vue:313 stats {…}
jessibuca.js:1 Jessibuca: [player events] performance 1
jessibuca.js:1 Jessibuca: [player events] kBps 764.72
JessibucaDemo.vue:317 kBps 764.72
jessibuca.js:1 Jessibuca: [player events] stats {"buf":-1,"fps":1,"abps":8025,"vbps":773993,"ts":2739}
JessibucaDemo.vue:313 stats {…}
jessibuca.js:1 Jessibuca: [player events] performance 0
jessibuca.js:1 Jessibuca: [player events] kBps 789.09
JessibucaDemo.vue:317 kBps 789.09
jessibuca.js:1 Jessibuca: [player events] stats {"buf":-1,"fps":1,"abps":7704,"vbps":754278,"ts":3571}
JessibucaDemo.vue:313 stats {…}
jessibuca.js:1 Jessibuca: [player events] performance 0
jessibuca.js:1 Jessibuca: [player events] kBps 680.78
JessibucaDemo.vue:317 kBps 680.78
jessibuca.js:1 Jessibuca: [Video] waiting
jessibuca.js:1 Jessibuca: [player events] stats {"buf":202,"fps":2,"abps":8025,"vbps":688454,"ts":4485}
JessibucaDemo.vue:313 stats {…}
jessibuca.js:1 Jessibuca: [player events] performance 0
jessibuca.js:1 Jessibuca: [Video] canplay
jessibuca.js:1 Jessibuca: [player events] kBps 742.76
JessibucaDemo.vue:317 kBps 742.76
jessibuca.js:1 Jessibuca: [player events] stats {"buf":-1,"fps":1,"abps":8025,"vbps":786011,"ts":5270}
JessibucaDemo.vue:313 stats {…}
jessibuca.js:1 Jessibuca: [player events] performance 0
jessibuca.js:1 Jessibuca: [Video] waiting
jessibuca.js:1 Jessibuca: [Video] canplay
jessibuca.js:1 Jessibuca: [player events] kBps 914.66
JessibucaDemo.vue:317 kBps 914.66
jessibuca.js:1 Jessibuca: [Video] waiting
jessibuca.js:1 Jessibuca: [player events] stats {"buf":-1,"fps":1,"abps":8025,"vbps":901738,"ts":6109}
JessibucaDemo.vue:313 stats {…}
jessibuca.js:1 Jessibuca: [player events] performance 0
jessibuca.js:1 Jessibuca: [Video] canplay
jessibuca.js:1 Jessibuca: [player events] kBps 719.13
JessibucaDemo.vue:317 kBps 719.13
jessibuca.js:1 Jessibuca: [player events] stats {"buf":-1,"fps":2,"abps":8025,"vbps":757998,"ts":7847}
JessibucaDemo.vue:313 stats {…}
jessibuca.js:1 Jessibuca: [player events] performance 0
jessibuca.js:1 Jessibuca: [player events] kBps 650.85
JessibucaDemo.vue:317 kBps 650.85
jessibuca.js:1 Jessibuca: [player events] stats {"buf":-1,"fps":1,"abps":8025,"vbps":654805,"ts":8674}
JessibucaDemo.vue:313 stats {…}
jessibuca.js:1 Jessibuca: [player events] performance 0
jessibuca.js:1 Jessibuca: [Video] waiting
jessibuca.js:1 Jessibuca: [player events] stats {"buf":-1,"fps":1,"abps":6099,"vbps":703611,"ts":9506}
JessibucaDemo.vue:313 stats {…}
jessibuca.js:1 Jessibuca: [player events] performance 0
jessibuca.js:1 Jessibuca: [player events] kBps 401.87
JessibucaDemo.vue:317 kBps 401.87
jessibuca.js:1 Jessibuca: [player events] stats {"buf":-1,"fps":0,"abps":0,"vbps":50153,"ts":9506}
JessibucaDemo.vue:313 stats {…}
jessibuca.js:1 Jessibuca: [player events] performance 0
jessibuca.js:1 Jessibuca: [player events] stats {"buf":-1,"fps":0,"abps":0,"vbps":0,"ts":9506}
JessibucaDemo.vue:313 stats {…}
jessibuca.js:1 Jessibuca: [player events] performance 0
jessibuca.js:1 Jessibuca: [player events] stats {"buf":-1,"fps":0,"abps":0,"vbps":0,"ts":9506}
JessibucaDemo.vue:313 stats {…}
jessibuca.js:1 Jessibuca: [player events] performance 0
jessibuca.js:1 Jessibuca: [player events] stats {"buf":-1,"fps":0,"abps":0,"vbps":0,"ts":9506}
JessibucaDemo.vue:313 stats {…}
jessibuca.js:1 Jessibuca: [player events] performance 0
jessibuca.js:1 Jessibuca: [player events] stats {"buf":-1,"fps":0,"abps":0,"vbps":0,"ts":9506}
JessibucaDemo.vue:313 stats {…}
jessibuca.js:1 Jessibuca: [player events] performance 0
jessibuca.js:1 Jessibuca: [player events] stats {"buf":-1,"fps":0,"abps":0,"vbps":0,"ts":9506}
JessibucaDemo.vue:313 stats {…}
jessibuca.js:1 Jessibuca: [player events] performance 0
jessibuca.js:1 Jessibuca: [FetchStream] destroy
jessibuca.js:1 Jessibuca: [CommonDemux] destroy
jessibuca.js:1 Jessibuca: [FlvDemux] destroy
jessibuca.js:1 Jessibuca: [decoderWorker] destroy
decoder.js:1 Jessibuca: [worker]: close
jessibuca.js:1 Jessibuca: [MediaSource] destroy
jessibuca.js:1 Jessibuca: [player events] playing false
jessibuca.js:1 Jessibuca: [player events] volumechange 0
jessibuca.js:1 Jessibuca: [player events] pause undefined
JessibucaDemo.vue:250 on pause
jessibuca.js:1 Jessibuca: [AudioContext] destroy
jessibuca.js:1 Jessibuca: [Video] canplay
jessibuca.js:1 Jessibuca: [player events] timeout delayTimeout
JessibucaDemo.vue:292 timeout
jessibuca.js:1 Jessibuca: [player events] delayTimeout undefined
jessibuca.js:1 Jessibuca: [Jessibuca] delay timeout replay time is 0
jessibuca.js:1 Jessibuca: [Jessibuca] delay timeout replay time is 1
jessibuca.js:1 Jessibuca: [Jessibuca] delay timeout replay time is 2
jessibuca.js:1 Jessibuca: [player events] loading true
jessibuca.js:1 Jessibuca: [FetchStream] init
jessibuca.js:1 Jessibuca: [AudioContext] init
jessibuca.js:1 Jessibuca: [common dumex] init Interval
jessibuca.js:1 Jessibuca: [FlvDemux] init
jessibuca.js:1 Jessibuca: [MediaSource] init
jessibuca.js:1 Jessibuca: [decoderWorker] init
jessibuca.js:1 Jessibuca: [player events] mute false
JessibucaDemo.vue:262 on mute false
JessibucaDemo.vue:267 on mute2 false
jessibuca.js:1 Jessibuca: [player events] volumechange 0.5
jessibuca.js:1 Jessibuca: [player events] volume 0.5
jessibuca.js:1 Jessibuca: [FetchStream] fetchStream http://192.168.3.65:8088/rtp/0BEBC203.live.flv {}
jessibuca.js:1 Jessibuca: [player events] volumechange 0.5
jessibuca.js:1 Jessibuca: [player events] volume 0.5
jessibuca.js:1 Jessibuca: [FetchStream] fetchStream http://192.168.3.65:8088/rtp/0BEBC202.live.flv {}
jessibuca.js:1 Jessibuca: [player events] mseSourceClose undefined
jessibuca.js:1 Jessibuca: [player events] mseSourceOpen undefined
jessibuca.js:1 Jessibuca: [decoderWorker] onmessage: init
jessibuca.js:1 Jessibuca: [player] has loaded
jessibuca.js:1 Jessibuca: [player events] decoderWorkerInit undefined
jessibuca.js:1 Jessibuca: [player events] volumechange 0.5
jessibuca.js:1 Jessibuca: [player events] volume 0.5
jessibuca.js:1 Jessibuca: [FetchStream] fetchStream http://192.168.3.65:8088/rtp/0BEBC202.live.flv {}
decoder.js:1 Jessibuca: [worker] init
jessibuca.js:1 Jessibuca: [FetchStream] destroy
jessibuca.js:1 Jessibuca: [CommonDemux] destroy
jessibuca.js:1 Jessibuca: [FlvDemux] destroy
jessibuca.js:1 Jessibuca: [decoderWorker] destroy
jessibuca.js:1 Jessibuca: [MediaSource] destroy
decoder.js:1 Jessibuca: [worker]: close
jessibuca.js:1 Jessibuca: [player events] loading false
jessibuca.js:1 Jessibuca: [AudioContext] destroy
jessibuca.js:1 Jessibuca: [player events] timeout loadingTimeout
JessibucaDemo.vue:292 timeout
jessibuca.js:1 Jessibuca: [player events] loadingTimeout undefined
jessibuca.js:1 Jessibuca: [Jessibuca] loading timeout replay time is 2
jessibuca.js:1 Jessibuca: [player events] loading true
jessibuca.js:1 Jessibuca: [FetchStream] init
jessibuca.js:1 Jessibuca: [AudioContext] init
jessibuca.js:1 Jessibuca: [common dumex] init Interval
jessibuca.js:1 Jessibuca: [FlvDemux] init
jessibuca.js:1 Jessibuca: [MediaSource] init
jessibuca.js:1 Jessibuca: [decoderWorker] init
jessibuca.js:1 Jessibuca: [player events] timeout loadingTimeout
JessibucaDemo.vue:292 timeout
jessibuca.js:1 Jessibuca: [player events] loadingTimeout undefined
jessibuca.js:1 Jessibuca: [player events] mseSourceClose undefined
jessibuca.js:1 Jessibuca: [player events] mseSourceOpen undefined
jessibuca.js:1 Jessibuca: [decoderWorker] onmessage: init
jessibuca.js:1 Jessibuca: [player] has loaded
jessibuca.js:1 Jessibuca: [player events] decoderWorkerInit undefined
jessibuca.js:1 Jessibuca: [player events] mute false
JessibucaDemo.vue:262 on mute false
JessibucaDemo.vue:267 on mute2 false
jessibuca.js:1 Jessibuca: [player events] volumechange 0.5
decoder.js:1 Jessibuca: [worker] init
jessibuca.js:1 Jessibuca: [player events] volume 0.5
jessibuca.js:1 Jessibuca: [FetchStream] fetchStream http://192.168.3.65:8088/rtp/0BEBC202.live.flv {}
jessibuca.js:1 Jessibuca: [FetchStream] destroy
jessibuca.js:1 Jessibuca: [CommonDemux] destroy
jessibuca.js:1 Jessibuca: [FlvDemux] destroy
jessibuca.js:1 Jessibuca: [decoderWorker] destroy
jessibuca.js:1 Jessibuca: [MediaSource] destroy
decoder.js:1 Jessibuca: [worker]: close
jessibuca.js:1 Jessibuca: [player events] loading false
jessibuca.js:1 Jessibuca: [AudioContext] destroy
jessibuca.js:1 Jessibuca: [player events] timeout loadingTimeout
JessibucaDemo.vue:292 timeout
jessibuca.js:1 Jessibuca: [player events] loadingTimeout undefined

from zlmediakit.

ruikc avatar ruikc commented on June 30, 2024

使用ffplay播放也不行,注册了直接注销,能不能控制不让注销。
我先用ffplay访问生成链接

ffplay http://1.92.70.243:8080/rtp/29B92707.live.flv
ffplay version 5.1.4 Copyright (c) 2003-2023 the FFmpeg developers
  built with Apple clang version 15.0.0 (clang-1500.3.9.4)
  configuration: --prefix='/opt/homebrew/Cellar/ffmpeg@5/5.1.4_6' --datadir='/opt/homebrew/Cellar/ffmpeg@5/5.1.4_6/share/ffmpeg' --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags='-Wl,-ld_classic' --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-neon
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
[http @ 0x6000018413b0] HTTP error 404 Not FoundB sq=    0B f=0/0
http://1.92.70.243:8080/rtp/29B92707.live.flv: Server returned 404 Not Found
    nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0

然后使用后端将国标流推送到MediaServer服务器

2024-06-11 12:58:16.445 I [MediaServer] [2630-event poller 0] RtpProcess.cpp:269 operator() | 29B92707(14.153.24.71:45543) 允许RTP推流
2024-06-11 12:58:16.534 I [MediaServer] [2630-event poller 0] GB28181Process.cpp:182 onRtpDecode | 29B92707 judged to be PS
2024-06-11 12:58:16.534 I [MediaServer] [2630-event poller 0] Decoder.cpp:143 onTrack | Got track: H264
2024-06-11 12:58:16.534 I [MediaServer] [2630-event poller 0] Decoder.cpp:143 onTrack | Got track: PCMA
2024-06-11 12:58:16.534 I [MediaServer] [2630-event poller 0] Decoder.cpp:97 onStream | Add track finished
2024-06-11 12:58:19.686 W [MediaServer] [2630-event poller 0] MediaSink.cpp:60 operator() | Cached frame of unready track(H264) is too much, now cleared
2024-06-11 12:58:22.789 W [MediaServer] [2630-event poller 0] MediaSink.cpp:60 operator() | Cached frame of unready track(H264) is too much, now cleared
2024-06-11 12:58:25.899 W [MediaServer] [2630-event poller 0] MediaSink.cpp:60 operator() | Cached frame of unready track(H264) is too much, now cleared
2024-06-11 12:58:27.293 W [MediaServer] [2630-event poller 0] RtpSession.cpp:63 onError | 10-27(14.153.24.71:45543) 29B92707 1(end of file)
2024-06-11 12:58:27.293 D [MediaServer] [2630-event poller 0] MediaSink.cpp:162 emitAllTrackReady | All track ready use 10759ms
2024-06-11 12:58:27.293 W [MediaServer] [2630-event poller 0] MediaSink.cpp:169 emitAllTrackReady | Track not ready for a long time, ignored: PCMA
2024-06-11 12:58:27.293 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注册:fmp4://__defaultVhost__/rtp/29B92707
2024-06-11 12:58:27.293 I [MediaServer] [2630-event poller 0] MultiMediaSourceMuxer.cpp:555 onAllTrackReady | stream: rtp://__defaultVhost__/rtp/29B92707 , codec info: mpeg4-generic[8000/1/16] H264[1280/720/0]
2024-06-11 12:58:27.293 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注册:rtmp://__defaultVhost__/rtp/29B92707
2024-06-11 12:58:27.293 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注册:rtsp://__defaultVhost__/rtp/29B92707
2024-06-11 12:58:27.293 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注册:ts://__defaultVhost__/rtp/29B92707
2024-06-11 12:58:27.293 W [MediaServer] [2630-event poller 0] RtpProcess.cpp:63 ~RtpProcess | 29B92707(14.153.24.71:45543) RTP推流器(__defaultVhost__/rtp/29B92707)断开,耗时(s):10
2024-06-11 12:58:27.293 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注销:ts://__defaultVhost__/rtp/29B92707
2024-06-11 12:58:27.293 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注销:rtsp://__defaultVhost__/rtp/29B92707
2024-06-11 12:58:27.293 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注销:rtmp://__defaultVhost__/rtp/29B92707
2024-06-11 12:58:27.293 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注销:fmp4://__defaultVhost__/rtp/29B92707

这样,ffplay闪退,媒体直接注销。

from zlmediakit.

ruikc avatar ruikc commented on June 30, 2024

怎么能不注销媒体或把注销周期变长啊,后端注册媒体成功,还没有播放出来就注销了。ffplay也不好用。

2024-06-11 13:43:17.104 I [MediaServer] [2630-event poller 0] RtpProcess.cpp:269 operator() | 29B9270A(14.153.24.71:44333) 允许RTP推流
2024-06-11 13:43:17.191 I [MediaServer] [2630-event poller 0] GB28181Process.cpp:182 onRtpDecode | 29B9270A judged to be PS
2024-06-11 13:43:17.191 I [MediaServer] [2630-event poller 0] Decoder.cpp:143 onTrack | Got track: H264
2024-06-11 13:43:17.191 I [MediaServer] [2630-event poller 0] Decoder.cpp:143 onTrack | Got track: PCMA
2024-06-11 13:43:17.191 I [MediaServer] [2630-event poller 0] Decoder.cpp:97 onStream | Add track finished
2024-06-11 13:43:20.290 W [MediaServer] [2630-event poller 0] MediaSink.cpp:60 operator() | Cached frame of unready track(H264) is too much, now cleared
2024-06-11 13:43:23.427 W [MediaServer] [2630-event poller 0] MediaSink.cpp:60 operator() | Cached frame of unready track(H264) is too much, now cleared
2024-06-11 13:43:26.525 W [MediaServer] [2630-event poller 0] MediaSink.cpp:60 operator() | Cached frame of unready track(H264) is too much, now cleared
2024-06-11 13:43:28.011 W [MediaServer] [2630-event poller 0] RtpSession.cpp:63 onError | 31-32(14.153.24.71:44333) 29B9270A 1(end of file)
2024-06-11 13:43:28.011 D [MediaServer] [2630-event poller 0] MediaSink.cpp:162 emitAllTrackReady | All track ready use 10821ms
2024-06-11 13:43:28.011 W [MediaServer] [2630-event poller 0] MediaSink.cpp:169 emitAllTrackReady | Track not ready for a long time, ignored: PCMA
2024-06-11 13:43:28.012 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注册:fmp4://__defaultVhost__/rtp/29B9270A
2024-06-11 13:43:28.012 I [MediaServer] [2630-event poller 0] MultiMediaSourceMuxer.cpp:555 onAllTrackReady | stream: rtp://__defaultVhost__/rtp/29B9270A , codec info: mpeg4-generic[8000/1/16] H264[1280/720/0]
2024-06-11 13:43:28.012 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注册:rtmp://__defaultVhost__/rtp/29B9270A
2024-06-11 13:43:28.012 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注册:rtsp://__defaultVhost__/rtp/29B9270A
2024-06-11 13:43:28.012 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注册:ts://__defaultVhost__/rtp/29B9270A
2024-06-11 13:43:28.012 W [MediaServer] [2630-event poller 0] RtpProcess.cpp:63 ~RtpProcess | 29B9270A(14.153.24.71:44333) RTP推流器(__defaultVhost__/rtp/29B9270A)断开,耗时(s):10
2024-06-11 13:43:28.012 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注销:ts://__defaultVhost__/rtp/29B9270A
2024-06-11 13:43:28.012 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注销:rtsp://__defaultVhost__/rtp/29B9270A
2024-06-11 13:43:28.012 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注销:rtmp://__defaultVhost__/rtp/29B9270A
2024-06-11 13:43:28.012 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注销:fmp4://__defaultVhost__/rtp/29B9270A
2024-06-11 13:43:28.012 D [MediaServer] [2630-event poller 0] MediaSource.cpp:456 operator() | 收到媒体注册事件,回复播放器:rtmp://__defaultVhost__/rtp/29B9270A

from zlmediakit.

xia-chu avatar xia-chu commented on June 30, 2024

你是停止推流了吧?

from zlmediakit.

ruikc avatar ruikc commented on June 30, 2024

你是停止推流了吧?

没有啊,手机一直开了,那个设备也是一直开着。下面是我用手机推送的。

2024-06-11 13:43:28.012 D [MediaServer] [2630-event poller 0] MediaSource.cpp:456 operator() | 收到媒体注册事件,回复播放器:rtmp://__defaultVhost__/rtp/29B9270A
2024-06-11 14:09:19.056 I [MediaServer] [2630-event poller 0] RtpProcess.cpp:269 operator() | 29B92709(221.0.82.195:61509) 允许RTP推流
2024-06-11 14:09:19.092 I [MediaServer] [2630-event poller 0] GB28181Process.cpp:182 onRtpDecode | 29B92709 judged to be PS
2024-06-11 14:09:19.092 I [MediaServer] [2630-event poller 0] Decoder.cpp:143 onTrack | Got track: H264
2024-06-11 14:09:19.092 I [MediaServer] [2630-event poller 0] Decoder.cpp:143 onTrack | Got track: PCMA
2024-06-11 14:09:19.092 I [MediaServer] [2630-event poller 0] Decoder.cpp:97 onStream | Add track finished
2024-06-11 14:09:19.395 D [MediaServer] [2630-event poller 0] MediaSink.cpp:162 emitAllTrackReady | All track ready use 303ms
2024-06-11 14:09:19.395 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注册:fmp4://__defaultVhost__/rtp/29B92709
2024-06-11 14:09:19.395 I [MediaServer] [2630-event poller 0] MultiMediaSourceMuxer.cpp:555 onAllTrackReady | stream: rtp://__defaultVhost__/rtp/29B92709 , codec info: PCMA[8000/1/16] H264[1920/1080/0]
2024-06-11 14:09:19.395 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注册:rtmp://__defaultVhost__/rtp/29B92709
2024-06-11 14:09:19.395 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注册:rtsp://__defaultVhost__/rtp/29B92709
2024-06-11 14:09:19.395 D [MediaServer] [2630-event poller 1] MediaSource.cpp:456 operator() | 收到媒体注册事件,回复播放器:rtmp://__defaultVhost__/rtp/29B92709
2024-06-11 14:09:19.395 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注册:ts://__defaultVhost__/rtp/29B92709
2024-06-11 14:09:19.395 W [MediaServer] [2630-event poller 1] HttpSession.cpp:440 operator() | 38-33(221.0.82.195:62608) flv播放器一般只支持H264和AAC编码,该编码格式可能不被播放器支持:PCMA
2024-06-11 14:09:22.054 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注册:hls://__defaultVhost__/rtp/29B92709
2024-06-11 14:09:30.088 W [MediaServer] [2630-event poller 0] RtpSession.cpp:63 onError | 37-32(221.0.82.195:61509) 29B92709 1(end of file)
2024-06-11 14:09:30.089 W [MediaServer] [2630-event poller 0] RtpProcess.cpp:63 ~RtpProcess | 29B92709(221.0.82.195:61509) RTP推流器(__defaultVhost__/rtp/29B92709)断开,耗时(s):11
2024-06-11 14:09:30.089 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注销:hls://__defaultVhost__/rtp/29B92709
2024-06-11 14:09:30.089 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注销:ts://__defaultVhost__/rtp/29B92709
2024-06-11 14:09:30.089 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注销:rtsp://__defaultVhost__/rtp/29B92709
2024-06-11 14:09:30.090 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注销:rtmp://__defaultVhost__/rtp/29B92709
2024-06-11 14:09:30.090 W [MediaServer] [2630-event poller 1] HttpSession.cpp:157 onError | 38-33(221.0.82.195:62608) FLV/TS/FMP4播放器(__defaultVhost__/rtp/29B92709)断开:6(rtmp ring buffer detached),耗时(s):11
2024-06-11 14:09:30.090 I [MediaServer] [2630-event poller 0] MediaSource.cpp:517 emitEvent | 媒体注销:fmp4://__defaultVhost__/rtp/29B92709

from zlmediakit.

xia-chu avatar xia-chu commented on June 30, 2024

这条日志表明停止推流了

2024-06-11 14:09:30.088 W [MediaServer] [2630-event poller 0] RtpSession.cpp:63 onError | 37-32(221.0.82.195:61509) 29B92709 1(end of file)

from zlmediakit.

ruikc avatar ruikc commented on June 30, 2024

我说下我现在的操作流程:
后台点击查看直播流,程序能过sip协议发送INVITE请求到设备,指定推流地址是MediaServer所在服务器,端口是10000,然后日志收到媒体注册的日志,后台播放界面出来图片了,但还没有播放,日志就显示 媒体注销,我用ffplay都来不及播放就注销了。怎么能控制不让他自动注销,我调试下看看,规律就是都是11秒退出。或者是注册了,直接注销了。

from zlmediakit.

ruikc avatar ruikc commented on June 30, 2024

我直接用liveCMs就可以正常推流与查看,我现在也迷茫了,到底是哪一步有问题。现在感觉就是设备推流了,服务器收不到直接注销了。
image

from zlmediakit.

xia-chu avatar xia-chu commented on June 30, 2024

这个是信令控制问题 跟zlm关系不大了

from zlmediakit.

ruikc avatar ruikc commented on June 30, 2024

这个是信令控制问题 跟zlm关系不大了

信令已经通过了,zlmediakit可以播放11秒,然后就断开了,也能看到视频了。

from zlmediakit.

ruikc avatar ruikc commented on June 30, 2024

媒体也注册了,但11秒就删除了,信令已经通过了,设备也发起推流了。

from zlmediakit.

ruikc avatar ruikc commented on June 30, 2024

这个是注册+ffplay播放界面,但还是会自动断开,怎么才能不断开啊。
image
这个ffplay播放界面:
image

为什么ffplay在播放,但还是会断开,一直是这个现象,这次是使用的最新的master程序,通过命令编译的。

from zlmediakit.

xia-chu avatar xia-chu commented on June 30, 2024

更新下zlmediakit试试 这个问题最近修复了

from zlmediakit.

ruikc avatar ruikc commented on June 30, 2024

更新下zlmediakit试试 这个问题最近修复了

我用的是最新的master的程序,重新编译的,用的是最新gitee的程序,要用github的吗?

from zlmediakit.

xiongguangjie avatar xiongguangjie commented on June 30, 2024

1,你这个是推流端主动断开的吧,你看下信令是怎么回事,是否触发了无人观看导致断开的?
2,你编译的最新的代码commit id 是啥?

from zlmediakit.

ruikc avatar ruikc commented on June 30, 2024

1,你这个是推流端主动断开的吧,你看下信令是怎么回事,是否触发了无人观看导致断开的? 2,你编译的最新的代码commit id 是啥?

1,ffplay播放着,ffplay一直运行,但没有新数据,界面卡住了,就是上面图片的表现。怎么感觉表现不一样,我在mac系统下,可以长时间看,但在linux下编译的,会主要断开,我看源码了,应该是Socket读不到数据就会断开,但抓包的时候,不确定是先断开后tcp不发包了还是tcp不发包了才断开的。
2、commentid = 84dbe4b

from zlmediakit.

PioLing avatar PioLing commented on June 30, 2024

1,你这个是推流端主动断开的吧,你看下信令是怎么回事,是否触发了无人观看导致断开的? 2,你编译的最新的代码commit id 是啥?

1,ffplay播放着,ffplay一直运行,但没有新数据,界面卡住了,就是上面图片的表现。怎么感觉表现不一样,我在mac系统下,可以长时间看,但在linux下编译的,会主要断开,我看源码了,应该是Socket读不到数据就会断开,但抓包的时候,不确定是先断开后tcp不发包了还是tcp不发包了才断开的。 2、commentid = 84dbe4b

你两边都抓包比对下,摄像头那边 和 zlm 流媒体这边

from zlmediakit.

ruikc avatar ruikc commented on June 30, 2024

这个我怀疑是对方的问题,集成其他的视频不存在这个问题,先关了吧。让对方去调整吧。

from zlmediakit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.