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

I have only empty mp4 files after run. #2

Open
ErickMarlo opened this issue Dec 5, 2018 · 9 comments
Open

I have only empty mp4 files after run. #2

ErickMarlo opened this issue Dec 5, 2018 · 9 comments

Comments

@ErickMarlo
Copy link

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
Copy link
Owner

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
Copy link
Author

ErickMarlo commented Dec 17, 2018 via email

@uzenith360
Copy link

Yes, but not sure. How to do this correctly on OSX or Ubuntu? пт, 7 дек. 2018 г. в 05:12, Sahil Chaddha [email protected]:

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
Copy link

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
Copy link

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
Copy link

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
Copy link

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

@gooselord-0
Copy link
Contributor

gooselord-0 commented Jun 28, 2022

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: #17

@ChaymaBENBRAHIM
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants