sieuhuflit / live-tream-rtmp-server

Live stream using RTMP for React Native
83 stars 48 forks source link

Replay Video did not work even edit node_modules stuff? #10

Open anastely opened 3 years ago

anastely commented 3 years ago

I couldn't able to Replay the Video stream I handle it as you say here,

But in logs, it got those errors/warnings

Note: I can saw the Video in Media/live/${name} Folder


[ERROR] uncaughtException TypeError: Cannot read property 'mp4' of undefined
    at NodeRtmpSession.run (/Volumes/Work/SideProjects/liveStream-EX/live-tream-rtmp-server/node_modules/node-media-server/node_rtmp_session.js:187:19)
    at Server.<anonymous> (/Volumes/Work/SideProjects/liveStream-EX/live-tream-rtmp-server/node_modules/node-media-server/node_rtmp_server.js:21:15)
    at Server.emit (events.js:314:20)
    at TCP.onconnection (net.js:1558:8)

 [INFO] [rtmp play] Stream not found. id=N54ZBFOE streamPath=/liveTest3/replayForTest2  streamId=1
stderr: ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.17)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1_2 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --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-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
-c:v: Protocol not found
Did you mean file:-c:v?

React Native Logs

list-live-stream : [{"__v": 0, "_id": "5fd66b1a7b0807292de720a1", "beginAt": "2020-12-14T02:27:26.668Z", "countHeart": 0, "countViewer": 1, "createdAt": "2020-12-14T02:25:09.126Z", "filePath": "", "liveStatus": 2, "messages": [], "roomName": "Test3", "userName": "Test3"}]

vivekpatil94 commented 3 years ago

Same issue . Please Help @anastely @sieuhuflit

Screenshot from 2021-08-12 02-17-50