خرید بک لینک

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
But from the Googling Ive done it seems its not possible to likewise configure ffserver to just copy through the data without doing any transcoding?

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>
But the resulting picture quality its far too blurry and there is a 30 second+ delay between the camera seeing something and it appearing on screen. I can only assume this is due to the transcoding.

Is there a way round this? There is still no equivalent of -vcodec copy for ffserver? Many thanks

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 10 فروردين 1395 ساعت: 23:54

صفحه بندی