[FFmpeg-user] hls & Continuity check failed

Moritz Barsnick barsnick at gmx.net
Tue Jul 4 11:14:18 EEST 2017


On Mon, Jul 03, 2017 at 21:49:45 +0300, tasos wrote:
>    Hello.
>    I'm using ffmpeg to get a stream(hls) and send it to a media server.
>    After some time i keep getting the following error and the video will 
> never be corrected(i mean i see no video at all).
>    I have to restart ffmpeg.
> > [mpegts @ 0x559c3a0] Continuity check failed for pid 4095 expected 1 got 0
> >     frame= 4314 fps=2.3 q=23.0 size=   37963kB time=00:04:56.06 bitrate=1050.4kbits/s dup=0 drop=2864 speed=0.16x
> >     [AVIOContext @ 0x7d56d00] Statistics: 144760 bytes read, 0 seeks
> >     [hls,applehttp @ 0x5575020] HLS request for url 'foo', offset 0, playlist 4
> >     [hls,applehttp @ 0x5575020] Opening 'bar' for reading
> >     [http @ 0x7d5d700] request: GET foobar1 HTTP/1.1
> >     User-Agent: Mozilla/5.0 (Linux; Android 5.1.1; SM-G928X Build/LMY47X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.83 Mobile Safari/537.36
> >     Accept: */*
> >     Connection: close
> >     Host: foobar
> >     Cookie: foofoo
> >     Icy-MetaData: 1

You are usually asked to provide the actual ffmpeg command line and the
complete, uncut console output.

Does ffmpeg continue to (try to) encode after the corrupt packet
("continuity check")?

If I read ffmpeg's source correctly, you could try to set
  -fflags +discardcorrupt
as an output option. ffmpeg should then drop this packet. I'm not sure
you will get a better result though. Do give it a try.

Regards,
Moritz


More information about the ffmpeg-user mailing list