[FFmpeg-user] Fwd: Approx. 15 seconds delay when re-streaming h.264 to RTMP

Archil Matchavariani archil1983 at gmail.com
Wed Nov 2 12:11:30 CET 2011


Forgot to mention, I have latest librtmp linked in ffmpeg as well.

Regards.

---------- Forwarded message ----------
From: Archil Matchavariani <archil1983 at gmail.com>
Date: Wed, Nov 2, 2011 at 1:07 PM
Subject: Approx. 15 seconds delay when re-streaming h.264 to RTMP
To: ffmpeg-user at ffmpeg.org


Hi.

I'm trying to re-stream h.264 packets to rtmp server, using the following
command:
ffmpeg -i rtsp://root:pass@xxx.xxx.xxx.xxx:554/live?tcp -vcodec copy -f flv
rtmp://xxx.xxx.xxx.xxx/live/teststream

The resulting stream hangs on the first frame for some time, then resumes
playback, with approximately 15 seconds of delay.

If I let FFMPEG re-code the stream to FLV via following command:
ffmpeg -i rtsp://root:pass@xxx.xxx.xxx.xxx:554/live?tcp -f flv
rtmp://xxx.xxx.xxx.xxx/live/teststream

The stream works fine and has minimal delay, but the resulting quality
naturally lower.


Any idea how to remove the delay on re-stream? I'm using latest 0.8
(oldapi) of FFMPEG.

Thanks!


More information about the ffmpeg-user mailing list