[mythtv] mythtranscode --showprogress

Geoffrey Hausheer mythtv0368 at phracturedblue.com
Tue Jul 20 10:52:55 EDT 2004

On Mon, 19 Jul 2004 22:59:47 -0700, Chris Petersen  wrote:
> Out of curiosity, does this print the last frame count?  I need to know
> if I can trust that it'll return "1000 of 1000 frames" when it's done to
> use as a check for crashed processes.
It doesn't do this, and it isn't as easy as you might think.  The
problem is that the frame count (which I retrieve from
NuppelVideoPlayer) doesn't seem to give me an exact number of frames
(the final count is often greater than the number returned by nvp).  I
think the right solution is to check the return code (0==all good,
1==cutlist-changed, retry, 255=something bad happened)
Alternatively you could look for 'Transcoding .... done'
As I said, your code should handle the case where the current frame is
larger than the total frame count, as it is possible for this to

> Also, I tried to check this myself, just catting the fifos to /dev/null,
>   and it segfaulted.  CVS as of about 7 hours ago.
Yep, I saw this too.  the weird thing is it should have always done
that, as nothing I changed would have affected this (it was trying to
write to the nvr, which isn't initialized properly for fifo-out).  I
have checked in a fix for this.


More information about the mythtv-dev mailing list