Im trying to use ffserver to re-stream an H264 stream from an IP CCTV camera. The camera only supports one user at a time so I want to re-stream it so I can use ffmpeg to record and VLC to view simultaneously. Im using ffmpeg to capture the RTSP stream from the camera and pass it to ffserver like this:
Code:
ffmpeg -i rtsp://cameraip/src/MediaInput/h264/stream_1 -acodec copy -vcodec copy http://127.0.0.1:8090/stream1.ffm
I can get an H264 stream by putting the following in ffserver.conf
Code:
<Feed stream1.ffm> File /tmp/stream1.ffm FileMaxSize 2G ACL allow 127.0.0.1 </Feed> <Stream stream1.flv> Format flv Feed stream1.ffm NoAudio VideoCodec libx264 VideoFrameRate 30 VideoBitRate 4096 VideoSize 600x800 AVOptionVideo crf 23 AVOptionVideo preset medium # for more info on crf/preset options, type: x264 --help AVOptionVideo flags +global_header </Stream>
Is there a way round this? There is still no equivalent of -vcodec copy for ffserver? Many thanks
برچسب:
نویسنده: استخدام کار