sahilchaddha / node-rtsp-recorder

Records and saves RTSP Video Streams
66 stars 29 forks source link

I have only empty mp4 files after run. #2

Open ErickMarlo opened 5 years ago

ErickMarlo commented 5 years ago

For my rtsp camera not work ffmpeg connect and record to file. And this lib also. May be we make VLC version? VLC have nice connect+auth and nice record file. (But i can not split file on mp4 chunks with vlc)

sahilchaddha commented 5 years ago

Hey @ErickMarlo , Have u installed ffmpeg & all its dependencies ? You might also need proper audio & video codecs installed in ffmpeg according to your camera stream.

ErickMarlo commented 5 years ago

Yes, but not sure. How to do this correctly on OSX or Ubuntu?

пт, 7 дек. 2018 г. в 05:12, Sahil Chaddha notifications@github.com:

Hey @ErickMarlo https://github.com/ErickMarlo , Have u installed ffmpeg & all its dependencies ? You might also need proper audio & video codecs installed in ffmpeg according to your camera stream.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sahilchaddha/node-rtsp-recorder/issues/2#issuecomment-445098492, or mute the thread https://github.com/notifications/unsubscribe-auth/ASw2_g1bmHQiA9n7lpmXPsuC8ybIs7BJks5u2c51gaJpZM4ZDCgb .

uzenith360 commented 5 years ago

Yes, but not sure. How to do this correctly on OSX or Ubuntu? пт, 7 дек. 2018 г. в 05:12, Sahil Chaddha notifications@github.com: Hey @ErickMarlo https://github.com/ErickMarlo , Have u installed ffmpeg & all its dependencies ? You might also need proper audio & video codecs installed in ffmpeg according to your camera stream. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#2 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/ASw2_g1bmHQiA9n7lpmXPsuC8ybIs7BJks5u2c51gaJpZM4ZDCgb .

I need help too cos on my system the recorded video and audio files arent playing. Thanks so much

Skullcan commented 5 years ago

Hey @ErickMarlo , Have u installed ffmpeg & all its dependencies ? You might also need proper audio & video codecs installed in ffmpeg according to your camera stream.

Same issue here, what are the dependencies? thanks.

LSanchez94 commented 4 years ago

I got the same issue my IP Camera woek when I run the code of capture a picture, but when I start to record its just make empty files, My IP CAMERA use MJPEG and H.264 CODEC, I need help with the process of instaling the codecs in the ffmpeg environment HELP PLEASE!! :)

kraiymbek commented 4 years ago

Here is my solution: 1) download app called onvif device manager and under live video tab get full rtsp url(my url as an example: rtsp://192.168.0.136:554/user=admin_password=tlJwpbo6_channel=1_stream=0.sdp?real_stream) 2) run script "ffmpeg -i rtsp://192.168.0.136:554/user=admin_password=tlJwpbo6_channel=1_stream=0.sdp?real_stream -c:a aac -vcodec copy \asuVideos\cam1\Feb-18th-20\video\2020-2-18-12-18-25.mp4" to identify problem (i got this script from recorder.js) 3) if everything is ok, there is no error. In my case, i got "Could not find tag for codec pcm_alaw in stream #1, codec not currently supported in container when concatenating 2 files using ffmpeg" 4) to resolve this error i just replaced mp4 extension to mov

kraiymbek commented 4 years ago

http://help.angelcam.com/en/articles/372646-how-to-find-a-rtsp-address-for-an-onvif-compatible-camera-nvr-dvr

gooselord-0 commented 2 years ago

Old thread here, but in case anyone else comes across it, I experienced the same problem when trying to use node-rtsp-recorder in conjunction with several Wyze Cam (v2) units running the RTSP firmware. I didn't have any issues recording directly with ffmpeg using @kraiymbek's ffmepg invocation, and it seemed like the only difference between it and node-rtsp-recorder's was in the latter's src/helpers/recorder.js, line 63, where copy was being passed as the audio codec.

Changing this argument to aac resolved the issue. If this repo's dev is still active, allowing the user pass an audio codec in the Recorder's constructor could help with this.

I created a pull request that lets the user resolve the issue by passing an optional audioCodec to the Recorder's constructor: https://github.com/sahilchaddha/node-rtsp-recorder/pull/17

ChaymaBENBRAHIM commented 2 years ago

Hi @mscott5861 the problem is still there, the folder is still empty. i need your help please thanks