Project

General

Profile

How to correctly reencode internet-streams that suck?

Added by Hanspeter Müller over 9 years ago

Hi,

i view several internet-streams that really suck. It takes up to 10 seconds after subscribing until kodi show's video, for the first few seconds video does not play, and seeking in a recording also takes up to 10 seconds. I get that the picture quality will not get better with reencoding, but, i'm completely reencode the streams with

avconv -re -v error -fflags +genpts -i pipe:0 -bsf h264_mp4toannexb -vcodec libx264 -preset veryfast -tune zerolatency -acodec ac3 -f mpegts pipe:1

Shoudn't this stream (in a technical sense) be perfect?! I've tried multiple tune and preset values, didn't change a thing, also pretty much every fflags. Are there timestamps (beside pts, which +genpts should recreate) that avconv still takes from the input stream and tvheadend relies on...?

I'm thankfull for every hint...

Regards,

/hp