[mythtv-users] Slightly OT: Modify mythweb flash streaming for an in progress recording (Formula 1)

Chris Pinkham cpinkham at bc2va.org
Wed Apr 6 01:43:54 UTC 2011

* On Tue Apr 05, 2011 at 05:35:12PM -0700, Rob Smith wrote:
> On Tue, Apr 5, 2011 at 4:40 PM, David Whyte <david.whyte at gmail.com> wrote:
> > to encode newly recorded portions of the file?  I am think of
> > something along the lines of 'cat'ing the file and piping it into
> > ffmpeg, but is this safe?
> cat also stops when it hit's a EOF. The correct way would be to sit a
> new process inbetween the file and ffmpeg, on EOF, close and reopen
> the file handle and seek to the old EOF position and start streaming
> again if there is new data.

I think there's already a program that does something similar to that,
something that keeps outputting the 'tail' end of a file as it grows. :)

David, give "tail -f" a try instead of "cat", something like this:

tail -f /path/to/some/in/progress/recording.mpg | ffmpeg -the -right -options


More information about the mythtv-users mailing list