Project

General

Profile

FFMPEG delay

Added by Adrian Carpenter about 5 years ago

Hi,

I'm wondering if anybody has any insight/solution to a problem I'm having.

I'l trying to spawn ffmpeg, input from pipe:0 output to pipe:1, but have a big delay when I use this stream profile before it starts playing in VLC.

If I select the pass profile in tvheadend playback in VLC is almost instantanous, as I'd hope and expect.

However, going back to basics I set my custom stream profile to copy the video and audio as is directly, so ffmpeg is not transcoding, but I still have a massive delay before the stream starts, like 5-6 seconds.

/usr/bin/ffmpeg -i pipe:0 -c:a copy -c:v copy -f mpegts pipe:1

It seems as soon as I use the ffmpeg ustom profiile it takes ages for streaming to start, when using the built in pass profile it's instant. My ffmpeg command should be doing the equivilent of the pass profile.

Any thoughts, ideas, explanations?

Thanks


Replies (1)

RE: FFMPEG delay - Added by Hiro Protagonist about 5 years ago

What format is the input stream?

You could try the ffmpeg command on the commandline without the output pipe ffmpeg will complain about needing a destination, but only after analysing the input, so this will give you some insight into what ffmpeg is doing.

    (1-1/1)