[FFmpeg-user] RTSP input re-encoded/copied to RTSP output stream

Michael Shaffer mikeshaffer at gmail.com
Mon Sep 17 04:55:12 EEST 2018


I don't see why you aren't using

ffmpeg -i rtsp://172.x.x.x -c:v copy http://127.0.0.1:8090/feed1.ffm

Then it wouldn't even re-encode the video and would use less CPU and have
higher quality.

Also when I stream my IP cameras I put these two switches at the front of
the command

ffmpeg -re -rtsp_transport -i rtsp://172.x.x.x -c:v copy
http://127.0.0.1:8090/feed1.ffm

Also, if you happen to have an Nvidia graphics card you might be able to
use nvenc instead of libx264 to shift the processing from your CPU to your
GPU (wish I had realized this a while ago).

I haven't used ffserver so I can't give any input about that.

On Sun, Sep 16, 2018 at 5:01 PM, Dave Pritchard <galrath at gmail.com> wrote:

> Hi all,
> I am trying to use ffmpeg and ffserver on Ubuntu to take in an RTSP stream
> and then send it back out where I will be ingesting it into a Genetec
> Security Centre server.
>
> Short version as to why I want to do this is because the RTSP input source
> does not handshake correctly with Genetec so it does not initiate the
> stream, but I digress.
>
> I am trying to get the correct settings to make this work however have had
> limited success.
>
> The input stream is 1440x1080 @ 25fps and I would like to keep as much
> quality intact as possible, can anyone point me in the right direction as
> to what my ffserver.conf and ffmpeg strings should be!?!  Thank you.
>
> My current ffmpeg command I use to run it is;
> ffmpeg -i rtsp://172.x.x.x -vcodec libx264 -tune zerolatency -crf 18
> http://127.0.0.1:8090/feed1.ffm
>
> My ffserver.conf has minimal configuration in it, specifying RTSP port and
> ingest port.
>
> Any help would be amazing to get the config and commands right!
>
> Many thanks!
>
> Dave
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list