[mythtv-users] Problems when streaming from a web site

Peter Bennett pb.mythtv at gmail.com
Sun Nov 6 20:04:20 UTC 2022

On 11/6/22 11:32, Scott Simpson wrote:
> On 11/6/2022 8:49 AM, Peter Bennett wrote:
> > I suggest encode to h264 and aac using:
> >
> > -c:v libx264 -preset veryfast -crf 21  -c:a aac
> >
> > I use crf 21 for 720p, 23 for 1080p and 22 for 480p
> >
> > CPU usage is higher, but I have had perfect results and no skipping
> > problems. You can see my entire set of scripts here:
> This actually works and solves my skip problems. It creates smaller 
> files too since I used 21 (720p) and the video comes in as 1080p. 
> However, it seems to not record the last 7 minutes or so. I don't know 
> why. It pegs the CPU as expected but that isn't a concern of mine.
> Your Github repository for using FireTV is impressive. I'm not using 
> it now but I might. I have a FireTV at home.
> If I can't solve the "convert to libx264" truncation problem I'll have 
> to keep recording without being able to skip ahead. Truncating is 
> worse than not being able to skip.
I don't know why you would lose 7 minutes. You could try adding some of 
the other ffmpeg parameters I have in the leancap_encode.sh script. I am 
not sure what they all do, but it works for me and does not lose 
anything at the end. Of course many of those parameters are specific to 
my capture device, so would not apply.


More information about the mythtv-users mailing list