Recording IP Camera stream with FFMPEG

流过昼夜 提交于 2019-12-05 04:29:34

问题


Hey I am trying to record the IP camera stream using FFMPEG . But it is giving me Input/Output error . Here is the command

ffmpeg -i http://admin:@ip:81/livestream.cgi E:\Video\my.h264

My camera is H264 encoded. Now Please help how to remove this error . Any Help would be appreciated .


回答1:


I am saving my content using this and its working fine. Check if the input is correct or try to put the specifics of the video while receiving the stream.

ffmpeg -i http://admin:admin@192.2.2.1:554/dd-a -c copy -map 0 -f segment -segment_time 300 -segment_format mp4 "outfile.mp4"



回答2:


ffmpeg -rtsp_flags listen -i rtsp://ownaddress/live.sdp -codec copy -map 0 -f segment -segment_time 900 -segment_atclocktime 1 out%03d.mp4


来源:https://stackoverflow.com/questions/26454833/recording-ip-camera-stream-with-ffmpeg

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!